@bytenew/bn-bus-ui 1.1.506 → 1.1.507
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/{assocTableSearch-Dp1TB5tS.js → assocTableSearch-DDBkShQC.js} +1 -1
- package/dist/bn-bus-ui.es.js +1 -1
- package/dist/bn-bus-ui.umd.js +9 -9
- package/dist/{chooseIPaasData-CCPM-2lt.js → chooseIPaasData-DTDsMmvM.js} +1 -1
- package/dist/{defaultSet-B30RCh0s.js → defaultSet-NjwYT6ux.js} +1 -1
- package/dist/{formItemFooter-Bf6OzIQ1.js → formItemFooter-CFqkH46C.js} +1 -1
- package/dist/{funcExprDialog-BSIBJeSS.js → funcExprDialog-Cp6hqJPY.js} +1 -1
- package/dist/goodCardStyle-CVpRnb3H.js +342 -0
- package/dist/goodCardStyle.css +1 -1
- package/dist/{index-BnV16tNR.js → index-7WsBav5p.js} +2 -2
- package/dist/{index-Cu2Fg8Vg.js → index-B2dcxExQ.js} +3 -3
- package/dist/{index-DCNuW3zF.js → index-BNkENFFH.js} +2 -2
- package/dist/{index-8Nj21LpJ.js → index-BPA_b9io.js} +2 -2
- package/dist/{index-BY6u_yns.js → index-BW4DeeR8.js} +2 -2
- package/dist/{index-DLQPP7a5.js → index-BiJQAKS-.js} +2 -2
- package/dist/{index-On2ecS5L.js → index-BlPZos40.js} +3 -3
- package/dist/{index-C4ZolZw1.js → index-ByJJRD0b.js} +2 -2
- package/dist/{index-DRD-65xH.js → index-CBADjpKW.js} +2 -2
- package/dist/{index-DfsN3V3B.js → index-DD6XE25U.js} +2 -2
- package/dist/{index-FTVpHmjT.js → index-DMhqnJ5y.js} +1 -1
- package/dist/{index-HLKwj30Y.js → index-DSdsgkJW.js} +2 -2
- package/dist/{index-CBGZ6Fgu.js → index-Dm6hd2xj.js} +2 -2
- package/dist/{index-CTdOy23w.js → index-DrOPIZpO.js} +1 -1
- package/dist/{index-8YP2sdRp.js → index-DuZpTVeh.js} +1 -1
- package/dist/{index-D_Szpg04.js → index-fSaGFWDd.js} +2 -2
- package/dist/{index-DrakXwTN.js → index-fbuvUKig.js} +3 -3
- package/dist/{install-zXWYbBRy.js → install-DWvNbkmm.js} +35 -35
- package/dist/{setOption-QwKJHOpk.js → setOption-C8QZ7vBU.js} +1 -1
- package/dist/{setRelationOption-Dcf_JKph.js → setRelationOption-DjJVhEU-.js} +1 -1
- package/package.json +1 -1
- package/dist/goodCardStyle-BQWvATlX.js +0 -363
|
@@ -8363,19 +8363,19 @@ function ye(e, t, l) {
|
|
|
8363
8363
|
return n = Array.from(/* @__PURE__ */ new Set([...e, ...t])), n;
|
|
8364
8364
|
}
|
|
8365
8365
|
const Ce = {
|
|
8366
|
-
stringForm: B(() => import("./index-
|
|
8367
|
-
numberForm: B(() => import("./index-
|
|
8368
|
-
selectForm: B(() => import("./index-
|
|
8369
|
-
radioForm: B(() => import("./index-
|
|
8370
|
-
checkboxForm: B(() => import("./index-
|
|
8371
|
-
dateForm: B(() => import("./index-
|
|
8372
|
-
dateDualForm: B(() => import("./index-
|
|
8373
|
-
fileForm: B(() => import("./index-
|
|
8374
|
-
childrenForm: B(() => import("./index-
|
|
8375
|
-
addressForm: B(() => import("./index-
|
|
8376
|
-
receiveForm: B(() => import("./index-
|
|
8377
|
-
relationForm: B(() => import("./index-
|
|
8378
|
-
scoreForm: B(() => import("./index-
|
|
8366
|
+
stringForm: B(() => import("./index-CBADjpKW.js")),
|
|
8367
|
+
numberForm: B(() => import("./index-ByJJRD0b.js")),
|
|
8368
|
+
selectForm: B(() => import("./index-7WsBav5p.js")),
|
|
8369
|
+
radioForm: B(() => import("./index-DSdsgkJW.js")),
|
|
8370
|
+
checkboxForm: B(() => import("./index-BPA_b9io.js")),
|
|
8371
|
+
dateForm: B(() => import("./index-DD6XE25U.js")),
|
|
8372
|
+
dateDualForm: B(() => import("./index-BW4DeeR8.js")),
|
|
8373
|
+
fileForm: B(() => import("./index-Dm6hd2xj.js")),
|
|
8374
|
+
childrenForm: B(() => import("./index-BiJQAKS-.js")),
|
|
8375
|
+
addressForm: B(() => import("./index-fbuvUKig.js")),
|
|
8376
|
+
receiveForm: B(() => import("./index-BlPZos40.js")),
|
|
8377
|
+
relationForm: B(() => import("./index-BNkENFFH.js")),
|
|
8378
|
+
scoreForm: B(() => import("./index-fSaGFWDd.js"))
|
|
8379
8379
|
}, Fo = {
|
|
8380
8380
|
name: "BnSmartForm",
|
|
8381
8381
|
components: {
|
|
@@ -8383,7 +8383,7 @@ const Ce = {
|
|
|
8383
8383
|
choosePackage: wn,
|
|
8384
8384
|
chooseChildOrder: Pn,
|
|
8385
8385
|
chooseAssocTable: To,
|
|
8386
|
-
chooseIPaasData: B(() => import("./chooseIPaasData-
|
|
8386
|
+
chooseIPaasData: B(() => import("./chooseIPaasData-DTDsMmvM.js"))
|
|
8387
8387
|
},
|
|
8388
8388
|
props: {
|
|
8389
8389
|
// 表单id 涉及编辑表单
|
|
@@ -9307,18 +9307,18 @@ const jo = /* @__PURE__ */ P(Fo, [["render", Ro], ["__scopeId", "data-v-f5806889
|
|
|
9307
9307
|
* */
|
|
9308
9308
|
componentView(e) {
|
|
9309
9309
|
const t = {
|
|
9310
|
-
stringForm: B(() => import("./index-
|
|
9311
|
-
numberForm: B(() => import("./index-
|
|
9312
|
-
selectForm: B(() => import("./index-
|
|
9313
|
-
radioForm: B(() => import("./index-
|
|
9314
|
-
checkboxForm: B(() => import("./index-
|
|
9315
|
-
dateForm: B(() => import("./index-
|
|
9316
|
-
dateDualForm: B(() => import("./index-
|
|
9317
|
-
fileForm: B(() => import("./index-
|
|
9318
|
-
childrenForm: B(() => import("./index-
|
|
9319
|
-
addressForm: B(() => import("./index-
|
|
9320
|
-
receiveForm: B(() => import("./index-
|
|
9321
|
-
relationForm: B(() => import("./index-
|
|
9310
|
+
stringForm: B(() => import("./index-CBADjpKW.js")),
|
|
9311
|
+
numberForm: B(() => import("./index-ByJJRD0b.js")),
|
|
9312
|
+
selectForm: B(() => import("./index-7WsBav5p.js")),
|
|
9313
|
+
radioForm: B(() => import("./index-DSdsgkJW.js")),
|
|
9314
|
+
checkboxForm: B(() => import("./index-BPA_b9io.js")),
|
|
9315
|
+
dateForm: B(() => import("./index-DD6XE25U.js")),
|
|
9316
|
+
dateDualForm: B(() => import("./index-BW4DeeR8.js")),
|
|
9317
|
+
fileForm: B(() => import("./index-Dm6hd2xj.js")),
|
|
9318
|
+
childrenForm: B(() => import("./index-BiJQAKS-.js")),
|
|
9319
|
+
addressForm: B(() => import("./index-fbuvUKig.js")),
|
|
9320
|
+
receiveForm: B(() => import("./index-BlPZos40.js")),
|
|
9321
|
+
relationForm: B(() => import("./index-BNkENFFH.js"))
|
|
9322
9322
|
// showValForm: defineAsyncComponent(() => import('./showValForm/index.vue')),
|
|
9323
9323
|
};
|
|
9324
9324
|
let l = ue[e.behaviorType] || null;
|
|
@@ -10212,14 +10212,14 @@ const Oa = /* @__PURE__ */ P(ua, [["render", Ba], ["__scopeId", "data-v-c82a5490
|
|
|
10212
10212
|
isChildren: Boolean
|
|
10213
10213
|
},
|
|
10214
10214
|
components: {
|
|
10215
|
-
paraExplainSet: B(() => import("./index-
|
|
10216
|
-
defaultSet: B(() => import("./defaultSet-
|
|
10217
|
-
funcExprDialog: B(() => import("./funcExprDialog-
|
|
10218
|
-
setOption: B(() => import("./setOption-
|
|
10219
|
-
setRelationOption: B(() => import("./setRelationOption-
|
|
10220
|
-
childrenFormSetting: B(() => import("./index-
|
|
10221
|
-
packageFilter: B(() => import("./index-
|
|
10222
|
-
goodCardStyle: B(() => import("./goodCardStyle-
|
|
10215
|
+
paraExplainSet: B(() => import("./index-DrOPIZpO.js")),
|
|
10216
|
+
defaultSet: B(() => import("./defaultSet-NjwYT6ux.js")),
|
|
10217
|
+
funcExprDialog: B(() => import("./funcExprDialog-Cp6hqJPY.js")),
|
|
10218
|
+
setOption: B(() => import("./setOption-C8QZ7vBU.js")),
|
|
10219
|
+
setRelationOption: B(() => import("./setRelationOption-DjJVhEU-.js")),
|
|
10220
|
+
childrenFormSetting: B(() => import("./index-B2dcxExQ.js")),
|
|
10221
|
+
packageFilter: B(() => import("./index-DuZpTVeh.js")),
|
|
10222
|
+
goodCardStyle: B(() => import("./goodCardStyle-CVpRnb3H.js"))
|
|
10223
10223
|
},
|
|
10224
10224
|
data() {
|
|
10225
10225
|
return {
|
|
@@ -17050,7 +17050,7 @@ function yp(e, t, l, n, i, s) {
|
|
|
17050
17050
|
}, null, 8, ["table-info", "post-func", "onTemplateConfig"])
|
|
17051
17051
|
]);
|
|
17052
17052
|
}
|
|
17053
|
-
const Cp = /* @__PURE__ */ P(hp, [["render", yp], ["__scopeId", "data-v-7b6f3024"]]), wp = B(() => import("./index-
|
|
17053
|
+
const Cp = /* @__PURE__ */ P(hp, [["render", yp], ["__scopeId", "data-v-7b6f3024"]]), wp = B(() => import("./index-CBADjpKW.js")), kp = B(() => import("./index-ByJJRD0b.js")), Ip = B(() => import("./index-7WsBav5p.js")), xp = B(() => import("./index-DSdsgkJW.js")), Tp = B(() => import("./index-BPA_b9io.js")), Sp = B(() => import("./index-DD6XE25U.js")), Dp = B(() => import("./index-BW4DeeR8.js")), Pp = B(() => import("./index-Dm6hd2xj.js")), Vp = B(() => import("./index-BiJQAKS-.js")), _p = B(() => import("./chooseIPaasData-DTDsMmvM.js")), Lp = B(() => import("./index-fbuvUKig.js")), Bp = B(() => import("./index-BlPZos40.js")), Op = B(() => import("./index-BNkENFFH.js")), Fp = {
|
|
17054
17054
|
install: (e) => {
|
|
17055
17055
|
e.component("BnAddress", It), e.component("BnMenus", jt), e.component("BnSelect", qt), e.component("BnVirtPopover", el), e.component("BnAdvancedFilter", Nl), e.component("BnFilterView", Xl), e.component("BnDatePicker", Wl), e.component("BnCheck", Zl), e.component("BnOrderCard", Li), e.component("BnDrop", qi), e.component("BnFileView", ws), e.component("BnInpNum", xs), e.component("BnRadio", Ps), e.component("BnRelation", Ls), e.component("BnCondition", Xs), e.component("BnSmartForm", jo), e.component("BnBatchForm", it), e.component("BnBatchFormDialog", da), e.component("BnStringForm", wp), e.component("BnNumberForm", kp), e.component("BnSelectForm", Ip), e.component("BnRadioForm", xp), e.component("BnCheckboxForm", Tp), e.component("BnDateForm", Sp), e.component("BnDateDualForm", Dp), e.component("BnFileForm", Pp), e.component("BnChildrenForm", Vp), e.component("BnChooseIPaasData", _p), e.component("BnAddressForm", Lp), e.component("BnReceiveForm", Bp), e.component("BnRelationForm", Op), e.component("BnFunExpr", Oa), e.component("BnColumnConfig", wr), e.component("BnColumnConfigDialog", st), e.component("BnFilterOption", Br), e.component("BnImportOrder", nt), e.component("BnImportTemplate", Jd), e.component("BnExportOrder", Cu), e.component("BnOrderShare", Xu), e.component("BnOrderDetail", Nc), e.component("BnEmptyTip", Kc), e.component("BnWebLog", Jh), e.component("BnCascader", oh), e.component("BnCascaderPanel", xh), e.component("BnWorkSettingDrop", Cp);
|
|
17056
17056
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cloneDeep as _ } from "lodash";
|
|
2
2
|
import { resolveComponent as p, openBlock as u, createElementBlock as c, createElementVNode as s, toDisplayString as V, createVNode as d, withCtx as r, createTextVNode as h, createCommentVNode as w, withKeys as k, normalizeClass as g } from "vue";
|
|
3
|
-
import { _ as I } from "./install-
|
|
3
|
+
import { _ as I } from "./install-DWvNbkmm.js";
|
|
4
4
|
const F = {
|
|
5
5
|
name: "setOption",
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cloneDeep as I } from "lodash";
|
|
2
2
|
import { resolveComponent as f, openBlock as c, createElementBlock as w, createTextVNode as h, createVNode as p, withCtx as m, createCommentVNode as L, createBlock as b, createElementVNode as d, normalizeClass as O, withModifiers as D, Fragment as V, renderList as A } from "vue";
|
|
3
|
-
import { _ as k } from "./install-
|
|
3
|
+
import { _ as k } from "./install-DWvNbkmm.js";
|
|
4
4
|
const B = {
|
|
5
5
|
name: "ConditionList",
|
|
6
6
|
props: {
|
package/package.json
CHANGED
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as f, openBlock as l, createBlock as c, withCtx as n, createElementVNode as i, createTextVNode as u, createVNode as h, createElementBlock as d, Fragment as m, renderList as g, toDisplayString as v, createCommentVNode as w } from "vue";
|
|
2
|
-
import { _ as k } from "./install-zXWYbBRy.js";
|
|
3
|
-
const x = {
|
|
4
|
-
image: "https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_c216400ec482bbfc44c2ea13584508bd.png"
|
|
5
|
-
};
|
|
6
|
-
function b(t) {
|
|
7
|
-
return t ? {
|
|
8
|
-
id: t.id,
|
|
9
|
-
title: t.name || "",
|
|
10
|
-
behaviorType: t.behaviorType,
|
|
11
|
-
columnCode: t.columnCode || t.key || t.insideDataSourceInfo && t.insideDataSourceInfo.field || ""
|
|
12
|
-
} : { id: "", title: "", behaviorType: "", columnCode: "" };
|
|
13
|
-
}
|
|
14
|
-
function V(t) {
|
|
15
|
-
if (!t || t.goodCardStyle == null || t.goodCardStyle === "")
|
|
16
|
-
return null;
|
|
17
|
-
try {
|
|
18
|
-
const e = typeof t.goodCardStyle == "string" ? JSON.parse(t.goodCardStyle) : t.goodCardStyle;
|
|
19
|
-
if (e && typeof e == "object" && !Array.isArray(e))
|
|
20
|
-
return e;
|
|
21
|
-
} catch {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
const D = {
|
|
27
|
-
name: "goodCardStyle",
|
|
28
|
-
props: {
|
|
29
|
-
visible: { type: Boolean, default: !1 },
|
|
30
|
-
/** 当前子表单;保存写 style.goodCardStyle 对象,外层 stringifyStyle 再转字符串 */
|
|
31
|
-
sourceData: {
|
|
32
|
-
type: Object,
|
|
33
|
-
default() {
|
|
34
|
-
return { extraInfo: {}, style: {}, moduleDefinition: [] };
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
data() {
|
|
39
|
-
return {
|
|
40
|
-
form: { goodPicId: "", goodTitleId: "", previewIds: [] },
|
|
41
|
-
extraOpen: !1
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
computed: {
|
|
45
|
-
dialogVisible: {
|
|
46
|
-
get() {
|
|
47
|
-
return this.visible;
|
|
48
|
-
},
|
|
49
|
-
set(t) {
|
|
50
|
-
this.$emit("update:visible", t);
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
moduleList() {
|
|
54
|
-
const t = this.sourceData && this.sourceData.moduleDefinition;
|
|
55
|
-
return Array.isArray(t) ? t : [];
|
|
56
|
-
},
|
|
57
|
-
/** 主图:附件 10 */
|
|
58
|
-
imageColumns() {
|
|
59
|
-
return this.moduleList.filter((t) => t.behaviorType == 10);
|
|
60
|
-
},
|
|
61
|
-
/** 标题/预览:1-7 */
|
|
62
|
-
textColumns() {
|
|
63
|
-
return this.moduleList.filter((t) => [1, 2, 3, 4, 5, 6, 7].includes(Number(t.behaviorType)));
|
|
64
|
-
},
|
|
65
|
-
/** 预览候选:排除已选标题 */
|
|
66
|
-
previewColumns() {
|
|
67
|
-
return this.textColumns.filter((t) => t.id != this.form.goodTitleId);
|
|
68
|
-
},
|
|
69
|
-
previewTags() {
|
|
70
|
-
return this.form.previewIds.map((t) => this.moduleList.find((e) => e.id == t)).filter(Boolean);
|
|
71
|
-
},
|
|
72
|
-
hasAnyConfig() {
|
|
73
|
-
return !!(this.form.goodPicId || this.form.goodTitleId || this.form.previewIds.length);
|
|
74
|
-
},
|
|
75
|
-
previewImage() {
|
|
76
|
-
return this.form.goodPicId ? x.image : "";
|
|
77
|
-
},
|
|
78
|
-
previewTitle() {
|
|
79
|
-
if (!this.form.goodTitleId) return "";
|
|
80
|
-
const t = this.moduleList.find((e) => e.id == this.form.goodTitleId);
|
|
81
|
-
return t && t.name || "—";
|
|
82
|
-
},
|
|
83
|
-
// 预览区不重复展示标题、主图
|
|
84
|
-
previewOnlyIds() {
|
|
85
|
-
return (this.form.previewIds || []).filter((t) => t != this.form.goodTitleId && t != this.form.goodPicId);
|
|
86
|
-
},
|
|
87
|
-
shownPreviewRows() {
|
|
88
|
-
return this.previewOnlyIds.map((t) => this.formatPreviewRow(t));
|
|
89
|
-
},
|
|
90
|
-
// 「更多」里展示未选入预览的其它文本类字段
|
|
91
|
-
extraPreviewRows() {
|
|
92
|
-
return this.textColumns.filter((e) => e.id != this.form.goodTitleId && !this.previewOnlyIds.includes(e.id)).map((e) => e.id).map((e) => this.formatPreviewRow(e));
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
watch: {
|
|
96
|
-
visible(t) {
|
|
97
|
-
t && this.initForm();
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
methods: {
|
|
101
|
-
initForm() {
|
|
102
|
-
const t = V(this.sourceData.style), e = t && t.goodPic && t.goodPic.id, a = t && t.goodTitle && t.goodTitle.id, _ = t && Array.isArray(t.previews) ? t.previews.map((r) => r && r.id).filter(Boolean) : [];
|
|
103
|
-
this.form = {
|
|
104
|
-
goodPicId: this.stillExists(e, this.imageColumns) ? e : "",
|
|
105
|
-
goodTitleId: this.stillExists(a, this.textColumns) ? a : "",
|
|
106
|
-
previewIds: _.filter((r) => this.stillExists(r, this.textColumns) && r != a)
|
|
107
|
-
}, this.stripTitleFromPreview(), this.extraOpen = !1;
|
|
108
|
-
},
|
|
109
|
-
stillExists(t, e) {
|
|
110
|
-
return t != null && t !== "" && e.some((a) => a.id == t);
|
|
111
|
-
},
|
|
112
|
-
formatPreviewRow(t) {
|
|
113
|
-
const e = this.moduleList.find((a) => a.id == t);
|
|
114
|
-
return e ? `${e.name}:-` : "";
|
|
115
|
-
},
|
|
116
|
-
removePreview(t) {
|
|
117
|
-
this.form.previewIds = this.form.previewIds.filter((e) => e != t);
|
|
118
|
-
},
|
|
119
|
-
onTitleChange() {
|
|
120
|
-
this.stripTitleFromPreview();
|
|
121
|
-
},
|
|
122
|
-
stripTitleFromPreview() {
|
|
123
|
-
this.form.goodTitleId && (this.form.previewIds = (this.form.previewIds || []).filter((t) => t != this.form.goodTitleId));
|
|
124
|
-
},
|
|
125
|
-
findColumn(t) {
|
|
126
|
-
return this.moduleList.find((e) => e.id == t);
|
|
127
|
-
},
|
|
128
|
-
handleCancel() {
|
|
129
|
-
this.dialogVisible = !1;
|
|
130
|
-
},
|
|
131
|
-
/**
|
|
132
|
-
* 图片、标题均可空;至少配置一项后写入 style.goodCardStyle 对象。
|
|
133
|
-
*/
|
|
134
|
-
handleSave() {
|
|
135
|
-
if (this.stripTitleFromPreview(), !this.form.goodPicId && !this.form.goodTitleId && !this.form.previewIds.length) {
|
|
136
|
-
this.$message.warning("请至少配置商品图片、标题或预览字段之一");
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
this.sourceData.style || (this.sourceData.style = {});
|
|
140
|
-
const t = {
|
|
141
|
-
goodPic: this.form.goodPicId ? b(this.findColumn(this.form.goodPicId)) : null,
|
|
142
|
-
goodTitle: this.form.goodTitleId ? b(this.findColumn(this.form.goodTitleId)) : null,
|
|
143
|
-
previews: this.form.previewIds.map((e) => b(this.findColumn(e))).filter((e) => e.id !== "")
|
|
144
|
-
};
|
|
145
|
-
this.sourceData.style = {
|
|
146
|
-
...this.sourceData.style,
|
|
147
|
-
goodCardStyle: t
|
|
148
|
-
}, this.$message.success("商品卡片配置已保存"), this.dialogVisible = !1;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}, S = { class: "gcs-hd" }, L = { class: "gcs-bd" }, O = { class: "gcs-left" }, R = { class: "gcs-item" }, A = { class: "gcs-item" }, E = { class: "gcs-item" }, F = {
|
|
152
|
-
key: 0,
|
|
153
|
-
class: "gcs-tags"
|
|
154
|
-
}, N = ["onClick"], U = { class: "gcs-right" }, B = {
|
|
155
|
-
key: 0,
|
|
156
|
-
class: "gcs-empty"
|
|
157
|
-
}, j = {
|
|
158
|
-
key: 1,
|
|
159
|
-
class: "gcs-preview-box"
|
|
160
|
-
}, G = { class: "goods-card" }, z = { class: "goods-img" }, H = ["src"], J = { key: 1 }, M = { class: "goods-meta" }, W = { class: "goods-title" }, Y = { class: "meta-grid" }, q = { class: "meta-row" }, K = {
|
|
161
|
-
key: 1,
|
|
162
|
-
class: "extra-fields meta-grid"
|
|
163
|
-
}, Q = { class: "meta-row" }, X = { class: "gcs-ft" };
|
|
164
|
-
function Z(t, e, a, _, r, o) {
|
|
165
|
-
const I = f("el-option"), y = f("el-select"), C = f("el-tooltip"), T = f("el-button"), P = f("el-dialog");
|
|
166
|
-
return l(), c(P, {
|
|
167
|
-
modelValue: o.dialogVisible,
|
|
168
|
-
"onUpdate:modelValue": e[5] || (e[5] = (s) => o.dialogVisible = s),
|
|
169
|
-
class: "goods-card-style-dialog",
|
|
170
|
-
"append-to-body": !0,
|
|
171
|
-
"close-on-click-modal": !1,
|
|
172
|
-
"show-close": !1,
|
|
173
|
-
width: "880px",
|
|
174
|
-
top: "8vh",
|
|
175
|
-
"destroy-on-close": ""
|
|
176
|
-
}, {
|
|
177
|
-
default: n(() => [
|
|
178
|
-
i("div", S, [
|
|
179
|
-
e[6] || (e[6] = i("div", null, [
|
|
180
|
-
i("div", { class: "gcs-hd-title" }, "商品卡片配置"),
|
|
181
|
-
i("div", { class: "gcs-hd-sub" }, "PLUGIN DISPLAY / CARD"),
|
|
182
|
-
i("div", { class: "gcs-hd-desc" }, "以下配置将用于插件端筛选、添加时的默认商品卡片展示")
|
|
183
|
-
], -1)),
|
|
184
|
-
i("span", {
|
|
185
|
-
class: "bnUIcon bnUIcon-close gcs-hd-close",
|
|
186
|
-
onClick: e[0] || (e[0] = (...s) => o.handleCancel && o.handleCancel(...s))
|
|
187
|
-
})
|
|
188
|
-
]),
|
|
189
|
-
i("div", L, [
|
|
190
|
-
i("div", O, [
|
|
191
|
-
i("div", R, [
|
|
192
|
-
e[7] || (e[7] = i("div", { class: "gcs-lab" }, [
|
|
193
|
-
u(" 商品图片 "),
|
|
194
|
-
i("span", { class: "gcs-chip red" }, "只能选择1个")
|
|
195
|
-
], -1)),
|
|
196
|
-
e[8] || (e[8] = i("div", { class: "gcs-hint" }, "可选。选择卡片左侧展示的商品图片字段,不选时左侧显示占位", -1)),
|
|
197
|
-
h(y, {
|
|
198
|
-
modelValue: r.form.goodPicId,
|
|
199
|
-
"onUpdate:modelValue": e[1] || (e[1] = (s) => r.form.goodPicId = s),
|
|
200
|
-
filterable: "",
|
|
201
|
-
clearable: "",
|
|
202
|
-
placeholder: "请选择一个图片字段",
|
|
203
|
-
style: { width: "100%" }
|
|
204
|
-
}, {
|
|
205
|
-
default: n(() => [
|
|
206
|
-
(l(!0), d(m, null, g(o.imageColumns, (s) => (l(), c(I, {
|
|
207
|
-
key: s.id,
|
|
208
|
-
label: s.name,
|
|
209
|
-
value: s.id
|
|
210
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
211
|
-
]),
|
|
212
|
-
_: 1
|
|
213
|
-
}, 8, ["modelValue"])
|
|
214
|
-
]),
|
|
215
|
-
i("div", A, [
|
|
216
|
-
e[9] || (e[9] = i("div", { class: "gcs-lab" }, [
|
|
217
|
-
u(" 标题字段 "),
|
|
218
|
-
i("span", { class: "gcs-chip red" }, "只能选择1个")
|
|
219
|
-
], -1)),
|
|
220
|
-
e[10] || (e[10] = i("div", { class: "gcs-hint" }, "可选。展示在第一行,加粗显示,不展示组件名称。已选字段不可再作为预览字段", -1)),
|
|
221
|
-
h(y, {
|
|
222
|
-
modelValue: r.form.goodTitleId,
|
|
223
|
-
"onUpdate:modelValue": e[2] || (e[2] = (s) => r.form.goodTitleId = s),
|
|
224
|
-
filterable: "",
|
|
225
|
-
clearable: "",
|
|
226
|
-
placeholder: "请选择一个标题字段",
|
|
227
|
-
style: { width: "100%" },
|
|
228
|
-
onChange: o.onTitleChange
|
|
229
|
-
}, {
|
|
230
|
-
default: n(() => [
|
|
231
|
-
(l(!0), d(m, null, g(o.textColumns, (s) => (l(), c(I, {
|
|
232
|
-
key: s.id,
|
|
233
|
-
label: s.name,
|
|
234
|
-
value: s.id
|
|
235
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
236
|
-
]),
|
|
237
|
-
_: 1
|
|
238
|
-
}, 8, ["modelValue", "onChange"])
|
|
239
|
-
]),
|
|
240
|
-
i("div", E, [
|
|
241
|
-
e[11] || (e[11] = i("div", { class: "gcs-lab" }, [
|
|
242
|
-
u(" 预览字段 "),
|
|
243
|
-
i("span", { class: "gcs-chip blue" }, "多选")
|
|
244
|
-
], -1)),
|
|
245
|
-
e[12] || (e[12] = i("div", { class: "gcs-hint" }, "卡片默认展示全部已选字段,每行两个。标题已选字段不可再选", -1)),
|
|
246
|
-
h(y, {
|
|
247
|
-
modelValue: r.form.previewIds,
|
|
248
|
-
"onUpdate:modelValue": e[3] || (e[3] = (s) => r.form.previewIds = s),
|
|
249
|
-
multiple: "",
|
|
250
|
-
filterable: "",
|
|
251
|
-
"collapse-tags": "",
|
|
252
|
-
"collapse-tags-tooltip": "",
|
|
253
|
-
placeholder: "请选择预览字段(可多选)",
|
|
254
|
-
style: { width: "100%" }
|
|
255
|
-
}, {
|
|
256
|
-
default: n(() => [
|
|
257
|
-
(l(!0), d(m, null, g(o.previewColumns, (s) => (l(), c(I, {
|
|
258
|
-
key: s.id,
|
|
259
|
-
label: s.name,
|
|
260
|
-
value: s.id,
|
|
261
|
-
disabled: s.id == r.form.goodTitleId
|
|
262
|
-
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
263
|
-
]),
|
|
264
|
-
_: 1
|
|
265
|
-
}, 8, ["modelValue"]),
|
|
266
|
-
o.previewTags.length ? (l(), d("div", F, [
|
|
267
|
-
(l(!0), d(m, null, g(o.previewTags, (s) => (l(), d("span", {
|
|
268
|
-
key: s.id,
|
|
269
|
-
class: "gcs-tag"
|
|
270
|
-
}, [
|
|
271
|
-
u(v(s.name) + " ", 1),
|
|
272
|
-
i("i", {
|
|
273
|
-
class: "gcs-tag-rm",
|
|
274
|
-
onClick: (p) => o.removePreview(s.id)
|
|
275
|
-
}, "×", 8, N)
|
|
276
|
-
]))), 128))
|
|
277
|
-
])) : w("", !0)
|
|
278
|
-
])
|
|
279
|
-
]),
|
|
280
|
-
i("div", U, [
|
|
281
|
-
e[13] || (e[13] = i("div", { class: "gcs-right-title" }, "效果预览", -1)),
|
|
282
|
-
e[14] || (e[14] = i("div", { class: "gcs-right-sub" }, "插件端筛选卡片", -1)),
|
|
283
|
-
o.hasAnyConfig ? (l(), d("div", j, [
|
|
284
|
-
i("div", G, [
|
|
285
|
-
i("div", z, [
|
|
286
|
-
o.previewImage ? (l(), d("img", {
|
|
287
|
-
key: 0,
|
|
288
|
-
src: o.previewImage,
|
|
289
|
-
alt: ""
|
|
290
|
-
}, null, 8, H)) : (l(), d("span", J, "暂无图片"))
|
|
291
|
-
]),
|
|
292
|
-
i("div", M, [
|
|
293
|
-
o.previewTitle ? (l(), c(C, {
|
|
294
|
-
key: 0,
|
|
295
|
-
content: o.previewTitle,
|
|
296
|
-
placement: "top"
|
|
297
|
-
}, {
|
|
298
|
-
default: n(() => [
|
|
299
|
-
i("div", W, v(o.previewTitle), 1)
|
|
300
|
-
]),
|
|
301
|
-
_: 1
|
|
302
|
-
}, 8, ["content"])) : w("", !0),
|
|
303
|
-
i("div", Y, [
|
|
304
|
-
(l(!0), d(m, null, g(o.shownPreviewRows, (s, p) => (l(), c(C, {
|
|
305
|
-
key: p,
|
|
306
|
-
content: s,
|
|
307
|
-
placement: "top"
|
|
308
|
-
}, {
|
|
309
|
-
default: n(() => [
|
|
310
|
-
i("div", q, v(s), 1)
|
|
311
|
-
]),
|
|
312
|
-
_: 2
|
|
313
|
-
}, 1032, ["content"]))), 128))
|
|
314
|
-
]),
|
|
315
|
-
o.extraPreviewRows.length && r.extraOpen ? (l(), d("div", K, [
|
|
316
|
-
(l(!0), d(m, null, g(o.extraPreviewRows, (s, p) => (l(), c(C, {
|
|
317
|
-
key: "e" + p,
|
|
318
|
-
content: s,
|
|
319
|
-
placement: "top"
|
|
320
|
-
}, {
|
|
321
|
-
default: n(() => [
|
|
322
|
-
i("div", Q, v(s), 1)
|
|
323
|
-
]),
|
|
324
|
-
_: 2
|
|
325
|
-
}, 1032, ["content"]))), 128))
|
|
326
|
-
])) : w("", !0)
|
|
327
|
-
]),
|
|
328
|
-
o.extraPreviewRows.length ? (l(), d("span", {
|
|
329
|
-
key: 0,
|
|
330
|
-
class: "more-link",
|
|
331
|
-
onClick: e[4] || (e[4] = (s) => r.extraOpen = !r.extraOpen)
|
|
332
|
-
}, v(r.extraOpen ? "收起" : "更多 >"), 1)) : w("", !0)
|
|
333
|
-
])
|
|
334
|
-
])) : (l(), d("div", B, "请先选择商品图片、标题字段或预览字段")),
|
|
335
|
-
e[15] || (e[15] = i("div", { class: "gcs-right-tip" }, "配置字段变化后,卡片会自动更新", -1))
|
|
336
|
-
])
|
|
337
|
-
]),
|
|
338
|
-
i("div", X, [
|
|
339
|
-
h(T, { onClick: o.handleCancel }, {
|
|
340
|
-
default: n(() => [...e[16] || (e[16] = [
|
|
341
|
-
u("取 消", -1)
|
|
342
|
-
])]),
|
|
343
|
-
_: 1
|
|
344
|
-
}, 8, ["onClick"]),
|
|
345
|
-
h(T, {
|
|
346
|
-
type: "primary",
|
|
347
|
-
class: "gcs-save",
|
|
348
|
-
onClick: o.handleSave
|
|
349
|
-
}, {
|
|
350
|
-
default: n(() => [...e[17] || (e[17] = [
|
|
351
|
-
u("保存配置", -1)
|
|
352
|
-
])]),
|
|
353
|
-
_: 1
|
|
354
|
-
}, 8, ["onClick"])
|
|
355
|
-
])
|
|
356
|
-
]),
|
|
357
|
-
_: 1
|
|
358
|
-
}, 8, ["modelValue"]);
|
|
359
|
-
}
|
|
360
|
-
const te = /* @__PURE__ */ k(D, [["render", Z], ["__scopeId", "data-v-6ef876e8"]]);
|
|
361
|
-
export {
|
|
362
|
-
te as default
|
|
363
|
-
};
|