@bytenew/bn-bus-ui 1.1.500 → 1.1.502

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.
Files changed (31) hide show
  1. package/dist/{assocTableSearch-BmKfO30j.js → assocTableSearch-DT5JOX5O.js} +1 -1
  2. package/dist/bn-bus-ui.es.js +1 -1
  3. package/dist/bn-bus-ui.umd.js +8 -8
  4. package/dist/{chooseIPaasData-DbXFGmDp.js → chooseIPaasData-CA4Wv7nd.js} +1 -1
  5. package/dist/{defaultSet-axsB6M39.js → defaultSet-DdrxmHXe.js} +1 -1
  6. package/dist/{formItemFooter-DU5t2yPc.js → formItemFooter-BaT5zHHA.js} +1 -1
  7. package/dist/{funcExprDialog-Cxu_A7lQ.js → funcExprDialog-BH_y-LKc.js} +1 -1
  8. package/dist/{goodCardStyle-DNVkD29o.js → goodCardStyle-Nq-qX5Li.js} +123 -118
  9. package/dist/goodCardStyle.css +1 -1
  10. package/dist/{index-UbFwCc9c.js → index--i7SySPI.js} +2 -2
  11. package/dist/{index-D_eN5ep4.js → index-0iEMdLKb.js} +2 -2
  12. package/dist/{index-B6F1NFoj.js → index-B1qIsPb9.js} +2 -2
  13. package/dist/{index-DVWt5Fw7.js → index-BWZM0_WA.js} +1 -1
  14. package/dist/{index-Cv2ZVij7.js → index-BcbTCOX-.js} +2 -2
  15. package/dist/{index-CzU2hlYh.js → index-BkPNKiXD.js} +1 -1
  16. package/dist/{index-B7UXY795.js → index-BvLMDfVH.js} +2 -2
  17. package/dist/{index-DTu8a23B.js → index-CQ7Va8aU.js} +2 -2
  18. package/dist/{index-C1k2UAEn.js → index-CRXdQO0_.js} +2 -2
  19. package/dist/{index-CjSYwokp.js → index-Cld8grTE.js} +2 -2
  20. package/dist/{index-DatPtNHo.js → index-CmeY78ZX.js} +2 -2
  21. package/dist/{index-Bm9E5GG6.js → index-CtGgPi1N.js} +2 -2
  22. package/dist/{index-VQiyw27l.js → index-DI6hkszH.js} +3 -3
  23. package/dist/{index-CHtUxdec.js → index-DIoy5HOL.js} +3 -3
  24. package/dist/{index-x6bkPiOZ.js → index-DeOYCVs9.js} +1 -1
  25. package/dist/{index-GAGFw811.js → index-Dpl4xJEj.js} +2 -2
  26. package/dist/{index-gtwI5ZmG.js → index-DqsyrhLN.js} +3 -3
  27. package/dist/{install-Bz_yfXDQ.js → install-uilpCuAu.js} +685 -666
  28. package/dist/install.css +1 -1
  29. package/dist/{setOption-Dbyo0rsA.js → setOption-qwtdkaPh.js} +1 -1
  30. package/dist/{setRelationOption-BSo2Lnsn.js → setRelationOption-Bxzu1apy.js} +1 -1
  31. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { cloneDeep as w } from "lodash";
2
- import { _, g as N, a as E } from "./install-Bz_yfXDQ.js";
2
+ import { _, g as N, a as E } from "./install-uilpCuAu.js";
3
3
  import { withDirectives as k, openBlock as u, createElementBlock as v, withModifiers as L, normalizeStyle as z, vShow as B, resolveComponent as d, resolveDirective as U, createBlock as C, withCtx as a, createVNode as r, createElementVNode as c, Fragment as D, renderList as P, createTextVNode as f, toDisplayString as b } from "vue";
4
4
  const A = {
5
5
  name: "WorksheetCopy",
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as u, openBlock as f, createElementBlock as s, createVNode as d, withCtx as h, createElementVNode as _, createCommentVNode as r } from "vue";
2
- import { _ as C } from "./install-Bz_yfXDQ.js";
2
+ import { _ as C } from "./install-uilpCuAu.js";
3
3
  import { cloneDeep as g } from "lodash";
4
4
  const x = {
5
5
  name: "defaultSet",
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as g, openBlock as n, createElementBlock as r, normalizeClass as y, withDirectives as m, createElementVNode as o, vShow as u, createTextVNode as c, toDisplayString as i, createBlock as w, withCtx as s, createCommentVNode as a, Fragment as B, renderList as C } from "vue";
2
- import { _ as v } from "./install-Bz_yfXDQ.js";
2
+ import { _ as v } from "./install-uilpCuAu.js";
3
3
  const F = {
4
4
  name: "formItemTop",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as i, openBlock as m, createBlock as c, withCtx as n, createCommentVNode as b, createElementVNode as r, createVNode as a, createTextVNode as u } from "vue";
