@bytenew/bn-bus-ui 1.1.470 → 1.1.472

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/common.scss +156 -0
  2. package/dist/{assocTableSearch-SM_CVRX-.js → assocTableSearch-C5ouliZa.js} +7 -7
  3. package/dist/bn-bus-ui.es.js +37 -35
  4. package/dist/bn-bus-ui.umd.js +11 -11
  5. package/dist/{chooseIPaasData-DiAPNq8e.js → chooseIPaasData-C8iUu-LZ.js} +6 -6
  6. package/dist/{defaultSet-Boe-aClL.js → defaultSet-DGBaFuZQ.js} +1 -1
  7. package/dist/{formItemFooter-C0SDJMxy.js → formItemFooter-jI2qEjHk.js} +1 -1
  8. package/dist/{funcExprDialog-CKoqNPue.js → funcExprDialog-CSGEhbhs.js} +1 -1
  9. package/dist/{index-DCr-qI8F.js → index-B57kfOip.js} +1 -1
  10. package/dist/{index-dtWlyRj-.js → index-BR9kvW1T.js} +1 -1
  11. package/dist/{index-KJF9VIbe.js → index-BZ8-gv9u.js} +2 -2
  12. package/dist/{index-Dkl99LDZ.js → index-C1_5Z6Qv.js} +19 -19
  13. package/dist/{index-DlNSw-zS.js → index-CL60mJ8V.js} +2 -2
  14. package/dist/{index-D3daAln-.js → index-CaKKCOSs.js} +2 -2
  15. package/dist/{index-lzPnhV2Q.js → index-CpJCIuWy.js} +2 -2
  16. package/dist/{index-9MLVEBZS.js → index-D9K3c_6Q.js} +1 -1
  17. package/dist/{index-BOhA9OGm.js → index-DEqgNfIp.js} +2 -2
  18. package/dist/{index-CpMrxNzG.js → index-Da4V7O6p.js} +2 -2
  19. package/dist/{index-DPGbX4XR.js → index-DuwRrkFb.js} +2 -2
  20. package/dist/{index-YQou7VCy.js → index-G37JKf0D.js} +3 -3
  21. package/dist/{index-E-HfEN1t.js → index-GEQExkYN.js} +2 -2
  22. package/dist/{index-CrcC6CKv.js → index-R6zcJL9N.js} +3 -3
  23. package/dist/{index-CcX7k7tk.js → index-j0qILWOg.js} +2 -2
  24. package/dist/{index-B07Kr2nU.js → index-qBEetQ44.js} +2 -2
  25. package/dist/{index-DiRAOgjV.js → index-qgDSj6jv.js} +2 -2
  26. package/dist/{install-CJTJBoxT.js → install-E8f6xhdJ.js} +1376 -1325
  27. package/dist/install.css +1 -1
  28. package/dist/{setOption-U0Qwipo4.js → setOption-5WE9OeTL.js} +1 -1
  29. package/dist/{setRelationOption-1zzfQ9Wn.js → setRelationOption-BqsgX1sm.js} +106 -110
  30. package/dist/setRelationOption.css +1 -1
  31. package/package.json +1 -1
@@ -1,12 +1,8 @@
1
1
  import { cloneDeep as I } from "lodash";
