@web-utils/form-ui 1.0.0-beta4 → 1.0.0-beta41

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 (189) hide show
  1. package/api/index.d.ts +60 -0
  2. package/api/index.mjs +42 -0
  3. package/awesome-button/index.d.ts +60 -0
  4. package/awesome-button/index.mjs +49 -0
  5. package/base.css +1 -0
  6. package/chunks/4GMuTlFS.mjs +25 -0
  7. package/chunks/B-YO6Py8.mjs +145 -0
  8. package/chunks/B1MSrc6f.mjs +8 -0
  9. package/chunks/B40JZqF5.mjs +60 -0
  10. package/chunks/BLNpMvUQ.mjs +95 -0
  11. package/chunks/BNQD6fKI.mjs +40 -0
  12. package/chunks/BROfNO6c.mjs +17 -0
  13. package/chunks/BiF8cEVB.mjs +102 -0
  14. package/chunks/Bm5eiSmT.mjs +79 -0
  15. package/chunks/C5BjmbyR.mjs +91 -0
  16. package/chunks/CBHZpxPE.mjs +108 -0
  17. package/chunks/CD2WYSl1.mjs +188 -0
  18. package/chunks/CE0MejA6.mjs +200 -0
  19. package/chunks/CSf0Lu3w.mjs +102 -0
  20. package/chunks/CXSIP67a.mjs +234 -0
  21. package/chunks/ChmDDqoZ2.mjs +478 -0
  22. package/chunks/ClpNoMQe.mjs +37 -0
  23. package/chunks/Csa9EgOO.mjs +152 -0
  24. package/chunks/CuBH-6_y.mjs +25 -0
  25. package/chunks/CybmpSN8.mjs +664 -0
  26. package/chunks/CzvmkGvn.mjs +89 -0
  27. package/chunks/DASUt7ot.mjs +166 -0
  28. package/chunks/DBNqhkDl.mjs +174 -0
  29. package/chunks/DMcUruCK2.mjs +207 -0
  30. package/chunks/DUjgfS7g.mjs +95 -0
  31. package/chunks/DWLv8UUC.mjs +612 -0
  32. package/chunks/Ds_Tpa_M.mjs +83 -0
  33. package/chunks/MeM8FGzA.mjs +200 -0
  34. package/chunks/_90XRi0U.mjs +105 -0
  35. package/chunks/_Uzl3uMy.mjs +109 -0
  36. package/chunks/b5HOxD60.mjs +1369 -0
  37. package/chunks/cmuHpsX6.mjs +109 -0
  38. package/chunks/ePSxkHli.mjs +95 -0
  39. package/chunks/jHrYQI1Q.mjs +320 -0
  40. package/chunks/kKoMKOYH.mjs +180 -0
  41. package/chunks/lPLJkGiz.mjs +25 -0
  42. package/chunks/mbLUSXcZ.mjs +56 -0
  43. package/chunks/y-DmM31a.mjs +168 -0
  44. package/confirm-button/index.d.ts +113 -0
  45. package/confirm-button/index.mjs +35 -0
  46. package/confirmable/index.d.ts +84 -0
  47. package/confirmable/index.mjs +8 -0
  48. package/constants/index.d.ts +53 -0
  49. package/constants/index.mjs +4 -0
  50. package/editable-tree/index.d.ts +254 -0
  51. package/editable-tree/index.mjs +2 -0
  52. package/editable-tree/style.css +1 -0
  53. package/element-dialog/index.d.ts +337 -16
  54. package/element-dialog/index.mjs +2 -91
  55. package/empty-view/index.d.ts +2 -2
  56. package/empty-view/index.mjs +1 -1
  57. package/flex-scroll-area/index.d.ts +1 -1
  58. package/flex-scroll-area/index.mjs +1 -1
  59. package/form-advice/index.mjs +13 -12
  60. package/form-button/index.d.ts +114 -0
  61. package/form-button/index.mjs +36 -0
  62. package/form-card/index.d.ts +14 -0
  63. package/form-card/index.mjs +18 -0
  64. package/form-cascader/index.d.ts +472 -0
  65. package/form-cascader/index.mjs +2 -0
  66. package/form-check-box-group/index.d.ts +289 -18
  67. package/form-check-box-group/index.mjs +1 -1
  68. package/form-check-box-group/style.css +1 -0
  69. package/form-checkbox/index.d.ts +236 -16
  70. package/form-checkbox/index.mjs +1 -1
  71. package/form-date-picker/index.d.ts +390 -19
  72. package/form-date-picker/index.mjs +1 -1
  73. package/form-holder/index.d.ts +87 -20
  74. package/form-holder/index.mjs +1 -1
  75. package/form-holder/style.css +1 -1
  76. package/form-image/index.d.ts +145 -13
  77. package/form-image/index.mjs +1 -1
  78. package/form-input/index.d.ts +301 -20
  79. package/form-input/index.mjs +1 -1
  80. package/form-input/style.css +1 -0
  81. package/form-input-cron-expression/index.d.ts +217 -0
  82. package/form-input-cron-expression/index.mjs +2 -0
  83. package/form-input-cron-expression/style.css +1 -0
  84. package/form-input-email/index.d.ts +307 -16
  85. package/form-input-email/index.mjs +1 -1
  86. package/form-input-id-card/index.d.ts +307 -16
  87. package/form-input-id-card/index.mjs +1 -1
  88. package/form-input-number/index.d.ts +246 -18
  89. package/form-input-number/index.mjs +1 -1
  90. package/form-input-phone-number/index.d.ts +307 -16
  91. package/form-input-phone-number/index.mjs +1 -1
  92. package/form-input-tag/index.d.ts +263 -1
  93. package/form-input-tag/index.mjs +1 -3
  94. package/form-input-time/index.d.ts +434 -1
  95. package/form-input-time/index.mjs +1 -3
  96. package/form-item-config-provider/index.d.ts +22 -0
  97. package/form-item-config-provider/index.mjs +24 -0
  98. package/form-item-group/index.d.ts +91 -17
  99. package/form-item-group/index.mjs +2 -78
  100. package/form-item-group/style.css +1 -1
  101. package/form-item-x/index.d.ts +141 -11
  102. package/form-item-x/index.mjs +1 -1
  103. package/form-item-x/style.css +1 -0
  104. package/form-radio-group/index.d.ts +303 -16
  105. package/form-radio-group/index.mjs +1 -1
  106. package/form-rate/index.d.ts +254 -14
  107. package/form-rate/index.mjs +1 -1
  108. package/form-red-table/index.mjs +27 -26
  109. package/form-row/index.d.ts +2 -2
  110. package/form-row/index.mjs +1 -1
  111. package/form-select/index.d.ts +537 -18
  112. package/form-select/index.mjs +1 -1
  113. package/form-slider/index.d.ts +283 -16
  114. package/form-slider/index.mjs +1 -1
  115. package/form-switch/index.d.ts +272 -14
  116. package/form-switch/index.mjs +1 -1
  117. package/form-text/index.d.ts +165 -13
  118. package/form-text/index.mjs +1 -1
  119. package/form-textarea/index.d.ts +351 -0
  120. package/form-textarea/index.mjs +2 -0
  121. package/form-time-select/index.d.ts +319 -0
  122. package/form-time-select/index.mjs +2 -0
  123. package/form-view/index.mjs +1 -1
  124. package/helper/dictionary.d.ts +15 -0
  125. package/helper/dictionary.mjs +97 -0
  126. package/hook/useDictionary.d.ts +60 -0
  127. package/hook/useDictionary.mjs +15 -0
  128. package/hook/useVisibilityChange.d.ts +4 -0
  129. package/hook/useVisibilityChange.mjs +14 -0
  130. package/iframe-window/index.d.ts +9 -0
  131. package/iframe-window/index.mjs +37 -0
  132. package/iframe-window/style.css +1 -0
  133. package/index.d.ts +52 -36
  134. package/index.mjs +54 -61
  135. package/package.json +10 -5
  136. package/pageable-table/index.d.ts +398 -0
  137. package/pageable-table/index.mjs +2 -0
  138. package/pageable-table/style.css +1 -0
  139. package/resize-observer/index.d.ts +8 -0
  140. package/resize-observer/index.mjs +40 -0
  141. package/resize-observer/style.css +1 -0
  142. package/resolver/index.mjs +29 -0
  143. package/table-column/index.d.ts +160 -0
  144. package/table-column/index.mjs +2 -0
  145. package/table-column/style.css +1 -0
  146. package/table-column-def/index.d.ts +85 -0
  147. package/table-column-def/index.mjs +11 -0
  148. package/table-view/index.d.ts +340 -1
  149. package/table-view/index.mjs +459 -6
  150. package/table-view/style.css +1 -0
  151. package/toolbar/index.d.ts +128 -1
  152. package/toolbar/index.mjs +1 -8
  153. package/toolbar/style.css +1 -0
  154. package/toolbar-button/index.d.ts +188 -1
  155. package/toolbar-button/index.mjs +1 -8
  156. package/vue-cron/index.d.ts +191 -0
  157. package/vue-cron/index.mjs +2 -0
  158. package/vue-cron/style.css +1 -0
  159. package/web-types.json +1 -1
  160. package/x-input-tag/index.d.ts +2 -0
  161. package/x-input-tag/index.mjs +232 -0
  162. package/x-input-tag/style.css +1 -0
  163. package/year-calendar/index.d.ts +99 -0
  164. package/year-calendar/index.mjs +2 -0
  165. package/year-calendar/style.css +1 -0
  166. package/chunks/B4M_TFeR.mjs +0 -152
  167. package/chunks/B5BIQCcK.mjs +0 -149
  168. package/chunks/BHNKrW1j.mjs +0 -61
  169. package/chunks/BO9jWhBl.mjs +0 -46
  170. package/chunks/BZ8aOa78.mjs +0 -35
  171. package/chunks/Bsz7y4Xp.mjs +0 -73
  172. package/chunks/Bxj372sF.mjs +0 -53
  173. package/chunks/C33EmJN8.mjs +0 -32
  174. package/chunks/C6Li3-l7.mjs +0 -28
  175. package/chunks/CBcdalMX.mjs +0 -35
  176. package/chunks/CdRsyF0n.mjs +0 -43
  177. package/chunks/ClNahmiU.mjs +0 -23
  178. package/chunks/CstztYMu.mjs +0 -28
  179. package/chunks/DC9b53M6.mjs +0 -32
  180. package/chunks/DDVAgRED.mjs +0 -36
  181. package/chunks/DpJQABVD.mjs +0 -91
  182. package/chunks/ZsLNWI9x.mjs +0 -46
  183. package/chunks/jn_iQrVZ.mjs +0 -28
  184. package/constants.d.ts +0 -1
  185. package/constants.mjs +0 -4
  186. package/input/style.css +0 -1
  187. package/resolver.mjs +0 -79
  188. package/utils/style.css +0 -1
  189. /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