2
- import { _ as I } from "./install-Bz_yfXDQ.js";
2
+ import { _ as I } from "./install-uilpCuAu.js";
3
3
  const _ = {
4
4
  name: "funcExprDialog",
5
5
  props: {
@@ -1,9 +1,9 @@
1
- import { resolveComponent as f, openBlock as o, createBlock as c, withCtx as n, createElementVNode as s, createTextVNode as u, createVNode as v, createElementBlock as d, Fragment as m, renderList as g, toDisplayString as h, createCommentVNode as w } from "vue";
2
- import { _ as P } from "./install-Bz_yfXDQ.js";
3
- const T = {
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-uilpCuAu.js";
3
+ const x = {
4
4
  image: "https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_c216400ec482bbfc44c2ea13584508bd.png"
5
5
  };
6
- function _(t) {
6
+ function b(t) {
7
7
  return t ? {
8
8
  id: t.id,
9
9
  title: t.name || "",
@@ -26,10 +26,8 @@ function V(t) {
26
26
  const D = {
27
27
  name: "goodCardStyle",
28
28
  props: {
29
- visible: {
30
- type: Boolean,
31
- default: !1
32
- },
29
+ visible: { type: Boolean, default: !1 },
30
+ /** 当前子表单;保存写 style.goodCardStyle 对象,外层 stringifyStyle 再转字符串 */
33
31
  sourceData: {
34
32
  type: Object,
35
33
  default() {
@@ -39,11 +37,7 @@ const D = {
39
37
  },
40
38
  data() {
41
39
  return {
42
- form: {
43
- goodPicId: "",
44
- goodTitleId: "",
45
- previewIds: []
46
- },
40
+ form: { goodPicId: "", goodTitleId: "", previewIds: [] },
47
41
  extraOpen: !1
48
42
  };
49
43
  },
@@ -60,12 +54,18 @@ const D = {
60
54
  const t = this.sourceData && this.sourceData.moduleDefinition;
61
55
  return Array.isArray(t) ? t : [];
62
56
  },
57
+ /** 主图:附件 10 */
63
58
  imageColumns() {
64
59
  return this.moduleList.filter((t) => t.behaviorType == 10);
65
60
  },
61
+ /** 标题/预览:1-7 */
66
62
  textColumns() {
67
63
  return this.moduleList.filter((t) => [1, 2, 3, 4, 5, 6, 7].includes(Number(t.behaviorType)));
68
64
  },
65
+ /** 预览候选:排除已选标题 */
66
+ previewColumns() {
67
+ return this.textColumns.filter((t) => t.id != this.form.goodTitleId);
68
+ },
69
69
  previewTags() {
70
70
  return this.form.previewIds.map((t) => this.moduleList.find((e) => e.id == t)).filter(Boolean);
71
71
  },
@@ -73,19 +73,21 @@ const D = {
73
73
  return !!(this.form.goodPicId || this.form.goodTitleId || this.form.previewIds.length);
74
74
  },
75
75
  previewImage() {
76
- return this.form.goodPicId ? T.image : "";
76
+ return this.form.goodPicId ? x.image : "";
77
77
  },
78
78
  previewTitle() {
79
79
  if (!this.form.goodTitleId) return "";
80
80
  const t = this.moduleList.find((e) => e.id == this.form.goodTitleId);
81
81
  return t && t.name || "—";
82
82
  },
83
+ // 预览区不重复展示标题、主图
83
84
  previewOnlyIds() {
84
85
  return (this.form.previewIds || []).filter((t) => t != this.form.goodTitleId && t != this.form.goodPicId);
85
86
  },
86
87
  shownPreviewRows() {
87
88
  return this.previewOnlyIds.map((t) => this.formatPreviewRow(t));
88
89
  },
90
+ // 「更多」里展示未选入预览的其它文本类字段
89
91
  extraPreviewRows() {
90
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));
91
93
  }
@@ -97,12 +99,12 @@ const D = {
97
99
  },
98
100
  methods: {
99
101
  initForm() {
100
- const t = V(this.sourceData.style), e = t && t.goodPic && t.goodPic.id, a = t && t.goodTitle && t.goodTitle.id, C = t && Array.isArray(t.previews) ? t.previews.map((r) => r && r.id).filter(Boolean) : [];
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) : [];
101
103
  this.form = {
102
104
  goodPicId: this.stillExists(e, this.imageColumns) ? e : "",
103
105
  goodTitleId: this.stillExists(a, this.textColumns) ? a : "",
104
- previewIds: C.filter((r) => this.stillExists(r, this.textColumns))
105
- }, this.extraOpen = !1;
106
+ previewIds: _.filter((r) => this.stillExists(r, this.textColumns) && r != a)
107
+ }, this.stripTitleFromPreview(), this.extraOpen = !1;
106
108
  },
107
109
  stillExists(t, e) {
108
110
  return t != null && t !== "" && e.some((a) => a.id == t);
@@ -114,30 +116,31 @@ const D = {
114
116
  removePreview(t) {
115
117
  this.form.previewIds = this.form.previewIds.filter((e) => e != t);
116
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
+ },
117
125
  findColumn(t) {
118
126
  return this.moduleList.find((e) => e.id == t);
119
127
  },
120
128
  handleCancel() {
121
129
  this.dialogVisible = !1;
122
130
  },
131
+ /**
132
+ * 图片、标题均可空;至少配置一项后写入 style.goodCardStyle 对象。
133
+ */
123
134
  handleSave() {
124
- if (!this.form.goodPicId) {
125
- this.$message.warning("请配置商品图片");
126
- return;
127
- }
128
- if (!this.form.goodTitleId) {
129
- this.$message.warning("请配置标题字段");
130
- return;
131
- }
132
- if (!this.form.previewIds.length) {
133
- this.$message.warning("请至少选择一个预览字段");
135
+ if (this.stripTitleFromPreview(), !this.form.goodPicId && !this.form.goodTitleId && !this.form.previewIds.length) {
136
+ this.$message.warning("请至少配置商品图片、标题或预览字段之一");
134
137
  return;
135
138
  }
136
139
  this.sourceData.style || (this.sourceData.style = {});
137
140
  const t = {
138
- goodPic: _(this.findColumn(this.form.goodPicId)),
139
- goodTitle: _(this.findColumn(this.form.goodTitleId)),
140
- previews: this.form.previewIds.map((e) => _(this.findColumn(e))).filter((e) => e.id !== "")
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 !== "")
141
144
  };
142
145
  this.sourceData.style = {
143
146
  ...this.sourceData.style,
@@ -145,24 +148,24 @@ const D = {
145
148
  }, this.$message.success("商品卡片配置已保存"), this.dialogVisible = !1;
146
149
  }
147
150
  }
148
- }, S = { class: "gcs-hd" }, L = { class: "gcs-bd" }, O = { class: "gcs-left" }, R = { class: "gcs-item" }, A = { class: "gcs-item" }, E = { class: "gcs-item" }, N = {
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 = {
149
152
  key: 0,
150
153
  class: "gcs-tags"
151
- }, U = ["onClick"], B = { class: "gcs-right" }, j = {
154
+ }, N = ["onClick"], U = { class: "gcs-right" }, B = {
152
155
  key: 0,
153
156
  class: "gcs-empty"
154
- }, F = {
157
+ }, j = {
155
158
  key: 1,
156
159
  class: "gcs-preview-box"
157
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 = {
158
161
  key: 1,
159
162
  class: "extra-fields meta-grid"
160
163
  }, Q = { class: "meta-row" }, X = { class: "gcs-ft" };
161
- function Z(t, e, a, C, r, l) {
162
- const y = f("el-option"), I = f("el-select"), b = f("el-tooltip"), k = f("el-button"), x = f("el-dialog");
163
- return o(), c(x, {
164
- modelValue: l.dialogVisible,
165
- "onUpdate:modelValue": e[5] || (e[5] = (i) => l.dialogVisible = i),
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),
166
169
  class: "goods-card-style-dialog",
167
170
  "append-to-body": !0,
168
171
  "close-on-click-modal": !1,
@@ -172,76 +175,77 @@ function Z(t, e, a, C, r, l) {
172
175
  "destroy-on-close": ""
173
176
  }, {
174
177
  default: n(() => [
175
- s("div", S, [
176
- e[6] || (e[6] = s("div", null, [
177
- s("div", { class: "gcs-hd-title" }, "商品卡片配置"),
178
- s("div", { class: "gcs-hd-sub" }, "PLUGIN DISPLAY / CARD"),
179
- s("div", { class: "gcs-hd-desc" }, "以下配置将用于插件端筛选、添加时的默认商品卡片展示")
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" }, "以下配置将用于插件端筛选、添加时的默认商品卡片展示")
180
183
  ], -1)),
181
- s("span", {
184
+ i("span", {
182
185
  class: "bnUIcon bnUIcon-close gcs-hd-close",
183
- onClick: e[0] || (e[0] = (...i) => l.handleCancel && l.handleCancel(...i))
186
+ onClick: e[0] || (e[0] = (...s) => o.handleCancel && o.handleCancel(...s))
184
187
  })
185
188
  ]),
186
- s("div", L, [
187
- s("div", O, [
188
- s("div", R, [
189
- e[7] || (e[7] = s("div", { class: "gcs-lab" }, [
189
+ i("div", L, [
190
+ i("div", O, [
191
+ i("div", R, [
192
+ e[7] || (e[7] = i("div", { class: "gcs-lab" }, [
190
193
  u(" 商品图片 "),
191
- s("span", { class: "gcs-chip red" }, "只能选择1个")
194
+ i("span", { class: "gcs-chip red" }, "只能选择1个")
192
195
  ], -1)),
193
- e[8] || (e[8] = s("div", { class: "gcs-hint" }, "选择卡片左侧展示的商品图片字段", -1)),
194
- v(I, {
196
+ e[8] || (e[8] = i("div", { class: "gcs-hint" }, "可选。选择卡片左侧展示的商品图片字段,不选时左侧显示占位", -1)),
197
+ h(y, {
195
198
  modelValue: r.form.goodPicId,
196
- "onUpdate:modelValue": e[1] || (e[1] = (i) => r.form.goodPicId = i),
199
+ "onUpdate:modelValue": e[1] || (e[1] = (s) => r.form.goodPicId = s),
197
200
  filterable: "",
198
201
  clearable: "",
199
202
  placeholder: "请选择一个图片字段",
200
203
  style: { width: "100%" }
201
204
  }, {
202
205
  default: n(() => [
203
- (o(!0), d(m, null, g(l.imageColumns, (i) => (o(), c(y, {
204
- key: i.id,
205
- label: i.name,
206
- value: i.id
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
207
210
  }, null, 8, ["label", "value"]))), 128))
208
211
  ]),
209
212
  _: 1
210
213
  }, 8, ["modelValue"])
211
214
  ]),
212
- s("div", A, [
213
- e[9] || (e[9] = s("div", { class: "gcs-lab" }, [
215
+ i("div", A, [
216
+ e[9] || (e[9] = i("div", { class: "gcs-lab" }, [
214
217
  u(" 标题字段 "),
215
- s("span", { class: "gcs-chip red" }, "只能选择1个")
218
+ i("span", { class: "gcs-chip red" }, "只能选择1个")
216
219
  ], -1)),
217
- e[10] || (e[10] = s("div", { class: "gcs-hint" }, "展示在图片右侧第一行,加粗显示,不展示组件名称", -1)),
218
- v(I, {
220
+ e[10] || (e[10] = i("div", { class: "gcs-hint" }, "可选。展示在第一行,加粗显示,不展示组件名称。已选字段不可再作为预览字段", -1)),
221
+ h(y, {
219
222
  modelValue: r.form.goodTitleId,
220
- "onUpdate:modelValue": e[2] || (e[2] = (i) => r.form.goodTitleId = i),
223
+ "onUpdate:modelValue": e[2] || (e[2] = (s) => r.form.goodTitleId = s),
221
224
  filterable: "",
222
225
  clearable: "",
223
226
  placeholder: "请选择一个标题字段",
224
- style: { width: "100%" }
227
+ style: { width: "100%" },
228
+ onChange: o.onTitleChange
225
229
  }, {
226
230
  default: n(() => [
227
- (o(!0), d(m, null, g(l.textColumns, (i) => (o(), c(y, {
228
- key: i.id,
229
- label: i.name,
230
- value: i.id
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
231
235
  }, null, 8, ["label", "value"]))), 128))
232
236
  ]),
233
237
  _: 1
234
- }, 8, ["modelValue"])
238
+ }, 8, ["modelValue", "onChange"])
235
239
  ]),
236
- s("div", E, [
237
- e[11] || (e[11] = s("div", { class: "gcs-lab" }, [
240
+ i("div", E, [
241
+ e[11] || (e[11] = i("div", { class: "gcs-lab" }, [
238
242
  u(" 预览字段 "),
239
- s("span", { class: "gcs-chip blue" }, "多选")
243
+ i("span", { class: "gcs-chip blue" }, "多选")
240
244
  ], -1)),
241
- e[12] || (e[12] = s("div", { class: "gcs-hint" }, "卡片默认展示全部已选字段,每行展示两个字段", -1)),
242
- v(I, {
245
+ e[12] || (e[12] = i("div", { class: "gcs-hint" }, "卡片默认展示全部已选字段,每行两个。标题已选字段不可再选", -1)),
246
+ h(y, {
243
247
  modelValue: r.form.previewIds,
244
- "onUpdate:modelValue": e[3] || (e[3] = (i) => r.form.previewIds = i),
248
+ "onUpdate:modelValue": e[3] || (e[3] = (s) => r.form.previewIds = s),
245
249
  multiple: "",
246
250
  filterable: "",
247
251
  "collapse-tags": "",
@@ -250,97 +254,98 @@ function Z(t, e, a, C, r, l) {
250
254
  style: { width: "100%" }
251
255
  }, {
252
256
  default: n(() => [
253
- (o(!0), d(m, null, g(l.textColumns, (i) => (o(), c(y, {
254
- key: i.id,
255
- label: i.name,
256
- value: i.id
257
- }, null, 8, ["label", "value"]))), 128))
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))
258
263
  ]),
259
264
  _: 1
260
265
  }, 8, ["modelValue"]),
261
- l.previewTags.length ? (o(), d("div", N, [
262
- (o(!0), d(m, null, g(l.previewTags, (i) => (o(), d("span", {
263
- key: i.id,
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,
264
269
  class: "gcs-tag"
265
270
  }, [
266
- u(h(i.name) + " ", 1),
267
- s("i", {
271
+ u(v(s.name) + " ", 1),
272
+ i("i", {
268
273
  class: "gcs-tag-rm",
269
- onClick: (p) => l.removePreview(i.id)
270
- }, "×", 8, U)
274
+ onClick: (p) => o.removePreview(s.id)
275
+ }, "×", 8, N)
271
276
  ]))), 128))
272
277
  ])) : w("", !0)
273
278
  ])
274
279
  ]),
275
- s("div", B, [
276
- e[13] || (e[13] = s("div", { class: "gcs-right-title" }, "效果预览", -1)),
277
- e[14] || (e[14] = s("div", { class: "gcs-right-sub" }, "插件端筛选卡片", -1)),
278
- l.hasAnyConfig ? (o(), d("div", F, [
279
- s("div", G, [
280
- s("div", z, [
281
- l.previewImage ? (o(), d("img", {
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", {
282
287
  key: 0,
283
- src: l.previewImage,
288
+ src: o.previewImage,
284
289
  alt: ""
285
- }, null, 8, H)) : (o(), d("span", J, "未配置主图"))
290
+ }, null, 8, H)) : (l(), d("span", J, "暂无图片"))
286
291
  ]),
287
- s("div", M, [
288
- l.previewTitle ? (o(), c(b, {
292
+ i("div", M, [
293
+ o.previewTitle ? (l(), c(C, {
289
294
  key: 0,
290
- content: l.previewTitle,
295
+ content: o.previewTitle,
291
296
  placement: "top"
292
297
  }, {
293
298
  default: n(() => [
294
- s("div", W, h(l.previewTitle), 1)
299
+ i("div", W, v(o.previewTitle), 1)
295
300
  ]),
296
301
  _: 1
297
302
  }, 8, ["content"])) : w("", !0),
298
- s("div", Y, [
299
- (o(!0), d(m, null, g(l.shownPreviewRows, (i, p) => (o(), c(b, {
303
+ i("div", Y, [
304
+ (l(!0), d(m, null, g(o.shownPreviewRows, (s, p) => (l(), c(C, {
300
305
  key: p,
301
- content: i,
306
+ content: s,
302
307
  placement: "top"
303
308
  }, {
304
309
  default: n(() => [
305
- s("div", q, h(i), 1)
310
+ i("div", q, v(s), 1)
306
311
  ]),
307
312
  _: 2
308
313
  }, 1032, ["content"]))), 128))
309
314
  ]),
310
- l.extraPreviewRows.length && r.extraOpen ? (o(), d("div", K, [
311
- (o(!0), d(m, null, g(l.extraPreviewRows, (i, p) => (o(), c(b, {
315
+ o.extraPreviewRows.length && r.extraOpen ? (l(), d("div", K, [
316
+ (l(!0), d(m, null, g(o.extraPreviewRows, (s, p) => (l(), c(C, {
312
317
  key: "e" + p,
313
- content: i,
318
+ content: s,
314
319
  placement: "top"
315
320
  }, {
316
321
  default: n(() => [
317
- s("div", Q, h(i), 1)
322
+ i("div", Q, v(s), 1)
318
323
  ]),
319
324
  _: 2
320
325
  }, 1032, ["content"]))), 128))
321
326
  ])) : w("", !0)
322
327
  ]),
323
- l.extraPreviewRows.length ? (o(), d("span", {
328
+ o.extraPreviewRows.length ? (l(), d("span", {
324
329
  key: 0,
325
330
  class: "more-link",
326
- onClick: e[4] || (e[4] = (i) => r.extraOpen = !r.extraOpen)
327
- }, h(r.extraOpen ? "收起" : "更多 >"), 1)) : w("", !0)
331
+ onClick: e[4] || (e[4] = (s) => r.extraOpen = !r.extraOpen)
332
+ }, v(r.extraOpen ? "收起" : "更多 >"), 1)) : w("", !0)
328
333
  ])
329
- ])) : (o(), d("div", j, "请先选择商品图片、标题字段和预览字段")),
330
- e[15] || (e[15] = s("div", { class: "gcs-right-tip" }, "配置字段变化后,卡片会自动更新", -1))
334
+ ])) : (l(), d("div", B, "请先选择商品图片、标题字段或预览字段")),
335
+ e[15] || (e[15] = i("div", { class: "gcs-right-tip" }, "配置字段变化后,卡片会自动更新", -1))
331
336
  ])
332
337
  ]),
333
- s("div", X, [
334
- v(k, { onClick: l.handleCancel }, {
338
+ i("div", X, [
339
+ h(T, { onClick: o.handleCancel }, {
335
340
  default: n(() => [...e[16] || (e[16] = [
336
341
  u("取 消", -1)
337
342
  ])]),
338
343
  _: 1
339
344
  }, 8, ["onClick"]),
340
- v(k, {
345
+ h(T, {
341
346
  type: "primary",
342
347
  class: "gcs-save",
343
- onClick: l.handleSave
348
+ onClick: o.handleSave
344
349
  }, {
345
350
  default: n(() => [...e[17] || (e[17] = [
346
351
  u("保存配置", -1)
@@ -352,7 +357,7 @@ function Z(t, e, a, C, r, l) {
352
357
  _: 1
353
358
  }, 8, ["modelValue"]);
354
359
  }
355
- const te = /* @__PURE__ */ P(D, [["render", Z], ["__scopeId", "data-v-7ff0ede5"]]);
360
+ const te = /* @__PURE__ */ k(D, [["render", Z], ["__scopeId", "data-v-6ef876e8"]]);
356
361
  export {
357
362
  te as default
358
363
  };
@@ -1 +1 @@
1
- .goods-card-style-dialog .el-dialog__header{display:none}.goods-card-style-dialog .el-dialog__body{padding:0}.gcs-hd[data-v-7ff0ede5]{padding:16px 20px 12px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #e8e8e8}.gcs-hd-title[data-v-7ff0ede5]{font-size:16px;font-weight:600;color:#000000d9}.gcs-hd-sub[data-v-7ff0ede5]{font-size:11px;letter-spacing:1px;color:#8aa0b8;margin-top:4px}.gcs-hd-desc[data-v-7ff0ede5]{font-size:12px;color:#00000073;margin-top:8px}.gcs-hd-close[data-v-7ff0ede5]{cursor:pointer;font-size:14px;color:#00000073;line-height:1}.gcs-bd[data-v-7ff0ede5]{padding:16px 20px;display:flex;gap:20px;max-height:72vh;overflow:auto}.gcs-left[data-v-7ff0ede5]{flex:1;min-width:0}.gcs-right[data-v-7ff0ede5]{width:370px;flex-shrink:0;background:#f7f9fc;border-radius:8px;padding:14px}.gcs-right-title[data-v-7ff0ede5]{font-size:13px;font-weight:600;color:#000000d9}.gcs-right-sub[data-v-7ff0ede5]{font-size:12px;color:#00000073;margin:2px 0 12px}.gcs-right-tip[data-v-7ff0ede5]{font-size:12px;color:#00000073;margin-top:10px}.gcs-item[data-v-7ff0ede5]{margin-bottom:18px}.gcs-lab[data-v-7ff0ede5]{display:flex;align-items:center;gap:8px;margin-bottom:4px;font-weight:600;color:#000000d9}.gcs-hint[data-v-7ff0ede5]{font-size:12px;color:#00000073;margin-bottom:8px}.gcs-chip[data-v-7ff0ede5]{font-size:11px;padding:1px 6px;border-radius:2px;font-weight:500}.gcs-chip.red[data-v-7ff0ede5]{background:#ffecec;color:#f56c6c}.gcs-chip.blue[data-v-7ff0ede5]{background:#e8f3ff;color:#2783f2}.gcs-tags[data-v-7ff0ede5]{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.gcs-tag[data-v-7ff0ede5]{background:#e8f3ff;color:#2783f2;border-radius:2px;padding:0 6px;height:22px;line-height:22px;font-size:12px;display:inline-flex;align-items:center;gap:4px}.gcs-tag-rm[data-v-7ff0ede5]{color:#00000073;cursor:pointer;font-style:normal}.gcs-empty[data-v-7ff0ede5]{text-align:center;color:#00000073;padding:24px 0;font-size:12px}.gcs-preview-box[data-v-7ff0ede5]{background:#fafafa;border:1px dashed #d9d9d9;border-radius:6px;padding:12px}.goods-card[data-v-7ff0ede5]{display:flex;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:6px;padding:10px;position:relative}.goods-img[data-v-7ff0ede5]{width:80px;height:80px;border-radius:4px;background:#fff;flex-shrink:0;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#bbb;font-size:11px;text-align:center;border:1px solid #f0f0f0}.goods-img img[data-v-7ff0ede5]{width:100%;height:100%;object-fit:contain}.goods-meta[data-v-7ff0ede5]{flex:1;min-width:0;padding-right:36px}.goods-title[data-v-7ff0ede5]{display:-webkit-box;font-size:14px;font-weight:700;color:#111;line-height:20px;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.meta-row[data-v-7ff0ede5]{min-width:0;font-size:12px;line-height:18px;margin-bottom:2px;color:#000000a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-grid[data-v-7ff0ede5]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px}.more-link[data-v-7ff0ede5]{position:absolute;right:10px;bottom:8px;color:#2783f2;font-size:12px;cursor:pointer}.extra-fields[data-v-7ff0ede5]{margin-top:6px;padding-top:6px;border-top:1px dashed #e8e8e8}.gcs-ft[data-v-7ff0ede5]{padding:12px 20px;border-top:1px solid #e8e8e8;text-align:right}.gcs-save[data-v-7ff0ede5]{margin-left:8px}
1
+ .goods-card-style-dialog .el-dialog__header{display:none}.goods-card-style-dialog .el-dialog__body{padding:0}.gcs-hd[data-v-6ef876e8]{padding:16px 20px 12px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #e8e8e8}.gcs-hd-title[data-v-6ef876e8]{font-size:16px;font-weight:600;color:#000000d9}.gcs-hd-sub[data-v-6ef876e8]{font-size:11px;letter-spacing:1px;color:#8aa0b8;margin-top:4px}.gcs-hd-desc[data-v-6ef876e8]{font-size:12px;color:#00000073;margin-top:8px}.gcs-hd-close[data-v-6ef876e8]{cursor:pointer;font-size:14px;color:#00000073;line-height:1}.gcs-bd[data-v-6ef876e8]{padding:16px 20px;display:flex;gap:20px;max-height:72vh;overflow:auto}.gcs-left[data-v-6ef876e8]{flex:1;min-width:0}.gcs-right[data-v-6ef876e8]{width:370px;flex-shrink:0;background:#f7f9fc;border-radius:8px;padding:14px}.gcs-right-title[data-v-6ef876e8]{font-size:13px;font-weight:600;color:#000000d9}.gcs-right-sub[data-v-6ef876e8]{font-size:12px;color:#00000073;margin:2px 0 12px}.gcs-right-tip[data-v-6ef876e8]{font-size:12px;color:#00000073;margin-top:10px}.gcs-item[data-v-6ef876e8]{margin-bottom:18px}.gcs-lab[data-v-6ef876e8]{display:flex;align-items:center;gap:8px;margin-bottom:4px;font-weight:600;color:#000000d9}.gcs-hint[data-v-6ef876e8]{font-size:12px;color:#00000073;margin-bottom:8px}.gcs-chip[data-v-6ef876e8]{font-size:11px;padding:1px 6px;border-radius:2px;font-weight:500}.gcs-chip.red[data-v-6ef876e8]{background:#ffecec;color:#f56c6c}.gcs-chip.blue[data-v-6ef876e8]{background:#e8f3ff;color:#2783f2}.gcs-tags[data-v-6ef876e8]{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.gcs-tag[data-v-6ef876e8]{background:#e8f3ff;color:#2783f2;border-radius:2px;padding:0 6px;height:22px;line-height:22px;font-size:12px;display:inline-flex;align-items:center;gap:4px}.gcs-tag-rm[data-v-6ef876e8]{color:#00000073;cursor:pointer;font-style:normal}.gcs-empty[data-v-6ef876e8]{text-align:center;color:#00000073;padding:24px 0;font-size:12px}.gcs-preview-box[data-v-6ef876e8]{background:#fafafa;border:1px dashed #d9d9d9;border-radius:6px;padding:12px}.goods-card[data-v-6ef876e8]{display:flex;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:6px;padding:10px;position:relative}.goods-img[data-v-6ef876e8]{width:80px;height:80px;border-radius:4px;background:#fff;flex-shrink:0;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#bbb;font-size:11px;text-align:center;border:1px solid #f0f0f0}.goods-img img[data-v-6ef876e8]{width:100%;height:100%;object-fit:contain}.goods-meta[data-v-6ef876e8]{flex:1;min-width:0;padding-right:36px}.goods-title[data-v-6ef876e8]{display:-webkit-box;font-size:14px;font-weight:700;color:#111;line-height:20px;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.meta-row[data-v-6ef876e8]{min-width:0;font-size:12px;line-height:18px;margin-bottom:2px;color:#000000a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-grid[data-v-6ef876e8]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px}.more-link[data-v-6ef876e8]{position:absolute;right:10px;bottom:8px;color:#2783f2;font-size:12px;cursor:pointer}.extra-fields[data-v-6ef876e8]{margin-top:6px;padding-top:6px;border-top:1px dashed #e8e8e8}.gcs-ft[data-v-6ef876e8]{padding:12px 20px;border-top:1px solid #e8e8e8;text-align:right}.gcs-save[data-v-6ef876e8]{margin-left:8px}
@@ -1,6 +1,6 @@
1
- import { f as s, a as d } from "./formItemFooter-DU5t2yPc.js";
1
+ import { f as s, a as d } from "./formItemFooter-BaT5zHHA.js";
2
2
  import { resolveComponent as o, openBlock as u, createElementBlock as i, createVNode as t, createElementVNode as f } from "vue";
3
- import { _ } from "./install-Bz_yfXDQ.js";
3
+ import { _ } from "./install-uilpCuAu.js";
4
4
  const p = {
5
5
  name: "dateForm",
6
6
  components: { formItemTop: d, formItemFooter: s },
@@ -1,6 +1,6 @@
1
- import { a as f, f as _ } from "./formItemFooter-DU5t2yPc.js";
1
+ import { a as f, f as _ } from "./formItemFooter-BaT5zHHA.js";
2
2
  import { resolveComponent as n, openBlock as o, createElementBlock as t, createVNode as a, createElementVNode as p, Fragment as h, renderList as v, createCommentVNode as F } from "vue";
3
- import { _ as g } from "./install-Bz_yfXDQ.js";
3
+ import { _ as g } from "./install-uilpCuAu.js";
4
4
  const V = {
5
5
  name: "radioForm",
6
6
  components: { formItemFooter: _, formItemTop: f },
@@ -1,6 +1,6 @@
1
- import { a as d, f as s } from "./formItemFooter-DU5t2yPc.js";
1
+ import { a as d, f as s } from "./formItemFooter-BaT5zHHA.js";
2
2
  import { resolveComponent as o, openBlock as u, createElementBlock as i, createVNode as n, createElementVNode as f } from "vue";
3
- import { _ } from "./install-Bz_yfXDQ.js";
3
+ import { _ } from "./install-uilpCuAu.js";
4
4
  const p = {
5
5
  name: "dateDualForm",
6
6
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as g, b as w } from "./install-Bz_yfXDQ.js";
1
+ import { _ as g, b as w } from "./install-uilpCuAu.js";
2
2
  import { resolveComponent as p, openBlock as l, createElementBlock as o, createVNode as u, createElementVNode as i, withCtx as h, Fragment as b, renderList as _, createCommentVNode as I } from "vue";
3
3
  const v = {
4
4
  name: "paraExplainSet",
@@ -1,8 +1,8 @@
1
1
  import { debounce as V } from "lodash";
2
- import { _ as U, p as z, i as P } from "./install-Bz_yfXDQ.js";
2
+ import { _ as U, p as z, i as P } from "./install-uilpCuAu.js";
3
3
  import { f as $ } from "./fileFormData-D_Q1vylE.js";
4
4
  import { resolveComponent as d, openBlock as i, createElementBlock as p, createElementVNode as r, createVNode as h, withCtx as u, createTextVNode as y, toDisplayString as I, withDirectives as x, vShow as Y, createCommentVNode as f, resolveDirective as M, createBlock as _, Fragment as S, renderList as T } from "vue";
5
- import { a as j, f as H } from "./formItemFooter-DU5t2yPc.js";
5
+ import { a as j, f as H } from "./formItemFooter-BaT5zHHA.js";
6
6
  const R = {
7
7
  name: "childFormFile",
8
8
  props: {
@@ -1,6 +1,6 @@
1
1
  import { debounce as h } from "lodash";
2
2
  import { resolveComponent as n, openBlock as f, createElementBlock as w, createElementVNode as o, createVNode as l, withCtx as c, createTextVNode as r } from "vue";
3
- import { _ } from "./install-Bz_yfXDQ.js";
3
+ import { _ } from "./install-uilpCuAu.js";
4
4
  const g = {
5
5
  name: "BnAddressParse",
6
6
  props: {
@@ -1,7 +1,7 @@
1
- import { f as d, a as s } from "./formItemFooter-DU5t2yPc.js";
1
+ import { f as d, a as s } from "./formItemFooter-BaT5zHHA.js";
2
2
  import { debounce as f } from "lodash";
3
3
  import { resolveComponent as n, openBlock as i, createElementBlock as _, createVNode as t, createElementVNode as p } from "vue";
4
- import { _ as x } from "./install-Bz_yfXDQ.js";
4
+ import { _ as x } from "./install-uilpCuAu.js";
5
5
  const h = {
6
6
  name: "numberForm",
7
7
  components: { formItemTop: s, formItemFooter: d },
@@ -1,7 +1,7 @@
1
- import { f, a as h } from "./formItemFooter-DU5t2yPc.js";
1
+ import { f, a as h } from "./formItemFooter-BaT5zHHA.js";
2
2
  import { debounce as p } from "lodash";
3
3
  import { resolveComponent as m, openBlock as _, createElementBlock as I, createVNode as u, createElementVNode as x } from "vue";
4
- import { _ as v } from "./install-Bz_yfXDQ.js";
4
+ import { _ as v } from "./install-uilpCuAu.js";
5
5
  const B = {
6
6
  name: "numberForm",
7
7
  components: { formItemTop: h, formItemFooter: f },
@@ -1,6 +1,6 @@
1
- import { a as f, f as h } from "./formItemFooter-DU5t2yPc.js";
1
+ import { a as f, f as h } from "./formItemFooter-BaT5zHHA.js";
2
2
  import { resolveComponent as l, openBlock as o, createElementBlock as n, createVNode as m, createElementVNode as _, Fragment as p, renderList as k, createBlock as b, createCommentVNode as v } from "vue";
3
- import { _ as x } from "./install-Bz_yfXDQ.js";
3
+ import { _ as x } from "./install-uilpCuAu.js";
4
4
  const F = {
5
5
  name: "checkboxForm",
6
6
  components: {
@@ -1,6 +1,6 @@
1
- import { a as m, f as s } from "./formItemFooter-DU5t2yPc.js";
1
+ import { a as m, f as s } from "./formItemFooter-BaT5zHHA.js";
2
2
  import { resolveComponent as n, openBlock as d, createElementBlock as f, createVNode as l, createElementVNode as p } from "vue";
3
- import { _ as h } from "./install-Bz_yfXDQ.js";
3
+ import { _ as h } from "./install-uilpCuAu.js";
4
4
  const _ = {
5
5
  name: "relationForm",
6
6
  components: { formItemFooter: s, formItemTop: m },
@@ -1,7 +1,7 @@
1
1
  import { debounce as C } from "lodash";
2
- import { f as U, a as R } from "./formItemFooter-DU5t2yPc.js";
2
+ import { f as U, a as R } from "./formItemFooter-BaT5zHHA.js";
3
3
  import { resolveComponent as u, openBlock as r, createElementBlock as F, createVNode as i, createElementVNode as D, createBlock as d, withCtx as N, createTextVNode as S, toDisplayString as T, createCommentVNode as O } from "vue";
4
- import { _ as j } from "./install-Bz_yfXDQ.js";
4
+ import { _ as j } from "./install-uilpCuAu.js";
5
5
  const z = {
6
6
  name: "stringForm",
7
7
  components: { formItemTop: R, formItemFooter: U },
@@ -1,6 +1,6 @@
1
- import { a as i, f as s } from "./formItemFooter-DU5t2yPc.js";
1
+ import { a as i, f as s } from "./formItemFooter-BaT5zHHA.js";
2
2
  import { resolveComponent as o, openBlock as d, createElementBlock as r, createVNode as t, createElementVNode as f } from "vue";
3
- import { _ as p } from "./install-Bz_yfXDQ.js";
3
+ import { _ as p } from "./install-uilpCuAu.js";
4
4
  const h = {
5
5
  name: "editSelectCol",
6
6
  components: { formItemFooter: s, formItemTop: i },
@@ -1,8 +1,8 @@
1
1
  import { debounce as v } from "lodash";
2
- import { f, a as b } from "./formItemFooter-DU5t2yPc.js";
3
- import { B as w } from "./index-CzU2hlYh.js";
2
+ import { f, a as b } from "./formItemFooter-BaT5zHHA.js";
3
+ import { B as w } from "./index-BkPNKiXD.js";
4
4
  import { resolveComponent as t, openBlock as s, createElementBlock as B, createBlock as F, createCommentVNode as _, createVNode as a, createElementVNode as d } from "vue";
5
- import { _ as y } from "./install-Bz_yfXDQ.js";
5
+ import { _ as y } from "./install-uilpCuAu.js";
6
6
  const I = {
7
7
  name: "addressForm",
8
8
  components: { BnAddressParse: w, formItemTop: b, formItemFooter: f },