2
- import O from "vuedraggable";
3
- import { resolveComponent as f, openBlock as c, createElementBlock as w, createTextVNode as h, createVNode as p, withCtx as m, createCommentVNode as b, createBlock as L, createElementVNode as d, normalizeClass as V, withModifiers as D, Fragment as A, renderList as B } from "vue";
4
- import { _ as k } from "./install-CJTJBoxT.js";
5
- const U = {
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-E8f6xhdJ.js";
4
+ const B = {
6
5
  name: "ConditionList",
7
- components: {
8
- draggable: O
9
- },
10
6
  props: {
11
7
  // 选项列表数据
12
8
  options: {
@@ -81,17 +77,17 @@ const U = {
81
77
  }), this.$emit("update:options", this.localOptions);
82
78
  }
83
79
  }
84
- }, S = { class: "condition-list" }, x = {
80
+ }, U = { class: "condition-list" }, S = {
85
81
  key: 0,
86
82
  class: "condition-list__empty"
87
- }, E = {
83
+ }, x = {
88
84
  key: 1,
89
85
  class: "condition-list__tip"
90
- }, W = ["onClick"], N = { class: "condition-item__input" }, $ = { class: "condition-item__actions" }, F = ["onClick"], q = ["onClick"];
91
- function R(t, e, o, l, i, n) {
86
+ }, E = ["onClick"], W = { class: "condition-item__input" }, N = { class: "condition-item__actions" }, $ = ["onClick"], F = ["onClick"];
87
+ function q(t, e, i, l, o, n) {
92
88
  const s = f("el-button"), u = f("el-input"), v = f("el-switch"), r = f("draggable");
93
- return c(), w("div", S, [
94
- n.showEmpty ? (c(), w("div", x, [
89
+ return c(), w("div", U, [
90
+ n.showEmpty ? (c(), w("div", S, [
95
91
  e[4] || (e[4] = h("   没有设置条件, ", -1)),
96
92
  p(s, {
97
93
  type: "text",
@@ -102,9 +98,9 @@ function R(t, e, o, l, i, n) {
102
98
  ])]),
103
99
  _: 1
104
100
  })
105
- ])) : b("", !0),
106
- n.showTip ? (c(), w("div", E, " 选中父级菜单,才能设置子级选项 ")) : b("", !0),
107
- n.showList ? (c(), L(r, {
101
+ ])) : L("", !0),
102
+ n.showTip ? (c(), w("div", x, " 选中父级菜单,才能设置子级选项 ")) : L("", !0),
103
+ n.showList ? (c(), b(r, {
108
104
  key: 2,
109
105
  modelValue: n.localOptions,
110
106
  "onUpdate:modelValue": e[2] || (e[2] = (g) => n.localOptions = g),
@@ -117,25 +113,25 @@ function R(t, e, o, l, i, n) {
117
113
  }, {
118
114
  item: m(({ element: g, index: y }) => [
119
115
  d("div", {
120
- class: V(["condition-item", { "condition-item--active": n.isActive(g) }]),
116
+ class: O(["condition-item", { "condition-item--active": n.isActive(g) }]),
121
117
  onClick: (a) => t.$emit("select", g)
122
118
  }, [
123
119
  e[5] || (e[5] = d("div", { class: "condition-item__drag drag-handle" }, [
124
120
  d("span", { class: "bnUIcon bnUIcon-move" })
125
121
  ], -1)),
126
- d("div", N, [
122
+ d("div", W, [
127
123
  p(u, {
128
124
  modelValue: g.title,
129
125
  "onUpdate:modelValue": (a) => g.title = a,
130
126
  placeholder: "设置名称"
131
127
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
132
128
  ]),
133
- d("div", $, [
129
+ d("div", N, [
134
130
  d("span", {
135
131
  class: "condition-item__action-icon bnUIcon bnUIcon-add",
136
132
  onClick: D((a) => n.handleAdd(y), ["stop"]),
137
133
  title: "添加"
138
- }, null, 8, F),
134
+ }, null, 8, $),
139
135
  p(v, {
140
136
  modelValue: g.columnStatus,
141
137
  "onUpdate:modelValue": (a) => g.columnStatus = a,
@@ -148,15 +144,15 @@ function R(t, e, o, l, i, n) {
148
144
  class: "condition-item__action-icon bnUIcon bnUIcon-delete",
149
145
  onClick: D((a) => t.$emit("delete", y), ["stop"]),
150
146
  title: "删除"
151
- }, null, 8, q)
147
+ }, null, 8, F)
152
148
  ])
153
- ], 10, W)
149
+ ], 10, E)
154
150
  ]),
155
151
  _: 1
156
- }, 8, ["modelValue", "onEnd"])) : b("", !0)
152
+ }, 8, ["modelValue", "onEnd"])) : L("", !0)
157
153
  ]);
158
154
  }
159
- const T = /* @__PURE__ */ k(U, [["render", R], ["__scopeId", "data-v-f37bbb16"]]), j = {
155
+ const R = /* @__PURE__ */ k(B, [["render", q], ["__scopeId", "data-v-066a1e81"]]), T = {
160
156
  name: "LevelHeader",
161
157
  props: {
162
158
  // 标题
@@ -201,19 +197,19 @@ const T = /* @__PURE__ */ k(U, [["render", R], ["__scopeId", "data-v-f37bbb16"]]
201
197
  this.$emit("delete-level"), this.showDeleteConfirm = !1;
202
198
  }
203
199
  }
204
- }, P = { class: "level-header" }, M = { class: "level-header__input" }, z = { class: "level-header__actions" };
205
- function H(t, e, o, l, i, n) {
200
+ }, j = { class: "level-header" }, P = { class: "level-header__input" }, M = { class: "level-header__actions" };
201
+ function z(t, e, i, l, o, n) {
206
202
  const s = f("el-input"), u = f("el-button"), v = f("el-popover");
207
- return c(), w("div", P, [
208
- d("div", M, [
203
+ return c(), w("div", j, [
204
+ d("div", P, [
209
205
  p(s, {
210
206
  modelValue: n.localTitle,
211
207
  "onUpdate:modelValue": e[0] || (e[0] = (r) => n.localTitle = r),
212
208
  placeholder: "输入标题"
213
209
  }, null, 8, ["modelValue"])
214
210
  ]),
215
- d("div", z, [
216
- o.canAddNext ? (c(), L(u, {
211
+ d("div", M, [
212
+ i.canAddNext ? (c(), b(u, {
217
213
  key: 0,
218
214
  type: "text",
219
215
  size: "small",
@@ -223,11 +219,11 @@ function H(t, e, o, l, i, n) {
223
219
  h(" 增加下一级 ", -1)
224
220
  ])]),
225
221
  _: 1
226
- })) : b("", !0),
227
- o.canDelete ? (c(), L(v, {
222
+ })) : L("", !0),
223
+ i.canDelete ? (c(), b(v, {
228
224
  key: 1,
229
- modelValue: i.showDeleteConfirm,
230
- "onUpdate:modelValue": e[3] || (e[3] = (r) => i.showDeleteConfirm = r),
225
+ modelValue: o.showDeleteConfirm,
226
+ "onUpdate:modelValue": e[3] || (e[3] = (r) => o.showDeleteConfirm = r),
231
227
  content: "删除联动标题将同时删除该标题层级下的所有选项,谨慎操作",
232
228
  placement: "top",
233
229
  width: "220",
@@ -240,15 +236,15 @@ function H(t, e, o, l, i, n) {
240
236
  })
241
237
  ]),
242
238
  _: 1
243
- }, 8, ["modelValue"])) : b("", !0)
239
+ }, 8, ["modelValue"])) : L("", !0)
244
240
  ])
245
241
  ]);
246
242
  }
247
- const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]), J = {
243
+ const H = /* @__PURE__ */ k(T, [["render", z], ["__scopeId", "data-v-5664ea69"]]), G = {
248
244
  name: "SetRelationOption",
249
245
  components: {
250
- ConditionList: T,
251
- LevelHeader: G
246
+ ConditionList: R,
247
+ LevelHeader: H
252
248
  },
253
249
  props: {
254
250
  // API请求函数
@@ -305,7 +301,7 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
305
301
  const t = ((r = this.moduleDefinition.header) == null ? void 0 : r.length) || 0;
306
302
  if (t <= 3)
307
303
  return "860px";
308
- const e = 40, o = 240, l = 12, i = o + l, n = e + t * i - l;
304
+ const e = 40, i = 240, l = 12, o = i + l, n = e + t * o - l;
309
305
  return `${Math.min(Math.max(n, 600), 1400)}px`;
310
306
  }
311
307
  },
@@ -351,8 +347,8 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
351
347
  * 自动选中子级的第一个选项
352
348
  */
353
349
  autoSelectChildren(t, e) {
354
- var o;
355
- ((o = t == null ? void 0 : t.children) == null ? void 0 : o.length) > 0 && (this.selectedConditions.splice(e + 1, 1, t.children[0]), this.autoSelectChildren(t.children[0], e + 1));
350
+ var i;
351
+ ((i = t == null ? void 0 : t.children) == null ? void 0 : i.length) > 0 && (this.selectedConditions.splice(e + 1, 1, t.children[0]), this.autoSelectChildren(t.children[0], e + 1));
356
352
  },
357
353
  /**
358
354
  * 添加级别
@@ -390,8 +386,8 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
390
386
  }
391
387
  try {
392
388
  await this.checkCanDelete(e) ? this.removeLevelData(t) : this.$message.warning("有选项已关联工单数据,无法删除");
393
- } catch (o) {
394
- console.error("删除级别失败:", o);
389
+ } catch (i) {
390
+ console.error("删除级别失败:", i);
395
391
  }
396
392
  },
397
393
  /**
@@ -406,44 +402,44 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
406
402
  collectLevelIds(t) {
407
403
  const e = [];
408
404
  if (t === 0)
409
- this.optionList.forEach((o) => e.push(o.id));
405
+ this.optionList.forEach((i) => e.push(i.id));
410
406
  else {
411
- const o = (l, i) => {
407
+ const i = (l, o) => {
412
408
  l.forEach((n) => {
413
- i === t && n.children ? n.children.forEach((s) => e.push(s.id)) : n.children && o(n.children, i + 1);
409
+ o === t && n.children ? n.children.forEach((s) => e.push(s.id)) : n.children && i(n.children, o + 1);
414
410
  });
415
411
  };
416
- o(this.optionList, 1);
412
+ i(this.optionList, 1);
417
413
  }
418
414
  return e;
419
415
  },
420
416
  /**
421
417
  * 递归移除指定级别的子选项
422
418
  */
423
- removeChildrenAtLevel(t, e, o) {
419
+ removeChildrenAtLevel(t, e, i) {
424
420
  t.forEach((l) => {
425
- e === o ? l.children = [] : l.children && this.removeChildrenAtLevel(l.children, e + 1, o);
421
+ e === i ? l.children = [] : l.children && this.removeChildrenAtLevel(l.children, e + 1, i);
426
422
  });
427
423
  },
428
424
  /**
429
425
  * 添加条件
430
426
  */
431
427
  async addCondition(t, e) {
432
- var o;
428
+ var i;
433
429
  if (!this.loading) {
434
430
  this.loading = !0;
435
431
  try {
436
432
  const l = await this.fetchIds(1);
437
433
  if (!(l != null && l.length)) return;
438
- const i = t === 0, n = i ? this.optionList : (o = this.selectedConditions[t - 1]) == null ? void 0 : o.children;
434
+ const o = t === 0, n = o ? this.optionList : (i = this.selectedConditions[t - 1]) == null ? void 0 : i.children;
439
435
  if (!n) return;
440
436
  const s = {
441
437
  id: l[0],
442
438
  code: l[0] + "",
443
439
  title: `选项${n.length + 1}`,
444
440
  level: t + 1,
445
- parentId: i ? 0 : this.selectedConditions[t - 1].id,
446
- parentCode: (i ? 0 : this.selectedConditions[t - 1].id) + "",
441
+ parentId: o ? 0 : this.selectedConditions[t - 1].id,
442
+ parentCode: (o ? 0 : this.selectedConditions[t - 1].id) + "",
447
443
  sequence: e + 1,
448
444
  color: "#666666",
449
445
  columnStatus: "1",
@@ -459,16 +455,16 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
459
455
  * 删除条件
460
456
  */
461
457
  async deleteCondition(t, e) {
462
- const o = this.getOptions(t), l = o[e];
458
+ const i = this.getOptions(t), l = i[e];
463
459
  if (!this.columnInfo.id) {
464
- o.splice(e, 1);
460
+ i.splice(e, 1);
465
461
  return;
466
462
  }
467
463
  console.log(l);
468
464
  try {
469
- await this.checkCanDelete([l.id]) ? o.splice(e, 1) : this.$message.warning("该选项已关联工单数据,无法删除");
470
- } catch (i) {
471
- console.error("删除条件失败:", i);
465
+ await this.checkCanDelete([l.id]) ? i.splice(e, 1) : this.$message.warning("该选项已关联工单数据,无法删除");
466
+ } catch (o) {
467
+ console.error("删除条件失败:", o);
472
468
  }
473
469
  },
474
470
  /**
@@ -485,8 +481,8 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
485
481
  }
486
482
  const e = await this.fetchIds(t.totalCount);
487
483
  if (!e) return;
488
- this.batchIds = e, this.batchIdIndex = 0, this.addLevelsIfNeeded(t.maxLevel), t.conditions.forEach((o) => {
489
- this.insertBatchCondition(o, this.optionList);
484
+ this.batchIds = e, this.batchIdIndex = 0, this.addLevelsIfNeeded(t.maxLevel), t.conditions.forEach((i) => {
485
+ this.insertBatchCondition(i, this.optionList);
490
486
  }), this.$message.success("批量添加成功");
491
487
  } finally {
492
488
  this.loading = !1;
@@ -498,17 +494,17 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
498
494
  */
499
495
  parseBatchContent(t) {
500
496
  const e = t.split(`
501
- `).map((u) => u.trim()).filter((u) => u).slice(0, 2e3), o = [];
502
- let l = 0, i = 0;
497
+ `).map((u) => u.trim()).filter((u) => u).slice(0, 2e3), i = [];
498
+ let l = 0, o = 0;
503
499
  e.forEach((u) => {
504
500
  const v = u.split("+").map((r) => r.trim()).filter((r) => r).slice(0, this.maxLevel);
505
- v.length > 0 && (o.push(v), l = Math.max(l, v.length), i += v.length);
501
+ v.length > 0 && (i.push(v), l = Math.max(l, v.length), o += v.length);
506
502
  });
507
503
  const n = this.moduleDefinition.header.length, s = Math.max(0, l - n);
508
504
  return {
509
- conditions: o,
505
+ conditions: i,
510
506
  maxLevel: l,
511
- totalCount: i + s
507
+ totalCount: o + s
512
508
  };
513
509
  },
514
510
  /**
@@ -516,11 +512,11 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
516
512
  */
517
513
  addLevelsIfNeeded(t) {
518
514
  const e = this.moduleDefinition.header.length;
519
- for (let o = e; o < t; o++)
515
+ for (let i = e; i < t; i++)
520
516
  this.moduleDefinition.header.push({
521
517
  id: this.batchIds[this.batchIdIndex++],
522
- title: `选项${o + 1}级标题`,
523
- level: o + 1,
518
+ title: `选项${i + 1}级标题`,
519
+ level: i + 1,
524
520
  parentId: -1,
525
521
  sequence: 0,
526
522
  color: "#666666",
@@ -530,18 +526,18 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
530
526
  /**
531
527
  * 递归插入批量条件
532
528
  */
533
- insertBatchCondition(t, e, o = 0, l = 0) {
529
+ insertBatchCondition(t, e, i = 0, l = 0) {
534
530
  if (t.length === 0) return e;
535
- const i = t[0], n = e.findIndex((s) => s.title === i);
531
+ const o = t[0], n = e.findIndex((s) => s.title === o);
536
532
  if (n > -1)
537
533
  this.insertBatchCondition(
538
534
  t.slice(1),
539
535
  e[n].children,
540
- o + 1,
536
+ i + 1,
541
537
  e[n].id
542
538
  );
543
539
  else {
544
- const s = this.createBatchOption(t, o, l, e.length);
540
+ const s = this.createBatchOption(t, i, l, e.length);
545
541
  s && e.push(s);
546
542
  }
547
543
  return e;
@@ -549,14 +545,14 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
549
545
  /**
550
546
  * 创建批量选项(含子级)
551
547
  */
552
- createBatchOption(t, e, o, l) {
548
+ createBatchOption(t, e, i, l) {
553
549
  if (t.length === 0 || this.batchIdIndex >= this.batchIds.length)
554
550
  return null;
555
- const i = this.batchIds[this.batchIdIndex++], n = {
556
- id: i,
557
- code: i + "",
558
- parentId: o,
559
- parentCode: o + "",
551
+ const o = this.batchIds[this.batchIdIndex++], n = {
552
+ id: o,
553
+ code: o + "",
554
+ parentId: i,
555
+ parentCode: i + "",
560
556
  title: t[0],
561
557
  level: e + 1,
562
558
  color: "#666666",
@@ -607,36 +603,36 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
607
603
  this.$emit("confirm", this.columnInfo), this.show = !1;
608
604
  }
609
605
  }
610
- }, K = {
606
+ }, J = {
611
607
  key: 0,
612
608
  class: "setRelationOpt"
613
- }, Q = {
609
+ }, K = {
614
610
  key: 0,
615
611
  class: "setRelationOpt-header"
616
- }, X = {
612
+ }, Q = {
617
613
  key: 1,
618
614
  class: "w-flex-between"
619
- }, Y = { style: { width: "calc(100% - 330px)" } }, Z = { class: "setRelationOpt-tip" }, ee = { class: "setRelationOpt-levels" }, te = {
615
+ }, X = { style: { width: "calc(100% - 330px)" } }, Y = { class: "setRelationOpt-tip" }, Z = { class: "setRelationOpt-levels" }, ee = {
620
616
  key: 2,
621
617
  class: "w-empty"
622
- }, ne = { class: "w-flex-right" };
623
- function oe(t, e, o, l, i, n) {
618
+ }, te = { class: "w-flex-right" };
619
+ function ne(t, e, i, l, o, n) {
624
620
  const s = f("el-button"), u = f("el-input"), v = f("level-header"), r = f("condition-list"), g = f("el-dialog");
625
- return c(), L(g, {
626
- modelValue: i.show,
627
- "onUpdate:modelValue": e[5] || (e[5] = (y) => i.show = y),
621
+ return c(), b(g, {
622
+ modelValue: o.show,
623
+ "onUpdate:modelValue": e[5] || (e[5] = (y) => o.show = y),
628
624
  title: "联动组件选项配置",
629
625
  top: "5vh",
630
626
  width: n.dialogWidth,
631
627
  "close-on-click-modal": !1,
632
628
  "destroy-on-close": !0,
633
- fullscreen: i.fullscreen,
629
+ fullscreen: o.fullscreen,
634
630
  "append-to-body": ""
635
631
  }, {
636
632
  footer: m(() => [
637
- d("div", ne, [
633
+ d("div", te, [
638
634
  p(s, {
639
- onClick: e[4] || (e[4] = (y) => i.show = !1)
635
+ onClick: e[4] || (e[4] = (y) => o.show = !1)
640
636
  }, {
641
637
  default: m(() => [...e[14] || (e[14] = [
642
638
  h("取消", -1)
@@ -657,15 +653,15 @@ function oe(t, e, o, l, i, n) {
657
653
  default: m(() => {
658
654
  var y;
659
655
  return [
660
- (y = n.moduleDefinition) != null && y.header ? (c(), w("div", K, [
661
- i.showBatch ? (c(), w("div", X, [
662
- d("div", Y, [
656
+ (y = n.moduleDefinition) != null && y.header ? (c(), w("div", J, [
657
+ o.showBatch ? (c(), w("div", Q, [
658
+ d("div", X, [
663
659
  p(u, {
664
660
  type: "textarea",
665
661
  rows: 5,
666
662
  resize: "none",
667
- modelValue: i.batchAddContent,
668
- "onUpdate:modelValue": e[2] || (e[2] = (a) => i.batchAddContent = a),
663
+ modelValue: o.batchAddContent,
664
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => o.batchAddContent = a),
669
665
  placeholder: `示例:
670
666
  质量问题+上衣
671
667
  服务问题+处理速度
@@ -673,7 +669,7 @@ function oe(t, e, o, l, i, n) {
673
669
  服务问题+态度+恶劣`
674
670
  }, null, 8, ["modelValue"])
675
671
  ]),
676
- d("div", Z, [
672
+ d("div", Y, [
677
673
  e[10] || (e[10] = d("div", { class: "w-margin-bottom4" }, [
678
674
  d("span", { class: "w-font-weight w-font16 w-color-blue" }, "1. "),
679
675
  h("每行代表一条选项,每一级通过+分隔 ")
@@ -694,7 +690,7 @@ function oe(t, e, o, l, i, n) {
694
690
  d("div", null, [
695
691
  p(s, {
696
692
  type: "text",
697
- onClick: e[3] || (e[3] = (a) => i.showBatch = !1)
693
+ onClick: e[3] || (e[3] = (a) => o.showBatch = !1)
698
694
  }, {
699
695
  default: m(() => [...e[8] || (e[8] = [
700
696
  h("收起", -1)
@@ -703,8 +699,8 @@ function oe(t, e, o, l, i, n) {
703
699
  }),
704
700
  p(s, {
705
701
  type: "text",
706
- loading: i.loading,
707
- disabled: i.loading,
702
+ loading: o.loading,
703
+ disabled: o.loading,
708
704
  onClick: n.handleBatchAdd
709
705
  }, {
710
706
  default: m(() => [...e[9] || (e[9] = [
@@ -714,8 +710,8 @@ function oe(t, e, o, l, i, n) {
714
710
  }, 8, ["loading", "disabled", "onClick"])
715
711
  ])
716
712
  ])
717
- ])) : (c(), w("div", Q, [
718
- n.hasLevels ? b("", !0) : (c(), L(s, {
713
+ ])) : (c(), w("div", K, [
714
+ n.hasLevels ? L("", !0) : (c(), b(s, {
719
715
  key: 0,
720
716
  type: "text",
721
717
  onClick: e[0] || (e[0] = (a) => n.addLevel(0))
@@ -727,7 +723,7 @@ function oe(t, e, o, l, i, n) {
727
723
  })),
728
724
  p(s, {
729
725
  type: "text",
730
- onClick: e[1] || (e[1] = (a) => i.showBatch = !0)
726
+ onClick: e[1] || (e[1] = (a) => o.showBatch = !0)
731
727
  }, {
732
728
  default: m(() => [...e[7] || (e[7] = [
733
729
  h("批量添加", -1)
@@ -735,8 +731,8 @@ function oe(t, e, o, l, i, n) {
735
731
  _: 1
736
732
  })
737
733
  ])),
738
- d("div", ee, [
739
- (c(!0), w(A, null, B(n.moduleDefinition.header, (a, C) => (c(), w("div", {
734
+ d("div", Z, [
735
+ (c(!0), w(V, null, A(n.moduleDefinition.header, (a, C) => (c(), w("div", {
740
736
  key: a.id,
741
737
  class: "setRelationOpt-levels-column"
742
738
  }, [
@@ -751,10 +747,10 @@ function oe(t, e, o, l, i, n) {
751
747
  }, null, 8, ["title", "level", "can-add-next", "can-delete", "onUpdate:title", "onAddLevel", "onDeleteLevel"]),
752
748
  p(r, {
753
749
  options: n.getOptions(C),
754
- "selected-option": i.selectedConditions[C],
750
+ "selected-option": o.selectedConditions[C],
755
751
  level: C,
756
752
  "is-first-level": C === 0,
757
- "has-parent-selected": C === 0 || !!i.selectedConditions[C - 1],
753
+ "has-parent-selected": C === 0 || !!o.selectedConditions[C - 1],
758
754
  "onUpdate:options": (_) => n.updateOptions(C, _),
759
755
  onSelect: (_) => n.selectCondition(_, C),
760
756
  onAdd: (_) => n.addCondition(C, _),
@@ -762,14 +758,14 @@ function oe(t, e, o, l, i, n) {
762
758
  }, null, 8, ["options", "selected-option", "level", "is-first-level", "has-parent-selected", "onUpdate:options", "onSelect", "onAdd", "onDelete"])
763
759
  ]))), 128))
764
760
  ]),
765
- !n.moduleDefinition.header || n.moduleDefinition.header.length == 0 ? (c(), w("div", te, "还未设置选项")) : b("", !0)
766
- ])) : b("", !0)
761
+ !n.moduleDefinition.header || n.moduleDefinition.header.length == 0 ? (c(), w("div", ee, "还未设置选项")) : L("", !0)
762
+ ])) : L("", !0)
767
763
  ];
768
764
  }),
769
765
  _: 1
770
766
  }, 8, ["modelValue", "width", "fullscreen"]);
771
767
  }
772
- const ae = /* @__PURE__ */ k(J, [["render", oe], ["__scopeId", "data-v-147b197f"]]);
768
+ const se = /* @__PURE__ */ k(G, [["render", ne], ["__scopeId", "data-v-147b197f"]]);
773
769
  export {
774
- ae as default
770
+ se as default
775
771
  };
@@ -1 +1 @@
1
- .condition-list[data-v-f37bbb16]{height:100%;overflow-y:auto}.condition-list__empty[data-v-f37bbb16]{padding:10px;font-size:12px;color:#999}.condition-list__empty .el-button[data-v-f37bbb16]{font-size:12px}.condition-list__tip[data-v-f37bbb16]{padding:10px;line-height:22px;font-size:12px;color:#999}.condition-item[data-v-f37bbb16]{display:flex;align-items:center;width:100%;height:34px;transition:background-color .3s;cursor:pointer}.condition-item--active[data-v-f37bbb16]{background-color:#e0ecfe}.condition-item[data-v-f37bbb16]:hover{background-color:#eef5fe}.condition-item__drag[data-v-f37bbb16]{width:25px;height:34px;line-height:34px;text-align:center;cursor:move;flex-shrink:0}.condition-item__input[data-v-f37bbb16]{flex:1;padding:2px 5px;min-width:0}.condition-item__actions[data-v-f37bbb16]{display:flex;align-items:center;gap:5px;padding-right:5px;flex-shrink:0}.condition-item__action-icon[data-v-f37bbb16]{width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .3s}.condition-item__action-icon[data-v-f37bbb16]:hover{opacity:.6}.condition-item__action-icon.bnUIcon-add[data-v-f37bbb16]{color:#67c23a}.condition-item__action-icon.bnUIcon-delete[data-v-f37bbb16]{color:#f56c6c}.ghost-item[data-v-f37bbb16]{opacity:.5;background:#f0f0f0}.chosen-item[data-v-f37bbb16]{opacity:.9}.level-header[data-v-5664ea69]{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 10px;border-bottom:1px solid #ddd}.level-header__input[data-v-5664ea69] .el-input__wrapper{box-shadow:none;border-bottom:none;border-radius:0}.level-header__actions[data-v-5664ea69]{display:flex;align-items:center;gap:5px}.level-header__actions .el-button[data-v-5664ea69]{font-size:12px;padding:0}.level-header__delete-icon[data-v-5664ea69]{font-size:14px;color:#f56c6c;cursor:pointer;padding:4px}.level-header__delete-icon[data-v-5664ea69]:hover{opacity:.7}.level-header__delete-tip[data-v-5664ea69]{padding:10px;line-height:1.5;margin:0}.level-header__delete-actions[data-v-5664ea69]{text-align:right}.setRelationOpt[data-v-147b197f]{min-height:280px}.setRelationOpt-header[data-v-147b197f]{display:flex;align-items:center}.setRelationOpt-tip[data-v-147b197f]{width:330px;color:#888;font-size:12px;padding-left:8px}.setRelationOpt-levels[data-v-147b197f]{display:flex;gap:12px;padding-bottom:10px}.setRelationOpt-levels-column[data-v-147b197f]{flex-shrink:0;width:240px;height:360px;border:1px solid #ddd;border-radius:4px;overflow:hidden;display:flex;flex-direction:column}
1
+ .condition-list[data-v-066a1e81]{height:100%;overflow-y:auto}.condition-list__empty[data-v-066a1e81]{padding:10px;font-size:12px;color:#999}.condition-list__empty .el-button[data-v-066a1e81]{font-size:12px}.condition-list__tip[data-v-066a1e81]{padding:10px;line-height:22px;font-size:12px;color:#999}.condition-item[data-v-066a1e81]{display:flex;align-items:center;width:100%;height:34px;transition:background-color .3s;cursor:pointer}.condition-item--active[data-v-066a1e81]{background-color:#e0ecfe}.condition-item[data-v-066a1e81]:hover{background-color:#eef5fe}.condition-item__drag[data-v-066a1e81]{width:25px;height:34px;line-height:34px;text-align:center;cursor:move;flex-shrink:0}.condition-item__input[data-v-066a1e81]{flex:1;padding:2px 5px;min-width:0}.condition-item__actions[data-v-066a1e81]{display:flex;align-items:center;gap:5px;padding-right:5px;flex-shrink:0}.condition-item__action-icon[data-v-066a1e81]{width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .3s}.condition-item__action-icon[data-v-066a1e81]:hover{opacity:.6}.condition-item__action-icon.bnUIcon-add[data-v-066a1e81]{color:#67c23a}.condition-item__action-icon.bnUIcon-delete[data-v-066a1e81]{color:#f56c6c}.ghost-item[data-v-066a1e81]{opacity:.5;background:#f0f0f0}.chosen-item[data-v-066a1e81]{opacity:.9}.level-header[data-v-5664ea69]{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 10px;border-bottom:1px solid #ddd}.level-header__input[data-v-5664ea69] .el-input__wrapper{box-shadow:none;border-bottom:none;border-radius:0}.level-header__actions[data-v-5664ea69]{display:flex;align-items:center;gap:5px}.level-header__actions .el-button[data-v-5664ea69]{font-size:12px;padding:0}.level-header__delete-icon[data-v-5664ea69]{font-size:14px;color:#f56c6c;cursor:pointer;padding:4px}.level-header__delete-icon[data-v-5664ea69]:hover{opacity:.7}.level-header__delete-tip[data-v-5664ea69]{padding:10px;line-height:1.5;margin:0}.level-header__delete-actions[data-v-5664ea69]{text-align:right}.setRelationOpt[data-v-147b197f]{min-height:280px}.setRelationOpt-header[data-v-147b197f]{display:flex;align-items:center}.setRelationOpt-tip[data-v-147b197f]{width:330px;color:#888;font-size:12px;padding-left:8px}.setRelationOpt-levels[data-v-147b197f]{display:flex;gap:12px;padding-bottom:10px}.setRelationOpt-levels-column[data-v-147b197f]{flex-shrink:0;width:240px;height:360px;border:1px solid #ddd;border-radius:4px;overflow:hidden;display:flex;flex-direction:column}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytenew/bn-bus-ui",
3
- "version": "1.1.470",
3
+ "version": "1.1.472",
4
4
  "description": "班牛业务组件库,集合版",
5
5
  "private": false,
6
6
  "main": "dist/bn-bus-ui.umd.js",