@web-utils/component 4.0.13 → 4.0.15

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 (171) hide show
  1. package/address-input/index.mjs +15 -13
  2. package/card/index.mjs +20 -18
  3. package/carousel/index.mjs +12 -10
  4. package/chat/index.mjs +56 -45
  5. package/chunk-file-uploader/index.mjs +378 -36
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
  8. package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
  9. package/chunks/FyForm.DriwCJ7b.mjs +765 -0
  10. package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
  11. package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
  12. package/chunks/TableColumn.BzivvXMF.mjs +337 -0
  13. package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
  14. package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
  15. package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
  16. package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
  17. package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
  18. package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
  19. package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
  20. package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
  21. package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
  22. package/color-picker/index.mjs +101 -22
  23. package/confirm-button/index.mjs +1 -1
  24. package/confirmable/index.mjs +1 -1
  25. package/data-box/index.mjs +15 -12
  26. package/data-card/index.mjs +12 -10
  27. package/data-card-text/index.mjs +12 -10
  28. package/data-display/index.mjs +17 -15
  29. package/data-icons/index.mjs +16 -13
  30. package/data-imgtext/index.mjs +18 -15
  31. package/data-operatext/index.mjs +16 -14
  32. package/data-panel/index.mjs +16 -13
  33. package/data-pay/index.mjs +20 -16
  34. package/data-price/index.mjs +16 -14
  35. package/data-progress/index.mjs +17 -13
  36. package/data-rotate/index.mjs +15 -12
  37. package/data-table-picker/index.mjs +18 -15
  38. package/data-tabs/index.mjs +15 -12
  39. package/dialog-form/index.mjs +18 -16
  40. package/dynamic-table/index.mjs +30 -25
  41. package/editable-progress/index.mjs +11 -9
  42. package/editable-tree/index.mjs +56 -52
  43. package/egd-collapse-item/index.mjs +9 -9
  44. package/element-dialog/index.mjs +23 -22
  45. package/flex-column/index.mjs +1 -1
  46. package/flex-item/index.mjs +1 -1
  47. package/flex-row/index.mjs +1 -1
  48. package/flow/index.mjs +11 -10
  49. package/flow-designer/index.mjs +1973 -699
  50. package/flow-designer/style.css +1 -1
  51. package/flow-node/index.mjs +1 -1
  52. package/flow-viewer/index.mjs +9 -9
  53. package/form-block/index.mjs +34 -32
  54. package/form-cascader/index.mjs +24 -23
  55. package/form-checkbox/index.mjs +17 -16
  56. package/form-checkbox-group/index.mjs +23 -20
  57. package/form-checkbox-group/style.css +1 -1
  58. package/form-date-picker/index.mjs +20 -18
  59. package/form-holder/index.mjs +14 -13
  60. package/form-input/index.mjs +15 -14
  61. package/form-input-cron-expression/index.mjs +22 -19
  62. package/form-input-email/index.mjs +16 -15
  63. package/form-input-id-card/index.mjs +13 -12
  64. package/form-input-number/index.mjs +17 -16
  65. package/form-input-phone-number/index.mjs +22 -21
  66. package/form-input-tag/index.mjs +15 -14
  67. package/form-input-time/index.mjs +15 -14
  68. package/form-item/index.mjs +3 -140
  69. package/form-item-group/index.mjs +31 -28
  70. package/form-radio-group/index.mjs +28 -27
  71. package/form-radio-group/style.css +1 -1
  72. package/form-select/index.mjs +23 -21
  73. package/form-switch/index.mjs +17 -16
  74. package/form-table/index.mjs +17 -16
  75. package/form-table-plus/index.mjs +22 -21
  76. package/form-textarea/index.mjs +16 -15
  77. package/form-tree-select/index.mjs +15 -14
  78. package/form-tree-select-multiple/index.mjs +15 -14
  79. package/form-view/index.mjs +39 -35
  80. package/fy-array/index.mjs +37 -33
  81. package/fy-cascader/index.mjs +17 -16
  82. package/fy-checkbox/index.mjs +13 -11
  83. package/fy-code/index.mjs +10 -10
  84. package/fy-curd/index.mjs +1147 -1123
  85. package/fy-date/index.mjs +11 -10
  86. package/fy-draggable/index.mjs +10 -9
  87. package/fy-dynamic/index.mjs +25 -22
  88. package/fy-empty/index.mjs +1 -1
  89. package/fy-form/index.mjs +15 -638
  90. package/fy-form-design/index.mjs +1165 -1127
  91. package/fy-input/index.mjs +14 -12
  92. package/fy-input-color/index.mjs +15 -13
  93. package/fy-input-icon/index.mjs +23 -20
  94. package/fy-input-map/index.mjs +31 -28
  95. package/fy-input-number/index.mjs +10 -9
  96. package/fy-input-table/index.mjs +22 -18
  97. package/fy-input-tree/index.mjs +37 -33
  98. package/fy-progress/index.mjs +10 -9
  99. package/fy-radio/index.mjs +16 -15
  100. package/fy-rate/index.mjs +11 -10
  101. package/fy-select/index.mjs +29 -25
  102. package/fy-slider/index.mjs +12 -11
  103. package/fy-switch/index.mjs +10 -9
  104. package/fy-tabs/index.mjs +17 -15
  105. package/fy-time/index.mjs +1 -1
  106. package/fy-title/index.mjs +1 -1
  107. package/fy-tree/index.mjs +24 -18
  108. package/fy-u-editor/index.mjs +1 -1
  109. package/fy-upload/index.mjs +76 -74
  110. package/guide-steps/index.mjs +13 -11
  111. package/iframe-window/index.mjs +10 -9
  112. package/image-cropper/index.mjs +30 -28
  113. package/image-preview/index.mjs +14 -12
  114. package/index.mjs +72 -72
  115. package/input-number/index.mjs +14 -13
  116. package/input-number-range/index.mjs +12 -11
  117. package/license/index.mjs +1 -1
  118. package/login/index.mjs +26 -21
  119. package/nav-bar/index.mjs +10 -9
  120. package/notice/index.mjs +10 -9
  121. package/package.json +1 -1
  122. package/page-index/index.mjs +13 -12
  123. package/page-index-top/index.mjs +28 -23
  124. package/page-skeleton/index.mjs +14 -14
  125. package/page-skeleton-new/index.mjs +9 -8
  126. package/pageable-table/index.mjs +182 -172
  127. package/pageable-table/style.css +1 -1
  128. package/pageable-view/index.mjs +16 -15
  129. package/picker-table-view/index.mjs +58 -49
  130. package/present-view/index.mjs +39 -35
  131. package/record-video/index.mjs +1 -1
  132. package/resize-observer/index.mjs +1 -1
  133. package/search/index.mjs +22 -20
  134. package/search-popover/index.mjs +1 -1
  135. package/sign/index.mjs +1 -1
  136. package/skeleton-panel/index.mjs +10 -9
  137. package/split-pane/index.mjs +37 -36
  138. package/static-pageable-table/index.mjs +13 -11
  139. package/sub-table/index.mjs +49 -36
  140. package/sub-table-plus/index.mjs +18 -229
  141. package/swiper/index.mjs +12 -11
  142. package/table-column/index.mjs +3 -223
  143. package/table-view/index.mjs +60 -52
  144. package/tabs-view/index.mjs +19 -17
  145. package/tag-render/index.mjs +18 -16
  146. package/text-ellipsis/index.mjs +10 -9
  147. package/toolbar/index.mjs +14 -13
  148. package/toolbar-button/index.mjs +14 -13
  149. package/verify/index.mjs +1 -1
  150. package/vue-cron/index.mjs +267 -259
  151. package/watermark/index.mjs +1 -1
  152. package/web-types.json +1 -1
  153. package/x-input-tag/index.mjs +24 -21
  154. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  155. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  156. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  157. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  158. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  159. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  160. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  161. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  162. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  163. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  164. package/chunks/core.0Exl13Mz.mjs +0 -54
  165. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  166. package/chunks/form-item.LWjePsPa.mjs +0 -233
  167. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  168. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  169. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  170. package/element-listeners/style.css +0 -1
  171. package/element-multi-instance/style.css +0 -1
