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.
90 lines
2.6 KiB
JavaScript
90 lines
2.6 KiB
JavaScript
|
6 months ago
|
"use strict";
|
||
|
|
const common_vendor = require("../../common/vendor.js");
|
||
|
|
const _sfc_main = {
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
localBaseImg: ""
|
||
|
|
};
|
||
|
|
},
|
||
|
|
props: {
|
||
|
|
list: {
|
||
|
|
type: Array,
|
||
|
|
default: () => {
|
||
|
|
return [];
|
||
|
|
}
|
||
|
|
},
|
||
|
|
loading: {
|
||
|
|
type: Boolean,
|
||
|
|
default: false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
created() {
|
||
|
|
this.localBaseImg = this.G.store().localBaseImg;
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
// 当前行
|
||
|
|
handleClickItem($item, $index) {
|
||
|
|
this.$emit("clickItem", {
|
||
|
|
item: $item,
|
||
|
|
index: $index
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
if (!Array) {
|
||
|
|
const _easycom_u_skeleton2 = common_vendor.resolveComponent("u-skeleton");
|
||
|
|
_easycom_u_skeleton2();
|
||
|
|
}
|
||
|
|
const _easycom_u_skeleton = () => "../../uni_modules/vk-uview-ui/components/u-skeleton/u-skeleton.js";
|
||
|
|
if (!Math) {
|
||
|
|
_easycom_u_skeleton();
|
||
|
|
}
|
||
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||
|
|
return {
|
||
|
|
a: common_vendor.f($props.list, (item, index, i0) => {
|
||
|
|
return common_vendor.e({
|
||
|
|
a: item.icon && item.itype != "icon"
|
||
|
|
}, item.icon && item.itype != "icon" ? {
|
||
|
|
b: item.icon == "icon-wodetuandui" ? "24px" : "22px",
|
||
|
|
c: item.icon == "icon-wodetuandui" ? "24px" : "22px",
|
||
|
|
d: common_vendor.n("t-" + item.icon)
|
||
|
|
} : {}, {
|
||
|
|
e: item.icon && item.itype == "icon"
|
||
|
|
}, item.icon && item.itype == "icon" ? {
|
||
|
|
f: common_vendor.n(item.icon)
|
||
|
|
} : {}, {
|
||
|
|
g: common_vendor.t(item.label),
|
||
|
|
h: common_vendor.n(item.require ? "labelRequire" : ""),
|
||
|
|
i: item.result
|
||
|
|
}, item.result ? {
|
||
|
|
j: common_vendor.t(item.result),
|
||
|
|
k: common_vendor.n(item.fontColor)
|
||
|
|
} : {}, {
|
||
|
|
l: item.tip == "code"
|
||
|
|
}, item.tip == "code" ? {} : {}, {
|
||
|
|
m: item.tip == "avatar"
|
||
|
|
}, item.tip == "avatar" ? {
|
||
|
|
n: item.value
|
||
|
|
} : {}, {
|
||
|
|
o: item.type != "slot"
|
||
|
|
}, item.type != "slot" ? {} : {}, {
|
||
|
|
p: index,
|
||
|
|
q: item.type == "slot" ? "none" : "g_bg_e",
|
||
|
|
r: common_vendor.o(($event) => $options.handleClickItem(item, index), index),
|
||
|
|
s: (item.pColumn ? item.pColumn : 19) + "px",
|
||
|
|
t: (item.pColumn ? item.pColumn : 19) + "px",
|
||
|
|
v: (item.pRow ? item.pRow : 10) + "px",
|
||
|
|
w: (item.pRow ? item.pRow : 10) + "px"
|
||
|
|
});
|
||
|
|
}),
|
||
|
|
b: common_vendor.p({
|
||
|
|
loading: $props.loading,
|
||
|
|
animation: true,
|
||
|
|
bgColor: "#fff"
|
||
|
|
})
|
||
|
|
};
|
||
|
|
}
|
||
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||
|
|
wx.createComponent(Component);
|
||
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/panel/formItem.js.map
|