@web-utils/component 3.0.6 → 3.1.0

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 (172) hide show
  1. package/address-input/index.mjs +20 -57
  2. package/affix/index.mjs +26 -47
  3. package/aside-menu/index.mjs +18 -43
  4. package/avatar/index.mjs +27 -49
  5. package/awesome-button/index.mjs +35 -43
  6. package/capsule-tab/index.mjs +16 -34
  7. package/card/index.mjs +21 -76
  8. package/carousel/index.mjs +14 -49
  9. package/chat/index.mjs +104 -414
  10. package/chunk-file-uploader/index.mjs +21 -38
  11. package/chunks/FormTemp.aa57efb4.mjs +125 -0
  12. package/code-mirror-editor/index.mjs +69 -79
  13. package/color-picker/index.mjs +29 -60
  14. package/comment/index.mjs +17 -48
  15. package/confirm-button/index.mjs +11 -19
  16. package/confirmable/index.mjs +12 -20
  17. package/context-menu/index.mjs +42 -144
  18. package/count-up/index.mjs +18 -25
  19. package/custom-scrollbar/index.mjs +13 -22
  20. package/data-box/index.mjs +15 -66
  21. package/data-card/index.mjs +16 -65
  22. package/data-cardtext/index.mjs +16 -52
  23. package/data-display/index.mjs +18 -62
  24. package/data-icons/index.mjs +16 -68
  25. package/data-imgtext/index.mjs +18 -79
  26. package/data-operatext/index.mjs +18 -75
  27. package/data-panel/index.mjs +16 -63
  28. package/data-pay/index.mjs +20 -122
  29. package/data-price/index.mjs +18 -60
  30. package/data-progress/index.mjs +16 -67
  31. package/data-rotate/index.mjs +16 -66
  32. package/data-table-picker/index.mjs +25 -88
  33. package/data-tabs/index.mjs +16 -64
  34. package/dialog-form/index.mjs +48 -94
  35. package/dynamic-table/index.mjs +43 -127
  36. package/e-charts/index.mjs +21 -34
  37. package/easy-popup/index.mjs +35 -61
  38. package/editable-progress/index.mjs +22 -77
  39. package/editable-tree/index.mjs +235 -546
  40. package/egd-collapse/index.mjs +13 -26
  41. package/egd-collapse-item/index.mjs +27 -87
  42. package/element-dialog/index.mjs +69 -133
  43. package/empty-view/index.mjs +13 -33
  44. package/error-view/index.mjs +14 -34
  45. package/flex-column/index.mjs +15 -23
  46. package/flex-item/index.mjs +18 -26
  47. package/flex-row/index.mjs +23 -31
  48. package/flex-scroller/index.mjs +16 -27
  49. package/flow/index.mjs +70 -110
  50. package/flow-designer/index.mjs +1215 -4804
  51. package/flow-node/index.mjs +15 -51
  52. package/flow-viewer/index.mjs +64 -89
  53. package/form-block/index.mjs +43 -62
  54. package/form-button/index.mjs +10 -18
  55. package/form-cascader/index.mjs +49 -100
  56. package/form-checkbox-group/index.mjs +43 -110
  57. package/form-date-picker/index.mjs +51 -97
  58. package/form-holder/index.mjs +25 -42
  59. package/form-input/index.mjs +40 -90
  60. package/form-input-email/index.mjs +35 -79
  61. package/form-input-id-card/index.mjs +40 -87
  62. package/form-input-number/index.mjs +42 -102
  63. package/form-input-phone-number/index.mjs +34 -75
  64. package/form-input-tag/index.mjs +31 -73
  65. package/form-input-time/index.mjs +42 -87
  66. package/form-item/index.mjs +70 -89
  67. package/form-item-config-provider/index.mjs +12 -20
  68. package/form-item-group/index.mjs +46 -65
  69. package/form-radio-group/index.mjs +50 -108
  70. package/form-select/index.mjs +44 -95
  71. package/form-switch/index.mjs +38 -85
  72. package/form-textarea/index.mjs +31 -75
  73. package/form-view/index.mjs +112 -260
  74. package/fy-array/index.mjs +35 -121
  75. package/fy-article/index.mjs +12 -43
  76. package/fy-cascader/index.mjs +26 -67
  77. package/fy-checkbox/index.mjs +27 -77
  78. package/fy-code/index.mjs +19 -33
  79. package/fy-curd/index.mjs +810 -2017
  80. package/fy-date/index.mjs +18 -59
  81. package/fy-draggable/index.mjs +81 -140
  82. package/fy-dynamic/index.mjs +85 -204
  83. package/fy-empty/index.mjs +14 -35
  84. package/fy-form/index.mjs +254 -571
  85. package/fy-form-design/index.mjs +1489 -6084
  86. package/fy-form-design/style.css +1 -1
  87. package/fy-input/index.mjs +34 -104
  88. package/fy-input-color/index.mjs +22 -67
  89. package/fy-input-icon/index.mjs +37 -122
  90. package/fy-input-map/index.mjs +57 -149
  91. package/fy-input-number/index.mjs +18 -53
  92. package/fy-input-table/index.mjs +36 -102
  93. package/fy-input-tree/index.mjs +51 -138
  94. package/fy-progress/index.mjs +12 -31
  95. package/fy-radio/index.mjs +20 -51
  96. package/fy-rate/index.mjs +18 -51
  97. package/fy-select/index.mjs +49 -134
  98. package/fy-slider/index.mjs +19 -52
  99. package/fy-switch/index.mjs +18 -48
  100. package/fy-tabs/index.mjs +19 -51
  101. package/fy-time/index.mjs +22 -62
  102. package/fy-title/index.mjs +14 -25
  103. package/fy-tree/index.mjs +74 -216
  104. package/fy-u-editor/index.mjs +50 -64
  105. package/fy-upload/index.mjs +167 -338
  106. package/guide-steps/index.mjs +33 -53
  107. package/highlight-j-s/index.mjs +13 -27
  108. package/icon-card/index.mjs +12 -36
  109. package/icon-temp/index.mjs +12 -34
  110. package/iframe-window/index.mjs +13 -40
  111. package/image-cropper/index.mjs +46 -171
  112. package/image-preview/index.mjs +54 -168
  113. package/image-viewer/index.mjs +24 -50
  114. package/index.css +1 -0
  115. package/index.mjs +3973 -501
  116. package/input-number/index.mjs +84 -173
  117. package/input-number-range/index.mjs +20 -70
  118. package/j-s-x-component/index.mjs +3 -3
  119. package/keep-view-alive/index.mjs +47 -55
  120. package/keyboard/index.mjs +100 -113
  121. package/license/index.mjs +34 -51
  122. package/loading-view/index.mjs +14 -34
  123. package/login/index.mjs +33 -161
  124. package/monaco-editor/index.mjs +13 -21
  125. package/name-avatar/index.mjs +13 -32
  126. package/nav-bar/index.mjs +12 -31
  127. package/not-implement/index.mjs +14 -25
  128. package/notice/index.mjs +32 -80
  129. package/package.json +1 -1
  130. package/page/index.mjs +11 -23
  131. package/page-header/index.mjs +16 -37
  132. package/page-index/index.mjs +42 -93
  133. package/page-index-top/index.mjs +42 -84
  134. package/page-skeleton/index.mjs +24 -39
  135. package/page-skeleton-new/index.mjs +21 -68
  136. package/pageable-table/index.mjs +105 -227
  137. package/pageable-view/index.mjs +30 -83
  138. package/photo-swipe/index.mjs +62 -87
  139. package/present-view/index.mjs +114 -267
  140. package/queue/index.mjs +14 -29
  141. package/record-video/index.mjs +29 -66
  142. package/resize-observer/index.mjs +18 -30
  143. package/search/index.mjs +47 -81
  144. package/search-popover/index.mjs +57 -329
  145. package/sign/index.mjs +43 -60
  146. package/sign-panel/index.mjs +40 -151
  147. package/skeleton/index.mjs +18 -44
  148. package/split-pane/index.mjs +45 -129
  149. package/stateful/index.mjs +18 -26
  150. package/static-pageable-table/index.mjs +18 -44
  151. package/swiper/index.mjs +53 -94
  152. package/tab/index.mjs +13 -39
  153. package/tab-item/index.mjs +23 -37
  154. package/table-column/index.mjs +27 -35
  155. package/table-view/index.mjs +89 -209
  156. package/tag-render/index.mjs +34 -69
  157. package/text-ellipsis/index.mjs +22 -47
  158. package/tinymce-editor/index.mjs +174 -285
  159. package/toolbar/index.mjs +21 -42
  160. package/toolbar-button/index.mjs +25 -54
  161. package/verify/index.mjs +16 -29
  162. package/vue-cron/index.mjs +272 -1089
  163. package/vue-qr-code/index.mjs +19 -27
  164. package/vue-quill-editor/index.mjs +15 -27
  165. package/vue-tags-input/index.mjs +104 -224
  166. package/vue-tree-select/index.mjs +595 -742
  167. package/vue-video-player/index.mjs +42 -57
  168. package/watermark/index.mjs +27 -35
  169. package/web-types.json +1 -1
  170. package/x-input-tag/index.mjs +50 -112
  171. package/chunks/FormTemp.7f91629d.mjs +0 -165
  172. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- var o = (e, r, t) => new Promise((s, l) => {
2
- var a = (i) => {
1
+ var a = (r, e, t) => new Promise((s, l) => {
2
+ var o = (i) => {
3
3
  try {
4
4
  c(t.next(i));
5
5
  } catch (h) {
@@ -11,159 +11,14 @@ var o = (e, r, t) => new Promise((s, l) => {
11
11
  } catch (h) {
12
12
  l(h);
13
13
  }
14
- }, c = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(a, b);
15
- c((t = t.apply(e, r)).next());
14
+ }, c = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(o, b);
15
+ c((t = t.apply(r, e)).next());
16
16
  });
17
17
  import { merge as n } from "@web-utils/integrations/lodash";
18
- import { isString as d, isArray as m, trace as f, warning as _, toStringArray as g, isFunction as w, hasOwn as p } from "@web-utils/core";
19
- import { k as v } from "../chunks/index.57f871af.mjs";
20
- import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
21
- var P = function() {
22
- var e = this, r = e.$createElement, t = e._self._c || r;
23
- return t("div", {
24
- staticClass: "table-view"
25
- }, [t("Toolbar", e._g(e._b({
26
- on: {
27
- search: e.toggleSearch,
28
- del: e.del,
29
- create: e.create,
30
- reload: e.reloadTable,
31
- imp: function(s) {
32
- e.importDialogVisible = !0;
33
- }
34
- },
35
- scopedSlots: e._u([{
36
- key: "default",
37
- fn: function() {
38
- return [e._t("toolbar-button")];
39
- },
40
- proxy: !0
41
- }, e._l(e.buttonSlots, function(s) {
42
- return {
43
- key: s,
44
- fn: function() {
45
- return [e._t(s)];
46
- },
47
- proxy: !0
48
- };
49
- })], null, !0)
50
- }, "Toolbar", e.toolbarProps, !1), e.toolbarListeners)), t("div", {
51
- staticClass: "table-view-content-wrapper"
52
- }, [t("div", {
53
- staticClass: "table-view-content"
54
- }, [e.treeProps.show ? t("div", {
55
- ref: "treeScroller",
56
- staticClass: "table-view-sidebar",
57
- on: {
58
- scroll: e.onTreeScroll
59
- }
60
- }, [t("div", {
61
- staticStyle: {
62
- "font-size": "16px"
63
- }
64
- }, [e._v("视图导航")]), t("EditableTree", e._g(e._b({
65
- ref: "tree",
66
- attrs: {
67
- readonly: ""
68
- },
69
- scopedSlots: e._u([{
70
- key: "default",
71
- fn: function(s) {
72
- var l = s.node, a = s.data;
73
- return [e._t("tree-node", function() {
74
- return [t("span", [t("i", {
75
- staticClass: "node-icon",
76
- class: l.childNodes.length > 0 ? l.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets"
77
- }), e._t("tree-label", function() {
78
- return [e._v(e._s(l.label))];
79
- }, {
80
- node: l,
81
- data: a
82
- })], 2)];
83
- }, {
84
- node: l,
85
- data: a
86
- })];
87
- }
88
- }], null, !0)
89
- }, "EditableTree", e.treeProps, !1), e.treeListeners))], 1) : e._e(), t("div", {
90
- staticClass: "table-view-table"
91
- }, [t("PageableTable", e._g(e._b({
92
- ref: "table",
93
- class: [{
94
- "border-top": e.borderTop,
95
- "border-bottom": e.borderBottom,
96
- "border-left": e.borderLeft || e.treeAttrs && e.treeAttrs.show,
97
- "border-right": e.borderRight
98
- }],
99
- attrs: {
100
- border: e.border
101
- },
102
- on: {
103
- "row-dblclick": e.rowDbClick,
104
- "selection-change": e.onSelectionChange
105
- }
106
- }, "PageableTable", e.tableProps, !1), e.tableListeners), [e._t("columns")], 2)], 1)]), e.toolbarProps.searchable ? t("div", {
107
- staticClass: "slide-panel",
108
- style: {
109
- right: `${e.right}px`,
110
- width: `${e.searchPanelProps.width}px`
111
- }
112
- }, [e._m(0), t("div", {
113
- staticClass: "slide-panel-content"
114
- }, [t("ElForm", {
115
- ref: "form",
116
- attrs: {
117
- "label-position": "right",
118
- model: e.searchModel || e.searchPanelProps.model,
119
- size: "mini",
120
- "label-width": e.labelWidth
121
- },
122
- nativeOn: {
123
- "!submit": function(s) {
124
- return s.preventDefault(), e.onSearchClick.apply(null, arguments);
125
- }
126
- }
127
- }, [t("FormItemConfigProvider", {
128
- attrs: {
129
- block: "",
130
- "wrap-col": !1
131
- }
132
- }, [t("ElRow", {
133
- attrs: {
134
- gutter: 0
135
- }
136
- }, [e._t("search-form", function() {
137
- return [t("p", [e._v("请添加搜索条件!")])];
138
- })], 2)], 1), t("ElFormItem", {
139
- attrs: {
140
- "label-width": "0"
141
- }
142
- }, [t("div", {
143
- staticClass: "slide-panel-actions"
144
- }, [t("ElButton", {
145
- attrs: {
146
- type: "primary",
147
- "native-type": "submit",
148
- size: "mini"
149
- }
150
- }, [e._v(" 开始搜索 ")]), t("ElButton", {
151
- attrs: {
152
- size: "mini"
153
- },
154
- on: {
155
- click: e.onClearClick
156
- }
157
- }, [e._v(" 清除条件 ")])], 1)])], 1)], 1)]) : e._e()]), e._t("default")], 2);
158
- }, S = [function() {
159
- var e = this, r = e.$createElement, t = e._self._c || r;
160
- return t("div", {
161
- staticClass: "slide-panel-line"
162
- }, [t("div", {
163
- staticClass: "slide-panel-line-indicator"
164
- })]);
165
- }];
166
- const $ = [
18
+ import { isString as d, isArray as u, trace as f, warning as m, toStringArray as _, isFunction as g, hasOwn as p } from "@web-utils/core";
19
+ import { k as w } from "../chunks/index.57f871af.mjs";
20
+ import { n as v } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
21
+ const y = [
167
22
  "back",
168
23
  "create",
169
24
  "save",
@@ -183,16 +38,16 @@ const $ = [
183
38
  "disabled",
184
39
  "reload",
185
40
  "slot"
186
- ], T = {
41
+ ], P = {
187
42
  name: "TableView",
188
43
  bus: {
189
- reloadTableView(e, r) {
44
+ reloadTableView(r, e) {
190
45
  if (this._viewIds)
191
- if (d(e) || m(e)) {
192
- let t = e;
193
- d(t) && (t = t.split(",")), this._viewIds.some((s) => t.includes(s)) && (r ? this.$refs.tree && (f.call(this.$parent || {}, "reloadTree"), this.refreshTree()) : (f.call(this.$parent || {}, "reloadTable"), this.reloadTable()));
46
+ if (d(r) || u(r)) {
47
+ let t = r;
48
+ d(t) && (t = t.split(",")), this._viewIds.some((s) => t.includes(s)) && (e ? this.$refs.tree && (f.call(this.$parent || {}, "reloadTree"), this.refreshTree()) : (f.call(this.$parent || {}, "reloadTable"), this.reloadTable()));
194
49
  } else
195
- _.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
50
+ m.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
196
51
  }
197
52
  },
198
53
  props: {
@@ -251,29 +106,29 @@ const $ = [
251
106
  }
252
107
  },
253
108
  data() {
254
- var e;
109
+ var r;
255
110
  return {
256
111
  importDialogVisible: !1,
257
- right: -(((e = this.searchPanelAttrs) == null ? void 0 : e.width) || 350),
112
+ right: -(((r = this.searchPanelAttrs) == null ? void 0 : r.width) || 350),
258
113
  selectedRows: []
259
114
  };
260
115
  },
261
116
  computed: {
262
117
  buttonSlots() {
263
- return $.filter((e) => this.$scopedSlots[e]);
118
+ return y.filter((r) => this.$scopedSlots[r]);
264
119
  },
265
120
  toolbarProps() {
266
121
  var s, l;
267
- const e = {}, r = n(this.toolbarAttrs, e);
268
- let t = (r == null ? void 0 : r.buttons) || this.$parent.buttons;
269
- return t = t || [], t.includes("reload") || (t = [...t, "reload"]), r.buttons = t, r.buttons = g(r.buttons), r.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), r;
122
+ const r = {}, e = n(this.toolbarAttrs, r);
123
+ let t = (e == null ? void 0 : e.buttons) || this.$parent.buttons;
124
+ return t = t || [], t.includes("reload") || (t = [...t, "reload"]), e.buttons = t, e.buttons = _(e.buttons), e.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), e;
270
125
  },
271
126
  treeProps() {
272
- const e = {
127
+ const r = {
273
128
  treeProps: {
274
129
  children: "children",
275
130
  label: "label",
276
- isLeaf: (r) => p(r, "hasChildren") ? !r.hasChildren : p(r, "hasChild") ? !r.hasChild : !0
131
+ isLeaf: (e) => p(e, "hasChildren") ? !e.hasChildren : p(e, "hasChild") ? !e.hasChild : !0
277
132
  },
278
133
  show: !1,
279
134
  lazy: !0,
@@ -282,30 +137,30 @@ const $ = [
282
137
  "expand-first-node": !1,
283
138
  "default-expand-all": !1
284
139
  };
285
- return n(this.treeAttrs, e);
140
+ return n(this.treeAttrs, r);
286
141
  },
287
142
  tableProps() {
288
- const e = this.tableAttrs.api || this.$parent.getPage, r = {
143
+ const r = this.tableAttrs.api || this.$parent.getPage, e = {
289
144
  model: this.searchModel || {},
290
145
  height: "auto",
291
146
  "highlight-current-row": !0,
292
- api: e
147
+ api: r
293
148
  };
294
- return n(this.tableAttrs, r);
149
+ return n(this.tableAttrs, e);
295
150
  },
296
151
  searchPanelProps() {
297
- const e = {
152
+ const r = {
298
153
  width: 350,
299
154
  model: this.searchModel || {}
300
155
  };
301
- return n(this.searchPanelAttrs, e);
156
+ return n(this.searchPanelAttrs, r);
302
157
  }
303
158
  },
304
159
  created() {
305
160
  this._viewIds = [], this.viewId && this._viewIds.push(this.viewId), this._viewIds.includes(this.$parent.$options.name) || this._viewIds.push(this.$parent.$options.name);
306
161
  },
307
162
  activated() {
308
- return o(this, null, function* () {
163
+ return a(this, null, function* () {
309
164
  this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
310
165
  });
311
166
  },
@@ -317,34 +172,34 @@ const $ = [
317
172
  this.right = this.right === 0 ? -this.searchPanelProps.width : 0;
318
173
  },
319
174
  onSearchClick() {
320
- return o(this, null, function* () {
175
+ return a(this, null, function* () {
321
176
  this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), yield this.refreshTable();
322
177
  });
323
178
  },
324
179
  onClearClick() {
325
- return o(this, null, function* () {
180
+ return a(this, null, function* () {
326
181
  this.$emit("reset"), this.$refs.form.resetFields(), this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), yield this.refreshTable();
327
182
  });
328
183
  },
329
- openFrom(e) {
330
- this.$router.push(v(this.formPath, e));
184
+ openFrom(r) {
185
+ this.$router.push(w(this.formPath, r));
331
186
  },
332
- rowDbClick(e) {
333
- var r;
334
- !((r = this.tableListeners) != null && r["row-dblclick"]) && this.formPath && this.openFrom(e);
187
+ rowDbClick(r) {
188
+ var e;
189
+ !((e = this.tableListeners) != null && e["row-dblclick"]) && this.formPath && this.openFrom(r);
335
190
  },
336
- onSelectionChange(e) {
337
- this.selectedRows = e;
191
+ onSelectionChange(r) {
192
+ this.selectedRows = r;
338
193
  },
339
194
  create() {
340
- var e;
341
- !((e = this.toolbarListeners) != null && e.create) && this.formPath && this.openFrom();
195
+ var r;
196
+ !((r = this.toolbarListeners) != null && r.create) && this.formPath && this.openFrom();
342
197
  },
343
198
  del() {
344
- return o(this, null, function* () {
345
- var r;
346
- const e = this.deleteApi || this.$parent.del;
347
- if (!((r = this.toolbarListeners) != null && r.del) && w(e)) {
199
+ return a(this, null, function* () {
200
+ var e;
201
+ const r = this.deleteApi || this.$parent.del;
202
+ if (!((e = this.toolbarListeners) != null && e.del) && g(r)) {
348
203
  if (!this.selectedRows.length) {
349
204
  this.$message.warning("请选择要删除的记录!");
350
205
  return;
@@ -357,11 +212,11 @@ const $ = [
357
212
  modal: !0,
358
213
  dangerouslyUseHTMLString: !0,
359
214
  closeOnClickModal: !1,
360
- beforeClose: (t, s, l) => o(this, null, function* () {
215
+ beforeClose: (t, s, l) => a(this, null, function* () {
361
216
  if (t === "confirm")
362
217
  try {
363
- s.confirmButtonLoading = !0, s.confirmButtonText = "删除...", yield e.call(this, this.selectedRows.map((a) => a.id).join(",")), this.$message.success("删除成功"), yield this.reloadTable(), yield this.refreshTree();
364
- } catch (a) {
218
+ s.confirmButtonLoading = !0, s.confirmButtonText = "删除...", yield r.call(this, this.selectedRows.map((o) => o.id).join(",")), this.$message.success("删除成功"), yield this.reloadTable(), yield this.refreshTree();
219
+ } catch (o) {
365
220
  }
366
221
  l();
367
222
  })
@@ -371,13 +226,13 @@ const $ = [
371
226
  });
372
227
  },
373
228
  reloadTable() {
374
- var e;
375
- (e = this.$refs.table) == null || e.reload();
229
+ var r;
230
+ (r = this.$refs.table) == null || r.reload();
376
231
  },
377
232
  refreshTable() {
378
- return o(this, null, function* () {
379
- var e;
380
- yield (e = this.$refs.table) == null ? void 0 : e.getPage();
233
+ return a(this, null, function* () {
234
+ var r;
235
+ yield (r = this.$refs.table) == null ? void 0 : r.getPage();
381
236
  });
382
237
  },
383
238
  refreshTree() {
@@ -387,24 +242,49 @@ const $ = [
387
242
  return this.searchPanelProps.model;
388
243
  }
389
244
  }
390
- }, u = {};
391
- var C = /* @__PURE__ */ y(
392
- T,
245
+ };
246
+ var S = function() {
247
+ var e = this, t = e._self._c;
248
+ return t("div", { staticClass: "table-view" }, [t("Toolbar", e._g(e._b({ on: { search: e.toggleSearch, del: e.del, create: e.create, reload: e.reloadTable, imp: function(s) {
249
+ e.importDialogVisible = !0;
250
+ } }, scopedSlots: e._u([{ key: "default", fn: function() {
251
+ return [e._t("toolbar-button")];
252
+ }, proxy: !0 }, e._l(e.buttonSlots, function(s) {
253
+ return { key: s, fn: function() {
254
+ return [e._t(s)];
255
+ }, proxy: !0 };
256
+ })], null, !0) }, "Toolbar", e.toolbarProps, !1), e.toolbarListeners)), t("div", { staticClass: "table-view-content-wrapper" }, [t("div", { staticClass: "table-view-content" }, [e.treeProps.show ? t("div", { ref: "treeScroller", staticClass: "table-view-sidebar", on: { scroll: e.onTreeScroll } }, [t("div", { staticStyle: { "font-size": "16px" } }, [e._v("视图导航")]), t("EditableTree", e._g(e._b({ ref: "tree", attrs: { readonly: "" }, scopedSlots: e._u([{ key: "default", fn: function({ node: s, data: l }) {
257
+ return [e._t("tree-node", function() {
258
+ return [t("span", [t("i", { staticClass: "node-icon", class: s.childNodes.length > 0 ? s.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets" }), e._t("tree-label", function() {
259
+ return [e._v(e._s(s.label))];
260
+ }, { node: s, data: l })], 2)];
261
+ }, { node: s, data: l })];
262
+ } }], null, !0) }, "EditableTree", e.treeProps, !1), e.treeListeners))], 1) : e._e(), t("div", { staticClass: "table-view-table" }, [t("PageableTable", e._g(e._b({ ref: "table", class: [
263
+ {
264
+ "border-top": e.borderTop,
265
+ "border-bottom": e.borderBottom,
266
+ "border-left": e.borderLeft || e.treeAttrs && e.treeAttrs.show,
267
+ "border-right": e.borderRight
268
+ }
269
+ ], attrs: { border: e.border }, on: { "row-dblclick": e.rowDbClick, "selection-change": e.onSelectionChange } }, "PageableTable", e.tableProps, !1), e.tableListeners), [e._t("columns")], 2)], 1)]), e.toolbarProps.searchable ? t("div", { staticClass: "slide-panel", style: { right: `${e.right}px`, width: `${e.searchPanelProps.width}px` } }, [e._m(0), t("div", { staticClass: "slide-panel-content" }, [t("ElForm", { ref: "form", attrs: { "label-position": "right", model: e.searchModel || e.searchPanelProps.model, size: "mini", "label-width": e.labelWidth }, nativeOn: { "!submit": function(s) {
270
+ return s.preventDefault(), e.onSearchClick.apply(null, arguments);
271
+ } } }, [t("FormItemConfigProvider", { attrs: { block: "", "wrap-col": !1 } }, [t("ElRow", { attrs: { gutter: 0 } }, [e._t("search-form", function() {
272
+ return [t("p", [e._v("请添加搜索条件!")])];
273
+ })], 2)], 1), t("ElFormItem", { attrs: { "label-width": "0" } }, [t("div", { staticClass: "slide-panel-actions" }, [t("ElButton", { attrs: { type: "primary", "native-type": "submit", size: "mini" } }, [e._v(" 开始搜索 ")]), t("ElButton", { attrs: { size: "mini" }, on: { click: e.onClearClick } }, [e._v(" 清除条件 ")])], 1)])], 1)], 1)]) : e._e()]), e._t("default")], 2);
274
+ }, T = [function() {
275
+ var r = this, e = r._self._c;
276
+ return e("div", { staticClass: "slide-panel-line" }, [e("div", { staticClass: "slide-panel-line-indicator" })]);
277
+ }], $ = /* @__PURE__ */ v(
393
278
  P,
394
279
  S,
280
+ T,
395
281
  !1,
396
- L,
282
+ null,
397
283
  null,
398
284
  null,
399
285
  null
400
286
  );
401
- function L(e) {
402
- for (let r in u)
403
- this[r] = u[r];
404
- }
405
- const M = /* @__PURE__ */ function() {
406
- return C.exports;
407
- }();
287
+ const B = $.exports;
408
288
  export {
409
- M as default
289
+ B as default
410
290
  };
@@ -1,55 +1,17 @@
1
- var c = Object.defineProperty;
1
+ var u = Object.defineProperty;
2
2
  var r = Object.getOwnPropertySymbols;
3
- var _ = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
4
- var l = (e, t, n) => t in e ? c(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, o = (e, t) => {
5
- for (var n in t || (t = {}))
6
- _.call(t, n) && l(e, n, t[n]);
3
+ var c = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
4
+ var l = (t, e, n) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, i = (t, e) => {
5
+ for (var n in e || (e = {}))
6
+ c.call(e, n) && l(t, n, e[n]);
7
7
  if (r)
8
- for (var n of r(t))
9
- m.call(t, n) && l(e, n, t[n]);
10
- return e;
8
+ for (var n of r(e))
9
+ _.call(e, n) && l(t, n, e[n]);
10
+ return t;
11
11
  };
12
- import { hasOwn as i } from "@web-utils/core";
13
- import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
14
- var f = function() {
15
- var e = this, t = e.$createElement, n = e._self._c || t;
16
- return n("div", {
17
- staticClass: "tag-render"
18
- }, [e.tags && e.tags.length && e.tags[0] ? e._l(e.internalTags, function(s, a) {
19
- return n("ElTag", {
20
- key: a,
21
- attrs: {
22
- closable: e.enable,
23
- size: "medium",
24
- "disable-transitions": ""
25
- },
26
- on: {
27
- close: function(b) {
28
- return e.$emit("close", e.tags[a], a);
29
- }
30
- }
31
- }, [e._v(" " + e._s(e.getTagName(s)) + " ")]);
32
- }) : e.enable ? e._e() : [n("span", {
33
- staticStyle: {
34
- "margin-left": "4px",
35
- color: "#b5b5b5",
36
- "line-height": "16px"
37
- }
38
- }, [e._v("无")])], e.enable ? n("ElButton", {
39
- staticClass: "add-tag",
40
- attrs: {
41
- size: "mini"
42
- },
43
- on: {
44
- click: function(s) {
45
- return e.$emit("add");
46
- }
47
- }
48
- }, [e._v("+ 添加")]) : e._e(), e.count ? n("span", {
49
- staticClass: "tags-count"
50
- }, [e._v(e._s(e.tags.length && e.tags[0] ? e.tags.length : ""))]) : e._e()], 2);
51
- }, d = [];
52
- const p = {
12
+ import { hasOwn as o } from "@web-utils/core";
13
+ import { n as m } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
14
+ const g = {
53
15
  name: "TagRender",
54
16
  inject: {
55
17
  elFormItem: {
@@ -76,41 +38,44 @@ const p = {
76
38
  },
77
39
  computed: {
78
40
  internalTags() {
79
- return this.transfer ? this.tags.map((e) => {
80
- const t = o({}, e);
81
- return this.transfer(t);
41
+ return this.transfer ? this.tags.map((t) => {
42
+ const e = i({}, t);
43
+ return this.transfer(e);
82
44
  }) : this.tags;
83
45
  }
84
46
  },
85
47
  watch: {
86
- tags(e) {
87
- var t, n;
88
- this.elFormItem && e && e.length > 0 && ((n = (t = this.elFormItem).clearValidate) == null || n.call(t));
48
+ tags(t) {
49
+ var e, n;
50
+ this.elFormItem && t && t.length > 0 && ((n = (e = this.elFormItem).clearValidate) == null || n.call(e));
89
51
  }
90
52
  },
91
53
  methods: {
92
- getTagName(e) {
93
- return i(e, "name") ? e.name : i(e, "label") ? e.label : e;
54
+ getTagName(t) {
55
+ return o(t, "name") ? t.name : o(t, "label") ? t.label : t;
94
56
  }
95
57
  }
96
- }, u = {};
97
- var h = /* @__PURE__ */ g(
98
- p,
58
+ };
59
+ var f = function() {
60
+ var e = this, n = e._self._c;
61
+ return n("div", { staticClass: "tag-render" }, [e.tags && e.tags.length && e.tags[0] ? e._l(e.internalTags, function(s, a) {
62
+ return n("ElTag", { key: a, attrs: { closable: e.enable, size: "medium", "disable-transitions": "" }, on: { close: function(h) {
63
+ return e.$emit("close", e.tags[a], a);
64
+ } } }, [e._v(" " + e._s(e.getTagName(s)) + " ")]);
65
+ }) : e.enable ? e._e() : [n("span", { staticStyle: { "margin-left": "4px", color: "#b5b5b5", "line-height": "16px" } }, [e._v("无")])], e.enable ? n("ElButton", { staticClass: "add-tag", attrs: { size: "mini" }, on: { click: function(s) {
66
+ return e.$emit("add");
67
+ } } }, [e._v("+ 添加")]) : e._e(), e.count ? n("span", { staticClass: "tags-count" }, [e._v(e._s(e.tags.length && e.tags[0] ? e.tags.length : ""))]) : e._e()], 2);
68
+ }, d = [], p = /* @__PURE__ */ m(
69
+ g,
99
70
  f,
100
71
  d,
101
72
  !1,
102
- v,
73
+ null,
103
74
  null,
104
75
  null,
105
76
  null
106
77
  );
107
- function v(e) {
108
- for (let t in u)
109
- this[t] = u[t];
110
- }
111
- const $ = /* @__PURE__ */ function() {
112
- return h.exports;
113
- }();
78
+ const T = p.exports;
114
79
  export {
115
- $ as default
80
+ T as default
116
81
  };
@@ -1,28 +1,6 @@
1
- import { s as o } from "../chunks/util.ae730cde.mjs";
2
- import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var h = function() {
4
- var t = this, e = t.$createElement, i = t._self._c || e;
5
- return i("div", {
6
- staticClass: "avue-text-ellipsis",
7
- style: {
8
- width: t.setPx(t.width, "100%")
9
- }
10
- }, [t._t("before"), i("ElTooltip", {
11
- attrs: {
12
- content: t.text,
13
- disabled: !(t.useTooltip && t.isHide),
14
- placement: t.placement
15
- }
16
- }, [i("span", [i("span", {
17
- key: t.keyIndex,
18
- ref: "text",
19
- staticClass: "avue-text-ellipsis__text"
20
- }, [t._v(t._s(t.text))])])]), i("span", {
21
- ref: "more",
22
- staticClass: "avue-text-ellipsis__more"
23
- }, [t._t("more")], 2), t._t("after")], 2);
24
- }, a = [];
25
- const f = {
1
+ import { s as n } from "../chunks/util.ae730cde.mjs";
2
+ import { n as o } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const h = {
26
4
  name: "TextEllipsis",
27
5
  props: {
28
6
  text: String,
@@ -60,46 +38,43 @@ const f = {
60
38
  this.init();
61
39
  },
62
40
  methods: {
63
- setPx: o,
41
+ setPx: n,
64
42
  init() {
65
43
  this.oversize = !1, this.keyIndex += 1;
66
- const t = this.$refs.more;
67
- t.style.display = "none", this.isLimitHeight && this.limitShow();
44
+ const i = this.$refs.more;
45
+ i.style.display = "none", this.isLimitHeight && this.limitShow();
68
46
  },
69
47
  limitShow() {
70
48
  this.$nextTick(() => {
71
- const t = this.$refs.text, e = this.$el, i = this.$refs.more;
72
- let n = 1e3;
73
- if (t)
74
- if (e.offsetHeight > this.height) {
75
- i.style.display = "inline-block";
49
+ const i = this.$refs.text, t = this.$el, e = this.$refs.more;
50
+ let l = 1e3;
51
+ if (i)
52
+ if (t.offsetHeight > this.height) {
53
+ e.style.display = "inline-block";
76
54
  let s = this.text;
77
- for (; e.offsetHeight > this.height && n > 0; )
78
- e.offsetHeight > this.height * 3 ? t.innerText = s = s.substring(0, Math.floor(s.length / 2)) : t.innerText = s = s.substring(0, s.length - 1), n--;
55
+ for (; t.offsetHeight > this.height && l > 0; )
56
+ t.offsetHeight > this.height * 3 ? i.innerText = s = s.substring(0, Math.floor(s.length / 2)) : i.innerText = s = s.substring(0, s.length - 1), l--;
79
57
  this.$emit("hide"), this.isHide = !0;
80
58
  } else
81
59
  this.$emit("show"), this.isHide = !1;
82
60
  });
83
61
  }
84
62
  }
85
- }, l = {};
86
- var _ = /* @__PURE__ */ r(
87
- f,
63
+ };
64
+ var r = function() {
65
+ var t = this, e = t._self._c;
66
+ return e("div", { staticClass: "avue-text-ellipsis", style: { width: t.setPx(t.width, "100%") } }, [t._t("before"), e("ElTooltip", { attrs: { content: t.text, disabled: !(t.useTooltip && t.isHide), placement: t.placement } }, [e("span", [e("span", { key: t.keyIndex, ref: "text", staticClass: "avue-text-ellipsis__text" }, [t._v(t._s(t.text))])])]), e("span", { ref: "more", staticClass: "avue-text-ellipsis__more" }, [t._t("more")], 2), t._t("after")], 2);
67
+ }, a = [], f = /* @__PURE__ */ o(
88
68
  h,
69
+ r,
89
70
  a,
90
71
  !1,
91
- m,
72
+ null,
92
73
  null,
93
74
  null,
94
75
  null
95
76
  );
96
- function m(t) {
97
- for (let e in l)
98
- this[e] = l[e];
99
- }
100
- const u = /* @__PURE__ */ function() {
101
- return _.exports;
102
- }();
77
+ const p = f.exports;
103
78
  export {
104
- u as default
79
+ p as default
105
80
  };