@web-utils/component 3.0.2 → 3.0.4

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 (166) hide show
  1. package/address-input/index.mjs +14 -14
  2. package/chat/index.mjs +39 -40
  3. package/chunk-file-uploader/index.mjs +35 -594
  4. package/chunk-file-uploader/style.css +1 -1
  5. package/chunks/FormTemp.d079292b.mjs +139 -0
  6. package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
  7. package/chunks/detail.d6f8e347.mjs +29 -0
  8. package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
  9. package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
  10. package/chunks/form-input-mixin.78a567bc.mjs +24 -0
  11. package/chunks/form-item-mixin.57cb2019.mjs +140 -0
  12. package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
  13. package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
  14. package/chunks/input-number-mixin.41a066be.mjs +60 -0
  15. package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
  16. package/count-up/index.mjs +17 -14
  17. package/data-box/index.mjs +18 -19
  18. package/data-display/index.mjs +17 -18
  19. package/data-icons/index.mjs +16 -17
  20. package/data-panel/index.mjs +20 -21
  21. package/data-pay/index.mjs +15 -16
  22. package/data-progress/index.mjs +19 -20
  23. package/data-rotate/index.mjs +35 -36
  24. package/data-table-picker/index.mjs +23 -25
  25. package/data-tabs/index.mjs +15 -16
  26. package/dialog-form/index.mjs +24 -28
  27. package/dynamic-table/index.mjs +34 -35
  28. package/easy-popup/index.mjs +56 -29
  29. package/editable-tree/index.mjs +485 -134
  30. package/element-dialog/index.mjs +127 -37
  31. package/empty-view/index.mjs +31 -13
  32. package/flex-column/index.mjs +1 -1
  33. package/flex-item/index.mjs +1 -1
  34. package/flex-row/index.mjs +1 -1
  35. package/flow/index.mjs +40 -105
  36. package/flow-designer/index.mjs +555 -615
  37. package/flow-node/index.mjs +47 -15
  38. package/flow-viewer/index.mjs +78 -167
  39. package/form-cascader/index.mjs +24 -24
  40. package/form-checkbox-group/index.mjs +35 -79
  41. package/form-date-picker/index.mjs +22 -22
  42. package/form-holder/index.mjs +1 -1
  43. package/form-input/index.mjs +86 -28
  44. package/form-input-email/index.mjs +18 -18
  45. package/form-input-id-card/index.mjs +27 -27
  46. package/form-input-number/index.mjs +59 -219
  47. package/form-input-phone-number/index.mjs +27 -27
  48. package/form-input-tag/index.mjs +38 -160
  49. package/form-input-time/index.mjs +16 -16
  50. package/form-item/index.mjs +146 -15
  51. package/form-item-group/index.mjs +164 -14
  52. package/form-radio-group/index.mjs +41 -41
  53. package/form-select/index.mjs +20 -20
  54. package/form-switch/index.mjs +19 -19
  55. package/form-textarea/index.mjs +29 -29
  56. package/form-view/index.mjs +42 -46
  57. package/fy-array/index.mjs +2 -2
  58. package/fy-cascader/index.mjs +15 -15
  59. package/fy-checkbox/index.mjs +1 -1
  60. package/fy-code/index.mjs +1 -1
  61. package/fy-curd/index.mjs +2821 -210
  62. package/fy-date/index.mjs +59 -17
  63. package/fy-draggable/index.mjs +1 -1
  64. package/fy-dynamic/index.mjs +208 -64
  65. package/fy-empty/index.mjs +29 -12
  66. package/fy-form/index.mjs +743 -178
  67. package/fy-form-design/index.mjs +1013 -1540
  68. package/fy-input/index.mjs +105 -17
  69. package/fy-input-color/index.mjs +67 -16
  70. package/fy-input-icon/index.mjs +119 -23
  71. package/fy-input-map/index.mjs +14 -15
  72. package/fy-input-number/index.mjs +1 -1
  73. package/fy-input-table/index.mjs +19 -21
  74. package/fy-input-tree/index.mjs +3 -3
  75. package/fy-radio/index.mjs +1 -1
  76. package/fy-rate/index.mjs +50 -16
  77. package/fy-select/index.mjs +126 -29
  78. package/fy-slider/index.mjs +2 -2
  79. package/fy-switch/index.mjs +1 -1
  80. package/fy-tabs/index.mjs +51 -15
  81. package/fy-time/index.mjs +1 -1
  82. package/fy-title/index.mjs +1 -1
  83. package/fy-tree/index.mjs +23 -25
  84. package/fy-u-editor/index.mjs +1 -1
  85. package/fy-upload/index.mjs +2 -2
  86. package/highlight-j-s/index.mjs +29 -19
  87. package/icon-temp/index.mjs +30 -12
  88. package/iframe-window/index.mjs +18 -19
  89. package/image-cropper/index.mjs +22 -23
  90. package/image-preview/index.mjs +1 -1
  91. package/input-number/index.mjs +173 -63
  92. package/license/index.mjs +1 -1
  93. package/loading-view/index.mjs +33 -15
  94. package/login/index.mjs +1 -1
  95. package/nav-bar/index.mjs +31 -15
  96. package/package.json +1 -1
  97. package/page/index.mjs +20 -12
  98. package/page-header/index.mjs +34 -13
  99. package/page-index-top/index.mjs +53 -100
  100. package/page-skeleton/index.mjs +35 -18
  101. package/page-skeleton-new/index.mjs +15 -16
  102. package/pageable-table/index.mjs +228 -86
  103. package/pageable-view/index.mjs +1 -1
  104. package/present-view/index.mjs +71 -75
  105. package/record-video/index.mjs +1 -1
  106. package/resize-observer/index.mjs +29 -21
  107. package/search/index.mjs +9 -9
  108. package/search-popover/index.mjs +1 -1
  109. package/sign/index.mjs +1 -1
  110. package/split-pane/index.mjs +45 -40
  111. package/swiper/index.mjs +13 -14
  112. package/table-view/index.mjs +97 -631
  113. package/text-ellipsis/index.mjs +1 -1
  114. package/tinymce-editor/index.mjs +63 -63
  115. package/toolbar/index.mjs +208 -15
  116. package/toolbar-button/index.mjs +56 -30
  117. package/verify/index.mjs +1 -1
  118. package/watermark/index.mjs +1 -1
  119. package/web-types.json +1 -1
  120. package/x-input-tag/index.mjs +118 -49
  121. package/chunks/CountUp.f1a19f35.mjs +0 -124
  122. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
  123. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
  124. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
  125. package/chunks/ElementDialog.d8f3105c.mjs +0 -211
  126. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
  127. package/chunks/EmptyView.e2430422.mjs +0 -51
  128. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
  129. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
  130. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
  131. package/chunks/FormItem.2920ac0c.mjs +0 -45
  132. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
  133. package/chunks/FormItemGroup.41daddb6.mjs +0 -64
  134. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
  135. package/chunks/FyCurd.8acd2983.mjs +0 -548
  136. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
  137. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
  138. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
  139. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
  140. package/chunks/FyForm.0294e494.mjs +0 -439
  141. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
  142. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
  143. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
  144. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
  145. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
  146. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
  147. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
  148. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
  149. package/chunks/IconTemp.42c48e1f.mjs +0 -32
  150. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
  151. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
  152. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
  153. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
  154. package/chunks/Page.81f4b8d9.mjs +0 -32
  155. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
  156. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
  157. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
  158. package/chunks/PageableTable.333cbdc1.mjs +0 -335
  159. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
  160. package/chunks/ResizeObserver.60f728f0.mjs +0 -54
  161. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
  162. package/chunks/TableColumn.8503272e.mjs +0 -106
  163. package/chunks/Toolbar.5c539dbb.mjs +0 -24
  164. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
  165. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
  166. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
