@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,106 +1,12 @@
1
- import { p as r, e as c } from "../chunks/event.b5d855dd.mjs";
2
- import { s as d } from "../chunks/dic.eaac0823.mjs";
3
- import { b as u } from "../chunks/util.ae730cde.mjs";
4
- import { isBlank as p } from "@web-utils/core";
5
- import { p as h } from "../chunks/packages.1fc9ccba.mjs";
6
- import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
7
- var _ = function() {
8
- var e = this, a = e.$createElement, l = e._self._c || a;
9
- return l("ElSelect", {
10
- ref: "main",
11
- staticClass: "avue-select",
12
- attrs: {
13
- size: e.size,
14
- loading: e.loading,
15
- "loading-text": e.loadingText,
16
- multiple: e.multiple,
17
- filterable: e.remote ? !0 : e.filterable,
18
- remote: e.remote,
19
- readonly: e.readonly,
20
- "no-match-text": e.noMatchText,
21
- "no-data-text": e.noDataText,
22
- "remote-method": e.remote ? e.handleRemoteMethod : void 0,
23
- "popper-class": e.popperClass,
24
- "popper-append-to-body": e.popperAppendToBody,
25
- "collapse-tags": e.tags,
26
- clearable: e.clearableVal,
27
- placeholder: e.placeholder,
28
- "multiple-limit": e.limit,
29
- "allow-create": e.allowCreate,
30
- "default-first-option": e.defaultFirstOption,
31
- disabled: e.disabled
32
- },
33
- on: {
34
- focus: e.handleFocus,
35
- blur: e.handleBlur,
36
- change: e.changeSelect
37
- },
38
- nativeOn: {
39
- click: function(t) {
40
- return e.handleClick.apply(null, arguments);
41
- }
42
- },
43
- model: {
44
- value: e.text,
45
- callback: function(t) {
46
- e.text = t;
47
- },
48
- expression: "text"
49
- }
50
- }, [e.group ? e._l(e.netDic, function(t, n) {
51
- return l("ElOptionGroup", {
52
- key: n,
53
- attrs: {
54
- label: e.getLabelText(t)
55
- }
56
- }, e._l(t[e.groupsKey], function(s, i) {
57
- return l("ElOption", {
58
- key: i,
59
- attrs: {
60
- disabled: s[e.disabledKey],
61
- label: e.getLabelText(s),
62
- value: s[e.valueKey]
63
- }
64
- }, [e.$scopedSlots.default ? e._t("default", null, {
65
- label: e.labelKey,
66
- value: e.valueKey,
67
- item: s
68
- }) : [l("span", [e._v(e._s(e.getLabelText(s)))]), s[e.descKey] ? l("span", {
69
- staticClass: "avue-select__desc"
70
- }, [e._v(e._s(s[e.descKey]))]) : e._e()]], 2);
71
- }), 1);
72
- }) : [e.all && e.multiple ? l("ElCheckbox", {
73
- staticClass: "avue-select__check",
74
- on: {
75
- change: e.selectAll
76
- },
77
- model: {
78
- value: e.checkAll,
79
- callback: function(t) {
80
- e.checkAll = t;
81
- },
82
- expression: "checkAll"
83
- }
84
- }, [e._v(" 全选 ")]) : e._e(), e._l(e.netDic, function(t, n) {
85
- return l("ElOption", {
86
- key: n,
87
- attrs: {
88
- disabled: t[e.disabledKey],
89
- label: e.getLabelText(t),
90
- value: t[e.valueKey]
91
- }
92
- }, [e.$scopedSlots.default ? e._t("default", null, {
93
- label: e.labelKey,
94
- value: e.valueKey,
95
- item: t
96
- }) : [l("span", [e._v(e._s(e.getLabelText(t)))]), t[e.descKey] ? l("span", {
97
- staticClass: "avue-select__desc"
98
- }, [e._v(e._s(t[e.descKey]))]) : e._e()]], 2);
99
- })]], 2);
100
- }, y = [];
101
- const m = {
1
+ import { p as i, e as r } from "../chunks/event.b5d855dd.mjs";
2
+ import { s as c } from "../chunks/dic.eaac0823.mjs";
3
+ import { b as d } from "../chunks/util.ae730cde.mjs";
4
+ import { isBlank as u } from "@web-utils/core";
5
+ import { p } from "../chunks/packages.1fc9ccba.mjs";
6
+ import { n as f } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
7
+ const h = {
102
8
  name: "FySelect",
103
- mixins: [r, c],
9
+ mixins: [i, r],
104
10
  props: {
105
11
  loadingText: {
106
12
  type: String
@@ -157,12 +63,12 @@ const m = {
157
63
  };
158
64
  },
159
65
  watch: {
160
- text(e) {
161
- p(e) || this.remote && !this.created && (this.created = !0, this.handleRemoteMethod(this.multiple ? this.text.join(u) : this.text));
66
+ text(l) {
67
+ u(l) || this.remote && !this.created && (this.created = !0, this.handleRemoteMethod(this.multiple ? this.text.join(d) : this.text));
162
68
  },
163
69
  dic: {
164
- handler(e) {
165
- this.netDic = e;
70
+ handler(l) {
71
+ this.netDic = l;
166
72
  },
167
73
  immediate: !0
168
74
  }
@@ -173,53 +79,62 @@ const m = {
173
79
  methods: {
174
80
  setSort() {
175
81
  if (!window.Sortable) {
176
- h.logs("Sortable");
82
+ p.logs("Sortable");
177
83
  return;
178
84
  }
179
- const e = this.$refs.main.$el.querySelectorAll(".el-select__tags > span")[0];
180
- window.Sortable.create(e, {
85
+ const l = this.$refs.main.$el.querySelectorAll(".el-select__tags > span")[0];
86
+ window.Sortable.create(l, {
181
87
  animation: 100,
182
- onEnd: (a) => {
183
- const l = this.value.splice(a.oldIndex, 1)[0];
184
- this.value.splice(a.newIndex, 0, l);
88
+ onEnd: (e) => {
89
+ const a = this.value.splice(e.oldIndex, 1)[0];
90
+ this.value.splice(e.newIndex, 0, a);
185
91
  }
186
92
  });
187
93
  },
188
- handleRemoteMethod(e) {
189
- this.loading = !0, d({
94
+ handleRemoteMethod(l) {
95
+ this.loading = !0, c({
190
96
  column: this.column,
191
- value: e
192
- }).then((a) => {
193
- this.loading = !1, this.netDic = a;
97
+ value: l
98
+ }).then((e) => {
99
+ this.loading = !1, this.netDic = e;
194
100
  });
195
101
  },
196
102
  selectAll() {
197
- this.text = [], this.checkAll && this.netDic.forEach((e) => {
198
- this.text.push(e[this.valueKey]);
103
+ this.text = [], this.checkAll && this.netDic.forEach((l) => {
104
+ this.text.push(l[this.valueKey]);
199
105
  });
200
106
  },
201
- changeSelect(e) {
202
- this.checkAll = e.length === this.netDic.length;
107
+ changeSelect(l) {
108
+ this.checkAll = l.length === this.netDic.length;
203
109
  }
204
110
  }
205
- }, o = {};
206
- var v = /* @__PURE__ */ f(
207
- m,
111
+ };
112
+ var _ = function() {
113
+ var e = this, a = e._self._c;
114
+ return a("ElSelect", { ref: "main", staticClass: "avue-select", attrs: { size: e.size, loading: e.loading, "loading-text": e.loadingText, multiple: e.multiple, filterable: e.remote ? !0 : e.filterable, remote: e.remote, readonly: e.readonly, "no-match-text": e.noMatchText, "no-data-text": e.noDataText, "remote-method": e.remote ? e.handleRemoteMethod : void 0, "popper-class": e.popperClass, "popper-append-to-body": e.popperAppendToBody, "collapse-tags": e.tags, clearable: e.clearableVal, placeholder: e.placeholder, "multiple-limit": e.limit, "allow-create": e.allowCreate, "default-first-option": e.defaultFirstOption, disabled: e.disabled }, on: { focus: e.handleFocus, blur: e.handleBlur, change: e.changeSelect }, nativeOn: { click: function(t) {
115
+ return e.handleClick.apply(null, arguments);
116
+ } }, model: { value: e.text, callback: function(t) {
117
+ e.text = t;
118
+ }, expression: "text" } }, [e.group ? e._l(e.netDic, function(t, n) {
119
+ return a("ElOptionGroup", { key: n, attrs: { label: e.getLabelText(t) } }, e._l(t[e.groupsKey], function(s, o) {
120
+ return a("ElOption", { key: o, attrs: { disabled: s[e.disabledKey], label: e.getLabelText(s), value: s[e.valueKey] } }, [e.$scopedSlots.default ? e._t("default", null, { label: e.labelKey, value: e.valueKey, item: s }) : [a("span", [e._v(e._s(e.getLabelText(s)))]), s[e.descKey] ? a("span", { staticClass: "avue-select__desc" }, [e._v(e._s(s[e.descKey]))]) : e._e()]], 2);
121
+ }), 1);
122
+ }) : [e.all && e.multiple ? a("ElCheckbox", { staticClass: "avue-select__check", on: { change: e.selectAll }, model: { value: e.checkAll, callback: function(t) {
123
+ e.checkAll = t;
124
+ }, expression: "checkAll" } }, [e._v(" 全选 ")]) : e._e(), e._l(e.netDic, function(t, n) {
125
+ return a("ElOption", { key: n, attrs: { disabled: t[e.disabledKey], label: e.getLabelText(t), value: t[e.valueKey] } }, [e.$scopedSlots.default ? e._t("default", null, { label: e.labelKey, value: e.valueKey, item: t }) : [a("span", [e._v(e._s(e.getLabelText(t)))]), t[e.descKey] ? a("span", { staticClass: "avue-select__desc" }, [e._v(e._s(t[e.descKey]))]) : e._e()]], 2);
126
+ })]], 2);
127
+ }, m = [], y = /* @__PURE__ */ f(
128
+ h,
208
129
  _,
209
- y,
130
+ m,
210
131
  !1,
211
- g,
132
+ null,
212
133
  null,
213
134
  null,
214
135
  null
215
136
  );
216
- function g(e) {
217
- for (let a in o)
218
- this[a] = o[a];
219
- }
220
- const B = /* @__PURE__ */ function() {
221
- return v.exports;
222
- }();
137
+ const K = y.exports;
223
138
  export {
224
- B as default
139
+ K as default
225
140
  };
@@ -1,43 +1,9 @@
1
- import { p as r, e as l } from "../chunks/event.b5d855dd.mjs";
2
- import { s as i } from "../chunks/util.ae730cde.mjs";
3
- import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var p = function() {
5
- var t = this, o = t.$createElement, s = t._self._c || o;
6
- return s("ElSlider", {
7
- attrs: {
8
- disabled: t.disabled,
9
- vertical: t.vertical,
10
- height: t.setPx(t.height),
11
- step: t.step,
12
- min: t.min,
13
- max: t.max,
14
- range: t.range,
15
- "show-stops": t.showStops,
16
- "show-tooltip": t.showTooltip,
17
- "show-input": t.showInput,
18
- "show-input-controls": t.showInputControls,
19
- "input-size": t.size,
20
- "tooltip-class": t.tooltipClass,
21
- marks: t.marks,
22
- "format-tooltip": t.formatTooltip
23
- },
24
- nativeOn: {
25
- click: function(e) {
26
- return t.handleClick.apply(null, arguments);
27
- }
28
- },
29
- model: {
30
- value: t.text,
31
- callback: function(e) {
32
- t.text = e;
33
- },
34
- expression: "text"
35
- }
36
- });
37
- }, m = [];
38
- const u = {
1
+ import { p as s, e as n } from "../chunks/event.b5d855dd.mjs";
2
+ import { s as l } from "../chunks/util.ae730cde.mjs";
3
+ import { n as r } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
4
+ const a = {
39
5
  name: "FySlider",
40
- mixins: [r, l],
6
+ mixins: [s, n],
41
7
  props: {
42
8
  step: Number,
43
9
  min: Number,
@@ -54,26 +20,27 @@ const u = {
54
20
  tooltipClass: String
55
21
  },
56
22
  methods: {
57
- setPx: i
23
+ setPx: l
58
24
  }
59
- }, n = {};
60
- var c = /* @__PURE__ */ a(
61
- u,
25
+ };
26
+ var i = function() {
27
+ var o = this, e = o._self._c;
28
+ return e("ElSlider", { attrs: { disabled: o.disabled, vertical: o.vertical, height: o.setPx(o.height), step: o.step, min: o.min, max: o.max, range: o.range, "show-stops": o.showStops, "show-tooltip": o.showTooltip, "show-input": o.showInput, "show-input-controls": o.showInputControls, "input-size": o.size, "tooltip-class": o.tooltipClass, marks: o.marks, "format-tooltip": o.formatTooltip }, nativeOn: { click: function(t) {
29
+ return o.handleClick.apply(null, arguments);
30
+ } }, model: { value: o.text, callback: function(t) {
31
+ o.text = t;
32
+ }, expression: "text" } });
33
+ }, p = [], m = /* @__PURE__ */ r(
34
+ a,
35
+ i,
62
36
  p,
63
- m,
64
37
  !1,
65
- h,
38
+ null,
66
39
  null,
67
40
  null,
68
41
  null
69
42
  );
70
- function h(t) {
71
- for (let o in n)
72
- this[o] = n[o];
73
- }
74
- const d = /* @__PURE__ */ function() {
75
- return c.exports;
76
- }();
43
+ const d = m.exports;
77
44
  export {
78
45
  d as default
79
46
  };
@@ -1,39 +1,8 @@
1
- import { p as c, e as l } from "../chunks/event.b5d855dd.mjs";
2
- import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var o = function() {
4
- var e = this, t = e.$createElement, a = e._self._c || t;
5
- return a("ElSwitch", {
6
- attrs: {
7
- "active-text": e.active[e.labelKey],
8
- "active-value": e.active[e.valueKey],
9
- "inactive-value": e.inactive[e.valueKey],
10
- "inactive-text": e.inactive[e.labelKey],
11
- "active-icon-class": e.activeIconClass,
12
- "inactive-icon-class": e.inactiveIconClass,
13
- "active-color": e.activeColor,
14
- "inactive-color": e.inactiveColor,
15
- width: e.len,
16
- disabled: e.disabled,
17
- readonly: e.readonly,
18
- size: e.size
19
- },
20
- nativeOn: {
21
- click: function(i) {
22
- return e.handleClick.apply(null, arguments);
23
- }
24
- },
25
- model: {
26
- value: e.text,
27
- callback: function(i) {
28
- e.text = i;
29
- },
30
- expression: "text"
31
- }
32
- });
33
- }, s = [];
34
- const v = {
1
+ import { p as n, e as a } from "../chunks/event.b5d855dd.mjs";
2
+ import { n as c } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const l = {
35
4
  name: "FySwitch",
36
- mixins: [c, l],
5
+ mixins: [n, a],
37
6
  props: {
38
7
  // eslint-disable-next-line vue/no-unused-properties
39
8
  value: [String, Object, Number, Boolean, Array],
@@ -51,24 +20,25 @@ const v = {
51
20
  return this.dic[0] || {};
52
21
  }
53
22
  }
54
- }, n = {};
55
- var u = /* @__PURE__ */ r(
56
- v,
23
+ };
24
+ var r = function() {
25
+ var e = this, i = e._self._c;
26
+ return i("ElSwitch", { attrs: { "active-text": e.active[e.labelKey], "active-value": e.active[e.valueKey], "inactive-value": e.inactive[e.valueKey], "inactive-text": e.inactive[e.labelKey], "active-icon-class": e.activeIconClass, "inactive-icon-class": e.inactiveIconClass, "active-color": e.activeColor, "inactive-color": e.inactiveColor, width: e.len, disabled: e.disabled, readonly: e.readonly, size: e.size }, nativeOn: { click: function(t) {
27
+ return e.handleClick.apply(null, arguments);
28
+ } }, model: { value: e.text, callback: function(t) {
29
+ e.text = t;
30
+ }, expression: "text" } });
31
+ }, o = [], s = /* @__PURE__ */ c(
32
+ l,
33
+ r,
57
34
  o,
58
- s,
59
35
  !1,
60
- _,
36
+ null,
61
37
  null,
62
38
  null,
63
39
  null
64
40
  );
65
- function _(e) {
66
- for (let t in n)
67
- this[t] = n[t];
68
- }
69
- const p = /* @__PURE__ */ function() {
70
- return u.exports;
71
- }();
41
+ const m = s.exports;
72
42
  export {
73
- p as default
43
+ m as default
74
44
  };
package/fy-tabs/index.mjs CHANGED
@@ -1,40 +1,5 @@
1
- import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var o = function() {
3
- var t = this, a = t.$createElement, e = t._self._c || a;
4
- return e("div", {
5
- staticClass: "avue-tabs"
6
- }, [e("ElTabs", {
7
- attrs: {
8
- "tab-position": t.parentOption.position,
9
- type: t.parentOption.type
10
- },
11
- model: {
12
- value: t.active,
13
- callback: function(n) {
14
- t.active = n;
15
- },
16
- expression: "active"
17
- }
18
- }, t._l(t.columnOption, function(n, s) {
19
- return e("ElTabPane", {
20
- key: s,
21
- attrs: {
22
- name: `${s}`,
23
- disabled: n.disabled
24
- },
25
- scopedSlots: t._u([{
26
- key: "label",
27
- fn: function() {
28
- return [e("span", [e("i", {
29
- class: n.icon
30
- }), t._v("  " + t._s(n.label) + " ")])];
31
- },
32
- proxy: !0
33
- }], null, !0)
34
- });
35
- }), 1)], 1);
36
- }, c = [];
37
- const l = {
1
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const r = {
38
3
  name: "FyTabs",
39
4
  props: {
40
5
  option: {
@@ -65,28 +30,31 @@ const l = {
65
30
  }
66
31
  },
67
32
  methods: {
68
- changeTabs(t) {
69
- this.active = `${t}`;
33
+ changeTabs(a) {
34
+ this.active = `${a}`;
70
35
  }
71
36
  }
72
- }, i = {};
73
- var u = /* @__PURE__ */ r(
74
- l,
37
+ };
38
+ var o = function() {
39
+ var t = this, e = t._self._c;
40
+ return e("div", { staticClass: "avue-tabs" }, [e("ElTabs", { attrs: { "tab-position": t.parentOption.position, type: t.parentOption.type }, model: { value: t.active, callback: function(n) {
41
+ t.active = n;
42
+ }, expression: "active" } }, t._l(t.columnOption, function(n, s) {
43
+ return e("ElTabPane", { key: s, attrs: { name: `${s}`, disabled: n.disabled }, scopedSlots: t._u([{ key: "label", fn: function() {
44
+ return [e("span", [e("i", { class: n.icon }), t._v("  " + t._s(n.label) + " ")])];
45
+ }, proxy: !0 }], null, !0) });
46
+ }), 1)], 1);
47
+ }, c = [], l = /* @__PURE__ */ i(
48
+ r,
75
49
  o,
76
50
  c,
77
51
  !1,
78
- p,
52
+ null,
79
53
  null,
80
54
  null,
81
55
  null
82
56
  );
83
- function p(t) {
84
- for (let a in i)
85
- this[a] = i[a];
86
- }
87
- const v = /* @__PURE__ */ function() {
88
- return u.exports;
89
- }();
57
+ const u = l.exports;
90
58
  export {
91
- v as default
59
+ u as default
92
60
  };
package/fy-time/index.mjs CHANGED
@@ -1,50 +1,9 @@
1
- import { p as o, e as l } from "../chunks/event.b5d855dd.mjs";
2
- import { isBlank as i } from "@web-utils/core";
3
- import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var c = function() {
5
- var e = this, t = e.$createElement, r = e._self._c || t;
6
- return r("div", {
7
- staticClass: "avue-time"
8
- }, [r(e.componentName, {
9
- tag: "Component",
10
- attrs: {
11
- "popper-class": e.popperClass,
12
- "is-range": e.isRange,
13
- size: e.size,
14
- editable: e.editable,
15
- "default-value": e.defaultValue,
16
- "range-separator": e.rangeSeparator,
17
- "arrow-control": e.arrowControl,
18
- "start-placeholder": e.startPlaceholder || "开始",
19
- "end-placeholder": e.endPlaceholder || "结束",
20
- format: e.format,
21
- readonly: e.readonly,
22
- clearable: e.clearableVal,
23
- "picker-options": e.pickerOptions,
24
- "value-format": e.valueFormat,
25
- placeholder: e.placeholder,
26
- disabled: e.disabled
27
- },
28
- on: {
29
- change: e.handleChange
30
- },
31
- nativeOn: {
32
- click: function(a) {
33
- return e.handleClick.apply(null, arguments);
34
- }
35
- },
36
- model: {
37
- value: e.text,
38
- callback: function(a) {
39
- e.text = a;
40
- },
41
- expression: "text"
42
- }
43
- })], 1);
44
- }, p = [];
45
- const d = {
1
+ import { p as n, e as l } from "../chunks/event.b5d855dd.mjs";
2
+ import { isBlank as o } from "@web-utils/core";
3
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
4
+ const s = {
46
5
  name: "FyTime",
47
- mixins: [o, l],
6
+ mixins: [n, l],
48
7
  props: {
49
8
  editable: Boolean,
50
9
  startPlaceholder: String,
@@ -59,8 +18,8 @@ const d = {
59
18
  },
60
19
  computed: {
61
20
  componentName() {
62
- const e = this.pickerOptions || {};
63
- return e.start || e.end || e.step ? "elTimeSelect" : "elTimePicker";
21
+ const t = this.pickerOptions || {};
22
+ return t.start || t.end || t.step ? "elTimeSelect" : "elTimePicker";
64
23
  },
65
24
  isRange() {
66
25
  return this.type === "timerange";
@@ -68,28 +27,29 @@ const d = {
68
27
  },
69
28
  watch: {
70
29
  text() {
71
- Array.isArray(this.text) && i(this.text) && (this.text = this.text.join(","));
30
+ Array.isArray(this.text) && o(this.text) && (this.text = this.text.join(","));
72
31
  }
73
32
  },
74
33
  methods: {}
75
- }, n = {};
76
- var m = /* @__PURE__ */ s(
77
- d,
78
- c,
34
+ };
35
+ var p = function() {
36
+ var e = this, r = e._self._c;
37
+ return r("div", { staticClass: "avue-time" }, [r(e.componentName, { tag: "Component", attrs: { "popper-class": e.popperClass, "is-range": e.isRange, size: e.size, editable: e.editable, "default-value": e.defaultValue, "range-separator": e.rangeSeparator, "arrow-control": e.arrowControl, "start-placeholder": e.startPlaceholder || "开始", "end-placeholder": e.endPlaceholder || "结束", format: e.format, readonly: e.readonly, clearable: e.clearableVal, "picker-options": e.pickerOptions, "value-format": e.valueFormat, placeholder: e.placeholder, disabled: e.disabled }, on: { change: e.handleChange }, nativeOn: { click: function(a) {
38
+ return e.handleClick.apply(null, arguments);
39
+ } }, model: { value: e.text, callback: function(a) {
40
+ e.text = a;
41
+ }, expression: "text" } })], 1);
42
+ }, c = [], d = /* @__PURE__ */ i(
43
+ s,
79
44
  p,
45
+ c,
80
46
  !1,
81
- u,
47
+ null,
82
48
  null,
83
49
  null,
84
50
  null
85
51
  );
86
- function u(e) {
87
- for (let t in n)
88
- this[t] = n[t];
89
- }
90
- const g = /* @__PURE__ */ function() {
91
- return m.exports;
92
- }();
52
+ const h = d.exports;
93
53
  export {
94
- g as default
54
+ h as default
95
55
  };
@@ -1,40 +1,29 @@
1
- import { p as r, e as _ } from "../chunks/event.b5d855dd.mjs";
2
- import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var o = function() {
4
- var e = this, t = e.$createElement, n = e._self._c || t;
5
- return n("div", {
6
- staticClass: "avue-title"
7
- }, [n("p", {
8
- style: e.styles
9
- }, [e._v(" " + e._s(e.text) + " ")])]);
10
- }, a = [];
11
- const i = {
1
+ import { p as s, e as n } from "../chunks/event.b5d855dd.mjs";
2
+ import { n as l } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const _ = {
12
4
  name: "FyTitle",
13
- mixins: [r, _],
5
+ mixins: [s, n],
14
6
  props: {
15
7
  styles: {
16
8
  type: Object,
17
9
  default: () => ({})
18
10
  }
19
11
  }
20
- }, s = {};
21
- var c = /* @__PURE__ */ l(
22
- i,
23
- o,
12
+ };
13
+ var r = function() {
14
+ var e = this, t = e._self._c;
15
+ return t("div", { staticClass: "avue-title" }, [t("p", { style: e.styles }, [e._v(" " + e._s(e.text) + " ")])]);
16
+ }, a = [], o = /* @__PURE__ */ l(
17
+ _,
18
+ r,
24
19
  a,
25
20
  !1,
26
- u,
21
+ null,
27
22
  null,
28
23
  null,
29
24
  null
30
25
  );
31
- function u(e) {
32
- for (let t in s)
33
- this[t] = s[t];
34
- }
35
- const m = /* @__PURE__ */ function() {
36
- return c.exports;
37
- }();
26
+ const u = o.exports;
38
27
  export {
39
- m as default
28
+ u as default
40
29
  };