@web-utils/component 4.0.13 → 4.0.15

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 (171) hide show
  1. package/address-input/index.mjs +15 -13
  2. package/card/index.mjs +20 -18
  3. package/carousel/index.mjs +12 -10
  4. package/chat/index.mjs +56 -45
  5. package/chunk-file-uploader/index.mjs +378 -36
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
  8. package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
  9. package/chunks/FyForm.DriwCJ7b.mjs +765 -0
  10. package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
  11. package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
  12. package/chunks/TableColumn.BzivvXMF.mjs +337 -0
  13. package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
  14. package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
  15. package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
  16. package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
  17. package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
  18. package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
  19. package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
  20. package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
  21. package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
  22. package/color-picker/index.mjs +101 -22
  23. package/confirm-button/index.mjs +1 -1
  24. package/confirmable/index.mjs +1 -1
  25. package/data-box/index.mjs +15 -12
  26. package/data-card/index.mjs +12 -10
  27. package/data-card-text/index.mjs +12 -10
  28. package/data-display/index.mjs +17 -15
  29. package/data-icons/index.mjs +16 -13
  30. package/data-imgtext/index.mjs +18 -15
  31. package/data-operatext/index.mjs +16 -14
  32. package/data-panel/index.mjs +16 -13
  33. package/data-pay/index.mjs +20 -16
  34. package/data-price/index.mjs +16 -14
  35. package/data-progress/index.mjs +17 -13
  36. package/data-rotate/index.mjs +15 -12
  37. package/data-table-picker/index.mjs +18 -15
  38. package/data-tabs/index.mjs +15 -12
  39. package/dialog-form/index.mjs +18 -16
  40. package/dynamic-table/index.mjs +30 -25
  41. package/editable-progress/index.mjs +11 -9
  42. package/editable-tree/index.mjs +56 -52
  43. package/egd-collapse-item/index.mjs +9 -9
  44. package/element-dialog/index.mjs +23 -22
  45. package/flex-column/index.mjs +1 -1
  46. package/flex-item/index.mjs +1 -1
  47. package/flex-row/index.mjs +1 -1
  48. package/flow/index.mjs +11 -10
  49. package/flow-designer/index.mjs +1973 -699
  50. package/flow-designer/style.css +1 -1
  51. package/flow-node/index.mjs +1 -1
  52. package/flow-viewer/index.mjs +9 -9
  53. package/form-block/index.mjs +34 -32
  54. package/form-cascader/index.mjs +24 -23
  55. package/form-checkbox/index.mjs +17 -16
  56. package/form-checkbox-group/index.mjs +23 -20
  57. package/form-checkbox-group/style.css +1 -1
  58. package/form-date-picker/index.mjs +20 -18
  59. package/form-holder/index.mjs +14 -13
  60. package/form-input/index.mjs +15 -14
  61. package/form-input-cron-expression/index.mjs +22 -19
  62. package/form-input-email/index.mjs +16 -15
  63. package/form-input-id-card/index.mjs +13 -12
  64. package/form-input-number/index.mjs +17 -16
  65. package/form-input-phone-number/index.mjs +22 -21
  66. package/form-input-tag/index.mjs +15 -14
  67. package/form-input-time/index.mjs +15 -14
  68. package/form-item/index.mjs +3 -140
  69. package/form-item-group/index.mjs +31 -28
  70. package/form-radio-group/index.mjs +28 -27
  71. package/form-radio-group/style.css +1 -1
  72. package/form-select/index.mjs +23 -21
  73. package/form-switch/index.mjs +17 -16
  74. package/form-table/index.mjs +17 -16
  75. package/form-table-plus/index.mjs +22 -21
  76. package/form-textarea/index.mjs +16 -15
  77. package/form-tree-select/index.mjs +15 -14
  78. package/form-tree-select-multiple/index.mjs +15 -14
  79. package/form-view/index.mjs +39 -35
  80. package/fy-array/index.mjs +37 -33
  81. package/fy-cascader/index.mjs +17 -16
  82. package/fy-checkbox/index.mjs +13 -11
  83. package/fy-code/index.mjs +10 -10
  84. package/fy-curd/index.mjs +1147 -1123
  85. package/fy-date/index.mjs +11 -10
  86. package/fy-draggable/index.mjs +10 -9
  87. package/fy-dynamic/index.mjs +25 -22
  88. package/fy-empty/index.mjs +1 -1
  89. package/fy-form/index.mjs +15 -638
  90. package/fy-form-design/index.mjs +1165 -1127
  91. package/fy-input/index.mjs +14 -12
  92. package/fy-input-color/index.mjs +15 -13
  93. package/fy-input-icon/index.mjs +23 -20
  94. package/fy-input-map/index.mjs +31 -28
  95. package/fy-input-number/index.mjs +10 -9
  96. package/fy-input-table/index.mjs +22 -18
  97. package/fy-input-tree/index.mjs +37 -33
  98. package/fy-progress/index.mjs +10 -9
  99. package/fy-radio/index.mjs +16 -15
  100. package/fy-rate/index.mjs +11 -10
  101. package/fy-select/index.mjs +29 -25
  102. package/fy-slider/index.mjs +12 -11
  103. package/fy-switch/index.mjs +10 -9
  104. package/fy-tabs/index.mjs +17 -15
  105. package/fy-time/index.mjs +1 -1
  106. package/fy-title/index.mjs +1 -1
  107. package/fy-tree/index.mjs +24 -18
  108. package/fy-u-editor/index.mjs +1 -1
  109. package/fy-upload/index.mjs +76 -74
  110. package/guide-steps/index.mjs +13 -11
  111. package/iframe-window/index.mjs +10 -9
  112. package/image-cropper/index.mjs +30 -28
  113. package/image-preview/index.mjs +14 -12
  114. package/index.mjs +72 -72
  115. package/input-number/index.mjs +14 -13
  116. package/input-number-range/index.mjs +12 -11
  117. package/license/index.mjs +1 -1
  118. package/login/index.mjs +26 -21
  119. package/nav-bar/index.mjs +10 -9
  120. package/notice/index.mjs +10 -9
  121. package/package.json +1 -1
  122. package/page-index/index.mjs +13 -12
  123. package/page-index-top/index.mjs +28 -23
  124. package/page-skeleton/index.mjs +14 -14
  125. package/page-skeleton-new/index.mjs +9 -8
  126. package/pageable-table/index.mjs +182 -172
  127. package/pageable-table/style.css +1 -1
  128. package/pageable-view/index.mjs +16 -15
  129. package/picker-table-view/index.mjs +58 -49
  130. package/present-view/index.mjs +39 -35
  131. package/record-video/index.mjs +1 -1
  132. package/resize-observer/index.mjs +1 -1
  133. package/search/index.mjs +22 -20
  134. package/search-popover/index.mjs +1 -1
  135. package/sign/index.mjs +1 -1
  136. package/skeleton-panel/index.mjs +10 -9
  137. package/split-pane/index.mjs +37 -36
  138. package/static-pageable-table/index.mjs +13 -11
  139. package/sub-table/index.mjs +49 -36
  140. package/sub-table-plus/index.mjs +18 -229
  141. package/swiper/index.mjs +12 -11
  142. package/table-column/index.mjs +3 -223
  143. package/table-view/index.mjs +60 -52
  144. package/tabs-view/index.mjs +19 -17
  145. package/tag-render/index.mjs +18 -16
  146. package/text-ellipsis/index.mjs +10 -9
  147. package/toolbar/index.mjs +14 -13
  148. package/toolbar-button/index.mjs +14 -13
  149. package/verify/index.mjs +1 -1
  150. package/vue-cron/index.mjs +267 -259
  151. package/watermark/index.mjs +1 -1
  152. package/web-types.json +1 -1
  153. package/x-input-tag/index.mjs +24 -21
  154. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  155. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  156. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  157. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  158. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  159. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  160. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  161. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  162. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  163. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  164. package/chunks/core.0Exl13Mz.mjs +0 -54
  165. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  166. package/chunks/form-item.LWjePsPa.mjs +0 -233
  167. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  168. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  169. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  170. package/element-listeners/style.css +0 -1
  171. package/element-multi-instance/style.css +0 -1