@@ -0,0 +1,83 @@
1
+ //#region src/components/table/table-column.ts
2
+ var e = {
3
+ type: {
4
+ type: String,
5
+ default: "default"
6
+ },
7
+ index: [Number, Function],
8
+ label: String,
9
+ columnKey: String,
10
+ prop: String,
11
+ width: [String, Number],
12
+ minWidth: [String, Number],
13
+ fixed: [Boolean, String],
14
+ renderHeader: Function,
15
+ sortable: [Boolean, String],
16
+ sortMethod: Function,
17
+ sortBy: [
18
+ Function,
19
+ String,
20
+ Array
21
+ ],
22
+ sortOrders: {
23
+ type: Array,
24
+ default: () => [
25
+ "ascending",
26
+ "descending",
27
+ null
28
+ ]
29
+ },
30
+ resizable: {
31
+ type: Boolean,
32
+ default: !0
33
+ },
34
+ formatter: Function,
35
+ showOverflowTooltip: {
36
+ type: [Boolean, Object],
37
+ default: !0
38
+ },
39
+ align: {
40
+ type: String,
41
+ default: "left"
42
+ },
43
+ headerAlign: {
44
+ type: String,
45
+ default: "left"
46
+ },
47
+ className: String,
48
+ labelClassName: String,
49
+ selectable: Function,
50
+ reserveSelection: {
51
+ type: Boolean,
52
+ default: !1
53
+ },
54
+ filters: Array,
55
+ filterPlacement: String,
56
+ filterClassName: String,
57
+ filterMultiple: {
58
+ type: Boolean,
59
+ default: !0
60
+ },
61
+ filterMethod: Function,
62
+ filteredValue: {
63
+ type: Array,
64
+ default: () => []
65
+ },
66
+ tooltipFormatter: Function,
67
+ property: String,
68
+ showTooltipWhenOverflow: Boolean,
69
+ clickable: Boolean,
70
+ cellClick: Function,
71
+ dictType: String,
72
+ options: Array,
73
+ autoUpdate: Boolean,
74
+ treeDict: Boolean,
75
+ idAsValue: {
76
+ type: Boolean,
77
+ default: !0
78
+ },
79
+ labelAsValue: Boolean,
80
+ maxWidth: String
81
+ };
82
+ //#endregion
83
+ export { e as t };
@@ -0,0 +1,200 @@
1
+ import { i as e, n as t } from "./CXSIP67a.mjs";
2
+ import { n } from "./BROfNO6c.mjs";
3
+ import { computed as r, createVNode as i, mergeProps as a } from "vue";
4
+ import { ElDatePicker as o } from "element-plus/es";
5
+ import "element-plus/es/components/base/style/css";
6
+ import "element-plus/es/components/date-picker/style/css";
7
+ import { toDate as s } from "@web-utils/integrations/dayjs";
8
+ //#region src/components/form/props/date.ts
9
+ var c = {
10
+ ...n,
11
+ modelValue: [
12
+ Number,
13
+ String,
14
+ Date,
15
+ Array
16
+ ],
17
+ readonly: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ size: String,
22
+ editable: {
23
+ type: Boolean,
24
+ default: !0
25
+ },
26
+ clearable: {
27
+ type: Boolean,
28
+ default: !0
29
+ },
30
+ placeholder: {
31
+ type: String,
32
+ default: ""
33
+ },
34
+ startPlaceholder: {
35
+ type: String,
36
+ default: "开始日期"
37
+ },
38
+ endPlaceholder: {
39
+ type: String,
40
+ default: "结束日期"
41
+ },
42
+ type: {
43
+ type: String,
44
+ default: "date"
45
+ },
46
+ format: {
47
+ type: String,
48
+ default: "YYYY-MM-DD"
49
+ },
50
+ popperClass: String,
51
+ popperStyle: [String, Object],
52
+ popperOptions: {
53
+ type: Object,
54
+ default: () => ({})
55
+ },
56
+ rangeSeparator: {
57
+ type: String,
58
+ default: "至"
59
+ },
60
+ defaultValue: Object,
61
+ defaultTime: Object,
62
+ valueFormat: String,
63
+ id: [String, Array],
64
+ name: {
65
+ type: [String, Array],
66
+ default: ""
67
+ },
68
+ unlinkPanels: {
69
+ type: Boolean,
70
+ default: !1
71
+ },
72
+ prefixIcon: [String, Object],
73
+ clearIcon: [String, Object],
74
+ validateEvent: {
75
+ type: Boolean,
76
+ default: !0
77
+ },
78
+ disabledDate: Function,
79
+ shortcuts: {
80
+ type: Array,
81
+ default: () => []
82
+ },
83
+ cellClassName: Function,
84
+ teleported: {
85
+ type: Boolean,
86
+ default: !0
87
+ },
88
+ emptyValues: Array,
89
+ valueOnClear: [
90
+ String,
91
+ Number,
92
+ Boolean,
93
+ Function
94
+ ],
95
+ fallbackPlacements: {
96
+ type: Array,
97
+ default: () => [
98
+ "bottom",
99
+ "top",
100
+ "right",
101
+ "left"
102
+ ]
103
+ },
104
+ placement: {
105
+ type: String,
106
+ default: "bottom"
107
+ },
108
+ showFooter: {
109
+ type: Boolean,
110
+ default: !0
111
+ },
112
+ showConfirm: {
113
+ type: Boolean,
114
+ default: !0
115
+ },
116
+ showWeekNumber: {
117
+ type: Boolean,
118
+ default: !1
119
+ },
120
+ automaticDropdown: {
121
+ type: Boolean,
122
+ default: !0
123
+ },
124
+ split: {
125
+ type: Boolean,
126
+ default: !0
127
+ },
128
+ startDate: String,
129
+ endDate: String,
130
+ start: String,
131
+ end: String,
132
+ year: Boolean,
133
+ month: Boolean,
134
+ dates: Boolean,
135
+ week: Boolean,
136
+ dateTime: Boolean,
137
+ dateTimeRange: Boolean,
138
+ dateRange: Boolean,
139
+ monthRange: Boolean,
140
+ miniDate: String,
141
+ maxDate: String
142
+ }, l = {
143
+ modelValue: !0,
144
+ name: !0,
145
+ disabled: !0,
146
+ emptyValues: !0,
147
+ type: !0,
148
+ valueOnClear: !0
149
+ }, u = (e) => n[e] === void 0 && l[e] !== !0, d = {
150
+ name: "FormDatePicker",
151
+ inheritAttrs: !1,
152
+ props: { ...c },
153
+ emits: {
154
+ ...t,
155
+ "update:startDate": null,
156
+ "update:endDate": null
157
+ },
158
+ setup(t, { emit: n, slots: c, attrs: l }) {
159
+ let { emitInput: d, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = e(t, {
160
+ emit: n,
161
+ slots: c,
162
+ attrs: l,
163
+ predicate: u,
164
+ messagePrefix: "请选择"
165
+ }), _ = r(() => t.dateTimeRange || t.dateRange || t.monthRange), v = r(() => t.year ? "YYYY" : t.month || t.monthRange ? "YYYY-MM" : t.week ? "YYYY 第 WW 周" : t.dateTime || t.dateTimeRange ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD"), y = r(() => t.year ? "year" : t.month ? "month" : t.dates ? "dates" : t.week ? "week" : t.dateTime ? "datetime" : t.dateTimeRange ? "datetimerange" : t.dateRange ? "daterange" : t.monthRange ? "monthrange" : "date"), b = r(() => {
166
+ if (t.miniDate) {
167
+ let e = s(t.miniDate);
168
+ return e.setDate(e.getDate() - 1), e;
169
+ } else return null;
170
+ }), x = r(() => t.maxDate ? s(t.maxDate) : null), S = (e) => {
171
+ if (!b.value && !x.value) return !1;
172
+ let t = e.getTime();
173
+ return b.value && !x.value ? t <= b.value.getTime() : !b.value && x.value ? t >= x.value.getTime() : b.value && x.value ? !(t > b.value.getTime() && t <= x.value.getTime()) : !1;
174
+ }, C = (e, t) => {
175
+ n("update:startDate", e), n("update:endDate", t);
176
+ }, w = (e) => {
177
+ _.value && t.split ? e ? C(e[0], e[1]) : C(null, null) : d(e);
178
+ }, T = r(() => _.value && t.split ? [t.startDate, t.endDate] : t.modelValue), E = r(() => t.week ? "YYYY-MM-DD" : t.valueFormat || v.value), D = r(() => t.format || v.value);
179
+ return () => f({ vNodes: i(o, a(h.value, g.value, {
180
+ style: "width: 100%",
181
+ type: y.value,
182
+ modelValue: T.value,
183
+ disabled: m.value,
184
+ placeholder: p.value,
185
+ format: D.value,
186
+ disabledDate: S,
187
+ "value-format": E.value,
188
+ "onUpdate:modelValue": w
189
+ }), {
190
+ default: c.default,
191
+ "range-separator": c["range-separator"],
192
+ "pre-month": c["pre-month"],
193
+ "next-month": c["next-month"],
194
+ "pre-year": c["pre-year"],
195
+ "next-year": c["next-year"]
196
+ }) });
197
+ }
198
+ };
199
+ //#endregion
200
+ export { d as t };
@@ -0,0 +1,105 @@
1
+ import { n as e } from "./CXSIP67a.mjs";
2
+ import { n as t, t as n } from "./BROfNO6c.mjs";
3
+ import { t as r } from "./Csa9EgOO.mjs";
4
+ import { createVNode as i, isVNode as a, mergeProps as o, useModel as s } from "vue";
5
+ //#region src/components/form/props/textarea.ts
6
+ var c = {
7
+ ...t,
8
+ ...n,
9
+ modelValue: [String, Number],
10
+ modelModifiers: Object,
11
+ maxlength: {
12
+ type: [String, Number],
13
+ default: 800
14
+ },
15
+ minlength: [String, Number],
16
+ showWordLimit: {
17
+ type: Boolean,
18
+ default: !0
19
+ },
20
+ wordLimitPosition: {
21
+ type: String,
22
+ default: "inside"
23
+ },
24
+ placeholder: String,
25
+ clearIcon: [String, Object],
26
+ formatter: Function,
27
+ parser: Function,
28
+ showPassword: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ prefixIcon: [String, Object],
33
+ suffixIcon: [String, Object],
34
+ rows: {
35
+ type: Number,
36
+ default: 4
37
+ },
38
+ autosize: [Boolean, Object],
39
+ autocomplete: {
40
+ type: String,
41
+ default: "off"
42
+ },
43
+ name: String,
44
+ readonly: {
45
+ type: Boolean,
46
+ default: !1
47
+ },
48
+ max: [String, Number],
49
+ min: [String, Number],
50
+ step: [String, Number],
51
+ resize: String,
52
+ autofocus: {
53
+ type: Boolean,
54
+ default: !1
55
+ },
56
+ form: String,
57
+ ariaLabel: String,
58
+ tabindex: [String, Number],
59
+ validateEvent: {
60
+ type: Boolean,
61
+ default: !0
62
+ },
63
+ inputStyle: [String, Object],
64
+ inputmode: String,
65
+ countGraphemes: Function,
66
+ readonlyGrey: {
67
+ type: Boolean,
68
+ default: !0
69
+ }
70
+ };
71
+ //#endregion
72
+ //#region src/components/form/FormTextarea.vue?vue&type=script&lang.jsx
73
+ function l(e) {
74
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !a(e);
75
+ }
76
+ //#endregion
77
+ //#region src/components/form/FormTextarea.vue
78
+ var u = {
79
+ name: "FormTextarea",
80
+ inheritAttrs: !1,
81
+ props: {
82
+ ...c,
83
+ maxlength: {
84
+ type: [String, Number],
85
+ default: 800
86
+ },
87
+ block: {
88
+ type: Boolean,
89
+ default: !0
90
+ }
91
+ },
92
+ emits: { ...e },
93
+ setup(e, { slots: t, attrs: n }) {
94
+ let a = s(e, "modelValue");
95
+ return () => i(r, o(e, n, {
96
+ maxlength: e.maxlength,
97
+ block: e.block,
98
+ modelValue: a.value,
99
+ "onUpdate:modelValue": (e) => a.value = e,
100
+ type: "textarea"
101
+ }), l(t) ? t : { default: () => [t] });
102
+ }
103
+ };
104
+ //#endregion
105
+ export { u as t };
@@ -0,0 +1,109 @@
1
+ import { formItemGroupContextKey as e, formViewContextKey as t } from "../constants/index.mjs";
2
+ import n from "../empty-view/index.mjs";
3
+ import { Fragment as r, computed as i, createTextVNode as a, createVNode as o, h as s, inject as c, isVNode as l, onBeforeUnmount as u, onMounted as d, provide as f, reactive as p, ref as m, toRef as h, toRefs as g, useTemplateRef as _, vShow as v, watchEffect as y, withDirectives as b } from "vue";
4
+ import { ElCol as x, ElCollapseTransition as S } from "element-plus";
5
+ import { ElRow as C } from "element-plus/es";
6
+ import "element-plus/es/components/base/style/css";
7
+ import "element-plus/es/components/row/style/css";
8
+ //#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
9
+ function w(e) {
10
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
11
+ }
12
+ //#endregion
13
+ //#region src/components/form/FormItemGroup.vue
14
+ var T = {
15
+ name: "FormItemGroup",
16
+ props: {
17
+ blockTitle: String,
18
+ tips: String,
19
+ active: Boolean,
20
+ enabled: {
21
+ type: Boolean,
22
+ default: void 0
23
+ },
24
+ disabled: {
25
+ type: Boolean,
26
+ default: void 0
27
+ },
28
+ tag: {
29
+ type: String,
30
+ default: "ElCol"
31
+ },
32
+ span: {
33
+ type: Number,
34
+ default: 24
35
+ },
36
+ block: {
37
+ type: Boolean,
38
+ default: !0
39
+ },
40
+ wrapRow: {
41
+ type: Boolean,
42
+ default: !0
43
+ },
44
+ gutter: {
45
+ type: Number,
46
+ default: 20
47
+ },
48
+ collapse: Boolean,
49
+ showTitle: {
50
+ type: Boolean,
51
+ default: !0
52
+ },
53
+ notDispatch: Boolean
54
+ },
55
+ setup(l, { expose: T, slots: E }) {
56
+ let D = c(t, null), O = _("root"), k = m(!0), A = h(() => l.enabled), j = h(() => l.disabled), M = i(() => l.enabled === !0 ? !1 : l.disabled === !0), N = i(() => l.tag === "ElCol"), P = () => k.value = !k.value, F = p({
57
+ el: h(() => N.value ? O.value.$el : O.value),
58
+ disabled: j,
59
+ enabled: A,
60
+ isDisabled: M,
61
+ open: () => {
62
+ k.value = !0;
63
+ },
64
+ expand: k,
65
+ ...g(l)
66
+ });
67
+ return y(() => {
68
+ k.value = !l.collapse;
69
+ }), f(e, F), d(() => {
70
+ l.notDispatch || D == null || D.addGroup(F);
71
+ }), u(() => {
72
+ l.notDispatch || D == null || D.removeGroup(F);
73
+ }), T(F), () => {
74
+ let e = () => {
75
+ var e;
76
+ return o(r, null, [b(o("div", {
77
+ class: "form-item-group-title",
78
+ onClick: P
79
+ }, [o("span", {
80
+ class: "flex-item",
81
+ style: "flex: 1"
82
+ }, [
83
+ E.title ? E.title() : l.blockTitle,
84
+ E.tips || l.tips ? o("span", { style: "color: #ff0000; font-size: 14px" }, [
85
+ a("("),
86
+ E.tips ? E.tips() : l.tips,
87
+ a(")")
88
+ ]) : null,
89
+ (e = E["title-right"]) == null ? void 0 : e.call(E)
90
+ ]), o("i", { class: k.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[v, l.showTitle]]), o(S, null, { default: () => {
91
+ let e;
92
+ return E.default ? l.wrapRow ? b(o(C, { gutter: l.gutter }, w(e = E.default()) ? e : { default: () => [e] }), [[v, k.value]]) : b(o("div", null, [E.default()]), [[v, k.value]]) : b(o(n, {
93
+ "font-size": "14px",
94
+ "empty-tips": "暂无信息"
95
+ }, null), [[v, k.value]]);
96
+ } })]);
97
+ }, t = {
98
+ ref: "root",
99
+ class: ["form-item-group", {
100
+ "default-active": l.active,
101
+ "is-disabled": M.value
102
+ }]
103
+ };
104
+ return N.value && (t.span = l.block ? 24 : l.span), s(N.value ? x : "div", t, N.value ? e : e());
105
+ };
106
+ }
107
+ };
108
+ //#endregion
109
+ export { T as t };