@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,108 +1,9 @@
1
- import { p, e as u } from "../chunks/event.b5d855dd.mjs";
1
+ import { p as c, e as p } from "../chunks/event.b5d855dd.mjs";
2
2
  import { isBlank as d } from "@web-utils/core";
3
- import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var m = function() {
5
- var e = this, t = e.$createElement, s = e._self._c || t;
6
- return s("div", {
7
- staticClass: "avue-input-map"
8
- }, [s("ElInput", {
9
- ref: "main",
10
- attrs: {
11
- size: e.size,
12
- clearable: e.clearableVal,
13
- rows: e.rows,
14
- autosize: {
15
- minRows: e.minRows,
16
- maxRows: e.maxRows
17
- },
18
- disabled: e.disabled,
19
- type: "textarea",
20
- placeholder: e.placeholder
21
- },
22
- on: {
23
- clear: e.handleClear,
24
- focus: e.handleShow
25
- },
26
- nativeOn: {
27
- click: function(i) {
28
- return e.handleClick.apply(null, arguments);
29
- }
30
- },
31
- model: {
32
- value: e.address,
33
- callback: function(i) {
34
- e.address = i;
35
- },
36
- expression: "address"
37
- }
38
- }), e.box ? s("div", [s("ElementDialog", {
39
- attrs: {
40
- "show-full-screen": "",
41
- width: e.dialogWidth,
42
- title: e.placeholder,
43
- visible: e.box
44
- },
45
- on: {
46
- "update:visible": function(i) {
47
- e.box = i;
48
- },
49
- close: e.handleClose
50
- },
51
- scopedSlots: e._u([{
52
- key: "footer",
53
- fn: function() {
54
- return [e.disabled || e.readonly ? e._e() : s("ElButton", {
55
- attrs: {
56
- type: "primary",
57
- size: e.size,
58
- icon: "el-icon-check"
59
- },
60
- on: {
61
- click: e.handleSubmit
62
- }
63
- }, [e._v(" 确 定 ")])];
64
- },
65
- proxy: !0
66
- }], null, !1, 1816263233)
67
- }, [e.box ? s("div", {
68
- staticClass: "avue-input-map__content"
69
- }, [s("ElInput", {
70
- staticClass: "avue-input-map__content-input",
71
- attrs: {
72
- id: "map__input",
73
- size: e.size,
74
- readonly: e.disabled,
75
- clearable: "",
76
- placeholder: "输入关键字选取地点"
77
- },
78
- on: {
79
- clear: e.clear
80
- },
81
- model: {
82
- value: e.formattedAddress,
83
- callback: function(i) {
84
- e.formattedAddress = i;
85
- },
86
- expression: "formattedAddress"
87
- }
88
- }), s("div", {
89
- staticClass: "avue-input-map__content-box"
90
- }, [s("div", {
91
- staticClass: "avue-input-map__content-container",
92
- attrs: {
93
- id: "map__container",
94
- tabindex: "0"
95
- }
96
- }), s("div", {
97
- staticClass: "avue-input-map__content-result",
98
- attrs: {
99
- id: "map__result"
100
- }
101
- })])], 1) : e._e()])], 1) : e._e()], 1);
102
- }, _ = [];
103
- const f = {
3
+ import { n as u } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
4
+ const h = {
104
5
  name: "FyInputMap",
105
- mixins: [p, u],
6
+ mixins: [c, p],
106
7
  props: {
107
8
  dialogWidth: {
108
9
  type: String,
@@ -129,30 +30,30 @@ const f = {
129
30
  },
130
31
  computed: {
131
32
  longitude() {
132
- var e;
133
- return (e = this.text) == null ? void 0 : e[0];
33
+ var t;
34
+ return (t = this.text) == null ? void 0 : t[0];
134
35
  },
135
36
  latitude() {
136
- var e;
137
- return (e = this.text) == null ? void 0 : e[1];
37
+ var t;
38
+ return (t = this.text) == null ? void 0 : t[1];
138
39
  },
139
40
  title() {
140
41
  return this.disabled || this.readonly ? "查看" : "选择";
141
42
  }
142
43
  },
143
44
  watch: {
144
- poi(e) {
145
- this.formattedAddress = e.formattedAddress;
45
+ poi(t) {
46
+ this.formattedAddress = t.formattedAddress;
146
47
  },
147
- value(e) {
148
- d(e) && (this.poi = {}, this.address = "");
48
+ value(t) {
49
+ d(t) && (this.poi = {}, this.address = "");
149
50
  },
150
- text(e) {
151
- d(e) || (this.poi = {
152
- longitude: e[0],
153
- latitude: e[1],
154
- formattedAddress: e[2]
155
- }, this.address = e[2]);
51
+ text(t) {
52
+ d(t) || (this.poi = {
53
+ longitude: t[0],
54
+ latitude: t[1],
55
+ formattedAddress: t[2]
56
+ }, this.address = t[2]);
156
57
  },
157
58
  box: {
158
59
  handler() {
@@ -185,22 +86,22 @@ const f = {
185
86
  this.$refs.main.blur(), this.box = !0;
186
87
  },
187
88
  // 新增坐标
188
- addMarker(e, t) {
189
- this.clearMarker(), this.marker = new window.AMap.Marker({ position: [e, t] }), this.marker.setMap(this.map);
89
+ addMarker(t, e) {
90
+ this.clearMarker(), this.marker = new window.AMap.Marker({ position: [t, e] }), this.marker.setMap(this.map);
190
91
  },
191
92
  // 清空坐标
192
93
  clearMarker() {
193
94
  this.marker && (this.marker.setMap(null), this.marker = null);
194
95
  },
195
96
  // 获取坐标
196
- getAddress(e, t) {
97
+ getAddress(t, e) {
197
98
  this.service = new window.AMap.service("AMap.Geocoder", () => {
198
- new window.AMap.Geocoder({}).getAddress([e, t], (i, r) => {
99
+ new window.AMap.Geocoder({}).getAddress([t, e], (i, r) => {
199
100
  if (i === "complete" && r.info === "OK") {
200
- const c = r.regeocode;
201
- this.poi = Object.assign(c, {
202
- longitude: e,
203
- latitude: t
101
+ const l = r.regeocode;
102
+ this.poi = Object.assign(l, {
103
+ longitude: t,
104
+ latitude: e
204
105
  });
205
106
  const a = document.createElement("div"), o = document.createElement("img");
206
107
  o.src = "//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png", a.appendChild(o);
@@ -211,18 +112,18 @@ const f = {
211
112
  });
212
113
  },
213
114
  handleClose() {
214
- var e;
215
- (e = this.poiPicker) == null || e.clearSearchResults();
115
+ var t;
116
+ (t = this.poiPicker) == null || t.clearSearchResults();
216
117
  },
217
118
  addClick() {
218
- this.map.on("click", (e) => {
119
+ this.map.on("click", (t) => {
219
120
  if (this.disabled || this.readonly)
220
121
  return;
221
- const t = e.lnglat, s = t.P || t.Q, i = t.R;
122
+ const e = t.lnglat, s = e.P || e.Q, i = e.R;
222
123
  this.addMarker(i, s), this.getAddress(i, s);
223
124
  });
224
125
  },
225
- init(e) {
126
+ init(t) {
226
127
  this.map = new window.AMap.Map(
227
128
  "map__container",
228
129
  Object.assign(
@@ -235,11 +136,11 @@ const f = {
235
136
  },
236
137
  this.params
237
138
  )
238
- ), this.initPoip(), this.addClick(), e();
139
+ ), this.initPoip(), this.addClick(), t();
239
140
  },
240
141
  initPoip() {
241
- window.AMapUI.loadUI(["misc/PoiPicker"], (e) => {
242
- const t = new e({
142
+ window.AMapUI.loadUI(["misc/PoiPicker"], (t) => {
143
+ const e = new t({
243
144
  input: "map__input",
244
145
  placeSearchOptions: {
245
146
  map: this.map,
@@ -247,39 +148,46 @@ const f = {
247
148
  },
248
149
  searchResultsContainer: "map__result"
249
150
  });
250
- this.poiPickerReady(t);
151
+ this.poiPickerReady(e);
251
152
  });
252
153
  },
253
- poiPickerReady(e) {
254
- this.poiPicker = e, e.on("poiPicked", (t) => {
154
+ poiPickerReady(t) {
155
+ this.poiPicker = t, t.on("poiPicked", (e) => {
255
156
  this.clearMarker();
256
- const s = t.source, i = t.item;
157
+ const s = e.source, i = e.item;
257
158
  this.poi = Object.assign(i, {
258
159
  formattedAddress: i.name,
259
160
  longitude: i.location.R,
260
161
  latitude: i.location.P || i.location.Q
261
- }), s !== "search" && e.searchByKeyword(i.name);
162
+ }), s !== "search" && t.searchByKeyword(i.name);
262
163
  });
263
164
  }
264
165
  }
265
- }, l = {};
266
- var k = /* @__PURE__ */ h(
267
- f,
166
+ };
167
+ var m = function() {
168
+ var e = this, s = e._self._c;
169
+ return s("div", { staticClass: "avue-input-map" }, [s("ElInput", { ref: "main", attrs: { size: e.size, clearable: e.clearableVal, rows: e.rows, autosize: { minRows: e.minRows, maxRows: e.maxRows }, disabled: e.disabled, type: "textarea", placeholder: e.placeholder }, on: { clear: e.handleClear, focus: e.handleShow }, nativeOn: { click: function(i) {
170
+ return e.handleClick.apply(null, arguments);
171
+ } }, model: { value: e.address, callback: function(i) {
172
+ e.address = i;
173
+ }, expression: "address" } }), e.box ? s("div", [s("ElementDialog", { attrs: { "show-full-screen": "", width: e.dialogWidth, title: e.placeholder, visible: e.box }, on: { "update:visible": function(i) {
174
+ e.box = i;
175
+ }, close: e.handleClose }, scopedSlots: e._u([{ key: "footer", fn: function() {
176
+ return [e.disabled || e.readonly ? e._e() : s("ElButton", { attrs: { type: "primary", size: e.size, icon: "el-icon-check" }, on: { click: e.handleSubmit } }, [e._v(" 确 定 ")])];
177
+ }, proxy: !0 }], null, !1, 1816263233) }, [e.box ? s("div", { staticClass: "avue-input-map__content" }, [s("ElInput", { staticClass: "avue-input-map__content-input", attrs: { id: "map__input", size: e.size, readonly: e.disabled, clearable: "", placeholder: "输入关键字选取地点" }, on: { clear: e.clear }, model: { value: e.formattedAddress, callback: function(i) {
178
+ e.formattedAddress = i;
179
+ }, expression: "formattedAddress" } }), s("div", { staticClass: "avue-input-map__content-box" }, [s("div", { staticClass: "avue-input-map__content-container", attrs: { id: "map__container", tabindex: "0" } }), s("div", { staticClass: "avue-input-map__content-result", attrs: { id: "map__result" } })])], 1) : e._e()])], 1) : e._e()], 1);
180
+ }, _ = [], f = /* @__PURE__ */ u(
181
+ h,
268
182
  m,
269
183
  _,
270
184
  !1,
271
- g,
185
+ null,
272
186
  null,
273
187
  null,
274
188
  null
275
189
  );
276
- function g(e) {
277
- for (let t in l)
278
- this[t] = l[t];
279
- }
280
- const w = /* @__PURE__ */ function() {
281
- return k.exports;
282
- }();
190
+ const w = f.exports;
283
191
  export {
284
192
  w as default
285
193
  };
@@ -1,44 +1,8 @@
1
- import { p as o, e as a } from "../chunks/event.b5d855dd.mjs";
2
- import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var i = function() {
4
- var e = this, t = e.$createElement, r = e._self._c || t;
5
- return r("ElInputNumber", {
6
- staticClass: "avue-input-number",
7
- attrs: {
8
- precision: e.precision,
9
- placeholder: e.placeholder,
10
- size: e.size,
11
- min: e.min,
12
- max: e.max,
13
- step: e.step,
14
- clearable: e.clearableVal,
15
- readonly: e.readonly,
16
- "controls-position": e.controlsPosition,
17
- controls: e.controls,
18
- label: e.placeholder,
19
- disabled: e.disabled
20
- },
21
- on: {
22
- focus: e.handleFocus,
23
- blur: e.handleBlur
24
- },
25
- nativeOn: {
26
- click: function(n) {
27
- return e.handleClick.apply(null, arguments);
28
- }
29
- },
30
- model: {
31
- value: e.text,
32
- callback: function(n) {
33
- e.text = e._n(n);
34
- },
35
- expression: "text"
36
- }
37
- });
38
- }, u = [];
39
- const c = {
1
+ import { p as l, e as r } from "../chunks/event.b5d855dd.mjs";
2
+ import { n as o } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const a = {
40
4
  name: "FyInputNumber",
41
- mixins: [o, a],
5
+ mixins: [l, r],
42
6
  props: {
43
7
  controls: {
44
8
  type: Boolean,
@@ -64,24 +28,25 @@ const c = {
64
28
  default: 1 / 0
65
29
  }
66
30
  }
67
- }, l = {};
68
- var p = /* @__PURE__ */ s(
69
- c,
31
+ };
32
+ var s = function() {
33
+ var e = this, t = e._self._c;
34
+ return t("ElInputNumber", { staticClass: "avue-input-number", attrs: { precision: e.precision, placeholder: e.placeholder, size: e.size, min: e.min, max: e.max, step: e.step, clearable: e.clearableVal, readonly: e.readonly, "controls-position": e.controlsPosition, controls: e.controls, label: e.placeholder, disabled: e.disabled }, on: { focus: e.handleFocus, blur: e.handleBlur }, nativeOn: { click: function(n) {
35
+ return e.handleClick.apply(null, arguments);
36
+ } }, model: { value: e.text, callback: function(n) {
37
+ e.text = e._n(n);
38
+ }, expression: "text" } });
39
+ }, i = [], u = /* @__PURE__ */ o(
40
+ a,
41
+ s,
70
42
  i,
71
- u,
72
43
  !1,
73
- m,
44
+ null,
74
45
  null,
75
46
  null,
76
47
  null
77
48
  );
78
- function m(e) {
79
- for (let t in l)
80
- this[t] = l[t];
81
- }
82
- const _ = /* @__PURE__ */ function() {
83
- return p.exports;
84
- }();
49
+ const d = u.exports;
85
50
  export {
86
- _ as default
51
+ d as default
87
52
  };
@@ -1,82 +1,9 @@
1
- import { p as o, e as r } from "../chunks/event.b5d855dd.mjs";
1
+ import { p as s, e as r } from "../chunks/event.b5d855dd.mjs";
2
2
  import { isBlank as n } from "@web-utils/core";
3
- import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var h = function() {
5
- var e = this, t = e.$createElement, a = e._self._c || t;
6
- return a("div", {
7
- staticClass: "avue-input-table"
8
- }, [a("ElInput", {
9
- ref: "main",
10
- attrs: {
11
- size: e.size,
12
- value: e.labelShow,
13
- clearable: e.clearableVal,
14
- placeholder: e.placeholder,
15
- disabled: e.disabled
16
- },
17
- on: {
18
- clear: e.handleClear,
19
- focus: e.handleShow
20
- },
21
- nativeOn: {
22
- click: function(i) {
23
- return e.handleClick.apply(null, arguments);
24
- }
25
- }
26
- }), e.box ? a("div", [a("ElementDialog", {
27
- attrs: {
28
- width: e.dialogWidth,
29
- title: e.placeholder,
30
- visible: e.box
31
- },
32
- on: {
33
- "update:visible": function(i) {
34
- e.box = i;
35
- }
36
- },
37
- scopedSlots: e._u([{
38
- key: "footer",
39
- fn: function() {
40
- return [a("ElButton", {
41
- attrs: {
42
- type: "primary",
43
- size: e.size,
44
- icon: "el-icon-check"
45
- },
46
- on: {
47
- click: e.setVal
48
- }
49
- }, [e._v(" 确 定 ")])];
50
- },
51
- proxy: !0
52
- }], null, !1, 2921262159)
53
- }, [e.box ? a("FyCurd", {
54
- ref: "crud",
55
- staticClass: "avue-input-table__crud",
56
- attrs: {
57
- option: e.option,
58
- data: e.data,
59
- "table-loading": e.loading,
60
- search: e.search,
61
- page: e.page
62
- },
63
- on: {
64
- "update:search": function(i) {
65
- e.search = i;
66
- },
67
- "update:page": function(i) {
68
- e.page = i;
69
- },
70
- "on-load": e.onList,
71
- "search-change": e.handleSearchChange,
72
- "search-reset": e.handleSearchChange,
73
- "current-row-change": e.handleCurrentRowChange
74
- }
75
- }) : e._e()], 1)], 1) : e._e()], 1);
76
- }, c = [];
77
- const u = {
3
+ import { n as l } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
4
+ const o = {
78
5
  name: "FyInputTable",
79
- mixins: [o, r],
6
+ mixins: [s, r],
80
7
  props: {
81
8
  formatter: Function,
82
9
  onLoad: Function,
@@ -119,12 +46,12 @@ const u = {
119
46
  }
120
47
  },
121
48
  watch: {
122
- value(e) {
123
- n(e) && (this.active = {}, this.object = {});
49
+ value(t) {
50
+ n(t) && (this.active = {}, this.object = {});
124
51
  },
125
- text(e) {
126
- this.created || n(e) || typeof this.onLoad == "function" && this.onLoad({ value: this.text }, (t) => {
127
- this.active = t, this.object = t, this.created = !0;
52
+ text(t) {
53
+ this.created || n(t) || typeof this.onLoad == "function" && this.onLoad({ value: this.text }, (e) => {
54
+ this.active = e, this.object = e, this.created = !0;
128
55
  });
129
56
  }
130
57
  },
@@ -138,38 +65,45 @@ const u = {
138
65
  setVal() {
139
66
  this.object = this.active, this.text = this.active[this.valueKey] || "", this.handleChange(this.active), this.box = !1;
140
67
  },
141
- handleCurrentRowChange(e) {
142
- this.active = e;
68
+ handleCurrentRowChange(t) {
69
+ this.active = t;
143
70
  },
144
- handleSearchChange(e, t) {
145
- this.page.page = 1, this.onList(), t && t();
71
+ handleSearchChange(t, e) {
72
+ this.page.page = 1, this.onList(), e && e();
146
73
  },
147
74
  onList() {
148
- this.loading = !0, typeof this.onLoad == "function" && this.onLoad({ page: this.page, data: this.search }, (e) => {
149
- this.page.total = e.total, this.data = e.data, this.loading = !1;
150
- const t = this.data.find((a) => a[this.valueKey] === this.object[this.valueKey]);
151
- setTimeout(() => this.$refs.crud.setCurrentRow(t));
75
+ this.loading = !0, typeof this.onLoad == "function" && this.onLoad({ page: this.page, data: this.search }, (t) => {
76
+ this.page.total = t.total, this.data = t.data, this.loading = !1;
77
+ const e = this.data.find((a) => a[this.valueKey] === this.object[this.valueKey]);
78
+ setTimeout(() => this.$refs.crud.setCurrentRow(e));
152
79
  });
153
80
  }
154
81
  }
155
- }, s = {};
156
- var d = /* @__PURE__ */ l(
157
- u,
82
+ };
83
+ var h = function() {
84
+ var e = this, a = e._self._c;
85
+ return a("div", { staticClass: "avue-input-table" }, [a("ElInput", { ref: "main", attrs: { size: e.size, value: e.labelShow, clearable: e.clearableVal, placeholder: e.placeholder, disabled: e.disabled }, on: { clear: e.handleClear, focus: e.handleShow }, nativeOn: { click: function(i) {
86
+ return e.handleClick.apply(null, arguments);
87
+ } } }), e.box ? a("div", [a("ElementDialog", { attrs: { width: e.dialogWidth, title: e.placeholder, visible: e.box }, on: { "update:visible": function(i) {
88
+ e.box = i;
89
+ } }, scopedSlots: e._u([{ key: "footer", fn: function() {
90
+ return [a("ElButton", { attrs: { type: "primary", size: e.size, icon: "el-icon-check" }, on: { click: e.setVal } }, [e._v(" 确 定 ")])];
91
+ }, proxy: !0 }], null, !1, 2921262159) }, [e.box ? a("FyCurd", { ref: "crud", staticClass: "avue-input-table__crud", attrs: { option: e.option, data: e.data, "table-loading": e.loading, search: e.search, page: e.page }, on: { "update:search": function(i) {
92
+ e.search = i;
93
+ }, "update:page": function(i) {
94
+ e.page = i;
95
+ }, "on-load": e.onList, "search-change": e.handleSearchChange, "search-reset": e.handleSearchChange, "current-row-change": e.handleCurrentRowChange } }) : e._e()], 1)], 1) : e._e()], 1);
96
+ }, c = [], u = /* @__PURE__ */ l(
97
+ o,
158
98
  h,
159
99
  c,
160
100
  !1,
161
- p,
101
+ null,
162
102
  null,
163
103
  null,
164
104
  null
165
105
  );
166
- function p(e) {
167
- for (let t in s)
168
- this[t] = s[t];
169
- }
170
- const b = /* @__PURE__ */ function() {
171
- return d.exports;
172
- }();
106
+ const g = u.exports;
173
107
  export {
174
- b as default
108
+ g as default
175
109
  };