@@ -1,5 +1,7 @@
1
- import { chunk as r } from "@web-utils/integrations/lodash";
2
- import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
1
+ import r from "element-ui/lib/pagination";
2
+ import s from "element-ui/lib/table";
3
+ import { chunk as o } from "@web-utils/integrations/lodash";
4
+ import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
5
  const i = {
4
6
  name: "StaticPageableTable",
5
7
  props: {
@@ -39,26 +41,26 @@ const i = {
39
41
  },
40
42
  methods: {
41
43
  fetchData() {
42
- this.records = r(this.rows, this.page.limit)[this.page.page - 1];
44
+ this.records = o(this.rows, this.page.limit)[this.page.page - 1];
43
45
  }
44
46
  }
45
47
  };
46
- var n = function() {
48
+ var p = function() {
47
49
  var e = this, t = e._self._c;
48
- return t("div", { staticClass: "static-pageable-table" }, [t("ElTable", e._g(e._b({ attrs: { size: "mini", data: e.records } }, "ElTable", e.$attrs, !1), e.$listeners), [e._t("default", function() {
50
+ return t("div", { staticClass: "static-pageable-table" }, [t(s, e._g(e._b({ attrs: { size: "mini", data: e.records } }, "ElTable", e.$attrs, !1), e.$listeners), [e._t("default", function() {
49
51
  return [e._v("请添加表格列")];
50
- })], 2), t("ElPagination", { attrs: { "current-page": e.page.page, "hide-on-single-page": !0, "page-size": e.page.limit, total: e.page.total, background: "", layout: "total, prev, pager, next" }, on: { "current-change": (a) => {
52
+ })], 2), t(r, { attrs: { "current-page": e.page.page, "hide-on-single-page": !0, "page-size": e.page.limit, total: e.page.total, background: "", layout: "total, prev, pager, next" }, on: { "current-change": (a) => {
51
53
  e.page.page = a;
52
54
  } } })], 1);
53
- }, o = [], l = /* @__PURE__ */ s(
55
+ }, l = [], g = /* @__PURE__ */ n(
54
56
  i,
55
- n,
56
- o,
57
+ p,
58
+ l,
57
59
  !1,
58
60
  null,
59
61
  null
60
62
  );
61
- const h = l.exports;
63
+ const d = g.exports;
62
64
  export {
63
- h as default
65
+ d as default
64
66
  };
@@ -1,7 +1,20 @@
1
- import { findTreeChildren as u, isFunction as d } from "@web-utils/core";
2
- import { cloneDeep as i } from "@web-utils/integrations/lodash";
3
- import { n as b } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
- const c = {
1
+ import d from "../confirmable/index.mjs";
2
+ import { T as u, _ as b } from "../chunks/TableColumn.BzivvXMF.mjs";
3
+ import c from "../form-textarea/index.mjs";
4
+ import f from "../form-input-number/index.mjs";
5
+ import h from "../form-checkbox-group/index.mjs";
6
+ import y from "../form-cascader/index.mjs";
7
+ import g from "../form-date-picker/index.mjs";
8
+ import _ from "../form-select/index.mjs";
9
+ import v from "../form-input-phone-number/index.mjs";
10
+ import I from "../form-input/index.mjs";
11
+ import i from "element-ui/lib/button";
12
+ import $ from "../confirm-button/index.mjs";
13
+ import C from "../pageable-table/index.mjs";
14
+ import { findTreeChildren as F, isFunction as A } from "@web-utils/core";
15
+ import { cloneDeep as D } from "@web-utils/integrations/lodash";
16
+ import { n as T } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
17
+ const q = {
5
18
  name: "SubTable",
6
19
  emits: ["add-row"],
7
20
  inject: {
@@ -85,7 +98,7 @@ const c = {
85
98
  },
86
99
  methods: {
87
100
  getCellType(n, e) {
88
- return d(e.getType) ? e.getType(n, e) : e.type;
101
+ return A(e.getType) ? e.getType(n, e) : e.type;
89
102
  },
90
103
  getInputAttr(n, e) {
91
104
  return { ...e.attrs, ...e.getAttrs ? e.getAttrs(n) : {} };
@@ -106,7 +119,7 @@ const c = {
106
119
  }
107
120
  },
108
121
  add(n, e) {
109
- const a = i(this.rowProps);
122
+ const a = D(this.rowProps);
110
123
  this.rows.splice(e + 1, 0, a);
111
124
  },
112
125
  addRow() {
@@ -139,24 +152,24 @@ const c = {
139
152
  getVal(n, e, a) {
140
153
  var t, r;
141
154
  if (a.type === "select" && ((t = a.attrs) != null && t.options)) {
142
- const s = a.attrs.options.find((p) => p.code === n[e.property]);
143
- if (s)
144
- return s.name;
155
+ const p = a.attrs.options.find((s) => s.code === n[e.property]);
156
+ if (p)
157
+ return p.name;
145
158
  }
146
159
  if (a.type === "cascader" && ((r = a.attrs) != null && r.options)) {
147
- const [s] = u(a.attrs.options, (p) => p[a.attrs.valueKey || "value"] === n[e.property]);
148
- if (s)
149
- return s[a.attrs.valueKey || "label"];
160
+ const [p] = F(a.attrs.options, (s) => s[a.attrs.valueKey || "value"] === n[e.property]);
161
+ if (p)
162
+ return p[a.attrs.valueKey || "label"];
150
163
  }
151
164
  return n[e.property];
152
165
  }
153
166
  }
154
167
  };
155
- var h = function() {
168
+ var k = function() {
156
169
  var e = this, a = e._self._c;
157
- return a("PageableTable", e._g(e._b({ ref: "table", staticClass: "sub-table", attrs: { "auto-height": "", data: e.rows, api: e.fetchApi, "show-summary": e.showSummary, "selection-width": e.selectionWidth, "hide-on-single-page": "", selection: e.enabled }, on: { "selection-change": e.onSelectionChange }, scopedSlots: e._u([e.editable ? null : { key: "toolbar", fn: function() {
170
+ return a(C, e._g(e._b({ ref: "table", staticClass: "sub-table", attrs: { "auto-height": "", data: e.rows, api: e.fetchApi, "show-summary": e.showSummary, "selection-width": e.selectionWidth, "hide-on-single-page": "", selection: e.enabled }, on: { "selection-change": e.onSelectionChange }, scopedSlots: e._u([e.editable ? null : { key: "toolbar", fn: function() {
158
171
  return [e.enabled || e.fetchApi ? a("div", { staticClass: "table-header" }, [e._t("toolbar", function() {
159
- return [e.enabled ? [a("ElButton", { staticClass: "table-header-button add", attrs: { size: "mini", icon: "el-icon-circle-plus", type: "text" }, on: { click: e.addRow } }, [e._v("添加")]), a("ConfirmButton", { staticClass: "table-header-button remove", attrs: { size: "mini", message: "您确定要删除选中的记录吗?", icon: "el-icon-error", type: "text" }, on: { click: e.delRow } }, [e._v(" 删除 ")])] : e._e(), e.fetchApi ? a("ElButton", { staticClass: "table-header-button refresh", attrs: { size: "mini", icon: "el-icon-refresh-left", type: "text", disabled: !1 }, on: { click: e.refresh } }, [e._v(" 刷新 ")]) : e._e()];
172
+ return [e.enabled ? [a(i, { staticClass: "table-header-button add", attrs: { size: "mini", icon: "el-icon-circle-plus", type: "text" }, on: { click: e.addRow } }, [e._v("添加")]), a($, { staticClass: "table-header-button remove", attrs: { size: "mini", message: "您确定要删除选中的记录吗?", icon: "el-icon-error", type: "text" }, on: { click: e.delRow } }, [e._v(" 删除 ")])] : e._e(), e.fetchApi ? a(i, { staticClass: "table-header-button refresh", attrs: { size: "mini", icon: "el-icon-refresh-left", type: "text", disabled: !1 }, on: { click: e.refresh } }, [e._v(" 刷新 ")]) : e._e()];
160
173
  }, { addRow: e.addRow, delRow: e.delRow, refresh: e.refresh })], 2) : e._e()];
161
174
  }, proxy: !0 }, e.allowEmpty && !e.inputDisabled && e.showEmptyAddButton ? { key: "empty", fn: function() {
162
175
  return [a("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(t) {
@@ -164,43 +177,43 @@ var h = function() {
164
177
  } } })];
165
178
  }, proxy: !0 } : null], null, !0) }, "PageableTable", e.$attrs, !1), e.$listeners), [e._t("columns", function() {
166
179
  return [e._l(e.columns, function(t) {
167
- return [t.label && !t.hide && !t.slot ? a("TableColumn", { key: `${t.prop}-${e.enabled}-${t.type}`, attrs: { label: t.label, width: t.width, align: t.align, prop: t.prop, options: t.options, "show-overflow-tooltip": !e.available && t.showOverflowTooltip }, scopedSlots: e._u([{ key: "header", fn: function() {
180
+ return [t.label && !t.hide && !t.slot ? a(u, { key: `${t.prop}-${e.enabled}-${t.type}`, attrs: { label: t.label, width: t.width, align: t.align, prop: t.prop, options: t.options, "show-overflow-tooltip": !e.available && t.showOverflowTooltip }, scopedSlots: e._u([{ key: "header", fn: function() {
168
181
  return [!e.inputDisabled && t.required ? a("span", { staticStyle: { color: "#f56c6c" } }, [e._v("*")]) : e._e(), e._v(" " + e._s(t.label) + " ")];
169
- }, proxy: !0 }, { key: "default", fn: function({ row: r, column: s, $index: p }) {
170
- return [e._t("tag", null, { row: r, column: s, index: p }), e._t(t.prop, function() {
182
+ }, proxy: !0 }, { key: "default", fn: function({ row: r, column: p, $index: s }) {
183
+ return [e._t("tag", null, { row: r, column: p, index: s }), e._t(t.prop, function() {
171
184
  var o;
172
- return [e.available && e.getCellType(r, t) === "input" ? [a("FormInput", e._b({ attrs: { value: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInput", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "inputPhoneNumber" ? [a("FormInputPhoneNumber", e._b({ attrs: { value: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputPhoneNumber", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "user" ? [t.single ? a("FormInputUser", e._b({ attrs: { name: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, required: t.required }, on: { "update:name": function(l) {
173
- return e.$set(r, s.property, l);
174
- }, input: (l) => e.onInput(r, l, t) } }, "FormInputUser", e.getInputAttr(r, t), !1)) : a("FormInputUser", e._b({ attrs: { value: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputUser", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "department" ? [t.single ? a("FormInputDepartment", e._b({ attrs: { "ou-type": t.ouType, name: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, required: t.required }, on: { "update:name": function(l) {
175
- return e.$set(r, s.property, l);
176
- }, input: (l) => e.onInput(r, l, t) } }, "FormInputDepartment", e.getInputAttr(r, t), !1)) : a("FormInputDepartment", e._b({ attrs: { value: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputDepartment", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "select" ? [a("FormSelect", e._b({ attrs: { value: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, options: t.options, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormSelect", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "datePicker" ? [a("FormDatePicker", e._b({ attrs: { value: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, required: t.required, start: r[t.start], end: r[t.end] }, on: { "update:start": function(l) {
185
+ return [e.available && e.getCellType(r, t) === "input" ? [a(I, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInput", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "inputPhoneNumber" ? [a(v, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputPhoneNumber", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "user" ? [t.single ? a("FormInputUser", e._b({ attrs: { name: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { "update:name": function(l) {
186
+ return e.$set(r, p.property, l);
187
+ }, input: (l) => e.onInput(r, l, t) } }, "FormInputUser", e.getInputAttr(r, t), !1)) : a("FormInputUser", e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputUser", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "department" ? [t.single ? a("FormInputDepartment", e._b({ attrs: { "ou-type": t.ouType, name: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { "update:name": function(l) {
188
+ return e.$set(r, p.property, l);
189
+ }, input: (l) => e.onInput(r, l, t) } }, "FormInputDepartment", e.getInputAttr(r, t), !1)) : a("FormInputDepartment", e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputDepartment", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "select" ? [a(_, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, options: t.options, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormSelect", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "datePicker" ? [a(g, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required, start: r[t.start], end: r[t.end] }, on: { "update:start": function(l) {
177
190
  return e.$set(r, t.start, l);
178
191
  }, "update:end": function(l) {
179
192
  return e.$set(r, t.end, l);
180
- }, input: (l) => e.onInput(r, l, t) } }, "FormDatePicker", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "cascader" ? [a("FormCascader", e._b({ attrs: { value: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, required: t.required, "label-key": t.labelKey, "value-key": t.valueKey }, on: { input: (l) => e.onInput(r, l, t) } }, "FormCascader", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "checkbox" ? [a("FormCheckboxGroup", e._b({ attrs: { value: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormCheckboxGroup", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "number" ? [a("FormInputNumber", e._b({ attrs: { value: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputNumber", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "textarea" ? [a("FormTextarea", e._b({ attrs: { rows: t.rows || "3", value: r[s.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${p}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormTextarea", e.getInputAttr(r, t), !1))] : t.dicType || (o = t.options) != null && o.length ? [a("DictRender", { attrs: { "dict-type": t.dicType, "id-as-value": t.idAsValue, "label-as-value": t.labelAsValue, column: s, row: r, options: t.options } })] : [e._v(e._s(e.getVal(r, s, t)))]];
181
- }, { row: r, column: s, index: p })];
193
+ }, input: (l) => e.onInput(r, l, t) } }, "FormDatePicker", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "cascader" ? [a(y, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required, "label-key": t.labelKey, "value-key": t.valueKey }, on: { input: (l) => e.onInput(r, l, t) } }, "FormCascader", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "checkbox" ? [a(h, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormCheckboxGroup", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "number" ? [a(f, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputNumber", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "textarea" ? [a(c, e._b({ attrs: { rows: t.rows || "3", value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormTextarea", e.getInputAttr(r, t), !1))] : t.dicType || (o = t.options) != null && o.length ? [a(b, { attrs: { "dict-type": t.dicType, "id-as-value": t.idAsValue, "label-as-value": t.labelAsValue, column: p, row: r, options: t.options } })] : [e._v(e._s(e.getVal(r, p, t)))]];
194
+ }, { row: r, column: p, index: s })];
182
195
  } }], null, !0) }) : t.slot ? e._t("default") : e._e()];
183
196
  })];
184
- }, { columns: e.columns }), e._t("handle", null, { add: e.add, remove: e.remove }), (!e.value || e.value.length < e.limit) && !e.inputDisabled && e.enabled && e.editable && e.handleColumn ? a("TableColumn", { attrs: { label: "操作", fixed: "right", width: "80", align: "center", prop: "menu" }, scopedSlots: e._u([{ key: "header", fn: function({ column: t, $index: r }) {
197
+ }, { columns: e.columns }), e._t("handle", null, { add: e.add, remove: e.remove }), (!e.value || e.value.length < e.limit) && !e.inputDisabled && e.enabled && e.editable && e.handleColumn ? a(u, { attrs: { label: "操作", fixed: "right", width: "80", align: "center", prop: "menu" }, scopedSlots: e._u([{ key: "header", fn: function({ column: t, $index: r }) {
185
198
  return [e._t("handle-column-header", function() {
186
199
  return [e._v(" " + e._s(t.label) + " ")];
187
200
  }, { column: t, index: r })];
188
201
  } }, { key: "default", fn: function({ row: t, $index: r }) {
189
- return [e.showHandleColumnAddButton && e.value.length < e.maxLimit ? a("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "margin-right": "5px", "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(s) {
190
- return s.stopPropagation(), e.add(t, r);
191
- } } }) : e._e(), e.value && e.value.length > 1 || e.allowEmpty ? a("Confirmable", { staticClass: "el-icon-error sub-table-handle-button table-button-remove", attrs: { title: "删除", message: "您确定要删除该行吗?" }, on: { click: function(s) {
192
- return s.stopPropagation(), e.remove(t, r);
202
+ return [e.showHandleColumnAddButton && e.value.length < e.maxLimit ? a("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "margin-right": "5px", "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(p) {
203
+ return p.stopPropagation(), e.add(t, r);
204
+ } } }) : e._e(), e.value && e.value.length > 1 || e.allowEmpty ? a(d, { staticClass: "el-icon-error sub-table-handle-button table-button-remove", attrs: { title: "删除", message: "您确定要删除该行吗?" }, on: { click: function(p) {
205
+ return p.stopPropagation(), e.remove(t, r);
193
206
  } } }) : e._e()];
194
207
  } }], null, !0) }) : e._e()], 2);
195
- }, f = [], y = /* @__PURE__ */ b(
196
- c,
197
- h,
198
- f,
208
+ }, S = [], R = /* @__PURE__ */ T(
209
+ q,
210
+ k,
211
+ S,
199
212
  !1,
200
213
  null,
201
214
  null
202
215
  );
203
- const I = y.exports;
216
+ const J = R.exports;
204
217
  export {
205
- I as default
218
+ J as default
206
219
  };
@@ -1,231 +1,20 @@
1
- import { findTreeChildren as i, isFunction as c } from "@web-utils/core";
2
- import { cloneDeep as b } from "@web-utils/integrations/lodash";
3
- import { S as h } from "../chunks/sub-table-plus-props.BVsD71hT.mjs";
4
- import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const y = {
6
- name: "SubTablePlus",
7
- mixins: [h],
8
- inject: {
9
- elForm: {
10
- default: ""
11
- },
12
- elFormItem: {
13
- default: ""
14
- }
15
- },
16
- props: {
17
- onRowDbClick: Function,
18
- showMessage: Boolean,
19
- pageSize: Number
20
- },
21
- data() {
22
- return {
23
- rows: [],
24
- selectedRows: []
25
- };
26
- },
27
- computed: {
28
- enabled() {
29
- return !this.inputDisabled;
30
- },
31
- hasToolBarMenu() {
32
- var s;
33
- return (s = this.toolbarMenus) == null ? void 0 : s.length;
34
- },
35
- hasHandleMenus() {
36
- var s;
37
- return (s = this.handleMenus) == null ? void 0 : s.length;
38
- },
39
- rowProps() {
40
- const s = {};
41
- return this.columns && this.columns.map((e) => e.prop).forEach((e) => {
42
- s[e] = null;
43
- }), s;
44
- },
45
- inputDisabled() {
46
- return this.disabled || (this.elForm || {}).disabled;
47
- }
48
- },
49
- watch: {
50
- value: {
51
- deep: !0,
52
- immediate: !0,
53
- handler(s) {
54
- this.rows = s || [];
55
- }
56
- },
57
- rows: {
58
- deep: !0,
59
- immediate: !0,
60
- handler(s) {
61
- this.$emit("input", s);
62
- }
63
- }
64
- },
65
- methods: {
66
- getCellType(s, e) {
67
- return c(e.getType) ? e.getType(s, e) : e.type;
68
- },
69
- getInputAttr(s, e) {
70
- return e.attrs && e.getAttrs ? { ...e.attrs, ...e.getAttrs(s) } : e.attrs ? e.attrs : e.getAttrs ? e.getAttrs(s) : {};
71
- },
72
- isInputDisabled(s, e) {
73
- var l;
74
- return (l = e.isDisabled) == null ? void 0 : l.call(e, s);
75
- },
76
- onInput(s, e, l) {
77
- l.setValue ? l.setValue(s, e, l, this.rows) : l.setVal !== !1 && (s[l.prop] = e);
78
- },
79
- onBlur(s, e) {
80
- e.onBlur && e.onBlur(s, e, this.rows);
81
- },
82
- onSelectionChange(s) {
83
- this.selectedRows = s;
84
- },
85
- async remove(s, e) {
86
- try {
87
- if (this.delApi)
88
- try {
89
- await this.delApi([s.id]), this.$message.success("删除成功!"), this.refresh();
90
- } catch {
91
- this.$message.error("删除失败!");
92
- }
93
- else
94
- this.rows.splice(e, 1);
95
- } catch {
96
- }
97
- },
98
- async add(s, e) {
99
- var l;
100
- if (this.fetchApi)
101
- this.addRow();
102
- else {
103
- const o = b(this.rowProps), u = await ((l = this.initRow) == null ? void 0 : l.call(this, o, e));
104
- e === -1 ? this.rows.push(u || o) : this.rows.splice(e + 1, 0, u || o);
105
- }
106
- },
107
- addRow() {
108
- this.$emit("add-row");
109
- },
110
- async delRow() {
111
- if (!this.selectedRows.length) {
112
- this.$message.warning("请选择要删除的记录!");
113
- return;
114
- }
115
- try {
116
- if (this.delApi)
117
- try {
118
- await this.delApi(this.selectedRows.map((s) => s.id)), this.$message.success("删除成功!"), this.refresh();
119
- } catch {
120
- this.$message.error("删除失败!");
121
- }
122
- else
123
- this.$emit(
124
- "input",
125
- this.rows.filter((s) => !this.selectedRows.includes(s))
126
- );
127
- } catch {
128
- }
129
- },
130
- refresh() {
131
- this.$refs.table.getPage();
132
- },
133
- getVal(s, e, l) {
134
- var o, u;
135
- if (l.type === "select" && ((o = l.attrs) != null && o.options)) {
136
- const t = l.attrs.options.find((r) => r.value === s[e.property] || r.code === s[e.property]);
137
- if (t)
138
- return t.label || t.name;
139
- }
140
- if (l.type === "checkbox1")
141
- return s[e.property] === !0 || s[e.property] === "1" || s[e.property] === "Y" ? "是" : "否";
142
- if (l.type === "cascader" && ((u = l.attrs) != null && u.options)) {
143
- const [t] = i(l.attrs.options, (r) => r[l.attrs.valueKey || "value"] === s[e.property]);
144
- if (t)
145
- return t[l.attrs.valueKey || "label"];
146
- }
147
- return s[e.property];
148
- },
149
- reloadTable() {
150
- var s;
151
- (s = this.$refs.table) == null || s.reload();
152
- },
153
- async refreshTable() {
154
- var s;
155
- await ((s = this.$refs.table) == null ? void 0 : s.getPage());
156
- },
157
- removeSelectedRows() {
158
- this.$emit(
159
- "input",
160
- this.value.filter((s) => !this.selectedRows.includes(s))
161
- );
162
- },
163
- rowDbClick(...s) {
164
- var e;
165
- (e = this.onRowDbClick) == null || e.call(this, ...s);
166
- }
167
- }
168
- };
169
- var g = function() {
170
- var o, u;
171
- var e = this, l = e._self._c;
172
- return l("div", { class: ["sub-table-plus", { "hide-message": !e.showMessage }] }, [l("PageableTable", e._g(e._b({ ref: "table", attrs: { "auto-height": "", data: e.fetchApi ? !1 : e.rows, api: e.fetchApi, "payload-style": "body", "show-summary": e.showSummary, descs: e.descs, ascs: e.ascs, "page-size": e.pageSize, "selection-width": e.selectionWidth, "hide-on-single-page": "", selection: e.selection, index: e.index }, on: { "selection-change": e.onSelectionChange }, scopedSlots: e._u([!e.inputDisabled || e.hasToolBarMenu ? { key: "toolbar", fn: function() {
173
- return [l("div", { staticClass: "table-header flex-row" }, [e._t("toolbar", function() {
174
- return [l("div", { staticClass: "flex-item" }, [e._t("toolbar-left", function() {
175
- var t, r, n;
176
- return [(t = e.toolbarMenus) != null && t.includes("add") ? l("ElButton", { staticClass: "table-header-button add", attrs: { size: "mini", icon: "el-icon-circle-plus", type: "text" }, on: { click: e.addRow } }, [e._v(" 添加 ")]) : e._e(), (r = e.toolbarMenus) != null && r.includes("delete") ? l("ConfirmButton", { staticClass: "table-header-button remove", attrs: { size: "mini", disabled: e.selectedRows.length <= 0, message: "您确定要删除选中的记录吗?", icon: "el-icon-error", type: "text" }, on: { click: e.delRow } }, [e._v(" 删除 ")]) : e._e(), (n = e.toolbarMenus) != null && n.includes("refresh") ? l("ElButton", { staticClass: "table-header-button refresh", attrs: { size: "mini", icon: "el-icon-refresh-left", type: "text", disabled: !1 }, on: { click: e.refresh } }, [e._v(" 刷新 ")]) : e._e()];
177
- }, { addRow: e.addRow, delRow: e.delRow, refresh: e.refresh }), e._t("toolbar-left-append", null, { addRow: e.addRow, delRow: e.delRow, refresh: e.refresh })], 2), l("div", { staticClass: "flex-not-shrink" }, [e._t("toolbar-right", null, { removeSelectedRows: e.removeSelectedRows, selectedRows: e.selectedRows })], 2)];
178
- }, { addRow: e.addRow, delRow: e.delRow, refresh: e.refresh })], 2)];
179
- }, proxy: !0 } : null, e.bottomAddButton ? { key: "empty", fn: function() {
180
- return [l("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(t) {
181
- var r;
182
- return t.stopPropagation(), e.add(null, ((r = e.value) == null ? void 0 : r.length) ?? 0);
183
- } } })];
184
- }, proxy: !0 } : null], null, !0) }, "PageableTable", e.$attrs, !1), e.$listeners), [e._t("columns", function() {
185
- return [e._l(e.columns, function(t) {
186
- return [t.label && !t.hide && !t.slot ? l("TableColumn", { key: `${t.prop}-${e.enabled}${t.type ? `-${t.type}` : ""}${t.required ? `-${t.required}` : ""}`, attrs: { label: t.label, width: t.width, "dict-type": t.dictType, clickable: t.clickable, align: t.align, prop: t.prop, options: t.options, "show-overflow-tooltip": !t.editable && t.showOverflowTooltip }, scopedSlots: e._u([{ key: "header", fn: function() {
187
- return [!e.inputDisabled && t.required ? l("span", { staticStyle: { color: "#f56c6c" } }, [e._v("*")]) : e._e(), l("span", { attrs: { title: t.label } }, [e._v(e._s(t.label))])];
188
- }, proxy: !0 }, { key: "default", fn: function({ row: r, column: n, $index: p }) {
189
- return [e._t("tag", null, { row: r, column: n, index: p }), e._t(t.prop, function() {
190
- var d;
191
- return [e.enabled && t.editable === !0 ? [e.getCellType(r, t) === "input" ? [l("FormInput", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { blur: () => e.onBlur(r, t), input: (a) => e.onInput(r, a, t) } }, "FormInput", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "checkbox1" ? [l("FormCheckbox", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormCheckbox", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "inputPhoneNumber" ? [l("FormInputPhoneNumber", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormInputPhoneNumber", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "user" ? [t.single ? l("FormInputUser", e._b({ attrs: { id: r[n.idProp || `${n.property}Id`], "wrap-col": !1, name: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { "update:id": function(a) {
192
- return e.$set(r, n.idProp || `${n.property}Id`, a);
193
- }, "update:name": function(a) {
194
- return e.$set(r, n.property, a);
195
- }, input: (a) => e.onInput(r, a, t) } }, "FormInputUser", e.getInputAttr(r, t), !1)) : l("FormInputUser", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormInputUser", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "department" ? [t.single ? l("FormInputDepartment", e._b({ attrs: { "wrap-col": !1, "ou-type": t.ouType, name: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { "update:name": function(a) {
196
- return e.$set(r, n.property, a);
197
- }, input: (a) => e.onInput(r, a, t) } }, "FormInputDepartment", e.getInputAttr(r, t), !1)) : l("FormInputDepartment", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormInputDepartment", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "select" ? [l("FormSelect", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormSelect", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "datePicker" ? [l("FormDatePicker", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required, start: r[t.start], end: r[t.end] }, on: { "update:start": function(a) {
198
- return e.$set(r, t.start, a);
199
- }, "update:end": function(a) {
200
- return e.$set(r, t.end, a);
201
- }, input: (a) => e.onInput(r, a, t) } }, "FormDatePicker", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "cascader" ? [l("FormCascader", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required, "label-key": t.labelKey, "value-key": t.valueKey }, on: { input: (a) => e.onInput(r, a, t) } }, "FormCascader", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "checkbox" ? [l("FormCheckboxGroup", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormCheckboxGroup", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "number" ? [l("FormInputNumber", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormInputNumber", e.getInputAttr(r, t), !1))] : e._e()] : t.dictType || (d = t.options) != null && d.length ? [l("DictRender", { attrs: { "dict-type": t.dictType, "id-as-value": t.idAsValue, "label-as-value": t.labelAsValue, column: n, row: r, options: t.options } })] : [e._v(e._s(e.getVal(r, n, t)))]];
202
- }, { row: r, column: n, wrapCol: !1, index: p, prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required, editable: t.editable })];
203
- } }], null, !0) }) : t.slot ? e._t(t.slot) : e._e()];
204
- })];
205
- }, { columns: e.columns }), e._t("handle", null, { add: e.add, remove: e.remove }), !e.inputDisabled && e.hasHandleMenus ? l("TableColumn", { attrs: { label: "操作", width: "80", align: "center", prop: "menu" }, scopedSlots: e._u([{ key: "header", fn: function({ column: t, $index: r }) {
206
- return [e._t("handle-column-header", function() {
207
- return [e._v(" " + e._s(t.label) + " ")];
208
- }, { column: t, index: r })];
209
- } }, { key: "default", fn: function({ row: t, $index: r }) {
210
- var n, p, d;
211
- return [(n = e.handleMenus) != null && n.includes("add") && ((p = e.value) == null ? void 0 : p.length) < e.limit ? l("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "margin-right": "5px", "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(a) {
212
- return a.stopPropagation(), e.add(t, r);
213
- } } }) : e._e(), (d = e.handleMenus) != null && d.includes("delete") ? l("Confirmable", { staticClass: "el-icon-error sub-table-handle-button table-button-remove", attrs: { title: "删除", message: "您确定要删除该行吗?" }, on: { click: function(a) {
214
- return a.stopPropagation(), e.remove(t, r);
215
- } } }) : e._e()];
216
- } }], null, !0) }) : e._e()], 2), !e.inputDisabled && e.bottomAddButton && ((o = e.value) == null ? void 0 : o.length) < e.limit && ((u = e.value) == null ? void 0 : u.length) > 0 ? l("div", { staticClass: "flex-row vertical-center horizon-center", staticStyle: { padding: "10px", border: "1px solid #ebeef5", "border-top": "none" } }, [l("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(t) {
217
- var r;
218
- return t.stopPropagation(), e.add(null, ((r = e.value) == null ? void 0 : r.length) ?? 0);
219
- } } })]) : e._e()], 1);
220
- }, _ = [], I = /* @__PURE__ */ f(
221
- y,
222
- g,
223
- _,
224
- !1,
225
- null,
226
- null
227
- );
228
- const k = I.exports;
1
+ import "../confirmable/index.mjs";
2
+ import "../chunks/TableColumn.BzivvXMF.mjs";
3
+ import "../form-input-number/index.mjs";
4
+ import "../form-checkbox-group/index.mjs";
5
+ import "../form-cascader/index.mjs";
6
+ import "../form-date-picker/index.mjs";
7
+ import "../form-select/index.mjs";
8
+ import "../form-input-phone-number/index.mjs";
9
+ import "../form-checkbox/index.mjs";
10
+ import "../form-input/index.mjs";
11
+ import "element-ui/lib/button";
12
+ import "../confirm-button/index.mjs";
13
+ import "../pageable-table/index.mjs";
14
+ import "@web-utils/core";
15
+ import "@web-utils/integrations/lodash";
16
+ import { a as j } from "../chunks/SubTablePlus.BH0IIv3X.mjs";
17
+ import "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
229
18
  export {
230
- k as default
19
+ j as default
231
20
  };
package/swiper/index.mjs CHANGED
@@ -1,8 +1,9 @@
1
- import { getEleWidth as r } from "@web-utils/core";
2
1
  import a from "../resize-observer/index.mjs";
2
+ import r from "element-ui/lib/button";
3
+ import { getEleWidth as o } from "@web-utils/core";
3
4
  import "../resize-observer/style.css";
4
- import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const h = {
5
+ import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
+ const l = {
6
7
  name: "Swiper",
7
8
  components: {
8
9
  ResizeObserver: a
@@ -39,7 +40,7 @@ const h = {
39
40
  let e = 0;
40
41
  const t = [], { children: s } = this.$refs.swiperContent;
41
42
  Array.prototype.forEach.call(s, (i) => {
42
- const n = r(i);
43
+ const n = o(i);
43
44
  e += n, t.push(n);
44
45
  }), this.childrenWidth = t, this.swiperContentWidth = e;
45
46
  },
@@ -101,20 +102,20 @@ const h = {
101
102
  }
102
103
  }
103
104
  };
104
- var l = function() {
105
+ var d = function() {
105
106
  var t = this, s = t._self._c;
106
- return s("div", { staticClass: "egd-swiper" }, [s("ElButton", { staticClass: "el-carousel__arrow el-carousel__arrow--left", attrs: { disabled: t.reachedLeft, icon: "el-icon-arrow-left" }, on: { click: t.clickLeft } }), s("div", { ref: "swiperBox", staticClass: "egd-swiper-box", on: { wheel: function(i) {
107
+ return s("div", { staticClass: "egd-swiper" }, [s(r, { staticClass: "el-carousel__arrow el-carousel__arrow--left", attrs: { disabled: t.reachedLeft, icon: "el-icon-arrow-left" }, on: { click: t.clickLeft } }), s("div", { ref: "swiperBox", staticClass: "egd-swiper-box", on: { wheel: function(i) {
107
108
  return i.stopPropagation(), i.preventDefault(), t.onMouseWheel.apply(null, arguments);
108
- } } }, [s("div", { ref: "swiperContent", staticClass: "egd-swiper-content", style: t.swiperContentStyle }, [t._t("default")], 2)]), s("ElButton", { staticClass: "el-carousel__arrow el-carousel__arrow--right", attrs: { disabled: t.reachedRight, icon: "el-icon-arrow-right" }, on: { click: t.clickRight } }), s("ResizeObserver", { on: { notify: t.resize } })], 1);
109
- }, d = [], c = /* @__PURE__ */ o(
110
- h,
109
+ } } }, [s("div", { ref: "swiperContent", staticClass: "egd-swiper-content", style: t.swiperContentStyle }, [t._t("default")], 2)]), s(r, { staticClass: "el-carousel__arrow el-carousel__arrow--right", attrs: { disabled: t.reachedRight, icon: "el-icon-arrow-right" }, on: { click: t.clickRight } }), s(a, { on: { notify: t.resize } })], 1);
110
+ }, c = [], p = /* @__PURE__ */ h(
111
111
  l,
112
112
  d,
113
+ c,
113
114
  !1,
114
115
  null,
115
116
  null
116
117
  );
117
- const m = c.exports;
118
+ const _ = p.exports;
118
119
  export {
119
- m as default
120
+ _ as default
120
121
  };