2025-05-28 16:22:03 +08:00
|
|
|
"use strict";
|
|
|
|
const common_vendor = require("../common/vendor.js");
|
|
|
|
const common_assets = require("../common/assets.js");
|
|
|
|
const _sfc_main = {
|
|
|
|
name: "container-loading",
|
|
|
|
props: {
|
|
|
|
loadingVisible: {
|
|
|
|
type: String,
|
|
|
|
default: "loading"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {};
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
notifyParentToRefresh() {
|
|
|
|
this.$emit("doRefresh");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
|
return common_vendor.e({
|
|
|
|
a: $props.loadingVisible == "loading"
|
|
|
|
}, $props.loadingVisible == "loading" ? {} : $props.loadingVisible == "error" ? {
|
2025-06-19 17:02:46 +08:00
|
|
|
c: common_assets._imports_0$5,
|
2025-05-28 16:22:03 +08:00
|
|
|
d: common_vendor.o((...args) => $options.notifyParentToRefresh && $options.notifyParentToRefresh(...args))
|
|
|
|
} : $props.loadingVisible == "empty" ? {
|
2025-06-19 17:02:46 +08:00
|
|
|
f: common_assets._imports_0$5,
|
2025-05-28 16:22:03 +08:00
|
|
|
g: common_vendor.o((...args) => $options.notifyParentToRefresh && $options.notifyParentToRefresh(...args))
|
|
|
|
} : {}, {
|
|
|
|
b: $props.loadingVisible == "error",
|
|
|
|
e: $props.loadingVisible == "empty",
|
|
|
|
h: $props.loadingVisible == "success"
|
|
|
|
});
|
|
|
|
}
|
|
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
|
|
swan.createComponent(Component);
|
|
|
|
//# sourceMappingURL=../../.sourcemap/mp-baidu/components/container-loading.js.map
|