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.
144 lines
3.6 KiB
JavaScript
144 lines
3.6 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const _sfc_main = {
|
|
props: {
|
|
label: {
|
|
type: String,
|
|
default() {
|
|
return "";
|
|
}
|
|
},
|
|
value: {
|
|
default() {
|
|
return "";
|
|
}
|
|
},
|
|
valueColor: {
|
|
type: String,
|
|
default() {
|
|
return "#333333";
|
|
}
|
|
},
|
|
beforeIcon: {
|
|
type: String,
|
|
default() {
|
|
return "";
|
|
}
|
|
},
|
|
afterIcon: {
|
|
type: String,
|
|
default() {
|
|
return "";
|
|
}
|
|
},
|
|
fontWeight: {
|
|
type: String,
|
|
default() {
|
|
return "400";
|
|
}
|
|
},
|
|
afterType: {
|
|
type: String,
|
|
default() {
|
|
return "show";
|
|
}
|
|
},
|
|
isShowBottom: {
|
|
default() {
|
|
return true;
|
|
}
|
|
},
|
|
from: {
|
|
default() {
|
|
return "";
|
|
}
|
|
},
|
|
labelSubStr: {
|
|
default() {
|
|
return "";
|
|
}
|
|
},
|
|
remarkValue: {
|
|
default() {
|
|
return "";
|
|
}
|
|
}
|
|
},
|
|
methods: {
|
|
handleItem() {
|
|
this.$emit("clickItem");
|
|
},
|
|
getChooseTime(e) {
|
|
this.$emit("confirmChooseTime", e);
|
|
},
|
|
handleClickLabel() {
|
|
this.$emit("clickLabelBtn");
|
|
}
|
|
}
|
|
};
|
|
if (!Array) {
|
|
const _component_g_panel_time = common_vendor.resolveComponent("g-panel-time");
|
|
_component_g_panel_time();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return common_vendor.e({
|
|
a: common_vendor.t($props.label),
|
|
b: $props.labelSubStr
|
|
}, $props.labelSubStr ? {
|
|
c: common_vendor.t($props.labelSubStr),
|
|
d: common_vendor.o((...args) => $options.handleClickLabel && $options.handleClickLabel(...args))
|
|
} : {}, {
|
|
e: $props.beforeIcon
|
|
}, $props.beforeIcon ? {
|
|
f: common_vendor.n($props.beforeIcon),
|
|
g: $props.remarkValue ? "#00b666" : "#999",
|
|
h: common_vendor.n($props.afterType == "list" ? "g_flex_column_end" : "g_flex_column_center")
|
|
} : {}, {
|
|
i: $props.afterType == "show"
|
|
}, $props.afterType == "show" ? {
|
|
j: common_vendor.t($props.value ? $props.value : "-"),
|
|
k: $props.valueColor,
|
|
l: $props.fontWeight
|
|
} : {}, {
|
|
m: $props.afterType == "time"
|
|
}, $props.afterType == "time" ? {
|
|
n: common_vendor.o($options.getChooseTime),
|
|
o: common_vendor.p({
|
|
timeval: $props.value
|
|
})
|
|
} : {}, {
|
|
p: $props.afterType == "list"
|
|
}, $props.afterType == "list" ? common_vendor.e({
|
|
q: $props.value.length > 0
|
|
}, $props.value.length > 0 ? {
|
|
r: common_vendor.f($props.value, (item, index, i0) => {
|
|
return {
|
|
a: common_vendor.t(item.userName),
|
|
b: common_vendor.t(item.tel),
|
|
c: index
|
|
};
|
|
})
|
|
} : {}, {
|
|
s: $props.value.length == 0
|
|
}, $props.value.length == 0 ? {} : {}) : {}, {
|
|
t: $props.afterType == "multi"
|
|
}, $props.afterType == "multi" ? {
|
|
v: common_vendor.t($props.value)
|
|
} : {}, {
|
|
w: $props.from == "quick" || $props.from == "reservation-time" || $props.from == "" || $props.from == "times" ? 1 : "",
|
|
x: $props.from != "reservation-time" ? 1 : "",
|
|
y: $props.afterIcon
|
|
}, $props.afterIcon ? {
|
|
z: common_vendor.n($props.afterIcon),
|
|
A: $props.remarkValue ? "#00b666" : "#999"
|
|
} : {}, {
|
|
B: common_vendor.o((...args) => $options.handleItem && $options.handleItem(...args)),
|
|
C: $props.from != "reservation-time" ? 1 : "",
|
|
D: $props.isShowBottom ? 1 : "",
|
|
E: $props.isShowBottom
|
|
}, $props.isShowBottom ? {} : {});
|
|
}
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5208e78c"]]);
|
|
wx.createComponent(Component);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/panel/detailItem.js.map
|