You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
JavaScript
60 lines
1.4 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../common/vendor.js");
|
|
const _sfc_main = {
|
|
props: {
|
|
loading: {
|
|
type: Boolean,
|
|
default: () => {
|
|
return true;
|
|
}
|
|
},
|
|
minHeight: {
|
|
default: () => {
|
|
return 500;
|
|
}
|
|
},
|
|
text: {
|
|
default: () => {
|
|
return "加载中...";
|
|
}
|
|
},
|
|
paddingBottom: {
|
|
// 微调loading的位置
|
|
default: () => {
|
|
return 0;
|
|
}
|
|
},
|
|
bg: {
|
|
default: () => {
|
|
return "auto";
|
|
}
|
|
}
|
|
}
|
|
};
|
|
if (!Array) {
|
|
const _easycom_u_loading2 = common_vendor.resolveComponent("u-loading");
|
|
_easycom_u_loading2();
|
|
}
|
|
const _easycom_u_loading = () => "../uni_modules/vk-uview-ui/components/u-loading/u-loading.js";
|
|
if (!Math) {
|
|
_easycom_u_loading();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return common_vendor.e({
|
|
a: common_vendor.p({
|
|
mode: "circle",
|
|
color: "#00B666"
|
|
}),
|
|
b: $props.text != "empty"
|
|
}, $props.text != "empty" ? {
|
|
c: common_vendor.t($props.text)
|
|
} : {}, {
|
|
d: common_vendor.n($props.paddingBottom),
|
|
e: $props.minHeight ? $props.minHeight + "rpx" : "0rpx",
|
|
f: $props.bg ? $props.bg : "auto"
|
|
});
|
|
}
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
wx.createComponent(Component);
|
|
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/loading.js.map
|