@bytenew/bn-bus-ui 1.1.495 → 1.1.496

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 (48) hide show
  1. package/README.md +637 -637
  2. package/common.scss +999 -999
  3. package/dist/{assocTableSearch-DViZb0gA.js → assocTableSearch-BJNOTiFq.js} +8 -8
  4. package/dist/assocTableSearch.css +1 -1
  5. package/dist/bn-bus-ui.es.js +8 -8
  6. package/dist/bn-bus-ui.umd.js +10 -10
  7. package/dist/{chooseIPaasData-B8ddt79b.js → chooseIPaasData-DtDXQdqf.js} +22 -22
  8. package/dist/chooseIPaasData.css +1 -1
  9. package/dist/{defaultSet-B402oLIT.js → defaultSet-DM15jdo6.js} +3 -3
  10. package/dist/defaultSet.css +1 -1
  11. package/dist/{formItemFooter-CwZdOJzW.js → formItemFooter-BlAP0u9p.js} +3 -3
  12. package/dist/formItemFooter.css +1 -1
  13. package/dist/{funcExprDialog-CcjwoqoN.js → funcExprDialog-Bdq9vsSK.js} +9 -9
  14. package/dist/funcExprDialog.css +1 -1
  15. package/dist/goodCardStyle-Ca9X5GCN.js +355 -0
  16. package/dist/goodCardStyle.css +1 -0
  17. package/dist/{index-CXofUPCx.js → index-B3by6bWv.js} +1 -1
  18. package/dist/{index-Bcqv45BA.js → index-B4D0M1IU.js} +2 -2
  19. package/dist/{index-cj34-hwX.js → index-BEfCknN3.js} +2 -2
  20. package/dist/{index-SyZYKih2.js → index-BHzeb9jc.js} +4 -4
  21. package/dist/{index-zCLB6SFf.js → index-B__3E1gh.js} +2 -2
  22. package/dist/{index-BT7ajxcZ.js → index-BrigPZGm.js} +2 -2
  23. package/dist/{index-BV5XXkgr.js → index-BwLAg36Q.js} +2 -2
  24. package/dist/{index-B-k6gVkf.js → index-C1YZaG_A.js} +2 -2
  25. package/dist/{index-CaHFmQfy.js → index-C90DnhuL.js} +19 -19
  26. package/dist/{index-arknSqxP.js → index-CH3s2ioT.js} +3 -3
  27. package/dist/{index-73A51cUL.js → index-CSxsrDWF.js} +98 -98
  28. package/dist/{index-CS6eWRg9.js → index-CSyQrRN1.js} +3 -3
  29. package/dist/{index-UqBpRRWc.js → index-DMcVrT6_.js} +3 -3
  30. package/dist/{index-JLi7ZziG.js → index-DeXuZmsT.js} +2 -2
  31. package/dist/{index-DXKM9i4V.js → index-QHGaC-kY.js} +2 -2
  32. package/dist/{index-HcLbduzL.js → index-nnq9B8Tl.js} +3 -3
  33. package/dist/{index-D2Y1cJpW.js → index-sIL2twYG.js} +2 -2
  34. package/dist/index.css +1 -1
  35. package/dist/index2.css +1 -1
  36. package/dist/index3.css +1 -1
  37. package/dist/index4.css +1 -1
  38. package/dist/index5.css +1 -1
  39. package/dist/index6.css +1 -1
  40. package/dist/index7.css +1 -1
  41. package/dist/{install-CPkSs04-.js → install-DjEA7lKm.js} +3050 -2923
  42. package/dist/install.css +1 -1
  43. package/dist/{setOption-BccoFI-z.js → setOption-CQqceE5H.js} +2 -2
  44. package/dist/setOption.css +1 -1
  45. package/dist/{setRelationOption-O5Meo1Kj.js → setRelationOption-Bq6laCRs.js} +4 -4
  46. package/dist/setRelationOption.css +1 -1
  47. package/package.json +48 -49
  48. package/packages/font/iconfont.css +243 -243
@@ -1,6 +1,6 @@
1
1
  import { cloneDeep as w } from "lodash";
