@yoooloo42/joker 1.0.73 → 1.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist/bundle.css +3 -43
- package/dist/index.cjs.js +244 -151
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +244 -151
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22451,15 +22451,15 @@ script$h.__file = "src/form/LabelBox.vue";
|
|
|
22451
22451
|
|
|
22452
22452
|
const _hoisted_1$e = { key: 12 };
|
|
22453
22453
|
const _hoisted_2$d = { key: 0 };
|
|
22454
|
-
const _hoisted_3$
|
|
22455
|
-
const _hoisted_4$
|
|
22456
|
-
const _hoisted_5$
|
|
22457
|
-
const _hoisted_6$
|
|
22458
|
-
const _hoisted_7$
|
|
22459
|
-
const _hoisted_8$
|
|
22460
|
-
const _hoisted_9$
|
|
22461
|
-
const _hoisted_10$
|
|
22462
|
-
const _hoisted_11
|
|
22454
|
+
const _hoisted_3$6 = { key: 13 };
|
|
22455
|
+
const _hoisted_4$5 = { key: 0 };
|
|
22456
|
+
const _hoisted_5$4 = { key: 14 };
|
|
22457
|
+
const _hoisted_6$4 = { key: 0 };
|
|
22458
|
+
const _hoisted_7$4 = { key: 16 };
|
|
22459
|
+
const _hoisted_8$3 = ["innerHTML"];
|
|
22460
|
+
const _hoisted_9$2 = { key: 17 };
|
|
22461
|
+
const _hoisted_10$1 = ["width", "height", "poster"];
|
|
22462
|
+
const _hoisted_11 = ["src"];
|
|
22463
22463
|
const _hoisted_12 = ["src"];
|
|
22464
22464
|
const _hoisted_13 = ["src"];
|
|
22465
22465
|
const _hoisted_14 = { key: 0 };
|
|
@@ -22754,9 +22754,6 @@ const hdlGetValue = {
|
|
|
22754
22754
|
ly0d7postal(result) {
|
|
22755
22755
|
props.dataBox.fieldsValue[props.item.fieldName] = !!result.value ? result.value : [];
|
|
22756
22756
|
},
|
|
22757
|
-
ly0d7price(result) {
|
|
22758
|
-
props.dataBox.fieldsValue[props.item.fieldName] = !!result.value ? result.value : [];
|
|
22759
|
-
},
|
|
22760
22757
|
ly0d7size(result) {
|
|
22761
22758
|
props.dataBox.fieldsValue[props.item.fieldName] = !!result.value ? result.value : [];
|
|
22762
22759
|
},
|
|
@@ -22985,7 +22982,7 @@ return (_ctx, _cache) => {
|
|
|
22985
22982
|
createCommentVNode(" 图片&富文本&视频 "),
|
|
22986
22983
|
createCommentVNode(" 图片 "),
|
|
22987
22984
|
(__props.item.inputType === 'image')
|
|
22988
|
-
? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
22985
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
22989
22986
|
createElementVNode("div", null, [
|
|
22990
22987
|
createVNode(_component_el_image, {
|
|
22991
22988
|
style: normalizeStyle(style.image(__props.item, __props.myProps)),
|
|
@@ -22997,7 +22994,7 @@ return (_ctx, _cache) => {
|
|
|
22997
22994
|
]),
|
|
22998
22995
|
createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
|
|
22999
22996
|
(!!__props.item.imageDelete && !!__props.dataBox.fieldsValue[__props.item.fieldName])
|
|
23000
|
-
? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22997
|
+
? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
23001
22998
|
createVNode(_component_el_button, {
|
|
23002
22999
|
size: "small",
|
|
23003
23000
|
icon: !__props.dataBox.fieldsValue[__props.item.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
|
|
@@ -23014,7 +23011,7 @@ return (_ctx, _cache) => {
|
|
|
23014
23011
|
: createCommentVNode("v-if", true),
|
|
23015
23012
|
createCommentVNode(" 多个图片 "),
|
|
23016
23013
|
(__props.item.inputType === 'images')
|
|
23017
|
-
? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
23014
|
+
? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
23018
23015
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataBox.fieldsValue[__props.item.fieldName], (itemImages, indexImages) => {
|
|
23019
23016
|
return (openBlock(), createElementBlock("div", {
|
|
23020
23017
|
key: indexImages,
|
|
@@ -23028,7 +23025,7 @@ return (_ctx, _cache) => {
|
|
|
23028
23025
|
}, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
|
|
23029
23026
|
]),
|
|
23030
23027
|
(!!__props.item.imageDelete)
|
|
23031
|
-
? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
23028
|
+
? (openBlock(), createElementBlock("div", _hoisted_6$4, [
|
|
23032
23029
|
createVNode(_component_el_button, {
|
|
23033
23030
|
size: "small",
|
|
23034
23031
|
icon: "el-icon-delete",
|
|
@@ -23060,15 +23057,15 @@ return (_ctx, _cache) => {
|
|
|
23060
23057
|
: createCommentVNode("v-if", true),
|
|
23061
23058
|
createCommentVNode(" 富文本show "),
|
|
23062
23059
|
(__props.item.inputType === 'richtextShow')
|
|
23063
|
-
? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
23060
|
+
? (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
23064
23061
|
createElementVNode("div", {
|
|
23065
23062
|
innerHTML: __props.dataBox.fieldsValue[__props.item.fieldName]
|
|
23066
|
-
}, null, 8 /* PROPS */, _hoisted_8$
|
|
23063
|
+
}, null, 8 /* PROPS */, _hoisted_8$3)
|
|
23067
23064
|
]))
|
|
23068
23065
|
: createCommentVNode("v-if", true),
|
|
23069
23066
|
createCommentVNode(" 视频 "),
|
|
23070
23067
|
(__props.item.inputType === 'video')
|
|
23071
|
-
? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
23068
|
+
? (openBlock(), createElementBlock("div", _hoisted_9$2, [
|
|
23072
23069
|
createElementVNode("div", null, [
|
|
23073
23070
|
createElementVNode("video", {
|
|
23074
23071
|
width: style.video(__props.item, __props.myProps).width,
|
|
@@ -23079,7 +23076,7 @@ return (_ctx, _cache) => {
|
|
|
23079
23076
|
createElementVNode("source", {
|
|
23080
23077
|
src: video.src,
|
|
23081
23078
|
type: "video/mp4"
|
|
23082
|
-
}, null, 8 /* PROPS */, _hoisted_11
|
|
23079
|
+
}, null, 8 /* PROPS */, _hoisted_11),
|
|
23083
23080
|
createCommentVNode(" MP4/H.264/AAC - 最广泛支持 "),
|
|
23084
23081
|
createElementVNode("source", {
|
|
23085
23082
|
src: video.src,
|
|
@@ -23091,7 +23088,7 @@ return (_ctx, _cache) => {
|
|
|
23091
23088
|
type: "video/ogg"
|
|
23092
23089
|
}, null, 8 /* PROPS */, _hoisted_13),
|
|
23093
23090
|
createCommentVNode(" Ogg/Theora/Vorbis - 较旧的开源格式 ")
|
|
23094
|
-
], 8 /* PROPS */, _hoisted_10$
|
|
23091
|
+
], 8 /* PROPS */, _hoisted_10$1)
|
|
23095
23092
|
]),
|
|
23096
23093
|
createCommentVNode(" 设置了视频删除功能,同时视频不为空 "),
|
|
23097
23094
|
(!!__props.item.videoDelete && !!__props.dataBox.fieldsValue[__props.item.fieldName])
|
|
@@ -23224,11 +23221,11 @@ return (_ctx, _cache) => {
|
|
|
23224
23221
|
? (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
23225
23222
|
createVNode(_component_ly0d7price, {
|
|
23226
23223
|
myProps: {
|
|
23227
|
-
|
|
23228
|
-
readOnly: __props.item.readOnly,
|
|
23224
|
+
readOnly: __props.item.readOnly
|
|
23229
23225
|
},
|
|
23230
|
-
|
|
23231
|
-
|
|
23226
|
+
modelValue: __props.dataBox.fieldsValue[__props.item.fieldName],
|
|
23227
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((__props.dataBox.fieldsValue[__props.item.fieldName]) = $event))
|
|
23228
|
+
}, null, 8 /* PROPS */, ["myProps", "modelValue"])
|
|
23232
23229
|
]))
|
|
23233
23230
|
: createCommentVNode("v-if", true),
|
|
23234
23231
|
createCommentVNode(" 商品规格 "),
|
|
@@ -23270,8 +23267,8 @@ script$g.__file = "src/form/InputBox.vue";
|
|
|
23270
23267
|
|
|
23271
23268
|
const _hoisted_1$d = { key: 0 };
|
|
23272
23269
|
const _hoisted_2$c = ["colspan"];
|
|
23273
|
-
const _hoisted_3$
|
|
23274
|
-
const _hoisted_4$
|
|
23270
|
+
const _hoisted_3$5 = { key: 0 };
|
|
23271
|
+
const _hoisted_4$4 = ["colspan"];
|
|
23275
23272
|
|
|
23276
23273
|
|
|
23277
23274
|
var script$f = {
|
|
@@ -23363,7 +23360,7 @@ return (_ctx, _cache) => {
|
|
|
23363
23360
|
? item2.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue)
|
|
23364
23361
|
: true
|
|
23365
23362
|
)
|
|
23366
|
-
? (openBlock(), createElementBlock("tr", _hoisted_3$
|
|
23363
|
+
? (openBlock(), createElementBlock("tr", _hoisted_3$5, [
|
|
23367
23364
|
(item2.label)
|
|
23368
23365
|
? (openBlock(), createElementBlock("td", {
|
|
23369
23366
|
key: 0,
|
|
@@ -23387,7 +23384,7 @@ return (_ctx, _cache) => {
|
|
|
23387
23384
|
dataBox: __props.dataBox,
|
|
23388
23385
|
item: item2
|
|
23389
23386
|
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
|
|
23390
|
-
], 12 /* STYLE, PROPS */, _hoisted_4$
|
|
23387
|
+
], 12 /* STYLE, PROPS */, _hoisted_4$4)
|
|
23391
23388
|
]))
|
|
23392
23389
|
: createCommentVNode("v-if", true)
|
|
23393
23390
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -41716,7 +41713,7 @@ var script$6 = {
|
|
|
41716
41713
|
|
|
41717
41714
|
const _hoisted_1$6 = { class: "el-upload__tip" };
|
|
41718
41715
|
const _hoisted_2$6 = ["src"];
|
|
41719
|
-
const _hoisted_3$
|
|
41716
|
+
const _hoisted_3$4 = {
|
|
41720
41717
|
key: 0,
|
|
41721
41718
|
style: {"font-size":"xx-small"}
|
|
41722
41719
|
};
|
|
@@ -41767,7 +41764,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41767
41764
|
_: 1 /* STABLE */
|
|
41768
41765
|
}, 8 /* PROPS */, ["modelValue"]),
|
|
41769
41766
|
(_ctx.fileList.length>0)
|
|
41770
|
-
? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
41767
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$4, toDisplayString("已上传"+_ctx.fileList.length+"个图片"), 1 /* TEXT */))
|
|
41771
41768
|
: createCommentVNode("v-if", true),
|
|
41772
41769
|
(_ctx.fileList.length>0)
|
|
41773
41770
|
? (openBlock(), createBlock(_component_el_button, {
|
|
@@ -42157,19 +42154,19 @@ const _hoisted_2$4 = {
|
|
|
42157
42154
|
class: "el-icon-edit",
|
|
42158
42155
|
style: {"color":"blue"}
|
|
42159
42156
|
};
|
|
42160
|
-
const _hoisted_3$
|
|
42161
|
-
const _hoisted_4$
|
|
42157
|
+
const _hoisted_3$3 = { key: 1 };
|
|
42158
|
+
const _hoisted_4$3 = {
|
|
42162
42159
|
key: 0,
|
|
42163
42160
|
class: "el-icon-edit",
|
|
42164
42161
|
style: {"color":"blue"}
|
|
42165
42162
|
};
|
|
42166
|
-
const _hoisted_5$
|
|
42163
|
+
const _hoisted_5$3 = {
|
|
42167
42164
|
key: 0,
|
|
42168
42165
|
class: "value-item"
|
|
42169
42166
|
};
|
|
42170
|
-
const _hoisted_6$
|
|
42171
|
-
const _hoisted_7$
|
|
42172
|
-
const _hoisted_8$
|
|
42167
|
+
const _hoisted_6$3 = { style: {"width":"100%"} };
|
|
42168
|
+
const _hoisted_7$3 = { style: {"width":"50px"} };
|
|
42169
|
+
const _hoisted_8$2 = { class: "select-submit" };
|
|
42173
42170
|
|
|
42174
42171
|
|
|
42175
42172
|
var script$4 = {
|
|
@@ -42233,17 +42230,17 @@ return (_ctx, _cache) => {
|
|
|
42233
42230
|
]),
|
|
42234
42231
|
_cache[2] || (_cache[2] = createElementVNode("td", null, "[未分类]", -1 /* CACHED */))
|
|
42235
42232
|
]))
|
|
42236
|
-
: (openBlock(), createElementBlock("tr", _hoisted_3$
|
|
42233
|
+
: (openBlock(), createElementBlock("tr", _hoisted_3$3, [
|
|
42237
42234
|
createElementVNode("td", null, [
|
|
42238
42235
|
(!__props.myProps.readOnly)
|
|
42239
|
-
? (openBlock(), createElementBlock("i", _hoisted_4$
|
|
42236
|
+
? (openBlock(), createElementBlock("i", _hoisted_4$3))
|
|
42240
42237
|
: createCommentVNode("v-if", true)
|
|
42241
42238
|
]),
|
|
42242
42239
|
createElementVNode("td", null, [
|
|
42243
42240
|
(openBlock(true), createElementBlock(Fragment, null, renderList(value.value, (item, index) => {
|
|
42244
42241
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
42245
42242
|
(!!item)
|
|
42246
|
-
? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
42243
|
+
? (openBlock(), createElementBlock("div", _hoisted_5$3, toDisplayString(item), 1 /* TEXT */))
|
|
42247
42244
|
: createCommentVNode("v-if", true)
|
|
42248
42245
|
], 64 /* STABLE_FRAGMENT */))
|
|
42249
42246
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
@@ -42262,7 +42259,7 @@ return (_ctx, _cache) => {
|
|
|
42262
42259
|
"destroy-on-close": true
|
|
42263
42260
|
}, {
|
|
42264
42261
|
default: withCtx(() => [
|
|
42265
|
-
createElementVNode("table", _hoisted_6$
|
|
42262
|
+
createElementVNode("table", _hoisted_6$3, [
|
|
42266
42263
|
createElementVNode("tbody", null, [
|
|
42267
42264
|
createElementVNode("tr", null, [
|
|
42268
42265
|
createElementVNode("td", null, [
|
|
@@ -42300,7 +42297,7 @@ return (_ctx, _cache) => {
|
|
|
42300
42297
|
]),
|
|
42301
42298
|
createElementVNode("tr", null, [
|
|
42302
42299
|
_cache[4] || (_cache[4] = createElementVNode("td", null, null, -1 /* CACHED */)),
|
|
42303
|
-
createElementVNode("td", _hoisted_7$
|
|
42300
|
+
createElementVNode("td", _hoisted_7$3, [
|
|
42304
42301
|
createVNode(_component_el_button, {
|
|
42305
42302
|
type: "primary",
|
|
42306
42303
|
circle: "",
|
|
@@ -42323,7 +42320,7 @@ return (_ctx, _cache) => {
|
|
|
42323
42320
|
])
|
|
42324
42321
|
]),
|
|
42325
42322
|
_cache[6] || (_cache[6] = createElementVNode("div", { class: "line" }, null, -1 /* CACHED */)),
|
|
42326
|
-
createElementVNode("div", _hoisted_8$
|
|
42323
|
+
createElementVNode("div", _hoisted_8$2, [
|
|
42327
42324
|
createVNode(_component_el_button, {
|
|
42328
42325
|
type: "danger",
|
|
42329
42326
|
plain: "",
|
|
@@ -42353,17 +42350,17 @@ const _hoisted_2$3 = {
|
|
|
42353
42350
|
class: "el-icon-edit",
|
|
42354
42351
|
style: {"color":"blue"}
|
|
42355
42352
|
};
|
|
42356
|
-
const _hoisted_3$
|
|
42353
|
+
const _hoisted_3$2 = {
|
|
42357
42354
|
key: 0,
|
|
42358
42355
|
class: "el-icon-edit",
|
|
42359
42356
|
style: {"color":"blue"}
|
|
42360
42357
|
};
|
|
42361
|
-
const _hoisted_4$
|
|
42362
|
-
const _hoisted_5$
|
|
42363
|
-
const _hoisted_6$
|
|
42364
|
-
const _hoisted_7$
|
|
42365
|
-
const _hoisted_8$
|
|
42366
|
-
const _hoisted_9$
|
|
42358
|
+
const _hoisted_4$2 = { class: "item-value" };
|
|
42359
|
+
const _hoisted_5$2 = { class: "item-value" };
|
|
42360
|
+
const _hoisted_6$2 = { class: "item-value" };
|
|
42361
|
+
const _hoisted_7$2 = { class: "item-value" };
|
|
42362
|
+
const _hoisted_8$1 = { style: {"width":"100%"} };
|
|
42363
|
+
const _hoisted_9$1 = { class: "select-submit" };
|
|
42367
42364
|
|
|
42368
42365
|
|
|
42369
42366
|
var script$3 = {
|
|
@@ -42454,7 +42451,7 @@ return (_ctx, _cache) => {
|
|
|
42454
42451
|
return (openBlock(), createElementBlock("tr", { key: index }, [
|
|
42455
42452
|
createElementVNode("td", null, [
|
|
42456
42453
|
(!__props.myProps.readOnly && index === 0)
|
|
42457
|
-
? (openBlock(), createElementBlock("i", _hoisted_3$
|
|
42454
|
+
? (openBlock(), createElementBlock("i", _hoisted_3$2))
|
|
42458
42455
|
: createCommentVNode("v-if", true)
|
|
42459
42456
|
]),
|
|
42460
42457
|
createElementVNode("td", null, [
|
|
@@ -42462,19 +42459,19 @@ return (_ctx, _cache) => {
|
|
|
42462
42459
|
createElementVNode("tbody", null, [
|
|
42463
42460
|
createElementVNode("tr", null, [
|
|
42464
42461
|
_cache[3] || (_cache[3] = createElementVNode("td", { class: "item-label" }, "国内行政区划", -1 /* CACHED */)),
|
|
42465
|
-
createElementVNode("td", _hoisted_4$
|
|
42462
|
+
createElementVNode("td", _hoisted_4$2, toDisplayString(item.gbt2260text), 1 /* TEXT */)
|
|
42466
42463
|
]),
|
|
42467
42464
|
createElementVNode("tr", null, [
|
|
42468
42465
|
_cache[4] || (_cache[4] = createElementVNode("td", { class: "item-label" }, "详细地址", -1 /* CACHED */)),
|
|
42469
|
-
createElementVNode("td", _hoisted_5$
|
|
42466
|
+
createElementVNode("td", _hoisted_5$2, toDisplayString(item.address), 1 /* TEXT */)
|
|
42470
42467
|
]),
|
|
42471
42468
|
createElementVNode("tr", null, [
|
|
42472
42469
|
_cache[5] || (_cache[5] = createElementVNode("td", { class: "item-label" }, "联系电话", -1 /* CACHED */)),
|
|
42473
|
-
createElementVNode("td", _hoisted_6$
|
|
42470
|
+
createElementVNode("td", _hoisted_6$2, toDisplayString(item.tel), 1 /* TEXT */)
|
|
42474
42471
|
]),
|
|
42475
42472
|
createElementVNode("tr", null, [
|
|
42476
42473
|
_cache[6] || (_cache[6] = createElementVNode("td", { class: "item-label" }, "联系人", -1 /* CACHED */)),
|
|
42477
|
-
createElementVNode("td", _hoisted_7$
|
|
42474
|
+
createElementVNode("td", _hoisted_7$2, toDisplayString(item.name), 1 /* TEXT */)
|
|
42478
42475
|
])
|
|
42479
42476
|
])
|
|
42480
42477
|
])
|
|
@@ -42494,7 +42491,7 @@ return (_ctx, _cache) => {
|
|
|
42494
42491
|
"destroy-on-close": true
|
|
42495
42492
|
}, {
|
|
42496
42493
|
default: withCtx(() => [
|
|
42497
|
-
createElementVNode("table", _hoisted_8$
|
|
42494
|
+
createElementVNode("table", _hoisted_8$1, [
|
|
42498
42495
|
createElementVNode("tbody", null, [
|
|
42499
42496
|
_cache[11] || (_cache[11] = createElementVNode("tr", null, [
|
|
42500
42497
|
createElementVNode("th", null, "国内行政区划"),
|
|
@@ -42564,7 +42561,7 @@ return (_ctx, _cache) => {
|
|
|
42564
42561
|
])
|
|
42565
42562
|
]),
|
|
42566
42563
|
_cache[13] || (_cache[13] = createElementVNode("div", { class: "line" }, null, -1 /* CACHED */)),
|
|
42567
|
-
createElementVNode("div", _hoisted_9$
|
|
42564
|
+
createElementVNode("div", _hoisted_9$1, [
|
|
42568
42565
|
createVNode(_component_el_button, {
|
|
42569
42566
|
type: "danger",
|
|
42570
42567
|
plain: "",
|
|
@@ -42593,70 +42590,59 @@ var _imports_0$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAA
|
|
|
42593
42590
|
var _imports_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAAEeRJREFUeF7tnUt2HEcORbM4lbUmUztpe9DuXVjahaSBrJ2YXlOrpyyfLDPVqWJ+4gMgEIGriX0O43sBvAAis6ouE/8gUEjgv//6z+Plcv39er18ePv141PhMHRrSODScG6m7pTAEvjTZXqct3B9vrxDAPo0JgLQp93MVz0H/cPD88/X6+VxCfxlET99+YQfmVtEZkIMJ8Nx2FHuT/utjSIA/ZofAejXdqorTwl8MgBVE5gMjgCYYO5nkpzAv+3qOj399Mend/3skJWuCSAA+MONwP9+/fd8m/+qvj/FgwCcIvLcAAHwbB2Dtd0Cf7q8L54KAShG56EjAuDBCg3WUB34L2u+TNf3b758/tBgC0wpQAABEIDY0xBSgb/sGQHoyfqv14oA9G2/5NVLBz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+lZEQgEy/RQwygbVuTtAfWgABqHBQxKACnmbXl6Cfp/D09VuaWy4dGwEoJXfXDzEQAlkyzHV6ulyuT8/PD38R8HkAEYA8Xkmtv18g8qnEJF7Zja7T7Us1vX3BZvY+HHRAAAyMsAjCzWl5vJhPnIDPZ5bYAwFIBCXZ7AdBIEv4Ee0q2KnhJb1ueywEQJ9x8gzLPcJLejv2l5oQ6Ml+odkQAdCkKzT2OmPoShxegnxe83JJx6ku5BRCwyAAQiBbDjMLxDz//Obieh23r0bb+pf7wyqrQF6GmwN6+f/59n35f27hW3pC/tx/AwGGn4jHVHwsAAAAAElFTkSuQmCC";
|
|
42594
42591
|
|
|
42595
42592
|
const _hoisted_1$2 = { key: 0 };
|
|
42596
|
-
const _hoisted_2$2 = {
|
|
42597
|
-
key: 0,
|
|
42598
|
-
class: "el-icon-edit",
|
|
42599
|
-
style: {"color":"blue"}
|
|
42600
|
-
};
|
|
42601
|
-
const _hoisted_3$2 = {
|
|
42602
|
-
key: 0,
|
|
42603
|
-
class: "el-icon-edit",
|
|
42604
|
-
style: {"color":"blue"}
|
|
42605
|
-
};
|
|
42606
|
-
const _hoisted_4$2 = {
|
|
42607
|
-
key: 0,
|
|
42608
|
-
class: "value-name"
|
|
42609
|
-
};
|
|
42610
|
-
const _hoisted_5$2 = {
|
|
42611
|
-
key: 1,
|
|
42612
|
-
class: "value-name-empty"
|
|
42613
|
-
};
|
|
42614
|
-
const _hoisted_6$2 = { class: "value-price" };
|
|
42615
|
-
const _hoisted_7$2 = {
|
|
42616
|
-
key: 2,
|
|
42617
|
-
class: "value-member",
|
|
42618
|
-
src: _imports_0$1
|
|
42619
|
-
};
|
|
42620
|
-
const _hoisted_8$1 = {
|
|
42621
|
-
key: 3,
|
|
42622
|
-
class: "value-hot",
|
|
42623
|
-
src: _imports_1
|
|
42624
|
-
};
|
|
42625
|
-
const _hoisted_9$1 = { class: "value-note" };
|
|
42626
|
-
const _hoisted_10$1 = { style: {"width":"100%"} };
|
|
42627
|
-
const _hoisted_11 = { class: "select-submit" };
|
|
42593
|
+
const _hoisted_2$2 = { style: {"width":"100%"} };
|
|
42628
42594
|
|
|
42595
|
+
// 遵循 Vue 3 v-model 规范,使用 modelValue
|
|
42629
42596
|
|
|
42630
42597
|
var script$2 = {
|
|
42631
42598
|
__name: 'index',
|
|
42632
|
-
props:
|
|
42633
|
-
|
|
42599
|
+
props: {
|
|
42600
|
+
// modelValue: 外部 v-model 绑定的值
|
|
42601
|
+
modelValue: {
|
|
42602
|
+
type: Array,
|
|
42603
|
+
default: () => []
|
|
42604
|
+
},
|
|
42605
|
+
myProps: {
|
|
42606
|
+
readOnly: {
|
|
42607
|
+
type: Boolean,
|
|
42608
|
+
default: false
|
|
42609
|
+
},
|
|
42610
|
+
_id: [String, Number] // 允许传入一个 _id 用于回传,可选
|
|
42611
|
+
}
|
|
42612
|
+
|
|
42613
|
+
},
|
|
42614
|
+
emits: ['update:modelValue', 'change'],
|
|
42634
42615
|
setup(__props, { emit: __emit }) {
|
|
42635
42616
|
|
|
42636
42617
|
const props = __props;
|
|
42618
|
+
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
42637
42619
|
const emit = __emit;
|
|
42638
42620
|
|
|
42639
|
-
const value =
|
|
42621
|
+
const value = computed(() => props.modelValue || []);
|
|
42622
|
+
const nameEmpty = ref('[未设置标价名称]');
|
|
42623
|
+
|
|
42640
42624
|
const popup = ref({
|
|
42641
42625
|
visible: false,
|
|
42642
|
-
value:
|
|
42626
|
+
value: []
|
|
42643
42627
|
});
|
|
42644
|
-
const nameEmpty = ref('[未设置标价名称]');
|
|
42645
42628
|
|
|
42646
42629
|
const hdl = {
|
|
42647
42630
|
popup() {
|
|
42648
|
-
if (
|
|
42649
|
-
|
|
42650
|
-
popup.value.value.forEach(i => {
|
|
42651
|
-
i.price = Math.floor(i.price) / 100;
|
|
42652
|
-
});
|
|
42653
|
-
popup.value.visible = true;
|
|
42631
|
+
if (props.myProps.readOnly) {
|
|
42632
|
+
return
|
|
42654
42633
|
}
|
|
42634
|
+
const copiedValue = JSON.parse(JSON.stringify(value.value));
|
|
42635
|
+
popup.value.value = copiedValue.map(item => ({
|
|
42636
|
+
...item,
|
|
42637
|
+
// 价格从“分”转换为“元”
|
|
42638
|
+
price: item.price / 100
|
|
42639
|
+
}));
|
|
42640
|
+
popup.value.visible = true;
|
|
42655
42641
|
},
|
|
42656
42642
|
append() {
|
|
42657
42643
|
popup.value.value.push({
|
|
42658
42644
|
name: '',
|
|
42659
|
-
price: 0,
|
|
42645
|
+
price: 0, // 初始价格为 0 元
|
|
42660
42646
|
member: false,
|
|
42661
42647
|
hot: false,
|
|
42662
42648
|
note: '',
|
|
@@ -42665,23 +42651,71 @@ const hdl = {
|
|
|
42665
42651
|
delete(index) {
|
|
42666
42652
|
popup.value.value.splice(index, 1);
|
|
42667
42653
|
},
|
|
42668
|
-
|
|
42669
|
-
|
|
42670
|
-
|
|
42671
|
-
|
|
42672
|
-
|
|
42673
|
-
emit("get-value", {
|
|
42674
|
-
value: JSON.parse(JSON.stringify(popup.value.value)),
|
|
42675
|
-
_id: props.myProps._id ?? null
|
|
42654
|
+
submit() {
|
|
42655
|
+
const submittingValue = JSON.parse(JSON.stringify(popup.value.value));
|
|
42656
|
+
submittingValue.forEach(item => {
|
|
42657
|
+
// 确保 price 是数字,然后转为“分”
|
|
42658
|
+
item.price = Math.floor(Number(item.price) * 100);
|
|
42676
42659
|
});
|
|
42660
|
+
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
42661
|
+
emit("update:modelValue", submittingValue);
|
|
42677
42662
|
popup.value.visible = false;
|
|
42678
42663
|
},
|
|
42679
42664
|
};
|
|
42680
42665
|
|
|
42666
|
+
const style = reactive({
|
|
42667
|
+
value: {
|
|
42668
|
+
name: {},
|
|
42669
|
+
name_empty: {
|
|
42670
|
+
color: '#919191'
|
|
42671
|
+
},
|
|
42672
|
+
price: {
|
|
42673
|
+
'margin-left': '10px',
|
|
42674
|
+
color: 'blue'
|
|
42675
|
+
},
|
|
42676
|
+
member: {
|
|
42677
|
+
'margin-left': '10px',
|
|
42678
|
+
width: '32px',
|
|
42679
|
+
height: '32px'
|
|
42680
|
+
},
|
|
42681
|
+
hot: {
|
|
42682
|
+
'margin-left': '10px',
|
|
42683
|
+
width: '20px',
|
|
42684
|
+
height: '20px'
|
|
42685
|
+
},
|
|
42686
|
+
note: {
|
|
42687
|
+
'margin-left': '10px'
|
|
42688
|
+
}
|
|
42689
|
+
},
|
|
42690
|
+
input: {
|
|
42691
|
+
name: {
|
|
42692
|
+
width: '200px',
|
|
42693
|
+
'margin-bottom': '10px'
|
|
42694
|
+
},
|
|
42695
|
+
price: {
|
|
42696
|
+
width: '120px'
|
|
42697
|
+
},
|
|
42698
|
+
note: {
|
|
42699
|
+
width: '200px'
|
|
42700
|
+
}
|
|
42701
|
+
},
|
|
42702
|
+
line: {
|
|
42703
|
+
height: '1px',
|
|
42704
|
+
'background-color': '#6a6a6a',
|
|
42705
|
+
'margin-top': '10px',
|
|
42706
|
+
'margin-bottom': '10px'
|
|
42707
|
+
}
|
|
42708
|
+
});
|
|
42709
|
+
|
|
42681
42710
|
return (_ctx, _cache) => {
|
|
42711
|
+
const _component_Edit = resolveComponent("Edit");
|
|
42712
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
42682
42713
|
const _component_el_input = resolveComponent("el-input");
|
|
42714
|
+
const _component_el_input_number = resolveComponent("el-input-number");
|
|
42683
42715
|
const _component_el_switch = resolveComponent("el-switch");
|
|
42716
|
+
const _component_Delete = resolveComponent("Delete");
|
|
42684
42717
|
const _component_el_button = resolveComponent("el-button");
|
|
42718
|
+
const _component_Plus = resolveComponent("Plus");
|
|
42685
42719
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
42686
42720
|
|
|
42687
42721
|
return (openBlock(), createElementBlock("div", {
|
|
@@ -42693,34 +42727,74 @@ return (_ctx, _cache) => {
|
|
|
42693
42727
|
? (openBlock(), createElementBlock("tr", _hoisted_1$2, [
|
|
42694
42728
|
createElementVNode("td", null, [
|
|
42695
42729
|
(!__props.myProps.readOnly)
|
|
42696
|
-
? (openBlock(),
|
|
42730
|
+
? (openBlock(), createBlock(_component_el_icon, {
|
|
42731
|
+
key: 0,
|
|
42732
|
+
class: "edit-icon",
|
|
42733
|
+
size: 16,
|
|
42734
|
+
color: "blue"
|
|
42735
|
+
}, {
|
|
42736
|
+
default: withCtx(() => [
|
|
42737
|
+
createVNode(_component_Edit)
|
|
42738
|
+
]),
|
|
42739
|
+
_: 1 /* STABLE */
|
|
42740
|
+
}))
|
|
42697
42741
|
: createCommentVNode("v-if", true)
|
|
42698
42742
|
]),
|
|
42699
42743
|
_cache[2] || (_cache[2] = createElementVNode("td", null, "[未标价]", -1 /* CACHED */))
|
|
42700
42744
|
]))
|
|
42701
42745
|
: createCommentVNode("v-if", true),
|
|
42702
42746
|
(openBlock(true), createElementBlock(Fragment, null, renderList(value.value, (item, index) => {
|
|
42703
|
-
return (openBlock(), createElementBlock("tr",
|
|
42747
|
+
return (openBlock(), createElementBlock("tr", { key: index }, [
|
|
42704
42748
|
createElementVNode("td", null, [
|
|
42705
42749
|
(!__props.myProps.readOnly && index === 0)
|
|
42706
|
-
? (openBlock(),
|
|
42750
|
+
? (openBlock(), createBlock(_component_el_icon, {
|
|
42751
|
+
key: 0,
|
|
42752
|
+
class: "edit-icon",
|
|
42753
|
+
size: 16,
|
|
42754
|
+
color: "blue"
|
|
42755
|
+
}, {
|
|
42756
|
+
default: withCtx(() => [
|
|
42757
|
+
createVNode(_component_Edit)
|
|
42758
|
+
]),
|
|
42759
|
+
_: 1 /* STABLE */
|
|
42760
|
+
}))
|
|
42707
42761
|
: createCommentVNode("v-if", true)
|
|
42708
42762
|
]),
|
|
42709
42763
|
createElementVNode("td", null, [
|
|
42710
42764
|
(!!item.name)
|
|
42711
|
-
? (openBlock(), createElementBlock("span",
|
|
42712
|
-
|
|
42713
|
-
|
|
42765
|
+
? (openBlock(), createElementBlock("span", {
|
|
42766
|
+
key: 0,
|
|
42767
|
+
style: normalizeStyle(style.value.name)
|
|
42768
|
+
}, toDisplayString(item.name), 5 /* TEXT, STYLE */))
|
|
42769
|
+
: (openBlock(), createElementBlock("span", {
|
|
42770
|
+
key: 1,
|
|
42771
|
+
style: normalizeStyle(style.value.name_empty)
|
|
42772
|
+
}, toDisplayString(nameEmpty.value), 5 /* TEXT, STYLE */)),
|
|
42773
|
+
createElementVNode("span", {
|
|
42774
|
+
style: normalizeStyle(style.value.price)
|
|
42775
|
+
}, "¥" + toDisplayString((item.price / 100).toFixed(2)), 5 /* TEXT, STYLE */),
|
|
42714
42776
|
(!!item.member)
|
|
42715
|
-
? (openBlock(), createElementBlock("img",
|
|
42777
|
+
? (openBlock(), createElementBlock("img", {
|
|
42778
|
+
key: 2,
|
|
42779
|
+
style: normalizeStyle(style.value.member),
|
|
42780
|
+
src: _imports_0$1,
|
|
42781
|
+
alt: "会员"
|
|
42782
|
+
}, null, 4 /* STYLE */))
|
|
42716
42783
|
: createCommentVNode("v-if", true),
|
|
42717
42784
|
(!!item.hot)
|
|
42718
|
-
? (openBlock(), createElementBlock("img",
|
|
42785
|
+
? (openBlock(), createElementBlock("img", {
|
|
42786
|
+
key: 3,
|
|
42787
|
+
style: normalizeStyle(style.value.hot),
|
|
42788
|
+
src: _imports_1,
|
|
42789
|
+
alt: "热点"
|
|
42790
|
+
}, null, 4 /* STYLE */))
|
|
42719
42791
|
: createCommentVNode("v-if", true),
|
|
42720
|
-
createElementVNode("span",
|
|
42792
|
+
createElementVNode("span", {
|
|
42793
|
+
style: normalizeStyle(style.value.note)
|
|
42794
|
+
}, toDisplayString(item.note || ''), 5 /* TEXT, STYLE */)
|
|
42721
42795
|
])
|
|
42722
42796
|
]))
|
|
42723
|
-
}),
|
|
42797
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
42724
42798
|
])
|
|
42725
42799
|
]),
|
|
42726
42800
|
createVNode(_component_el_dialog, {
|
|
@@ -42734,33 +42808,36 @@ return (_ctx, _cache) => {
|
|
|
42734
42808
|
"destroy-on-close": true
|
|
42735
42809
|
}, {
|
|
42736
42810
|
default: withCtx(() => [
|
|
42737
|
-
createElementVNode("table",
|
|
42811
|
+
createElementVNode("table", _hoisted_2$2, [
|
|
42738
42812
|
createElementVNode("tbody", null, [
|
|
42739
|
-
_cache[
|
|
42813
|
+
_cache[4] || (_cache[4] = createElementVNode("tr", null, [
|
|
42740
42814
|
createElementVNode("th", null, "标价名称"),
|
|
42741
|
-
createElementVNode("th", null, "
|
|
42815
|
+
createElementVNode("th", null, "单价(元)"),
|
|
42742
42816
|
createElementVNode("th", null, "会员标注"),
|
|
42743
42817
|
createElementVNode("th", null, "热点标注"),
|
|
42744
42818
|
createElementVNode("th", null, "备注"),
|
|
42745
42819
|
createElementVNode("th")
|
|
42746
42820
|
], -1 /* CACHED */)),
|
|
42747
42821
|
(openBlock(true), createElementBlock(Fragment, null, renderList(popup.value.value, (item, index) => {
|
|
42748
|
-
return (openBlock(), createElementBlock("tr",
|
|
42749
|
-
createElementVNode("
|
|
42822
|
+
return (openBlock(), createElementBlock("tr", { key: index }, [
|
|
42823
|
+
createElementVNode("td", null, [
|
|
42750
42824
|
createVNode(_component_el_input, {
|
|
42751
|
-
|
|
42825
|
+
style: normalizeStyle(style.input.name),
|
|
42752
42826
|
modelValue: item.name,
|
|
42753
42827
|
"onUpdate:modelValue": $event => ((item.name) = $event)
|
|
42754
|
-
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue"])
|
|
42828
|
+
}, null, 8 /* PROPS */, ["style", "modelValue", "onUpdate:modelValue"])
|
|
42755
42829
|
]),
|
|
42756
|
-
createElementVNode("
|
|
42757
|
-
createVNode(
|
|
42758
|
-
|
|
42830
|
+
createElementVNode("td", null, [
|
|
42831
|
+
createVNode(_component_el_input_number, {
|
|
42832
|
+
style: normalizeStyle(style.input.price),
|
|
42759
42833
|
modelValue: item.price,
|
|
42760
|
-
"onUpdate:modelValue": $event => ((item.price) = $event)
|
|
42761
|
-
|
|
42834
|
+
"onUpdate:modelValue": $event => ((item.price) = $event),
|
|
42835
|
+
min: 0,
|
|
42836
|
+
precision: 2,
|
|
42837
|
+
"controls-position": "right"
|
|
42838
|
+
}, null, 8 /* PROPS */, ["style", "modelValue", "onUpdate:modelValue"])
|
|
42762
42839
|
]),
|
|
42763
|
-
createElementVNode("
|
|
42840
|
+
createElementVNode("td", null, [
|
|
42764
42841
|
createVNode(_component_el_switch, {
|
|
42765
42842
|
modelValue: item.member,
|
|
42766
42843
|
"onUpdate:modelValue": $event => ((item.member) = $event),
|
|
@@ -42770,7 +42847,7 @@ return (_ctx, _cache) => {
|
|
|
42770
42847
|
"inactive-value": false
|
|
42771
42848
|
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue"])
|
|
42772
42849
|
]),
|
|
42773
|
-
createElementVNode("
|
|
42850
|
+
createElementVNode("td", null, [
|
|
42774
42851
|
createVNode(_component_el_switch, {
|
|
42775
42852
|
modelValue: item.hot,
|
|
42776
42853
|
"onUpdate:modelValue": $event => ((item.hot) = $event),
|
|
@@ -42780,51 +42857,67 @@ return (_ctx, _cache) => {
|
|
|
42780
42857
|
"inactive-value": false
|
|
42781
42858
|
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue"])
|
|
42782
42859
|
]),
|
|
42783
|
-
createElementVNode("
|
|
42860
|
+
createElementVNode("td", null, [
|
|
42784
42861
|
createVNode(_component_el_input, {
|
|
42785
|
-
|
|
42862
|
+
style: normalizeStyle(style.input.note),
|
|
42786
42863
|
modelValue: item.note,
|
|
42787
42864
|
"onUpdate:modelValue": $event => ((item.note) = $event)
|
|
42788
|
-
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue"])
|
|
42865
|
+
}, null, 8 /* PROPS */, ["style", "modelValue", "onUpdate:modelValue"])
|
|
42789
42866
|
]),
|
|
42790
|
-
createElementVNode("
|
|
42867
|
+
createElementVNode("td", null, [
|
|
42791
42868
|
createVNode(_component_el_button, {
|
|
42792
42869
|
type: "danger",
|
|
42793
|
-
icon: "el-icon-delete",
|
|
42794
42870
|
circle: "",
|
|
42795
42871
|
size: "small",
|
|
42796
42872
|
onClick: $event => (hdl.delete(index))
|
|
42797
|
-
},
|
|
42873
|
+
}, {
|
|
42874
|
+
default: withCtx(() => [
|
|
42875
|
+
createVNode(_component_el_icon, null, {
|
|
42876
|
+
default: withCtx(() => [
|
|
42877
|
+
createVNode(_component_Delete)
|
|
42878
|
+
]),
|
|
42879
|
+
_: 1 /* STABLE */
|
|
42880
|
+
})
|
|
42881
|
+
]),
|
|
42882
|
+
_: 1 /* STABLE */
|
|
42883
|
+
}, 8 /* PROPS */, ["onClick"])
|
|
42798
42884
|
])
|
|
42799
42885
|
]))
|
|
42800
|
-
}),
|
|
42886
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
42801
42887
|
createElementVNode("tr", null, [
|
|
42802
|
-
_cache[3] || (_cache[3] = createElementVNode("
|
|
42803
|
-
|
|
42804
|
-
_cache[5] || (_cache[5] = createElementVNode("th", null, null, -1 /* CACHED */)),
|
|
42805
|
-
_cache[6] || (_cache[6] = createElementVNode("th", null, null, -1 /* CACHED */)),
|
|
42806
|
-
_cache[7] || (_cache[7] = createElementVNode("th", null, null, -1 /* CACHED */)),
|
|
42807
|
-
createElementVNode("th", null, [
|
|
42888
|
+
_cache[3] || (_cache[3] = createElementVNode("td", { colspan: "5" }, null, -1 /* CACHED */)),
|
|
42889
|
+
createElementVNode("td", null, [
|
|
42808
42890
|
createVNode(_component_el_button, {
|
|
42809
42891
|
type: "primary",
|
|
42810
|
-
icon: "el-icon-plus",
|
|
42811
42892
|
circle: "",
|
|
42812
42893
|
size: "small",
|
|
42813
42894
|
style: {"margin-top":"20px"},
|
|
42814
42895
|
onClick: hdl.append
|
|
42815
|
-
},
|
|
42896
|
+
}, {
|
|
42897
|
+
default: withCtx(() => [
|
|
42898
|
+
createVNode(_component_el_icon, null, {
|
|
42899
|
+
default: withCtx(() => [
|
|
42900
|
+
createVNode(_component_Plus)
|
|
42901
|
+
]),
|
|
42902
|
+
_: 1 /* STABLE */
|
|
42903
|
+
})
|
|
42904
|
+
]),
|
|
42905
|
+
_: 1 /* STABLE */
|
|
42906
|
+
}, 8 /* PROPS */, ["onClick"])
|
|
42816
42907
|
])
|
|
42817
42908
|
])
|
|
42818
42909
|
])
|
|
42819
42910
|
]),
|
|
42820
|
-
|
|
42821
|
-
|
|
42911
|
+
createElementVNode("div", {
|
|
42912
|
+
style: normalizeStyle(style.line)
|
|
42913
|
+
}, null, 4 /* STYLE */),
|
|
42914
|
+
createElementVNode("div", null, [
|
|
42822
42915
|
createVNode(_component_el_button, {
|
|
42823
42916
|
type: "danger",
|
|
42824
42917
|
plain: "",
|
|
42825
42918
|
onClick: hdl.submit
|
|
42826
42919
|
}, {
|
|
42827
|
-
default: withCtx(() => [...(_cache[
|
|
42920
|
+
default: withCtx(() => [...(_cache[5] || (_cache[5] = [
|
|
42828
42921
|
createTextVNode("确认", -1 /* CACHED */)
|
|
42829
42922
|
]))]),
|
|
42830
42923
|
_: 1 /* STABLE */
|