39 lines
1.3 KiB
JavaScript
39 lines
1.3 KiB
JavaScript
|
"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" ? {
|
||
|
c: common_assets._imports_0$3,
|
||
|
d: common_vendor.o((...args) => $options.notifyParentToRefresh && $options.notifyParentToRefresh(...args))
|
||
|
} : $props.loadingVisible == "empty" ? {
|
||
|
f: common_assets._imports_0$3,
|
||
|
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
|