2
- import { _, $ as N, a1 as E } from "./install-CPkSs04-.js";
3
- import { withDirectives as k, openBlock as u, createElementBlock as v, withModifiers as L, normalizeStyle as z, vShow as B, resolveComponent as h, resolveDirective as U, createBlock as C, withCtx as a, createVNode as r, createElementVNode as c, Fragment as D, renderList as P, createTextVNode as g, toDisplayString as x } from "vue";
2
+ import { _, g as N, a as E } from "./install-DjEA7lKm.js";
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",
6
6
  data() {
@@ -55,14 +55,14 @@ function H(s, e, n, o, t, l) {
55
55
  return k((u(), v("div", {
56
56
  class: "worksheetCopy",
57
57
  style: z(t.style),
58
- onMouseover: e[0] || (e[0] = (...d) => l.onMouseEvent && l.onMouseEvent(...d)),
59
- onMouseleave: e[1] || (e[1] = (...d) => l.onMouseEvent && l.onMouseEvent(...d)),
60
- onClick: e[2] || (e[2] = L((...d) => l.copyText && l.copyText(...d), ["stop"]))
58
+ onMouseover: e[0] || (e[0] = (...h) => l.onMouseEvent && l.onMouseEvent(...h)),
59
+ onMouseleave: e[1] || (e[1] = (...h) => l.onMouseEvent && l.onMouseEvent(...h)),
60
+ onClick: e[2] || (e[2] = L((...h) => l.copyText && l.copyText(...h), ["stop"]))
61
61
  }, "复制 ", 36)), [
62
62
  [B, t.visiable || t.isMouseIn]
63
63
  ]);
64
64
  }
65
- const O = /* @__PURE__ */ _(A, [["render", H], ["__scopeId", "data-v-684f7285"]]), j = {
65
+ const O = /* @__PURE__ */ _(A, [["render", H], ["__scopeId", "data-v-e720d7be"]]), j = {
66
66
  name: "chooseIPaasData",
67
67
  components: { tableCellCopy: O },
68
68
  props: {
@@ -196,7 +196,7 @@ const O = /* @__PURE__ */ _(A, [["render", H], ["__scopeId", "data-v-684f7285"]]
196
196
  }
197
197
  }, J = { class: "chooseIPaasData" }, R = { class: "chooseIPaasData-search w-margin-bottom10" }, q = { class: "w-flex-between w-margin-bottom10" }, K = { class: "w-flex-center" }, W = { class: "w-flex-center" }, G = { class: "w-flex-right w-flex-center" }, Q = { class: "w-font13 w-color-gray w-margin-right8" };
198
198
  function X(s, e, n, o, t, l) {
199
- const d = h("tableCellCopy"), I = h("BnAdvancedFilter"), m = h("el-button"), T = h("BnDrop"), b = h("vxe-column"), M = h("vxe-table"), S = h("el-pagination"), y = h("el-popover"), F = h("el-dialog"), V = U("loading");
199
+ const h = d("tableCellCopy"), I = d("BnAdvancedFilter"), m = d("el-button"), T = d("BnDrop"), x = d("vxe-column"), M = d("vxe-table"), S = d("el-pagination"), y = d("el-popover"), F = d("el-dialog"), V = U("loading");
200
200
  return u(), C(F, {
201
201
  modelValue: t.show,
202
202
  "onUpdate:modelValue": e[7] || (e[7] = (i) => t.show = i),
@@ -208,7 +208,7 @@ function X(s, e, n, o, t, l) {
208
208
  }, {
209
209
  footer: a(() => [
210
210
  c("div", G, [
211
- c("span", Q, "已选择(" + x(t.selectData.length) + "/" + x(t.orderList.length) + ")条", 1),
211
+ c("span", Q, "已选择(" + b(t.selectData.length) + "/" + b(t.orderList.length) + ")条", 1),
212
212
  r(S, {
213
213
  class: "w-margin-right8",
214
214
  background: "",
@@ -224,7 +224,7 @@ function X(s, e, n, o, t, l) {
224
224
  onClick: e[4] || (e[4] = (i) => t.show = !1)
225
225
  }, {
226
226
  default: a(() => [...e[11] || (e[11] = [
227
- g("取消", -1)
227
+ f("取消", -1)
228
228
  ])]),
229
229
  _: 1
230
230
  }),
@@ -240,7 +240,7 @@ function X(s, e, n, o, t, l) {
240
240
  disabled: t.selectData.length == 0
241
241
  }, {
242
242
  default: a(() => [...e[12] || (e[12] = [
243
- g("确认追加", -1)
243
+ f("确认追加", -1)
244
244
  ])]),
245
245
  _: 1
246
246
  }, 8, ["disabled"])
@@ -262,7 +262,7 @@ function X(s, e, n, o, t, l) {
262
262
  disabled: t.selectData.length == 0
263
263
  }, {
264
264
  default: a(() => [...e[14] || (e[14] = [
265
- g("确认覆盖", -1)
265
+ f("确认覆盖", -1)
266
266
  ])]),
267
267
  _: 1
268
268
  }, 8, ["disabled"])
@@ -275,7 +275,7 @@ function X(s, e, n, o, t, l) {
275
275
  ])
276
276
  ]),
277
277
  default: a(() => [
278
- r(d, { ref: "childTableCopy" }, null, 512),
278
+ r(h, { ref: "childTableCopy" }, null, 512),
279
279
  c("div", J, [
280
280
  c("div", R, [
281
281
  (u(!0), v(D, null, P(t.searchPost.conditions, (i, p) => (u(), v("div", {
@@ -284,12 +284,12 @@ function X(s, e, n, o, t, l) {
284
284
  }, [
285
285
  r(I, {
286
286
  modelValue: t.searchPost.conditions[p],
287
- "onUpdate:modelValue": (f) => t.searchPost.conditions[p] = f,
287
+ "onUpdate:modelValue": (g) => t.searchPost.conditions[p] = g,
288
288
  columnList: t.searchColumns,
289
- onValueChange: e[0] || (e[0] = (f) => l.search()),
289
+ onValueChange: e[0] || (e[0] = (g) => l.search()),
290
290
  allowSearchType: !1,
291
291
  allowDel: "",
292
- onDel: (f) => t.searchPost.conditions.splice(p, 1),
292
+ onDel: (g) => t.searchPost.conditions.splice(p, 1),
293
293
  postFunc: n.postFunc,
294
294
  pathUrl: i.pathUrl,
295
295
  postData: i.postData
@@ -311,7 +311,7 @@ function X(s, e, n, o, t, l) {
311
311
  link: ""
312
312
  }, {
313
313
  default: a(() => [...e[8] || (e[8] = [
314
- g(" + 添加筛选条件", -1)
314
+ f(" + 添加筛选条件", -1)
315
315
  ])]),
316
316
  _: 1
317
317
  })
@@ -325,7 +325,7 @@ function X(s, e, n, o, t, l) {
325
325
  onClick: l.search
326
326
  }, {
327
327
  default: a(() => [...e[9] || (e[9] = [
328
- g("筛选", -1)
328
+ f("筛选", -1)
329
329
  ])]),
330
330
  _: 1
331
331
  }, 8, ["onClick"])
@@ -355,12 +355,12 @@ function X(s, e, n, o, t, l) {
355
355
  c("span", null, "暂无数据", -1)
356
356
  ])]),
357
357
  default: a(() => [
358
- r(b, {
358
+ r(x, {
359
359
  type: "checkbox",
360
360
  width: "32",
361
361
  fixed: "left"
362
362
  }),
363
- (u(!0), v(D, null, P(t.columnData.moduleDefinition, (i, p) => (u(), C(b, {
363
+ (u(!0), v(D, null, P(t.columnData.moduleDefinition, (i, p) => (u(), C(x, {
364
364
  visible: i.extraInfo.isAddable == 1,
365
365
  title: i.name,
366
366
  field: i.columnCode,
@@ -370,8 +370,8 @@ function X(s, e, n, o, t, l) {
370
370
  "show-overflow": "title",
371
371
  "show-footer-overflow": ""
372
372
  }, {
373
- default: a((f) => [
374
- c("span", null, x(l.getTitle(i, f.row[i.columnCode])), 1)
373
+ default: a((g) => [
374
+ c("span", null, b(l.getTitle(i, g.row[i.columnCode])), 1)
375
375
  ]),
376
376
  _: 2
377
377
  }, 1032, ["visible", "title", "field"]))), 128))
@@ -385,7 +385,7 @@ function X(s, e, n, o, t, l) {
385
385
  _: 1
386
386
  }, 8, ["modelValue", "title"]);
387
387
  }
388
- const ee = /* @__PURE__ */ _(j, [["render", X], ["__scopeId", "data-v-67f946e1"]]);
388
+ const ee = /* @__PURE__ */ _(j, [["render", X], ["__scopeId", "data-v-b4caebe4"]]);
389
389
  export {
390
390
  ee as default
391
391
  };
@@ -1 +1 @@
1
- .worksheetCopy[data-v-684f7285]{position:fixed;width:34px;height:22px;line-height:22px;text-align:center;background-color:#3333334d;color:#fff;font-size:12px;z-index:999999}.worksheetCopy[data-v-684f7285]:hover{background-color:#65acff;cursor:pointer}.chooseIPaasData[data-v-67f946e1]{height:100%;overflow:hidden}.chooseIPaasData-search[data-v-67f946e1]{display:flex;flex-wrap:wrap;max-height:142px;overflow-y:auto;gap:10px 18px}.chooseIPaasData-search-item[data-v-67f946e1]{width:calc(33.33% - 18px);flex-grow:0}.chooseIPaasData-out[data-v-67f946e1] .vxe-table--header .vxe-header--row{background-color:#ecf5ff}
1
+ .worksheetCopy[data-v-e720d7be]{position:fixed;width:34px;height:22px;line-height:22px;text-align:center;background-color:#3333334d;color:#fff;font-size:12px;z-index:999999}.worksheetCopy[data-v-e720d7be]:hover{background-color:#65acff;cursor:pointer}.chooseIPaasData[data-v-b4caebe4]{height:100%;overflow:hidden}.chooseIPaasData-search[data-v-b4caebe4]{display:flex;flex-wrap:wrap;max-height:142px;overflow-y:auto;gap:10px 18px}.chooseIPaasData-search-item[data-v-b4caebe4]{width:calc(33.33% - 18px);flex-grow:0}.chooseIPaasData-out[data-v-b4caebe4] .vxe-table--header .vxe-header--row{background-color:#ecf5ff}
@@ -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-CPkSs04-.js";
2
+ import { _ as C } from "./install-DjEA7lKm.js";
3
3
  import { cloneDeep as g } from "lodash";
4
4
  const x = {
5
5
  name: "defaultSet",
@@ -141,7 +141,7 @@ function w(t, l, n, o, i, e) {
141
141
  }, 8, ["modelValue", "onChange"])
142
142
  ]);
143
143
  }
144
- const T = /* @__PURE__ */ C(x, [["render", w], ["__scopeId", "data-v-f34e4372"]]), k = {
144
+ const T = /* @__PURE__ */ C(x, [["render", w], ["__scopeId", "data-v-184e31ec"]]), k = {
145
145
  name: "defaultSet",
146
146
  components: { stringDefault: T },
147
147
  props: {
@@ -292,7 +292,7 @@ function L(t, l, n, o, i, e) {
292
292
  ])) : r("", !0)
293
293
  ]);
294
294
  }
295
- const E = /* @__PURE__ */ C(k, [["render", L], ["__scopeId", "data-v-b47a6b44"]]);
295
+ const E = /* @__PURE__ */ C(k, [["render", L], ["__scopeId", "data-v-ba07fe33"]]);
296
296
  export {
297
297
  E as default
298
298
  };
@@ -1 +1 @@
1
- .defaultSet[data-v-f34e4372],.defaultSet[data-v-b47a6b44]{position:relative;width:100%}
1
+ .defaultSet[data-v-184e31ec],.defaultSet[data-v-ba07fe33]{position:relative;width:100%}
@@ -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-CPkSs04-.js";
2
+ import { _ as v } from "./install-DjEA7lKm.js";
3
3
  const F = {
4
4
  name: "formItemTop",
5
5
  props: {
@@ -56,7 +56,7 @@ function U(d, t, e, I, h, k) {
56
56
  })) : a("", !0)
57
57
  ], 2);
58
58
  }
59
- const R = /* @__PURE__ */ v(F, [["render", U], ["__scopeId", "data-v-2ae0a737"]]), E = {
59
+ const R = /* @__PURE__ */ v(F, [["render", U], ["__scopeId", "data-v-6a75fe5e"]]), E = {
60
60
  name: "formItemFooter",
61
61
  props: {
62
62
  //组件对象
@@ -101,7 +101,7 @@ function T(d, t, e, I, h, k) {
101
101
  ])) : a("", !0)
102
102
  ]);
103
103
  }
104
- const z = /* @__PURE__ */ v(E, [["render", T], ["__scopeId", "data-v-101622e9"]]);
104
+ const z = /* @__PURE__ */ v(E, [["render", T], ["__scopeId", "data-v-0d4387e0"]]);
105
105
  export {
106
106
  R as a,
107
107
  z as f
@@ -1 +1 @@
1
- .BnSmartForm-title[data-v-2ae0a737]{height:32px;line-height:32px;font-size:14px;color:#666}.BnSmartForm-title-tip[data-v-2ae0a737]{font-size:12px;color:#777}.BnSmartForm-explain[data-v-2ae0a737]{margin-top:5px;color:#888;font-size:12px}.BnSmartForm-img[data-v-2ae0a737]{margin-top:8px}.BnSmartForm-img-item[data-v-2ae0a737]{display:inline-block;width:46px;height:46px;margin-right:8px;border-radius:4px;border:1px solid #E6E6E6}.BnSmartForm-img-item img[data-v-2ae0a737]{width:100%;height:100%;border-radius:4px}.BnSmartForm-tips[data-v-2ae0a737]{line-height:32px;font-size:12px}.BnSmartForm-title[data-v-101622e9]{height:32px;line-height:32px;font-size:14px;color:#666}.BnSmartForm-title-tip[data-v-101622e9]{font-size:12px;color:#777}.BnSmartForm-explain[data-v-101622e9]{margin-top:5px;color:#888;font-size:12px}.BnSmartForm-img[data-v-101622e9]{margin-top:8px}.BnSmartForm-img-item[data-v-101622e9]{display:inline-block;width:46px;height:46px;margin-right:8px;border-radius:4px;border:1px solid #E6E6E6}.BnSmartForm-img-item img[data-v-101622e9]{width:100%;height:100%;border-radius:4px}.BnSmartForm-tips[data-v-101622e9]{line-height:32px;font-size:12px}
1
+ .BnSmartForm-title[data-v-6a75fe5e]{height:32px;line-height:32px;font-size:14px;color:#666}.BnSmartForm-title-tip[data-v-6a75fe5e]{font-size:12px;color:#777}.BnSmartForm-explain[data-v-6a75fe5e]{margin-top:5px;color:#888;font-size:12px}.BnSmartForm-img[data-v-6a75fe5e]{margin-top:8px}.BnSmartForm-img-item[data-v-6a75fe5e]{display:inline-block;width:46px;height:46px;margin-right:8px;border-radius:4px;border:1px solid #E6E6E6}.BnSmartForm-img-item img[data-v-6a75fe5e]{width:100%;height:100%;border-radius:4px}.BnSmartForm-tips[data-v-6a75fe5e]{line-height:32px;font-size:12px}.BnSmartForm-title[data-v-0d4387e0]{height:32px;line-height:32px;font-size:14px;color:#666}.BnSmartForm-title-tip[data-v-0d4387e0]{font-size:12px;color:#777}.BnSmartForm-explain[data-v-0d4387e0]{margin-top:5px;color:#888;font-size:12px}.BnSmartForm-img[data-v-0d4387e0]{margin-top:8px}.BnSmartForm-img-item[data-v-0d4387e0]{display:inline-block;width:46px;height:46px;margin-right:8px;border-radius:4px;border:1px solid #E6E6E6}.BnSmartForm-img-item img[data-v-0d4387e0]{width:100%;height:100%;border-radius:4px}.BnSmartForm-tips[data-v-0d4387e0]{line-height:32px;font-size:12px}
@@ -1,5 +1,5 @@
1
- import { resolveComponent as i, openBlock as c, createBlock as f, withCtx as n, createCommentVNode as v, createElementVNode as r, createVNode as a, createTextVNode as u } from "vue";
2
- import { _ as I } from "./install-CPkSs04-.js";
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-DjEA7lKm.js";
3
3
  const _ = {
4
4
  name: "funcExprDialog",
5
5
  props: {
@@ -74,10 +74,10 @@ const _ = {
74
74
  }
75
75
  }, g = { class: "dialog-footer" };
76
76
  function y(t, e, l, d, o, s) {
77
- const h = i("BnFunExpr"), x = i("el-link"), p = i("el-button"), b = i("el-dialog");
78
- return c(), f(b, {
77
+ const h = i("BnFunExpr"), x = i("el-link"), p = i("el-button"), v = i("el-dialog");
78
+ return m(), c(v, {
79
79
  modelValue: o.visible,
80
- "onUpdate:modelValue": e[1] || (e[1] = (m) => o.visible = m),
80
+ "onUpdate:modelValue": e[1] || (e[1] = (f) => o.visible = f),
81
81
  title: "编辑函数",
82
82
  top: "5vh",
83
83
  "close-on-click-modal": !1,
@@ -101,7 +101,7 @@ function y(t, e, l, d, o, s) {
101
101
  ]),
102
102
  r("div", null, [
103
103
  a(p, {
104
- onClick: e[0] || (e[0] = (m) => o.visible = !1)
104
+ onClick: e[0] || (e[0] = (f) => o.visible = !1)
105
105
  }, {
106
106
  default: n(() => [...e[3] || (e[3] = [
107
107
  u("取消", -1)
@@ -122,18 +122,18 @@ function y(t, e, l, d, o, s) {
122
122
  ])
123
123
  ]),
124
124
  default: n(() => [
125
- o.visible ? (c(), f(h, {
125
+ o.visible ? (m(), c(h, {
126
126
  key: 0,
127
127
  id: s.columnInfo.extraInfo.exprId,
128
128
  "column-list": s.columnList,
129
129
  ref: "bnFunExpr",
130
130
  "post-func": l.postFunc
131
- }, null, 8, ["id", "column-list", "post-func"])) : v("", !0)
131
+ }, null, 8, ["id", "column-list", "post-func"])) : b("", !0)
132
132
  ]),
133
133
  _: 1
134
134
  }, 8, ["modelValue"]);
135
135
  }
136
- const F = /* @__PURE__ */ I(_, [["render", y], ["__scopeId", "data-v-d954db8c"]]);
136
+ const F = /* @__PURE__ */ I(_, [["render", y], ["__scopeId", "data-v-9fc70d3d"]]);
137
137
  export {
138
138
  F as default
139
139
  };
@@ -1 +1 @@
1
- .dialog-footer[data-v-d954db8c]{display:flex;justify-content:space-between;position:relative}
1
+ .dialog-footer[data-v-9fc70d3d]{display:flex;justify-content:space-between;position:relative}
@@ -0,0 +1,355 @@
1
+ import { resolveComponent as p, openBlock as o, createBlock as w, withCtx as u, createElementVNode as i, createTextVNode as c, createVNode as f, createElementBlock as r, Fragment as m, renderList as g, toDisplayString as v, createCommentVNode as y } from "vue";
2
+ import { _ as P } from "./install-DjEA7lKm.js";
3
+ const I = {
4
+ text: "示例内容",
5
+ titleMap: {
6
+ "尺寸/颜色": "200*220CM",
7
+ 规格: "200*220CM",
8
+ 商品名称: "舒达保护垫"
9
+ },
10
+ valueMap: {
11
+ 商品名称: "舒达保护垫",
12
+ "尺寸/颜色": "200*220CM",
13
+ 商品编码: "301080002.0013",
14
+ 补发数量: "1",
15
+ 规格: "标准款",
16
+ 单价: "89.00"
17
+ },
18
+ image: "https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_34f924c8f0fd28d47b8031a970959b90.png"
19
+ };
20
+ function _(s) {
21
+ return s ? {
22
+ id: s.id,
23
+ title: s.name || "",
24
+ behaviorType: s.behaviorType,
25
+ columnCode: s.columnCode || s.key || s.insideDataSourceInfo && s.insideDataSourceInfo.field || ""
26
+ } : { id: "", title: "", behaviorType: "", columnCode: "" };
27
+ }
28
+ function T(s) {
29
+ if (!s || s.goodCardStyle == null || s.goodCardStyle === "")
30
+ return null;
31
+ try {
32
+ const e = typeof s.goodCardStyle == "string" ? JSON.parse(s.goodCardStyle) : s.goodCardStyle;
33
+ if (e && typeof e == "object" && !Array.isArray(e))
34
+ return e;
35
+ } catch {
36
+ return null;
37
+ }
38
+ return null;
39
+ }
40
+ const V = {
41
+ name: "goodCardStyle",
42
+ props: {
43
+ visible: {
44
+ type: Boolean,
45
+ default: !1
46
+ },
47
+ sourceData: {
48
+ type: Object,
49
+ default() {
50
+ return { extraInfo: {}, style: {}, moduleDefinition: [] };
51
+ }
52
+ }
53
+ },
54
+ data() {
55
+ return {
56
+ form: {
57
+ goodPicId: "",
58
+ goodTitleId: "",
59
+ previewIds: []
60
+ },
61
+ extraOpen: !1
62
+ };
63
+ },
64
+ computed: {
65
+ dialogVisible: {
66
+ get() {
67
+ return this.visible;
68
+ },
69
+ set(s) {
70
+ this.$emit("update:visible", s);
71
+ }
72
+ },
73
+ moduleList() {
74
+ const s = this.sourceData && this.sourceData.moduleDefinition;
75
+ return Array.isArray(s) ? s : [];
76
+ },
77
+ imageColumns() {
78
+ return this.moduleList.filter((s) => s.behaviorType == 10);
79
+ },
80
+ textColumns() {
81
+ return this.moduleList.filter((s) => [1, 2, 3, 4, 5, 6, 7].includes(Number(s.behaviorType)));
82
+ },
83
+ previewTags() {
84
+ return this.form.previewIds.map((s) => this.moduleList.find((e) => e.id == s)).filter(Boolean);
85
+ },
86
+ hasAnyConfig() {
87
+ return !!(this.form.goodPicId || this.form.goodTitleId || this.form.previewIds.length);
88
+ },
89
+ previewImage() {
90
+ return this.form.goodPicId ? I.image : "";
91
+ },
92
+ previewTitle() {
93
+ if (!this.form.goodTitleId) return "";
94
+ const s = this.moduleList.find((e) => e.id == this.form.goodTitleId);
95
+ return s && (I.titleMap[s.name] || s.name) || "—";
96
+ },
97
+ previewOnlyIds() {
98
+ return (this.form.previewIds || []).filter((s) => s != this.form.goodTitleId && s != this.form.goodPicId);
99
+ },
100
+ shownPreviewRows() {
101
+ return this.previewOnlyIds.slice(0, 3).map((s) => this.formatPreviewRow(s));
102
+ },
103
+ extraPreviewRows() {
104
+ const s = this.previewOnlyIds.slice(3).map((n) => this.formatPreviewRow(n)), a = this.textColumns.filter((n) => n.id != this.form.goodTitleId && !this.previewOnlyIds.includes(n.id)).map((n) => n.id).map((n) => this.formatPreviewRow(n));
105
+ return s.concat(a);
106
+ }
107
+ },
108
+ watch: {
109
+ visible(s) {
110
+ s && this.initForm();
111
+ }
112
+ },
113
+ methods: {
114
+ initForm() {
115
+ const s = T(this.sourceData.style), e = s && s.goodPic && s.goodPic.id, a = s && s.goodTitle && s.goodTitle.id, n = s && Array.isArray(s.previews) ? s.previews.map((d) => d && d.id).filter(Boolean) : [];
116
+ this.form = {
117
+ goodPicId: this.stillExists(e, this.imageColumns) ? e : "",
118
+ goodTitleId: this.stillExists(a, this.textColumns) ? a : "",
119
+ previewIds: n.filter((d) => this.stillExists(d, this.textColumns))
120
+ }, this.extraOpen = !1;
121
+ },
122
+ stillExists(s, e) {
123
+ return s != null && s !== "" && e.some((a) => a.id == s);
124
+ },
125
+ formatPreviewRow(s) {
126
+ const e = this.moduleList.find((n) => n.id == s);
127
+ if (!e) return "";
128
+ const a = I.valueMap[e.name] || I.text;
129
+ return `${e.name}:${a}`;
130
+ },
131
+ removePreview(s) {
132
+ this.form.previewIds = this.form.previewIds.filter((e) => e != s);
133
+ },
134
+ findColumn(s) {
135
+ return this.moduleList.find((e) => e.id == s);
136
+ },
137
+ handleCancel() {
138
+ this.dialogVisible = !1;
139
+ },
140
+ handleSave() {
141
+ if (!this.form.goodPicId) {
142
+ this.$message.warning("请配置商品图片");
143
+ return;
144
+ }
145
+ if (!this.form.goodTitleId) {
146
+ this.$message.warning("请配置标题字段");
147
+ return;
148
+ }
149
+ if (!this.form.previewIds.length) {
150
+ this.$message.warning("请至少选择一个预览字段");
151
+ return;
152
+ }
153
+ this.sourceData.style || (this.sourceData.style = {});
154
+ const s = {
155
+ goodPic: _(this.findColumn(this.form.goodPicId)),
156
+ goodTitle: _(this.findColumn(this.form.goodTitleId)),
157
+ previews: this.form.previewIds.map((e) => _(this.findColumn(e))).filter((e) => e.id !== "")
158
+ };
159
+ this.sourceData.style = {
160
+ ...this.sourceData.style,
161
+ goodCardStyle: s
162
+ }, this.$message.success("商品卡片配置已保存"), this.dialogVisible = !1;
163
+ }
164
+ }
165
+ }, D = { class: "gcs-hd" }, S = { class: "gcs-bd" }, R = { class: "gcs-left" }, O = { class: "gcs-item" }, L = { class: "gcs-item" }, A = { class: "gcs-item" }, E = {
166
+ key: 0,
167
+ class: "gcs-tags"
168
+ }, M = ["onClick"], N = { class: "gcs-right" }, U = {
169
+ key: 0,
170
+ class: "gcs-empty"
171
+ }, B = {
172
+ key: 1,
173
+ class: "gcs-preview-box"
174
+ }, j = { class: "goods-card" }, F = { class: "goods-img" }, G = ["src"], z = { key: 1 }, H = { class: "goods-meta" }, J = {
175
+ key: 0,
176
+ class: "goods-title"
177
+ }, W = {
178
+ key: 1,
179
+ class: "extra-fields"
180
+ }, Y = { class: "gcs-ft" };
181
+ function q(s, e, a, n, d, l) {
182
+ const C = p("el-option"), b = p("el-select"), x = p("el-button"), k = p("el-dialog");
183
+ return o(), w(k, {
184
+ modelValue: l.dialogVisible,
185
+ "onUpdate:modelValue": e[5] || (e[5] = (t) => l.dialogVisible = t),
186
+ class: "goods-card-style-dialog",
187
+ "append-to-body": !0,
188
+ "close-on-click-modal": !1,
189
+ "show-close": !1,
190
+ width: "880px",
191
+ top: "8vh",
192
+ "destroy-on-close": ""
193
+ }, {
194
+ default: u(() => [
195
+ i("div", D, [
196
+ e[6] || (e[6] = i("div", null, [
197
+ i("div", { class: "gcs-hd-title" }, "商品卡片配置"),
198
+ i("div", { class: "gcs-hd-sub" }, "PLUGIN DISPLAY / CARD"),
199
+ i("div", { class: "gcs-hd-desc" }, "以下配置将用于插件端筛选、添加时的默认商品卡片展示")
200
+ ], -1)),
201
+ i("span", {
202
+ class: "bnUIcon bnUIcon-close gcs-hd-close",
203
+ onClick: e[0] || (e[0] = (...t) => l.handleCancel && l.handleCancel(...t))
204
+ })
205
+ ]),
206
+ i("div", S, [
207
+ i("div", R, [
208
+ i("div", O, [
209
+ e[7] || (e[7] = i("div", { class: "gcs-lab" }, [
210
+ c(" 商品图片 "),
211
+ i("span", { class: "gcs-chip red" }, "只能选择1个")
212
+ ], -1)),
213
+ e[8] || (e[8] = i("div", { class: "gcs-hint" }, "选择卡片左侧展示的商品图片字段", -1)),
214
+ f(b, {
215
+ modelValue: d.form.goodPicId,
216
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => d.form.goodPicId = t),
217
+ filterable: "",
218
+ clearable: "",
219
+ placeholder: "请选择一个图片字段",
220
+ style: { width: "100%" }
221
+ }, {
222
+ default: u(() => [
223
+ (o(!0), r(m, null, g(l.imageColumns, (t) => (o(), w(C, {
224
+ key: t.id,
225
+ label: t.name,
226
+ value: t.id
227
+ }, null, 8, ["label", "value"]))), 128))
228
+ ]),
229
+ _: 1
230
+ }, 8, ["modelValue"])
231
+ ]),
232
+ i("div", L, [
233
+ e[9] || (e[9] = i("div", { class: "gcs-lab" }, [
234
+ c(" 标题字段 "),
235
+ i("span", { class: "gcs-chip red" }, "只能选择1个")
236
+ ], -1)),
237
+ e[10] || (e[10] = i("div", { class: "gcs-hint" }, "展示在图片右侧第一行,加粗显示,不展示组件名称", -1)),
238
+ f(b, {
239
+ modelValue: d.form.goodTitleId,
240
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => d.form.goodTitleId = t),
241
+ filterable: "",
242
+ clearable: "",
243
+ placeholder: "请选择一个标题字段",
244
+ style: { width: "100%" }
245
+ }, {
246
+ default: u(() => [
247
+ (o(!0), r(m, null, g(l.textColumns, (t) => (o(), w(C, {
248
+ key: t.id,
249
+ label: t.name,
250
+ value: t.id
251
+ }, null, 8, ["label", "value"]))), 128))
252
+ ]),
253
+ _: 1
254
+ }, 8, ["modelValue"])
255
+ ]),
256
+ i("div", A, [
257
+ e[11] || (e[11] = i("div", { class: "gcs-lab" }, [
258
+ c(" 预览字段 "),
259
+ i("span", { class: "gcs-chip blue" }, "多选")
260
+ ], -1)),
261
+ e[12] || (e[12] = i("div", { class: "gcs-hint" }, "卡片默认展示前 3 个字段,点击「更多」可查看剩余字段", -1)),
262
+ f(b, {
263
+ modelValue: d.form.previewIds,
264
+ "onUpdate:modelValue": e[3] || (e[3] = (t) => d.form.previewIds = t),
265
+ multiple: "",
266
+ filterable: "",
267
+ "collapse-tags": "",
268
+ "collapse-tags-tooltip": "",
269
+ placeholder: "请选择预览字段(可多选)",
270
+ style: { width: "100%" }
271
+ }, {
272
+ default: u(() => [
273
+ (o(!0), r(m, null, g(l.textColumns, (t) => (o(), w(C, {
274
+ key: t.id,
275
+ label: t.name,
276
+ value: t.id
277
+ }, null, 8, ["label", "value"]))), 128))
278
+ ]),
279
+ _: 1
280
+ }, 8, ["modelValue"]),
281
+ l.previewTags.length ? (o(), r("div", E, [
282
+ (o(!0), r(m, null, g(l.previewTags, (t) => (o(), r("span", {
283
+ key: t.id,
284
+ class: "gcs-tag"
285
+ }, [
286
+ c(v(t.name) + " ", 1),
287
+ i("i", {
288
+ class: "gcs-tag-rm",
289
+ onClick: (h) => l.removePreview(t.id)
290
+ }, "×", 8, M)
291
+ ]))), 128))
292
+ ])) : y("", !0)
293
+ ])
294
+ ]),
295
+ i("div", N, [
296
+ e[13] || (e[13] = i("div", { class: "gcs-right-title" }, "效果预览", -1)),
297
+ e[14] || (e[14] = i("div", { class: "gcs-right-sub" }, "插件端筛选卡片", -1)),
298
+ l.hasAnyConfig ? (o(), r("div", B, [
299
+ i("div", j, [
300
+ i("div", F, [
301
+ l.previewImage ? (o(), r("img", {
302
+ key: 0,
303
+ src: l.previewImage,
304
+ alt: ""
305
+ }, null, 8, G)) : (o(), r("span", z, "未配置主图"))
306
+ ]),
307
+ i("div", H, [
308
+ l.previewTitle ? (o(), r("div", J, v(l.previewTitle), 1)) : y("", !0),
309
+ (o(!0), r(m, null, g(l.shownPreviewRows, (t, h) => (o(), r("div", {
310
+ key: h,
311
+ class: "meta-row"
312
+ }, v(t), 1))), 128)),
313
+ l.extraPreviewRows.length && d.extraOpen ? (o(), r("div", W, [
314
+ (o(!0), r(m, null, g(l.extraPreviewRows, (t, h) => (o(), r("div", {
315
+ key: "e" + h,
316
+ class: "meta-row"
317
+ }, v(t), 1))), 128))
318
+ ])) : y("", !0)
319
+ ]),
320
+ l.extraPreviewRows.length ? (o(), r("span", {
321
+ key: 0,
322
+ class: "more-link",
323
+ onClick: e[4] || (e[4] = (t) => d.extraOpen = !d.extraOpen)
324
+ }, v(d.extraOpen ? "收起" : "更多 >"), 1)) : y("", !0)
325
+ ])
326
+ ])) : (o(), r("div", U, "请先选择商品图片、标题字段和预览字段")),
327
+ e[15] || (e[15] = i("div", { class: "gcs-right-tip" }, "配置字段变化后,卡片会自动更新", -1))
328
+ ])
329
+ ]),
330
+ i("div", Y, [
331
+ f(x, { onClick: l.handleCancel }, {
332
+ default: u(() => [...e[16] || (e[16] = [
333
+ c("取 消", -1)
334
+ ])]),
335
+ _: 1
336
+ }, 8, ["onClick"]),
337
+ f(x, {
338
+ type: "primary",
339
+ class: "gcs-save",
340
+ onClick: l.handleSave
341
+ }, {
342
+ default: u(() => [...e[17] || (e[17] = [
343
+ c("保存配置", -1)
344
+ ])]),
345
+ _: 1
346
+ }, 8, ["onClick"])
347
+ ])
348
+ ]),
349
+ _: 1
350
+ }, 8, ["modelValue"]);
351
+ }
352
+ const X = /* @__PURE__ */ P(V, [["render", q], ["__scopeId", "data-v-62de215f"]]);
353
+ export {
354
+ X as default
355
+ };
@@ -0,0 +1 @@
1
+ .goods-card-style-dialog .el-dialog__header{display:none}.goods-card-style-dialog .el-dialog__body{padding:0}.gcs-hd[data-v-62de215f]{padding:16px 20px 12px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #e8e8e8}.gcs-hd-title[data-v-62de215f]{font-size:16px;font-weight:600;color:#000000d9}.gcs-hd-sub[data-v-62de215f]{font-size:11px;letter-spacing:1px;color:#8aa0b8;margin-top:4px}.gcs-hd-desc[data-v-62de215f]{font-size:12px;color:#00000073;margin-top:8px}.gcs-hd-close[data-v-62de215f]{cursor:pointer;font-size:14px;color:#00000073;line-height:1}.gcs-bd[data-v-62de215f]{padding:16px 20px;display:flex;gap:20px;max-height:72vh;overflow:auto}.gcs-left[data-v-62de215f]{flex:1;min-width:0}.gcs-right[data-v-62de215f]{width:320px;flex-shrink:0;background:#f7f9fc;border-radius:8px;padding:14px}.gcs-right-title[data-v-62de215f]{font-size:13px;font-weight:600;color:#000000d9}.gcs-right-sub[data-v-62de215f]{font-size:12px;color:#00000073;margin:2px 0 12px}.gcs-right-tip[data-v-62de215f]{font-size:12px;color:#00000073;margin-top:10px}.gcs-item[data-v-62de215f]{margin-bottom:18px}.gcs-lab[data-v-62de215f]{display:flex;align-items:center;gap:8px;margin-bottom:4px;font-weight:600;color:#000000d9}.gcs-hint[data-v-62de215f]{font-size:12px;color:#00000073;margin-bottom:8px}.gcs-chip[data-v-62de215f]{font-size:11px;padding:1px 6px;border-radius:2px;font-weight:500}.gcs-chip.red[data-v-62de215f]{background:#ffecec;color:#f56c6c}.gcs-chip.blue[data-v-62de215f]{background:#e8f3ff;color:#2783f2}.gcs-tags[data-v-62de215f]{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.gcs-tag[data-v-62de215f]{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-62de215f]{color:#00000073;cursor:pointer;font-style:normal}.gcs-empty[data-v-62de215f]{text-align:center;color:#00000073;padding:24px 0;font-size:12px}.gcs-preview-box[data-v-62de215f]{background:#fafafa;border:1px dashed #d9d9d9;border-radius:6px;padding:12px}.goods-card[data-v-62de215f]{display:flex;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:6px;padding:10px;position:relative}.goods-img[data-v-62de215f]{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-62de215f]{width:100%;height:100%;object-fit:contain}.goods-meta[data-v-62de215f]{flex:1;min-width:0;padding-right:36px}.goods-title[data-v-62de215f]{font-size:14px;font-weight:700;color:#111;line-height:20px;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-row[data-v-62de215f]{font-size:12px;line-height:18px;margin-bottom:2px;color:#000000a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.more-link[data-v-62de215f]{position:absolute;right:10px;bottom:8px;color:#2783f2;font-size:12px;cursor:pointer}.extra-fields[data-v-62de215f]{margin-top:6px;padding-top:6px;border-top:1px dashed #e8e8e8}.gcs-ft[data-v-62de215f]{padding:12px 20px;border-top:1px solid #e8e8e8;text-align:right}.gcs-save[data-v-62de215f]{margin-left:8px}
@@ -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-CPkSs04-.js";
3
+ import { _ } from "./install-DjEA7lKm.js";
4
4
  const g = {
5
5
  name: "BnAddressParse",
6
6
  props: {
@@ -1,7 +1,7 @@
1
1
  import { debounce as C } from "lodash";
2
- import { f as U, a as R } from "./formItemFooter-CwZdOJzW.js";
2
+ import { f as U, a as R } from "./formItemFooter-BlAP0u9p.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-CPkSs04-.js";
4
+ import { _ as j } from "./install-DjEA7lKm.js";
5
5
  const z = {
6
6
  name: "stringForm",
7
7
  components: { formItemTop: R, formItemFooter: U },