@@ -1,142 +1,5 @@
1
- import { h as m } from "vue";
2
- import { f as B } from "../chunks/form-item.LWjePsPa.mjs";
3
- import { hasOwn as I, isDef as D } from "@web-utils/core";
4
- import { n as L } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const N = {
6
- name: "FormItem",
7
- mixins: [B],
8
- inject: {
9
- formHolder: {
10
- default: {}
11
- },
12
- formItemConfig: {
13
- default: null
14
- }
15
- },
16
- computed: {
17
- gutter() {
18
- let e = this.$parent;
19
- for (; e && e.$options.componentName !== "ElRow"; )
20
- e = e.$parent;
21
- return (e == null ? void 0 : e.gutter) ?? 0;
22
- }
23
- },
24
- methods: {
25
- renderFormItem() {
26
- var x, k, R, y, E, T, H;
27
- const {
28
- hideLabel: e,
29
- label: l,
30
- labelWidth: u,
31
- prop: t,
32
- rules: p,
33
- $scopedSlots: r,
34
- elFormItemProps: i,
35
- elForm: n,
36
- formHolder: a,
37
- formItemClass: c,
38
- required: f,
39
- block: h,
40
- half: w,
41
- wrapCol: W,
42
- wrapFormItem: P,
43
- disabled: V,
44
- formItemConfig: s,
45
- getRequireRule: j
46
- } = this;
47
- let o = p, d = f, b = f, v = h, g = W;
48
- s && (I(s, "block") && (v = s.block), I(s, "wrapCol") && (g = s.wrapCol));
49
- const z = a.tableForm ? "" : v && w && g ? `calc( 50% - ${this.gutter / 2}px)` : "";
50
- (x = a.requiredFields) != null && x.includes(t) && (d = !0), (V || n != null && n.disabled) && !((k = a.requiredFields) != null && k.includes(t)) ? (o = [], !a.required && !((R = a.requiredFields) != null && R.includes(t)) && (b = !1)) : (!a.required && !((y = a.requiredFields) != null && y.includes(t)) && (d = !1), d && !(o != null && o.length) && t ? o = [j()] : d || (b = !1, o && (o = o.filter((C) => !C.required))));
51
- const F = (E = r.tips) == null ? void 0 : E.call(r), q = F || this.tips, _ = q ? m("ElTooltip", {
52
- attrs: {
53
- effect: "light",
54
- content: this.tips
55
- }
56
- }, [F ? m("div", {
57
- slot: "content"
58
- }, [F]) : null, m("i", {
59
- class: "el-icon-info form-item-input-info"
60
- })]) : null;
61
- return P ? m("ElFormItem", {
62
- style: {
63
- width: z
64
- },
65
- key: `${t}-${d}`,
66
- class: ["form-item", c, {
67
- required: b,
68
- "form-item-hide-label": e
69
- }],
70
- scopedSlots: {
71
- ...r,
72
- default: q ? () => {
73
- var C;
74
- return m("div", {
75
- class: "form-item-input-wrapper"
76
- }, [(C = r.default) == null ? void 0 : C.call(r), _]);
77
- } : r.default
78
- },
79
- props: {
80
- ...i
81
- },
82
- attrs: {
83
- label: l,
84
- "label-width": e ? "0" : u,
85
- prop: t,
86
- rules: o
87
- },
88
- ref: "formItem"
89
- }) : q ? m("div", {
90
- class: "form-item-input-wrapper"
91
- }, [(T = r.default) == null ? void 0 : T.call(r), _]) : m("div", [(H = r.default) == null ? void 0 : H.call(r)]);
92
- },
93
- async clearValidate() {
94
- var e, l;
95
- await this.$nextTick(), (l = (e = this.$refs.formItem).clearValidate) == null || l.call(e);
96
- },
97
- async validate() {
98
- var e, l;
99
- await this.$nextTick(), (l = (e = this.$refs.formItem).validate) == null || l.call(e);
100
- }
101
- },
102
- render() {
103
- var h, w;
104
- const {
105
- computeSpan: e,
106
- wrapCol: l,
107
- fixedSpan: u,
108
- formItemConfig: t,
109
- renderFormItem: p,
110
- elColProps: r,
111
- $scopedSlots: i,
112
- unwrap: n,
113
- formHolder: a
114
- } = this;
115
- let c = !a.tableForm && l, f = !1;
116
- return t && (I(t, "wrapCol") && (c = t.wrapCol), I(t, "reactive") && (f = t.reactive)), n ? m("div", [(h = i.default) == null ? void 0 : h.call(i)]) : c ? m("ElCol", {
117
- props: {
118
- ...r,
119
- span: u || e,
120
- ...!D(u) && f ? {
121
- xs: 24,
122
- sm: 12,
123
- md: 12,
124
- lg: 8,
125
- xl: 6
126
- } : {}
127
- }
128
- }, [p(), (w = i == null ? void 0 : i.below) == null ? void 0 : w.call(i)]) : p();
129
- }
130
- }, O = null, A = null;
131
- var G = /* @__PURE__ */ L(
132
- N,
133
- O,
134
- A,
135
- !1,
136
- null,
137
- null
138
- );
139
- const U = G.exports;
1
+ import { F as a } from "../chunks/FormItem.Bhsy_O2B.mjs";
2
+ import "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
140
3
  export {
141
- U as default
4
+ a as default
142
5
  };
