@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,36 +1,36 @@
1
- var M = Object.defineProperty;
2
- var q = Object.getOwnPropertySymbols;
3
- var P = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
4
- var F = (e, r, t) => r in e ? M(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, _ = (e, r) => {
1
+ var T = Object.defineProperty;
2
+ var k = Object.getOwnPropertySymbols;
3
+ var V = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
4
+ var x = (e, r, t) => r in e ? T(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, h = (e, r) => {
5
5
  for (var t in r || (r = {}))
6
- P.call(r, t) && F(e, t, r[t]);
7
- if (q)
8
- for (var t of q(r))
9
- T.call(r, t) && F(e, t, r[t]);
6
+ V.call(r, t) && x(e, t, r[t]);
7
+ if (k)
8
+ for (var t of k(r))
9
+ j.call(r, t) && x(e, t, r[t]);
10
10
  return e;
11
11
  };
12
- var h = (e, r, t) => new Promise((i, f) => {
13
- var s = (l) => {
12
+ var w = (e, r, t) => new Promise((n, a) => {
13
+ var o = (i) => {
14
14
  try {
15
- a(t.next(l));
16
- } catch (n) {
17
- f(n);
15
+ l(t.next(i));
16
+ } catch (m) {
17
+ a(m);
18
18
  }
19
- }, o = (l) => {
19
+ }, s = (i) => {
20
20
  try {
21
- a(t.throw(l));
22
- } catch (n) {
23
- f(n);
21
+ l(t.throw(i));
22
+ } catch (m) {
23
+ a(m);
24
24
  }
25
- }, a = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, o);
26
- a((t = t.apply(e, r)).next());
25
+ }, l = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(o, s);
26
+ l((t = t.apply(e, r)).next());
27
27
  });
28
- import { f as V } from "../chunks/form-item-mixin.ad148e7b.mjs";
29
- import { hasOwn as w } from "@web-utils/core";
30
- import { n as z } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
31
- const B = {
28
+ import { h as p } from "vue";
29
+ import { f as B } from "../chunks/form-item-mixin.ad148e7b.mjs";
30
+ import { hasOwn as I } from "@web-utils/core";
31
+ const A = {
32
32
  name: "FormItem",
33
- mixins: [V],
33
+ mixins: [B],
34
34
  inject: {
35
35
  formHolder: {
36
36
  default: ""
@@ -50,104 +50,85 @@ const B = {
50
50
  },
51
51
  methods: {
52
52
  renderFormItem() {
53
- var v, b, g;
54
- const e = this.$createElement, {
55
- label: r,
56
- labelWidth: t,
57
- prop: i,
58
- rules: f,
59
- $scopedSlots: s,
53
+ var q, g, F;
54
+ const {
55
+ label: e,
56
+ labelWidth: r,
57
+ prop: t,
58
+ rules: n,
59
+ $scopedSlots: a,
60
60
  elFormItemProps: o,
61
- elForm: a,
61
+ elForm: s,
62
62
  formHolder: l,
63
- formItemClass: n,
64
- required: u,
65
- block: k,
66
- half: y,
67
- wrapCol: $,
63
+ formItemClass: i,
64
+ required: m,
65
+ block: $,
66
+ half: v,
67
+ wrapCol: y,
68
68
  wrapFormItem: R,
69
69
  disabled: E,
70
70
  formItemConfig: d,
71
71
  getRequireRule: W
72
72
  } = this;
73
- let m = f, c = u, p = u, I = k, C = $;
74
- d && (w(d, "block") && (I = d.block), w(d, "wrapCol") && (C = d.wrapCol));
75
- const j = I && y && C ? `calc( 50% - ${this.gutter / 2}px)` : "";
76
- return E || a != null && a.disabled ? (m = [], l && !l.required && !((v = l.requiredFields) != null && v.includes(i)) && (p = !1)) : (l && !l.required && !((b = l.requiredFields) != null && b.includes(i)) && (c = !1), c && !(m != null && m.length) && i ? m = [W()] : c || (p = !1, m && (m = m.filter((H) => !H.required)))), R ? (
73
+ let f = n, u = m, c = m, C = $, b = y;
74
+ d && (I(d, "block") && (C = d.block), I(d, "wrapCol") && (b = d.wrapCol));
75
+ const H = C && v && b ? `calc( 50% - ${this.gutter / 2}px)` : "";
76
+ return E || s != null && s.disabled ? (f = [], l && !l.required && !((q = l.requiredFields) != null && q.includes(t)) && (c = !1)) : (l && !l.required && !((g = l.requiredFields) != null && g.includes(t)) && (u = !1), u && !(f != null && f.length) && t ? f = [W()] : u || (c = !1, f && (f = f.filter((P) => !P.required)))), R ? (
77
77
  // eslint-disable-next-line no-undef
78
- e("ElFormItem", {
78
+ p("ElFormItem", {
79
79
  style: {
80
- width: j
80
+ width: H
81
81
  },
82
- key: `${i}-${c}`,
83
- class: p ? `form-item required ${n || ""}` : `${n || ""}`,
84
- scopedSlots: s,
85
- props: _({}, o),
82
+ key: `${t}-${u}`,
83
+ class: c ? `form-item required ${i || ""}` : `${i || ""}`,
84
+ scopedSlots: a,
85
+ props: h({}, o),
86
86
  attrs: {
87
- label: r,
88
- "label-width": t,
89
- prop: i,
90
- rules: m
87
+ label: e,
88
+ "label-width": r,
89
+ prop: t,
90
+ rules: f
91
91
  },
92
92
  ref: "formItem"
93
93
  })
94
- ) : e("div", [(g = s.default) == null ? void 0 : g.call(s)]);
94
+ ) : p("div", [(F = a.default) == null ? void 0 : F.call(a)]);
95
95
  },
96
96
  clearValidate() {
97
- return h(this, null, function* () {
97
+ return w(this, null, function* () {
98
98
  var e, r;
99
99
  yield this.$nextTick(), (r = (e = this.$refs.formItem).clearValidate) == null || r.call(e);
100
100
  });
101
101
  },
102
102
  validate() {
103
- return h(this, null, function* () {
103
+ return w(this, null, function* () {
104
104
  var e, r;
105
105
  yield this.$nextTick(), (r = (e = this.$refs.formItem).validate) == null || r.call(e);
106
106
  });
107
107
  }
108
108
  },
109
109
  render() {
110
- var n, u;
111
- const e = arguments[0], {
112
- computeSpan: r,
113
- wrapCol: t,
114
- formItemConfig: i,
115
- renderFormItem: f,
116
- elColProps: s,
110
+ var i, m;
111
+ const {
112
+ computeSpan: e,
113
+ wrapCol: r,
114
+ formItemConfig: t,
115
+ renderFormItem: n,
116
+ elColProps: a,
117
117
  $scopedSlots: o,
118
- unwrap: a
118
+ unwrap: s
119
119
  } = this;
120
- let l = t;
121
- return i && w(i, "wrapCol") && (l = i.wrapCol), a ? e("div", [(n = o.default) == null ? void 0 : n.call(o)]) : l ? (
120
+ let l = r;
121
+ return t && I(t, "wrapCol") && (l = t.wrapCol), s ? p("div", [(i = o.default) == null ? void 0 : i.call(o)]) : l ? (
122
122
  // eslint-disable-next-line no-undef
123
- e("ElCol", {
124
- props: _({}, s),
123
+ p("ElCol", {
124
+ props: h({}, a),
125
125
  attrs: {
126
- span: r
126
+ span: e
127
127
  }
128
- }, [f(), (u = o == null ? void 0 : o.below) == null ? void 0 : u.call(o)])
129
- ) : f();
128
+ }, [n(), (m = o == null ? void 0 : o.below) == null ? void 0 : m.call(o)])
129
+ ) : n();
130
130
  }
131
131
  };
132
- let N, O;
133
- const x = {};
134
- var A = /* @__PURE__ */ z(
135
- B,
136
- N,
137
- O,
138
- !1,
139
- D,
140
- null,
141
- null,
142
- null
143
- );
144
- function D(e) {
145
- for (let r in x)
146
- this[r] = x[r];
147
- }
148
- const Q = /* @__PURE__ */ function() {
149
- return A.exports;
150
- }();
151
132
  export {
152
- Q as default
133
+ A as default
153
134
  };
@@ -1,4 +1,4 @@
1
- import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
1
+ import { n as e } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
2
  const n = {
3
3
  name: "FormItemConfigProvider",
4
4
  provide() {
@@ -24,40 +24,32 @@ const n = {
24
24
  watch: {
25
25
  block: {
26
26
  immediate: !0,
27
- handler(e) {
28
- this.config.block = e;
27
+ handler(o) {
28
+ this.config.block = o;
29
29
  }
30
30
  },
31
31
  wrapCol: {
32
32
  immediate: !0,
33
- handler(e) {
34
- this.config.wrapCol = e;
33
+ handler(o) {
34
+ this.config.wrapCol = o;
35
35
  }
36
36
  }
37
37
  },
38
38
  render() {
39
39
  return this.$scopedSlots.default();
40
40
  }
41
- };
42
- let l, i;
43
- const t = {};
44
- var a = /* @__PURE__ */ r(
41
+ }, r = null, t = null;
42
+ var l = /* @__PURE__ */ e(
45
43
  n,
46
- l,
47
- i,
44
+ r,
45
+ t,
48
46
  !1,
49
- s,
47
+ null,
50
48
  null,
51
49
  null,
52
50
  null
53
51
  );
54
- function s(e) {
55
- for (let o in t)
56
- this[o] = t[o];
57
- }
58
- const u = /* @__PURE__ */ function() {
59
- return a.exports;
60
- }();
52
+ const i = l.exports;
61
53
  export {
62
- u as default
54
+ i as default
63
55
  };
@@ -1,6 +1,6 @@
1
- import { isFunction as m } from "@web-utils/core";
2
- import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], c = ["$emit", "validate", "clearValidate"], p = {
1
+ import { h as o } from "vue";
2
+ import { isFunction as n } from "@web-utils/core";
3
+ const a = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], m = ["$emit", "validate", "clearValidate"], h = {
4
4
  name: "FormItemGroup",
5
5
  inject: {
6
6
  elForm: {
@@ -32,8 +32,8 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
32
32
  },
33
33
  data() {
34
34
  const e = {};
35
- return r.forEach((t) => {
36
- e[t] = null;
35
+ return a.forEach((i) => {
36
+ e[i] = null;
37
37
  }), {
38
38
  expand: !0,
39
39
  formConfig: e
@@ -45,8 +45,8 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
45
45
  enabled: this.enabled,
46
46
  forbidden: this.disabled
47
47
  };
48
- return r.forEach((t) => {
49
- e[t] = this.elForm[t];
48
+ return a.forEach((i) => {
49
+ e[i] = this.elForm[i];
50
50
  }), e;
51
51
  }
52
52
  },
@@ -60,9 +60,9 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
60
60
  formCfg: {
61
61
  immediate: !0,
62
62
  handler() {
63
- this.formConfig.disabled = this.isDisabled(), r.forEach((e) => {
64
- var t;
65
- e !== "disabled" && (c.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
63
+ this.formConfig.disabled = this.isDisabled(), a.forEach((e) => {
64
+ var i;
65
+ e !== "disabled" && (m.includes(e) ? this.formConfig[e] = (i = this.elForm[e]) == null ? void 0 : i.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
66
66
  });
67
67
  }
68
68
  }
@@ -77,32 +77,32 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
77
77
  isDisabled() {
78
78
  return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
79
79
  },
80
- dispatch(e, t, s) {
81
- let i = this.$parent || this.$root, o = i.$options.name;
82
- for (; i && (!o || o !== e); )
83
- i = i.$parent, i && (o = i.$options.name);
84
- i && i.$emit.apply(i, [t].concat(s));
80
+ dispatch(e, i, r) {
81
+ let t = this.$parent || this.$root, s = t.$options.name;
82
+ for (; t && (!s || s !== e); )
83
+ t = t.$parent, t && (s = t.$options.name);
84
+ t && t.$emit.apply(t, [i].concat(r));
85
85
  },
86
86
  renderDefault() {
87
- const e = this.$createElement, {
88
- wrapRow: t,
89
- gutter: s,
90
- formConfig: i,
91
- $scopedSlots: o
87
+ const {
88
+ wrapRow: e,
89
+ gutter: i,
90
+ formConfig: r,
91
+ $scopedSlots: t
92
92
  } = this;
93
- return m(o.default) ? t ? (
93
+ return n(t.default) ? e ? (
94
94
  // eslint-disable-next-line no-undef
95
- e("ElRow", {
95
+ o("ElRow", {
96
96
  attrs: {
97
- gutter: s
97
+ gutter: i
98
98
  },
99
99
  class: "form-item-group-row"
100
- }, [o.default({
101
- disabled: i.disabled
100
+ }, [t.default({
101
+ disabled: r.disabled
102
102
  })])
103
- ) : o.default({
104
- disabled: i.disabled
105
- }) : e("EmptyView", {
103
+ ) : t.default({
104
+ disabled: r.disabled
105
+ }) : o("EmptyView", {
106
106
  attrs: {
107
107
  "font-size": "14px",
108
108
  "empty-tips": "暂无信息"
@@ -117,56 +117,37 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
117
117
  }
118
118
  },
119
119
  render() {
120
- const e = arguments[0], {
121
- renderDefault: t,
122
- blockTitle: s,
123
- active: i,
124
- expand: o,
125
- toggle: n,
126
- $scopedSlots: a,
120
+ const {
121
+ renderDefault: e,
122
+ blockTitle: i,
123
+ active: r,
124
+ expand: t,
125
+ toggle: s,
126
+ $scopedSlots: l,
127
127
  isDisabled: d
128
128
  } = this;
129
- return e("div", {
129
+ return o("div", {
130
130
  class: ["form-item-group", {
131
- "default-active": i,
131
+ "default-active": r,
132
132
  "is-disabled": d()
133
133
  }]
134
- }, [e("div", {
134
+ }, [o("div", {
135
135
  class: "form-item-group-title",
136
136
  on: {
137
- click: n
137
+ click: s
138
138
  }
139
- }, [e("span", {
139
+ }, [o("span", {
140
140
  class: "flex-item"
141
- }, [s, a["title-right"] ? a["title-right"]() : null]), " ", e("i", {
142
- class: o ? "el-icon-arrow-down" : "el-icon-arrow-right"
143
- })]), e("ElCollapseTransition", [e("div", {
141
+ }, [i, l["title-right"] ? l["title-right"]() : null]), " ", o("i", {
142
+ class: t ? "el-icon-arrow-down" : "el-icon-arrow-right"
143
+ })]), o("ElCollapseTransition", [o("div", {
144
144
  directives: [{
145
145
  name: "show",
146
- value: o
146
+ value: t
147
147
  }]
148
- }, [t()])])]);
148
+ }, [e()])])]);
149
149
  }
150
150
  };
151
- let f, h;
152
- const l = {};
153
- var b = /* @__PURE__ */ u(
154
- p,
155
- f,
156
- h,
157
- !1,
158
- g,
159
- null,
160
- null,
161
- null
162
- );
163
- function g(e) {
164
- for (let t in l)
165
- this[t] = l[t];
166
- }
167
- const w = /* @__PURE__ */ function() {
168
- return b.exports;
169
- }();
170
151
  export {
171
- w as default
152
+ h as default
172
153
  };
@@ -1,97 +1,24 @@
1
- var p = Object.defineProperty;
2
- var i = Object.getOwnPropertySymbols;
3
- var c = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
4
- var s = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, n = (e, t) => {
5
- for (var o in t || (t = {}))
6
- c.call(t, o) && s(e, o, t[o]);
7
- if (i)
8
- for (var o of i(t))
9
- f.call(t, o) && s(e, o, t[o]);
10
- return e;
1
+ var u = Object.defineProperty;
2
+ var n = Object.getOwnPropertySymbols;
3
+ var p = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
4
+ var s = (o, e, l) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : o[e] = l, t = (o, e) => {
5
+ for (var l in e || (e = {}))
6
+ p.call(e, l) && s(o, l, e[l]);
7
+ if (n)
8
+ for (var l of n(e))
9
+ f.call(e, l) && s(o, l, e[l]);
10
+ return o;
11
11
  };
12
- import { f as h } from "../chunks/form-input-mixin.4632ad36.mjs";
13
- import { f as d } from "../chunks/form-pick-mixin.61ad06b2.mjs";
12
+ import { f as c } from "../chunks/form-input-mixin.4632ad36.mjs";
13
+ import { f as h } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
14
  import a from "element-ui/lib/radio-group";
15
- import { d as y, n as m } from "../chunks/index.57f871af.mjs";
16
- import { n as _ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
- var v = function() {
18
- var e = this, t = e.$createElement, o = e._self._c || t;
19
- return o("FormItem", e._b({
20
- class: ["form-radio-group", {
21
- "form-radio-group-row": e.fillRow,
22
- inline: e.inline
23
- }, e.ellipsis ? "form-radio-group-row-ellipsis" : "form-radio-group-row-break-word"],
24
- attrs: {
25
- rules: e.computeRules,
26
- disabled: e.inputDisabled
27
- },
28
- scopedSlots: e._u([{
29
- key: "default",
30
- fn: function() {
31
- return [o("ElRadioGroup", e._g(e._b({
32
- class: {
33
- "over-flow": e.overFlow
34
- },
35
- attrs: {
36
- value: e.value,
37
- disabled: e.inputDisabled,
38
- placeholder: e.computePlaceholder
39
- },
40
- on: {
41
- input: function(r) {
42
- return e.$emit("input", r);
43
- }
44
- }
45
- }, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(r) {
46
- return o("ElRadio", {
47
- key: r[e.valueKey],
48
- attrs: {
49
- label: r[e.valueKey]
50
- },
51
- nativeOn: {
52
- click: function(l) {
53
- return l.preventDefault(), l.stopPropagation(), e.toggle(r);
54
- }
55
- }
56
- }, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
57
- }) : e._l(e.innerOptions, function(r) {
58
- return o("ElRadio", {
59
- key: r[e.valueKey],
60
- attrs: {
61
- label: r[e.valueKey]
62
- }
63
- }, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
64
- })], 2), e._t("append")];
65
- },
66
- proxy: !0
67
- }, {
68
- key: "error",
69
- fn: function(r) {
70
- var l = r.error;
71
- return [e._t("error", null, {
72
- error: l
73
- })];
74
- }
75
- }, {
76
- key: "label",
77
- fn: function() {
78
- return [e._t("label")];
79
- },
80
- proxy: !0
81
- }, {
82
- key: "below",
83
- fn: function() {
84
- return [e._t("below")];
85
- },
86
- proxy: !0
87
- }], null, !0)
88
- }, "FormItem", e.formItemProps, !1));
89
- }, b = [];
90
- const g = Object.keys(a.props || a.default.props).filter(
91
- (e) => !["value", "placeholder", "disabled"].includes(e)
92
- ), K = {
15
+ import { d, n as y } from "../chunks/index.57f871af.mjs";
16
+ import { n as m } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
17
+ const _ = Object.keys(a.props || a.default.props).filter(
18
+ (o) => !["value", "placeholder", "disabled"].includes(o)
19
+ ), v = {
93
20
  name: "FormRadioGroup",
94
- mixins: [h, d],
21
+ mixins: [c, h],
95
22
  props: {
96
23
  options: {
97
24
  type: Array,
@@ -122,7 +49,7 @@ const g = Object.keys(a.props || a.default.props).filter(
122
49
  return "请选择";
123
50
  },
124
51
  inputProps() {
125
- return y(n(n({}, m(this.$attrs)), this.$props), g);
52
+ return d(t(t({}, y(this.$attrs)), this.$props), _);
126
53
  },
127
54
  labelKey() {
128
55
  return this.classic ? "label" : this.labelProp;
@@ -153,31 +80,46 @@ const g = Object.keys(a.props || a.default.props).filter(
153
80
  }
154
81
  },
155
82
  methods: {
156
- emitInput(e) {
157
- this.$emit("input", e);
83
+ emitInput(o) {
84
+ this.$emit("input", o);
158
85
  },
159
- toggle(e) {
160
- this.value === e[this.valueKey] ? this.emitInput(null) : this.emitInput(e[this.valueKey]);
86
+ toggle(o) {
87
+ this.value === o[this.valueKey] ? this.emitInput(null) : this.emitInput(o[this.valueKey]);
161
88
  }
162
89
  }
163
- }, u = {};
164
- var w = /* @__PURE__ */ _(
165
- K,
90
+ };
91
+ var b = function() {
92
+ var e = this, l = e._self._c;
93
+ return l("FormItem", e._b({ class: [
94
+ "form-radio-group",
95
+ { "form-radio-group-row": e.fillRow, inline: e.inline },
96
+ e.ellipsis ? "form-radio-group-row-ellipsis" : "form-radio-group-row-break-word"
97
+ ], attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
98
+ return [l("ElRadioGroup", e._g(e._b({ class: { "over-flow": e.overFlow }, attrs: { value: e.value, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (r) => e.$emit("input", r) } }, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(r) {
99
+ return l("ElRadio", { key: r[e.valueKey], attrs: { label: r[e.valueKey] }, nativeOn: { click: function(i) {
100
+ return i.preventDefault(), i.stopPropagation(), e.toggle(r);
101
+ } } }, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
102
+ }) : e._l(e.innerOptions, function(r) {
103
+ return l("ElRadio", { key: r[e.valueKey], attrs: { label: r[e.valueKey] } }, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
104
+ })], 2), e._t("append")];
105
+ }, proxy: !0 }, { key: "error", fn: function({ error: r }) {
106
+ return [e._t("error", null, { error: r })];
107
+ } }, { key: "label", fn: function() {
108
+ return [e._t("label")];
109
+ }, proxy: !0 }, { key: "below", fn: function() {
110
+ return [e._t("below")];
111
+ }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
112
+ }, g = [], K = /* @__PURE__ */ m(
166
113
  v,
167
114
  b,
115
+ g,
168
116
  !1,
169
- B,
117
+ null,
170
118
  null,
171
119
  null,
172
120
  null
173
121
  );
174
- function B(e) {
175
- for (let t in u)
176
- this[t] = u[t];
177
- }
178
- const G = /* @__PURE__ */ function() {
179
- return w.exports;
180
- }();
122
+ const F = K.exports;
181
123
  export {
182
- G as default
124
+ F as default
183
125
  };