acdr-ui/dist/dev/mp-weixin/components/EmptyState.js
2024-10-01 09:15:35 +08:00

41 lines
1.1 KiB
JavaScript

"use strict";
const utils_commUtils = require("../utils/commUtils.js");
const common_vendor = require("../common/vendor.js");
const Page = () => "../modules/mall/index/page2.js";
const _sfc_main = {
name: "EmptyState",
components: { Page },
props: {
type: {
type: String,
default: "default"
},
message: {
type: String,
default: "空空如也!"
}
},
methods: {
imgUrl: utils_commUtils.imgUrl
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: this.type == "map"
}, this.type == "map" ? {
b: $options.imgUrl("@/static/null/mapnull.png")
} : this.type == "search" ? {
d: $options.imgUrl("@/static/null/searchnull.png")
} : this.type == "message" ? {
f: $options.imgUrl("@/static/null/messagenull.png")
} : {
g: $options.imgUrl("@/static/null/searchnull.png")
}, {
c: this.type == "search",
e: this.type == "message",
h: common_vendor.t($props.message)
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f262d0f3"]]);
wx.createComponent(Component);