@@ -1,6 +1,9 @@
1
+ import a from "element-ui/lib/transitions/collapse-transition";
2
+ import d from "../empty-view/index.mjs";
3
+ import n from "element-ui/lib/row";
1
4
  import { h as s } from "vue";
2
- import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], d = ["$emit", "validate", "clearValidate"], n = {
5
+ import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
+ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], p = ["$emit", "validate", "clearValidate"], m = {
4
7
  name: "FormItemGroup",
5
8
  inject: {
6
9
  elForm: {
@@ -39,23 +42,23 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
39
42
  notDispatch: Boolean
40
43
  },
41
44
  data() {
42
- const e = {};
43
- return r.forEach((t) => {
44
- e[t] = null;
45
+ const t = {};
46
+ return r.forEach((e) => {
47
+ t[e] = null;
45
48
  }), {
46
49
  expand: !0,
47
- proxyForm: e
50
+ proxyForm: t
48
51
  };
49
52
  },
50
53
  computed: {
51
54
  formCfg() {
52
- const e = {
55
+ const t = {
53
56
  enabled: this.enabled,
54
57
  forbidden: this.disabled
55
58
  };
56
- return r.forEach((t) => {
57
- e[t] = this.elForm[t];
58
- }), e;
59
+ return r.forEach((e) => {
60
+ t[e] = this.elForm[e];
61
+ }), t;
59
62
  },
60
63
  isDisabled() {
61
64
  return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
@@ -64,16 +67,16 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
64
67
  watch: {
65
68
  collapse: {
66
69
  immediate: !0,
67
- handler(e) {
68
- this.expand = !e;
70
+ handler(t) {
71
+ this.expand = !t;
69
72
  }
70
73
  },
71
74
  formCfg: {
72
75
  immediate: !0,
73
76
  handler() {
74
- this.proxyForm.disabled = this.isDisabled, r.forEach((e) => {
75
- var t;
76
- e !== "disabled" && (d.includes(e) ? this.proxyForm[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.proxyForm[e] = this.elForm[e]);
77
+ this.proxyForm.disabled = this.isDisabled, r.forEach((t) => {
78
+ var e;
79
+ t !== "disabled" && (p.includes(t) ? this.proxyForm[t] = (e = this.elForm[t]) == null ? void 0 : e.bind(this.elForm) : this.proxyForm[t] = this.elForm[t]);
77
80
  }), this.size && (this.proxyForm.size = this.size);
78
81
  }
79
82
  }
@@ -85,14 +88,14 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
85
88
  this.notDispatch || this.dispatch("FormView", "FormView.removeGroup", [this]);
86
89
  },
87
90
  methods: {
88
- dispatch(e, t, l) {
91
+ dispatch(t, e, l) {
89
92
  let i = this.$parent || this.$root, o = i.$options.name;
90
- for (; i && (!o || o !== e); )
93
+ for (; i && (!o || o !== t); )
91
94
  i = i.$parent, i && (o = i.$options.name);
92
- i && i.$emit.apply(i, [t].concat(l));
95
+ i && i.$emit.apply(i, [e].concat(l));
93
96
  },
94
97
  renderDefault() {
95
- return this.$scopedSlots.default ? !this.formHolder.tableForm && this.wrapRow ? s("ElRow", {
98
+ return this.$scopedSlots.default ? !this.formHolder.tableForm && this.wrapRow ? s(n, {
96
99
  attrs: {
97
100
  gutter: this.gutter
98
101
  }
@@ -100,7 +103,7 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
100
103
  disabled: this.proxyForm.disabled
101
104
  })]) : this.$scopedSlots.default({
102
105
  disabled: this.proxyForm.disabled
103
- }) : s("EmptyView", {
106
+ }) : s(d, {
104
107
  attrs: {
105
108
  "font-size": "14px",
106
109
  "empty-tips": "暂无信息"
@@ -135,23 +138,23 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
135
138
  style: "color:#ff0000;font-size:14px;"
136
139
  }, [" (", this.tips, ")"]) : null, this.$scopedSlots["title-right"] ? this.$scopedSlots["title-right"]() : null]), " ", s("i", {
137
140
  class: this.expand ? "el-icon-arrow-down" : "el-icon-arrow-right"
138
- })]), s("ElCollapseTransition", [s("div", {
141
+ })]), s(a, [s("div", {
139
142
  directives: [{
140
143
  name: "show",
141
144
  value: this.expand
142
145
  }]
143
146
  }, [this.renderDefault()])])]);
144
147
  }
145
- }, h = null, p = null;
146
- var m = /* @__PURE__ */ a(
147
- n,
148
- h,
149
- p,
148
+ }, c = null, u = null;
149
+ var f = /* @__PURE__ */ h(
150
+ m,
151
+ c,
152
+ u,
150
153
  !1,
151
154
  null,
152
155
  null
153
156
  );
154
- const f = m.exports;
157
+ const v = f.exports;
155
158
  export {
156
- f as default
159
+ v as default
157
160
  };
@@ -1,12 +1,13 @@
1
- import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
2
- import { f as l } from "../chunks/form-pick.BFTIVn_i.mjs";
3
- import a from "element-ui/lib/radio-group";
4
- import { c as s, d as u, n as p } from "../chunks/index.B2TRddqf.mjs";
5
- import { d } from "../chunks/dictionary.DqiP9x2m.mjs";
6
- import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
- const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)), h = {
1
+ import i from "element-ui/lib/radio-group";
2
+ import { F as l } from "../chunks/FormItem.Bhsy_O2B.mjs";
3
+ import { f as s } from "../chunks/form-input.BtS_J5a2.mjs";
4
+ import { f as a } from "../chunks/form-pick.BFTIVn_i.mjs";
5
+ import { e as u, h as p, n as f } from "../chunks/index.Cn7aq-Et.mjs";
6
+ import { d as c } from "../chunks/dictionary.DqiP9x2m.mjs";
7
+ import { n as d } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
+ const h = u(i).filter((o) => !["value", "placeholder", "disabled"].includes(o)), m = {
8
9
  name: "FormRadioGroup",
9
- mixins: [n, l, d],
10
+ mixins: [s, a, c],
10
11
  props: {
11
12
  options: {
12
13
  type: Array,
@@ -52,7 +53,7 @@ const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
52
53
  return "请选择";
53
54
  },
54
55
  inputProps() {
55
- return u({ ...p(this.$attrs), ...this.$props }, f);
56
+ return p({ ...f(this.$attrs), ...this.$props }, h);
56
57
  },
57
58
  labelKey() {
58
59
  return this.classic ? "label" : this.labelProp;
@@ -83,40 +84,40 @@ const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
83
84
  }
84
85
  },
85
86
  methods: {
86
- emitInput(t) {
87
- this.$emit("input", t);
87
+ emitInput(o) {
88
+ this.$emit("input", o);
88
89
  },
89
- toggle(t) {
90
- this.value === t[this.valueKey] ? this.emitInput(null) : this.emitInput(t[this.valueKey]);
90
+ toggle(o) {
91
+ this.value === o[this.valueKey] ? this.emitInput(null) : this.emitInput(o[this.valueKey]);
91
92
  }
92
93
  }
93
94
  };
94
- var m = function() {
95
+ var y = function() {
95
96
  var e = this, r = e._self._c;
96
- return r("FormItem", e._b({ class: ["form-radio-group", { "form-radio-group-row": e.fillRow, inline: e.inline }, e.ellipsis ? "form-radio-group-row-ellipsis" : "form-radio-group-row-break-word"], attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
97
- return [r("ElRadioGroup", e._g(e._b({ class: { "over-flow": e.overFlow }, attrs: { value: e.value, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (o) => e.$emit("input", o) } }, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(o) {
98
- return r(e.component, { key: o[e.valueKey], tag: "Component", attrs: { border: e.border, label: o[e.valueKey] }, nativeOn: { click: function(i) {
99
- return i.preventDefault(), i.stopPropagation(), e.toggle(o);
100
- } } }, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
101
- }) : e._l(e.innerOptions, function(o) {
102
- return r(e.component, { key: o[e.valueKey], tag: "Component", attrs: { border: e.border, label: o[e.valueKey] } }, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
97
+ return r(l, e._b({ class: ["form-radio-group", { "form-radio-group-row": e.fillRow, inline: e.inline }, e.ellipsis ? "form-radio-group-row-ellipsis" : "form-radio-group-row-break-word"], attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
98
+ return [r(i, e._g(e._b({ class: { "over-flow": e.overFlow }, attrs: { value: e.value, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (t) => e.$emit("input", t) } }, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(t) {
99
+ return r(e.component, { key: t[e.valueKey], tag: "Component", attrs: { border: e.border, label: t[e.valueKey] }, nativeOn: { click: function(n) {
100
+ return n.preventDefault(), n.stopPropagation(), e.toggle(t);
101
+ } } }, [e._v(" " + e._s(t[e.labelKey]) + " ")]);
102
+ }) : e._l(e.innerOptions, function(t) {
103
+ return r(e.component, { key: t[e.valueKey], tag: "Component", attrs: { border: e.border, label: t[e.valueKey] } }, [e._v(" " + e._s(t[e.labelKey]) + " ")]);
103
104
  })], 2), e._t("append")];
104
- }, proxy: !0 }, { key: "error", fn: function({ error: o }) {
105
- return [e._t("error", null, { error: o })];
105
+ }, proxy: !0 }, { key: "error", fn: function({ error: t }) {
106
+ return [e._t("error", null, { error: t })];
106
107
  } }, { key: "label", fn: function() {
107
108
  return [e._t("label")];
108
109
  }, proxy: !0 }, { key: "below", fn: function() {
109
110
  return [e._t("below")];
110
111
  }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
111
- }, y = [], g = /* @__PURE__ */ c(
112
- h,
112
+ }, _ = [], g = /* @__PURE__ */ d(
113
113
  m,
114
114
  y,
115
+ _,
115
116
  !1,
116
117
  null,
117
118
  null
118
119
  );
119
- const P = g.exports;
120
+ const R = g.exports;
120
121
  export {
121
- P as default
122
+ R as default
122
123
  };
@@ -1 +1 @@
1
- .form-radio-group.inline{display:inline}.form-radio-group.inline .el-radio{float:left;margin-right:10px}.form-radio-group .el-form-item__content{flex-direction:row;align-items:end;line-height:normal;display:flex}.form-radio-group.form-radio-group-row.form-radio-group-row-ellipsis .el-radio-group{overflow:hidden}.form-radio-group.form-radio-group-row.form-radio-group-row-ellipsis .el-radio__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.form-radio-group.form-radio-group-row.form-radio-group-row-break-word .el-radio__label{word-wrap:break-word;word-break:break-all}.form-radio-group.form-radio-group-row .el-radio-group{display:block}.form-radio-group.form-radio-group-row .el-radio{flex-flow:row;width:100%;display:flex}.form-radio-group.form-radio-group-row .el-radio__input{flex-shrink:0;top:3px}.form-radio-group.form-radio-group-row .el-radio__label{vertical-align:sub;flex:auto;margin-bottom:6px;padding-left:4px;display:block}.form-radio-group .el-radio-group{line-height:1}.form-radio-group .el-radio{vertical-align:middle;margin-right:10px}.form-radio-group .el-radio__label{padding-left:0;line-height:19px}
1
+ .form-radio-group.inline{display:inline}.form-radio-group.inline .el-radio{float:left;margin-right:10px}.form-radio-group .el-form-item__content{flex-direction:row;align-items:end;line-height:normal;display:flex}.form-radio-group.form-radio-group-row.form-radio-group-row-ellipsis .el-radio-group{overflow:hidden}.form-radio-group.form-radio-group-row.form-radio-group-row-ellipsis .el-radio__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.form-radio-group.form-radio-group-row.form-radio-group-row-break-word .el-radio__label{white-space:normal;word-wrap:break-word;word-break:break-all}.form-radio-group.form-radio-group-row .el-radio-group{display:block}.form-radio-group.form-radio-group-row .el-radio{flex-flow:row;width:100%;display:flex}.form-radio-group.form-radio-group-row .el-radio__input{flex-shrink:0;top:3px}.form-radio-group.form-radio-group-row .el-radio__label{vertical-align:sub;flex:auto;margin-bottom:6px;padding-left:4px;display:block}.form-radio-group .el-radio-group{line-height:1}.form-radio-group .el-radio{vertical-align:middle;margin-right:10px}.form-radio-group .el-radio__label{padding-left:0;line-height:19px}
@@ -1,13 +1,15 @@
1
- import { f as o } from "../chunks/form-input.CvFdwlEV.mjs";
2
- import { f as l } from "../chunks/form-pick.BFTIVn_i.mjs";
3
- import { d as n } from "../chunks/dictionary.DqiP9x2m.mjs";
4
- import a from "element-ui/lib/select";
5
- import { c as p, d as u, n as h } from "../chunks/index.B2TRddqf.mjs";
6
- import { isString as m, isPlainObject as f, isNumber as c } from "@web-utils/core";
7
- import { n as d } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
- const b = p(a).filter((e) => !["value", "placeholder", "disabled"].includes(e)), y = {
1
+ import l from "element-ui/lib/option";
2
+ import o from "element-ui/lib/select";
3
+ import { F as n } from "../chunks/FormItem.Bhsy_O2B.mjs";
4
+ import { f as a } from "../chunks/form-input.BtS_J5a2.mjs";
5
+ import { f as p } from "../chunks/form-pick.BFTIVn_i.mjs";
6
+ import { d as u } from "../chunks/dictionary.DqiP9x2m.mjs";
7
+ import { e as h, h as m, n as f } from "../chunks/index.Cn7aq-Et.mjs";
8
+ import { isString as c, isPlainObject as d, isNumber as b } from "@web-utils/core";
9
+ import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
10
+ const y = h(o).filter((e) => !["value", "placeholder", "disabled"].includes(e)), g = {
9
11
  name: "FormSelect",
10
- mixins: [o, l, n],
12
+ mixins: [a, p, u],
11
13
  props: {
12
14
  options: {
13
15
  type: Array,
@@ -59,7 +61,7 @@ const b = p(a).filter((e) => !["value", "placeholder", "disabled"].includes(e)),
59
61
  return "请选择";
60
62
  },
61
63
  inputProps() {
62
- return u({ ...h(this.$attrs), ...this.$props }, b);
64
+ return m({ ...f(this.$attrs), ...this.$props }, y);
63
65
  },
64
66
  innerOptions() {
65
67
  if (this.dictType)
@@ -98,7 +100,7 @@ const b = p(a).filter((e) => !["value", "placeholder", "disabled"].includes(e)),
98
100
  if (this.year) {
99
101
  const e = (/* @__PURE__ */ new Date()).getFullYear(), t = [];
100
102
  let i = 10;
101
- c(this.year) && (i = this.year);
103
+ b(this.year) && (i = this.year);
102
104
  for (let r = -i; r <= i; r++) {
103
105
  const s = e + r;
104
106
  t.push({
@@ -131,7 +133,7 @@ const b = p(a).filter((e) => !["value", "placeholder", "disabled"].includes(e)),
131
133
  try {
132
134
  this.loading = !0;
133
135
  const i = await this.remoteMethod(e, this.prop);
134
- ((t = i.data.data) == null ? void 0 : t.length) >= 0 ? m(i.data.data[0]) ? this.remoteOptions = i.data.data.map((r) => ({ [this.props.value]: r, [this.props.label]: r })) : f(i.data.data[0]) && (this.remoteOptions = i.data.data) : this.remoteOptions = [];
136
+ ((t = i.data.data) == null ? void 0 : t.length) >= 0 ? c(i.data.data[0]) ? this.remoteOptions = i.data.data.map((r) => ({ [this.props.value]: r, [this.props.label]: r })) : d(i.data.data[0]) && (this.remoteOptions = i.data.data) : this.remoteOptions = [];
135
137
  } catch {
136
138
  }
137
139
  this.loading = !1;
@@ -144,13 +146,13 @@ const b = p(a).filter((e) => !["value", "placeholder", "disabled"].includes(e)),
144
146
  }
145
147
  }
146
148
  };
147
- var _ = function() {
149
+ var v = function() {
148
150
  var t = this, i = t._self._c;
149
- return i("FormItem", t._b({ attrs: { rules: t.computeRules, disabled: t.inputDisabled }, scopedSlots: t._u([{ key: "default", fn: function() {
150
- return [i("ElSelect", t._g(t._b({ attrs: { value: t.innerValue, filterable: t.filterable || !!t.year, placeholder: t.inputDisabled ? "--" : t.computePlaceholder, "allow-create": t.allowCreate || !!t.year, disabled: t.inputDisabled, multiple: t.multiple, "multiple-limit": t.multipleLimit, loading: t.loading, remote: t.remote, "remote-method": t.fetchOptions, clearable: "" }, on: { clear: t.reloadOptions, input: t.emitInput } }, "ElSelect", t.inputProps, !1), t.listeners), [t._t("default", function() {
151
+ return i(n, t._b({ attrs: { rules: t.computeRules, disabled: t.inputDisabled }, scopedSlots: t._u([{ key: "default", fn: function() {
152
+ return [i(o, t._g(t._b({ attrs: { value: t.innerValue, filterable: t.filterable || !!t.year, placeholder: t.inputDisabled ? "--" : t.computePlaceholder, "allow-create": t.allowCreate || !!t.year, disabled: t.inputDisabled, multiple: t.multiple, "multiple-limit": t.multipleLimit, loading: t.loading, remote: t.remote, "remote-method": t.fetchOptions, clearable: "" }, on: { clear: t.reloadOptions, input: t.emitInput } }, "ElSelect", t.inputProps, !1), t.listeners), [t._t("default", function() {
151
153
  return [t._l(t.innerOptions, function(r) {
152
154
  return [t._t("option", function() {
153
- return [i("ElOption", { key: r[t.props.value], attrs: { value: r[t.props.value], label: r[t.props.label] } })];
155
+ return [i(l, { key: r[t.props.value], attrs: { value: r[t.props.value], label: r[t.props.label] } })];
154
156
  }, { value: r[t.props.value], label: r[t.props.label] })];
155
157
  })];
156
158
  })], 2), t.$slots.warn ? i("div", { staticClass: "el-form-item__warn" }, [t._t("warn")], 2) : t._e()];
@@ -165,15 +167,15 @@ var _ = function() {
165
167
  }, proxy: !0 }, { key: "tips", fn: function() {
166
168
  return [t._t("tips")];
167
169
  }, proxy: !0 }], null, !0) }, "FormItem", t.formItemProps, !1));
168
- }, g = [], v = /* @__PURE__ */ d(
169
- y,
170
- _,
170
+ }, S = [], O = /* @__PURE__ */ _(
171
171
  g,
172
+ v,
173
+ S,
172
174
  !1,
173
175
  null,
174
176
  null
175
177
  );
176
- const k = v.exports;
178
+ const I = O.exports;
177
179
  export {
178
- k as default
180
+ I as default
179
181
  };
@@ -1,10 +1,11 @@
1
- import { f as o } from "../chunks/form-input.CvFdwlEV.mjs";
2
- import l from "element-ui/lib/switch";
3
- import { c as a, d as u, n as i } from "../chunks/index.B2TRddqf.mjs";
4
- import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)), c = {
1
+ import n from "element-ui/lib/switch";
2
+ import { F as a } from "../chunks/FormItem.Bhsy_O2B.mjs";
3
+ import { f as l } from "../chunks/form-input.BtS_J5a2.mjs";
4
+ import { e as u, h as i, n as s } from "../chunks/index.Cn7aq-Et.mjs";
5
+ import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
+ const m = u(n).filter((t) => !["value", "placeholder", "disabled"].includes(t)), c = {
6
7
  name: "FormSwitch",
7
- mixins: [o],
8
+ mixins: [l],
8
9
  props: {
9
10
  value: [String, Number, Boolean],
10
11
  activeValue: {
@@ -18,7 +19,7 @@ const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
18
19
  },
19
20
  computed: {
20
21
  inputProps() {
21
- return u({ ...i(this.$attrs), ...this.$props }, p);
22
+ return i({ ...s(this.$attrs), ...this.$props }, m);
22
23
  }
23
24
  },
24
25
  methods: {
@@ -27,28 +28,28 @@ const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
27
28
  }
28
29
  }
29
30
  };
30
- var m = function() {
31
+ var f = function() {
31
32
  var e = this, r = e._self._c;
32
- return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
33
+ return r(a, e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
33
34
  return [e._t("default", function() {
34
- return [r("ElSwitch", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { "active-value": e.activeValue, "inactive-value": e.inactiveValue, value: e.value, readonly: e.readonly, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput }, scopedSlots: e._u([{ key: "append", fn: function() {
35
+ return [r(n, e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { "active-value": e.activeValue, "inactive-value": e.inactiveValue, value: e.value, readonly: e.readonly, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput }, scopedSlots: e._u([{ key: "append", fn: function() {
35
36
  return [e._t("append")];
36
37
  }, proxy: !0 }], null, !0) }, "ElSwitch", e.inputProps, !1), e.listeners))];
37
38
  })];
38
- }, proxy: !0 }, { key: "error", fn: function({ error: n }) {
39
- return [e._t("error", null, { error: n })];
39
+ }, proxy: !0 }, { key: "error", fn: function({ error: o }) {
40
+ return [e._t("error", null, { error: o })];
40
41
  } }, { key: "label", fn: function() {
41
42
  return [e._t("label")];
42
43
  }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
43
- }, d = [], f = /* @__PURE__ */ s(
44
+ }, d = [], _ = /* @__PURE__ */ p(
44
45
  c,
45
- m,
46
+ f,
46
47
  d,
47
48
  !1,
48
49
  null,
49
50
  null
50
51
  );
51
- const b = f.exports;
52
+ const P = _.exports;
52
53
  export {
53
- b as default
54
+ P as default
54
55
  };
@@ -1,10 +1,11 @@
1
- import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
2
- import { d as s, n as d } from "../chunks/index.B2TRddqf.mjs";
3
- import m from "../sub-table/index.mjs";
4
- import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const i = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled"].includes(l)), p = {
1
+ import u from "../sub-table/index.mjs";
2
+ import { F as s } from "../chunks/FormItem.Bhsy_O2B.mjs";
3
+ import { f as d } from "../chunks/form-input.BtS_J5a2.mjs";
4
+ import { h as m, n as c } from "../chunks/index.Cn7aq-Et.mjs";
5
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
+ const p = Object.keys(u.props).filter((l) => !["value", "placeholder", "disabled"].includes(l)), f = {
6
7
  name: "FormTable",
7
- mixins: [a],
8
+ mixins: [d],
8
9
  emits: ["add-row"],
9
10
  props: {
10
11
  value: Array,
@@ -39,7 +40,7 @@ const i = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled
39
40
  },
40
41
  computed: {
41
42
  inputProps() {
42
- return s({ ...d(this.$attrs), ...this.$props }, i);
43
+ return m({ ...c(this.$attrs), ...this.$props }, p);
43
44
  }
44
45
  },
45
46
  methods: {
@@ -48,12 +49,12 @@ const i = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled
48
49
  }
49
50
  }
50
51
  };
51
- var f = function() {
52
+ var y = function() {
52
53
  var e = this, r = e._self._c;
53
- return r("FormItem", e._b({ attrs: { block: e.block, rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
54
- return [r("SubTable", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { status: e.status, value: e.value, prop: e.prop, editable: e.editable, columns: e.columns, readonly: e.readonly, "allow-empty": e.allowEmpty, disabled: e.inputDisabled, "handle-column": e.handleColumn, "show-handle-column-add-button": e.showHandleColumnAddButton, "show-empty-add-button": e.showEmptyAddButton, placeholder: e.computePlaceholder }, on: { "selection-change": e.onSelectionChange, input: (n) => e.$emit("input", n) }, scopedSlots: e._u([e._l(e.columns, function(n) {
55
- return { key: n.prop, fn: function({ row: o, column: t, index: u }) {
56
- return [e._t(n.prop, null, { row: o, column: t, index: u })];
54
+ return r(s, e._b({ attrs: { block: e.block, rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
55
+ return [r(u, e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { status: e.status, value: e.value, prop: e.prop, editable: e.editable, columns: e.columns, readonly: e.readonly, "allow-empty": e.allowEmpty, disabled: e.inputDisabled, "handle-column": e.handleColumn, "show-handle-column-add-button": e.showHandleColumnAddButton, "show-empty-add-button": e.showEmptyAddButton, placeholder: e.computePlaceholder }, on: { "selection-change": e.onSelectionChange, input: (n) => e.$emit("input", n) }, scopedSlots: e._u([e._l(e.columns, function(n) {
56
+ return { key: n.prop, fn: function({ row: o, column: t, index: a }) {
57
+ return [e._t(n.prop, null, { row: o, column: t, index: a })];
57
58
  } };
58
59
  }), { key: "columns", fn: function({ columns: n }) {
59
60
  return [e._t("columns", null, { columns: n })];
@@ -71,15 +72,15 @@ var f = function() {
71
72
  } }, { key: "label", fn: function() {
72
73
  return [e._t("label")];
73
74
  }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
74
- }, y = [], b = /* @__PURE__ */ c(
75
- p,
75
+ }, h = [], _ = /* @__PURE__ */ i(
76
76
  f,
77
77
  y,
78
+ h,
78
79
  !1,
79
80
  null,
80
81
  null
81
82
  );
82
- const B = b.exports;
83
+ const x = _.exports;
83
84
  export {
84
- B as default
85
+ x as default
85
86
  };