@@ -1,51 +1,193 @@
1
- var w = Object.defineProperty, B = Object.defineProperties;
2
- var P = Object.getOwnPropertyDescriptors;
3
- var p = Object.getOwnPropertySymbols;
4
- var f = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
5
- var u = (e, t, s) => t in e ? w(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, g = (e, t) => {
6
- for (var s in t || (t = {}))
7
- f.call(t, s) && u(e, s, t[s]);
8
- if (p)
9
- for (var s of p(t))
10
- m.call(t, s) && u(e, s, t[s]);
1
+ var $ = Object.defineProperty, w = Object.defineProperties;
2
+ var C = Object.getOwnPropertyDescriptors;
3
+ var d = Object.getOwnPropertySymbols;
4
+ var f = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
+ var g = (e, s, t) => s in e ? $(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, c = (e, s) => {
6
+ for (var t in s || (s = {}))
7
+ f.call(s, t) && g(e, t, s[t]);
8
+ if (d)
9
+ for (var t of d(s))
10
+ b.call(s, t) && g(e, t, s[t]);
11
11
  return e;
12
- }, b = (e, t) => B(e, P(t));
13
- var y = (e, t) => {
14
- var s = {};
12
+ }, m = (e, s) => w(e, C(s));
13
+ var _ = (e, s) => {
14
+ var t = {};
15
15
  for (var a in e)
16
- f.call(e, a) && t.indexOf(a) < 0 && (s[a] = e[a]);
17
- if (e != null && p)
18
- for (var a of p(e))
19
- t.indexOf(a) < 0 && m.call(e, a) && (s[a] = e[a]);
20
- return s;
16
+ f.call(e, a) && s.indexOf(a) < 0 && (t[a] = e[a]);
17
+ if (e != null && d)
18
+ for (var a of d(e))
19
+ s.indexOf(a) < 0 && b.call(e, a) && (t[a] = e[a]);
20
+ return t;
21
21
  };
22
- var d = (e, t, s) => new Promise((a, l) => {
23
- var c = (i) => {
22
+ var u = (e, s, t) => new Promise((a, l) => {
23
+ var h = (r) => {
24
24
  try {
25
- r(s.next(i));
26
- } catch (n) {
27
- l(n);
25
+ i(t.next(r));
26
+ } catch (p) {
27
+ l(p);
28
28
  }
29
- }, h = (i) => {
29
+ }, n = (r) => {
30
30
  try {
31
- r(s.throw(i));
32
- } catch (n) {
33
- l(n);
31
+ i(t.throw(r));
32
+ } catch (p) {
33
+ l(p);
34
34
  }
35
- }, r = (i) => i.done ? a(i.value) : Promise.resolve(i.value).then(c, h);
36
- r((s = s.apply(e, t)).next());
35
+ }, i = (r) => r.done ? a(r.value) : Promise.resolve(r.value).then(h, n);
36
+ i((t = t.apply(e, s)).next());
37
37
  });
38
- import { hasOwn as _ } from "@web-utils/core";
39
- import { cloneDeep as S, merge as v } from "@web-utils/integrations/lodash";
40
- import { f as T, a as O, b as L } from "../chunks/index.d91bd77a.mjs";
41
- import { s as x, r as A } from "../chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs";
42
- import { n as C } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
38
+ import { hasOwn as k } from "@web-utils/core";
39
+ import { cloneDeep as y, merge as x } from "@web-utils/integrations/lodash";
40
+ import { f as S, h as P, i as B } from "../chunks/index.57f871af.mjs";
41
+ import A from "element-ui/lib/pagination";
42
+ import T from "element-ui/lib/radio";
43
+ import E from "element-ui/lib/button";
44
+ import O from "element-ui/lib/table";
45
+ import { n as L } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
46
+ var R = function() {
47
+ var e = this, s = e.$createElement, t = e._self._c || s;
48
+ return t("div", {
49
+ class: ["pageable-table", {
50
+ "auto-height": e.autoHeight
51
+ }]
52
+ }, [t("div", {
53
+ staticClass: "pageable-table-wrapper"
54
+ }, [e._t("toolbar"), t(O, e._g(e._b({
55
+ ref: "table",
56
+ class: ["flex-item", {
57
+ "header-bold": e.headerBold
58
+ }],
59
+ attrs: {
60
+ data: e.records,
61
+ border: e.border
62
+ },
63
+ on: {
64
+ "hook:updated": e.updateTableScrollPosition,
65
+ "sort-change": e.onSortChange,
66
+ "row-dblclick": e.rowDbClick,
67
+ "current-change": e.onCurrentChange
68
+ },
69
+ scopedSlots: e._u([{
70
+ key: "empty",
71
+ fn: function() {
72
+ return [e._t("empty", function() {
73
+ return [e.tableStatus === e.TABLE_STATUS.loading ? [t("span", {
74
+ staticClass: "pageable-table-loading"
75
+ }, [t("i", {
76
+ staticClass: "table-status-icon el-icon-loading"
77
+ }), e._v(" 加载中...")])] : e.tableStatus === e.TABLE_STATUS.error ? [t(E, {
78
+ staticClass: "pageable-table-error",
79
+ attrs: {
80
+ icon: "table-status-icon fa fa-frown-o"
81
+ },
82
+ on: {
83
+ click: e.refresh
84
+ }
85
+ }, [e._v(" 加载失败,点击重试! ")])] : [e._v(" 暂无数据 ")]];
86
+ })];
87
+ },
88
+ proxy: !0
89
+ }, {
90
+ key: "append",
91
+ fn: function() {
92
+ return [e._t("append")];
93
+ },
94
+ proxy: !0
95
+ }], null, !0)
96
+ }, "ElTable", e.filterTableProperties(e.mergeAttrs), !1), e.filterTableEvents(e.$listeners)), [e.multiple && e.selection ? t("TableColumn", {
97
+ key: "multiple",
98
+ attrs: {
99
+ type: "selection",
100
+ width: "45",
101
+ align: "center"
102
+ }
103
+ }) : e._e(), !e.multiple && e.selection ? t("TableColumn", {
104
+ key: "single",
105
+ attrs: {
106
+ type: "single-selection",
107
+ "class-name": "single-select-column",
108
+ width: "45",
109
+ align: "center"
110
+ },
111
+ scopedSlots: e._u([{
112
+ key: "header",
113
+ fn: function() {
114
+ return [t(T, {
115
+ attrs: {
116
+ value: !!e.currentRow,
117
+ label: !0
118
+ }
119
+ }, [t("span")])];
120
+ },
121
+ proxy: !0
122
+ }, {
123
+ key: "default",
124
+ fn: function(a) {
125
+ var l = a.row;
126
+ return [t(T, {
127
+ attrs: {
128
+ label: !0,
129
+ value: e.currentRow && e.currentRow[e.$attrs["row-key"] || "id"] === l[e.$attrs["row-key"] || "id"]
130
+ }
131
+ }, [t("span")])];
132
+ }
133
+ }], null, !1, 307797321)
134
+ }) : e._e(), e.index ? t("TableColumn", {
135
+ key: "order",
136
+ attrs: {
137
+ type: "index",
138
+ label: "序号",
139
+ width: e.indexWidth,
140
+ align: "center"
141
+ },
142
+ scopedSlots: e._u([{
143
+ key: "default",
144
+ fn: function(a) {
145
+ var l = a.$index;
146
+ return [e._v(" " + e._s((e.page.page - 1) * e.page.limit + l + 1 || l + 1) + " ")];
147
+ }
148
+ }], null, !1, 4238275121)
149
+ }) : e._e(), e._t("default", function() {
150
+ return [e.columns && e.columns.length ? e._l(e.headers, function(a, l) {
151
+ return t("TableColumn", e._b({
152
+ key: `${a.prop}-${l}`
153
+ }, "TableColumn", a, !1));
154
+ }) : t("TableColumn", {
155
+ attrs: {
156
+ label: "点击表格行复制模板"
157
+ },
158
+ scopedSlots: e._u([{
159
+ key: "default",
160
+ fn: function(a) {
161
+ var l = a.row;
162
+ return [t("pre", {
163
+ staticClass: "pointer"
164
+ }, [e._v(e._s(JSON.stringify(l, null, " ")))])];
165
+ }
166
+ }])
167
+ })];
168
+ })], 2), t(A, {
169
+ staticClass: "flex-not-shrink",
170
+ attrs: {
171
+ "current-page": e.page.page,
172
+ "hide-on-single-page": e.hideOnSinglePage,
173
+ "page-size": e.page.limit,
174
+ total: e.page.total,
175
+ background: "",
176
+ layout: "total, prev, pager, next, jumper"
177
+ },
178
+ on: {
179
+ "current-change": function(a) {
180
+ e.page.page = a;
181
+ }
182
+ }
183
+ })], 2)]);
184
+ }, W = [];
43
185
  const o = {
44
186
  loading: 1,
45
187
  error: -1,
46
188
  empty: 2,
47
189
  success: 0
48
- }, M = {
190
+ }, j = {
49
191
  name: "PageableTable",
50
192
  bus: {
51
193
  reloadTableView(e) {
@@ -123,9 +265,9 @@ const o = {
123
265
  data() {
124
266
  let e = { rules: [] };
125
267
  this.rules && this.rules.length > 0 && (e.rules = this.rules), this.filters && (e = this.filters), this.filter && (e = Object.assign({}, e, this.filter));
126
- let t = {};
127
- this.model && (t = S(this.model));
128
- const s = this.pageSize;
268
+ let s = {};
269
+ this.model && (s = y(this.model));
270
+ const t = this.pageSize;
129
271
  return {
130
272
  TABLE_STATUS: Object.freeze(o),
131
273
  tableStatus: o.empty,
@@ -134,10 +276,10 @@ const o = {
134
276
  page: {
135
277
  total: 0,
136
278
  page: 1,
137
- limit: s,
279
+ limit: t,
138
280
  ascs: this.ascs,
139
281
  descs: this.descs,
140
- model: t,
282
+ model: s,
141
283
  filters: e
142
284
  }
143
285
  };
@@ -165,11 +307,11 @@ const o = {
165
307
  return e.length > 3 ? 50 + (e.length - 3) * 10 : 50;
166
308
  },
167
309
  mergeAttrs() {
168
- return v({}, this.$attrs, { height: this.autoHeight ? null : "auto" });
310
+ return x({}, this.$attrs, { height: this.autoHeight ? null : "auto" });
169
311
  },
170
312
  headers() {
171
313
  var e;
172
- return ((e = this.columns) == null ? void 0 : e.map(T)) || [];
314
+ return ((e = this.columns) == null ? void 0 : e.map(S)) || [];
173
315
  }
174
316
  },
175
317
  watch: {
@@ -199,26 +341,26 @@ const o = {
199
341
  },
200
342
  methods: {
201
343
  rowDbClick(...e) {
202
- var s;
203
- const t = this.$refs.table.$children.find((a) => {
344
+ var t;
345
+ const s = this.$refs.table.$children.find((a) => {
204
346
  var l;
205
347
  return ((l = a.$options) == null ? void 0 : l.name) === "ElTableBody";
206
348
  });
207
- t && ((s = t.$refs.tooltip) == null || s.hide()), this.$emit("row-dblclick", ...e);
349
+ s && ((t = s.$refs.tooltip) == null || t.hide()), this.$emit("row-dblclick", ...e);
208
350
  },
209
351
  updateTableScrollPosition() {
210
- return d(this, null, function* () {
352
+ return u(this, null, function* () {
211
353
  this.$refs.table.bodyWrapper && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
212
354
  });
213
355
  },
214
- filterTableProperties: O,
215
- filterTableEvents: L,
216
- filterTableColumnProperties: T,
356
+ filterTableProperties: P,
357
+ filterTableEvents: B,
358
+ filterTableColumnProperties: S,
217
359
  onTableScroll() {
218
360
  this.tableScrollTop = this.$refs.table.bodyWrapper.scrollTop, this.tableScrollLeft = this.$refs.table.bodyWrapper.scrollLeft;
219
361
  },
220
- onSortChange({ prop: e, order: t }) {
221
- this.page.ascs = t === "ascending" ? e : "", this.page.descs = t === "descending" ? e : "";
362
+ onSortChange({ prop: e, order: s }) {
363
+ this.page.ascs = s === "ascending" ? e : "", this.page.descs = s === "descending" ? e : "";
222
364
  },
223
365
  onCurrentChange(e) {
224
366
  this.currentRow = e;
@@ -231,28 +373,28 @@ const o = {
231
373
  this.removeRule(e.field), this.page.filters.rules.push(e);
232
374
  },
233
375
  addRules(e) {
234
- e.forEach((t) => this.addRule(t));
376
+ e.forEach((s) => this.addRule(s));
235
377
  },
236
- setModelField(e, t) {
237
- this.$set(this.page.model, e, t);
378
+ setModelField(e, s) {
379
+ this.$set(this.page.model, e, s);
238
380
  },
239
381
  setModel(e) {
240
- this.page.page = 1, this.page.model = S(e);
382
+ this.page.page = 1, this.page.model = y(e);
241
383
  },
242
384
  deleteModelField(e) {
243
385
  delete this.page.model[e];
244
386
  },
245
387
  removeRule(e) {
246
- const t = this.page.filters.rules, s = t.findIndex((a) => a.field === e);
247
- s > -1 && t.splice(s, 1);
388
+ const s = this.page.filters.rules, t = s.findIndex((a) => a.field === e);
389
+ t > -1 && s.splice(t, 1);
248
390
  },
249
- addFilter({ field: e, op: t, value: s }) {
391
+ addFilter({ field: e, op: s, value: t }) {
250
392
  this.page.filters = Object.assign({}, this.page.filters, {
251
393
  rules: [
252
394
  {
253
395
  field: e,
254
- op: t,
255
- value: s
396
+ op: s,
397
+ value: t
256
398
  }
257
399
  ],
258
400
  op: "and"
@@ -268,21 +410,21 @@ const o = {
268
410
  this.setModel(this.model), this.getPage();
269
411
  },
270
412
  getPage() {
271
- return d(this, null, function* () {
272
- var i;
273
- if (_(this.$attrs, "data")) {
413
+ return u(this, null, function* () {
414
+ var r;
415
+ if (k(this.$attrs, "data")) {
274
416
  this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
275
417
  return;
276
418
  }
277
419
  this.records = [];
278
420
  let e;
279
- const r = this.page, { filters: t } = r, s = y(r, ["filters"]), a = g({}, s);
280
- if ((i = t == null ? void 0 : t.rules) != null && i.length && (a.filters = { rules: t.rules }), this.api || this.url) {
421
+ const i = this.page, { filters: s } = i, t = _(i, ["filters"]), a = c({}, t);
422
+ if ((r = s == null ? void 0 : s.rules) != null && r.length && (a.filters = { rules: s.rules }), this.api || this.url) {
281
423
  this.tableStatus = o.loading;
282
424
  try {
283
425
  this.api && (e = yield this.api(a)), this.url && (e = yield this.method(this.url, a));
284
- } catch (n) {
285
- this.tableStatus = o.error, console.error(n);
426
+ } catch (p) {
427
+ this.tableStatus = o.error, console.error(p);
286
428
  return;
287
429
  }
288
430
  } else {
@@ -292,44 +434,44 @@ const o = {
292
434
  });
293
435
  return;
294
436
  }
295
- const { data: l } = e || {}, { total: c, records: h } = l || {};
296
- this.page.total = Number(c), this.records = h, !h || !h.length ? this.tableStatus = o.empty : this.tableStatus = o.success, this.$refs.table.doLayout(), this.$emit("page-loaded", l);
437
+ const { data: l } = e || {}, { total: h, records: n } = l || {};
438
+ this.page.total = Number(h), this.records = n, !n || !n.length ? this.tableStatus = o.empty : this.tableStatus = o.success, this.$refs.table.doLayout(), this.$emit("page-loaded", l);
297
439
  });
298
440
  },
299
441
  refresh() {
300
- return d(this, null, function* () {
442
+ return u(this, null, function* () {
301
443
  yield this.getPage();
302
444
  });
303
445
  },
304
446
  reload() {
305
- return d(this, null, function* () {
306
- this.page = b(g({}, this.$options.data.call(this).page), {
447
+ return u(this, null, function* () {
448
+ this.page = m(c({}, this.$options.data.call(this).page), {
307
449
  total: this.page.total
308
450
  });
309
451
  });
310
452
  },
311
- scrollTo(e, t) {
312
- e && (this.$refs.table.bodyWrapper.scrollTop = e), t && (this.$refs.table.bodyWrapper.scrollLeft = t);
453
+ scrollTo(e, s) {
454
+ e && (this.$refs.table.bodyWrapper.scrollTop = e), s && (this.$refs.table.bodyWrapper.scrollLeft = s);
313
455
  }
314
456
  }
315
- }, $ = {};
316
- var R = /* @__PURE__ */ C(
317
- M,
318
- A,
319
- x,
320
- !1,
457
+ }, v = {};
458
+ var M = /* @__PURE__ */ L(
459
+ j,
460
+ R,
321
461
  W,
462
+ !1,
463
+ F,
322
464
  null,
323
465
  null,
324
466
  null
325
467
  );
326
- function W(e) {
327
- for (let t in $)
328
- this[t] = $[t];
468
+ function F(e) {
469
+ for (let s in v)
470
+ this[s] = v[s];
329
471
  }
330
- const I = /* @__PURE__ */ function() {
331
- return R.exports;
472
+ const q = /* @__PURE__ */ function() {
473
+ return M.exports;
332
474
  }();
333
475
  export {
334
- I as default
476
+ q as default
335
477
  };
@@ -37,7 +37,7 @@ var h = (e, t, s) => new Promise((l, r) => {
37
37
  });
38
38
  import { cloneDeep as _, merge as P } from "@web-utils/integrations/lodash";
39
39
  import { copy as x, hasOwn as C } from "@web-utils/core";
40
- import { f as S, a as O, b as M } from "../chunks/index.d91bd77a.mjs";
40
+ import { f as S, h as O, i as M } from "../chunks/index.57f871af.mjs";
41
41
  import R from "element-ui/lib/pagination";
42
42
  import { n as j } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
43
43
  var k = function() {