@web-utils/form-ui 1.0.0-beta55 → 1.0.0-beta57

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 (167) hide show
  1. package/api/index.d.ts +6 -0
  2. package/chunks/-qKZw-3p2.mjs +23 -0
  3. package/chunks/{B3A-CnYr.mjs → 33G2_TH8.mjs} +4 -4
  4. package/chunks/{gLPy4Sus.mjs → 8P-OAGbj.mjs} +1 -1
  5. package/chunks/B2PuSZ_F.mjs +35 -0
  6. package/chunks/B6B-rhhB.mjs +37 -0
  7. package/chunks/{C7Mak2La.mjs → BHT38Us-.mjs} +7 -6
  8. package/chunks/BWoKh6f6.mjs +66 -0
  9. package/chunks/{Dt_s96gL2.mjs → BXrA0SYn2.mjs} +2 -2
  10. package/chunks/BZ0v5mka.mjs +30 -0
  11. package/chunks/CE1uX9hJ.mjs +95 -0
  12. package/chunks/CGnOR2gn.mjs +59 -0
  13. package/chunks/CJ1-f8sg.mjs +30 -0
  14. package/chunks/{5KomemiE2.mjs → CUq3MOiQ2.mjs} +29 -29
  15. package/chunks/CdzoVG6J.mjs +47 -0
  16. package/chunks/{Dg4R65aG2.mjs → CqoMZ9Wo2.mjs} +2 -2
  17. package/chunks/CrQmTHMA.mjs +105 -0
  18. package/chunks/Crh2RUrS.mjs +106 -0
  19. package/chunks/DBUJ7Bva.mjs +56 -0
  20. package/chunks/DB_UKPay.mjs +27 -0
  21. package/chunks/{BvKUeniN.mjs → DEC2O0q-.mjs} +46 -44
  22. package/chunks/{BoJgSMkL.mjs → DUhF8YOY.mjs} +2 -2
  23. package/chunks/Du1PslcN.mjs +28 -0
  24. package/chunks/{Dluor05A.mjs → DyEYDv4B.mjs} +7 -6
  25. package/chunks/EAJCsX8W.mjs +32 -0
  26. package/chunks/{Bq62m7IR2.mjs → T4GdQtY8.mjs} +11 -11
  27. package/chunks/ZFJ73RWd2.mjs +29 -0
  28. package/chunks/{D2B9Y3oT.mjs → fmIV_kHp.mjs} +2 -2
  29. package/chunks/h5488Kii.mjs +27 -0
  30. package/chunks/k3cC9SGC.mjs +27 -0
  31. package/chunks/{CauzhVSa2.mjs → rJWvEBq9.mjs} +12 -12
  32. package/chunks/{7GmKqdbC.mjs → usyXQe35.mjs} +1 -1
  33. package/chunks/{BpCiVuKL.mjs → v3wbYL_-.mjs} +7 -6
  34. package/chunks/vd9nXj8B.mjs +59 -0
  35. package/chunks/{g8MIBMw92.mjs → ztBRZQwM.mjs} +13 -13
  36. package/confirm-button/index.mjs +1 -1
  37. package/confirmable/index.mjs +1 -1
  38. package/constants/index.d.ts +18 -0
  39. package/editable-tree/index.d.ts +27 -0
  40. package/editable-tree/index.mjs +591 -2
  41. package/element-dialog/index.mjs +1 -1
  42. package/element-resize-observer/index.mjs +1 -1
  43. package/form-cascader/index.mjs +1 -1
  44. package/form-checkbox/index.mjs +1 -1
  45. package/form-checkbox-group/index.d.ts +3 -0
  46. package/form-checkbox-group/index.mjs +1 -1
  47. package/form-date-picker/index.d.ts +6 -0
  48. package/form-date-picker/index.mjs +1 -1
  49. package/form-holder/index.mjs +1 -1
  50. package/form-holder/style.css +1 -1
  51. package/form-image/index.mjs +1 -1
  52. package/form-input/index.mjs +1 -1
  53. package/form-input-cron-expression/index.mjs +1 -1
  54. package/form-input-email/index.mjs +1 -1
  55. package/form-input-id-card/index.mjs +1 -1
  56. package/form-input-number/index.mjs +1 -1
  57. package/form-input-phone-number/index.mjs +1 -1
  58. package/form-input-tag/index.mjs +1 -1
  59. package/form-input-time/index.mjs +1 -1
  60. package/form-item-config-provider/index.d.ts +18 -0
  61. package/form-item-group/index.mjs +1 -1
  62. package/form-item-x/index.mjs +1 -1
  63. package/form-item-x/style.css +1 -1
  64. package/form-radio-group/index.mjs +1 -1
  65. package/form-rate/index.mjs +1 -1
  66. package/form-row/index.mjs +1 -1
  67. package/form-select/index.mjs +1 -1
  68. package/form-slider/index.mjs +1 -1
  69. package/form-switch/index.mjs +1 -1
  70. package/form-table/index.mjs +1 -1
  71. package/form-table-plus/index.mjs +1 -1
  72. package/form-text/index.mjs +1 -1
  73. package/form-textarea/index.mjs +1 -1
  74. package/form-time-select/index.mjs +1 -1
  75. package/helper/dictionary.d.ts +14 -0
  76. package/helper/dictionary.mjs +1 -1
  77. package/helper/form-item.d.ts +8 -1
  78. package/helper/form-item.mjs +27 -2
  79. package/helper/input.d.ts +3 -0
  80. package/helper/input.mjs +1 -1
  81. package/helper/sub-table-plus.d.ts +60 -0
  82. package/iframe-window/index.mjs +1 -1
  83. package/index.css +1 -1
  84. package/index.mjs +37 -37
  85. package/package.json +1 -1
  86. package/pageable-table/index.mjs +1 -1
  87. package/props/cascader.d.ts +326 -0
  88. package/{chunks/Czz_49pC.mjs → props/cascader.mjs} +8 -58
  89. package/props/checkbox-group.d.ts +213 -0
  90. package/props/checkbox-group.mjs +83 -0
  91. package/props/checkbox.d.ts +202 -0
  92. package/props/checkbox.mjs +71 -0
  93. package/props/col.d.ts +74 -0
  94. package/props/col.mjs +32 -0
  95. package/props/common.d.ts +114 -0
  96. package/props/common.mjs +18 -0
  97. package/props/date.d.ts +339 -0
  98. package/props/date.mjs +145 -0
  99. package/props/form-item.d.ts +144 -0
  100. package/props/form-item.mjs +73 -0
  101. package/props/form.d.ts +157 -0
  102. package/props/form.mjs +89 -0
  103. package/props/image.d.ts +102 -0
  104. package/props/image.mjs +10 -0
  105. package/props/input-cron.d.ts +102 -0
  106. package/props/input-cron.mjs +16 -0
  107. package/props/input-number.d.ts +216 -0
  108. package/props/input-number.mjs +72 -0
  109. package/props/input-tag.d.ts +123 -0
  110. package/props/input-tag.mjs +33 -0
  111. package/props/input.d.ts +299 -0
  112. package/props/input.mjs +97 -0
  113. package/props/radio-group.d.ts +205 -0
  114. package/props/radio-group.mjs +84 -0
  115. package/props/rate.d.ts +211 -0
  116. package/{chunks/D0kIhzQo.mjs → props/rate.mjs} +7 -28
  117. package/props/select.d.ts +450 -0
  118. package/props/select.mjs +218 -0
  119. package/props/slide.d.ts +235 -0
  120. package/{chunks/DZrQmH9Y.mjs → props/slide.mjs} +7 -28
  121. package/props/switch.d.ts +229 -0
  122. package/{chunks/ecpQ-ODX.mjs → props/switch.mjs} +7 -33
  123. package/props/text.d.ts +127 -0
  124. package/props/text.mjs +22 -0
  125. package/props/textarea.d.ts +266 -0
  126. package/{chunks/CNK4mfga.mjs → props/textarea.mjs} +19 -31
  127. package/props/time-select.d.ts +216 -0
  128. package/props/time-select.mjs +67 -0
  129. package/props/time.d.ts +304 -0
  130. package/{chunks/C3MF_-bN.mjs → props/time.mjs} +8 -39
  131. package/props/tree.d.ts +76 -0
  132. package/props/tree.mjs +75 -0
  133. package/sub-table/index.d.ts +3 -0
  134. package/sub-table/index.mjs +1 -1
  135. package/sub-table-plus/index.mjs +1 -1
  136. package/table-column/index.mjs +1 -1
  137. package/table-column-def/index.mjs +1 -1
  138. package/table-view/index.mjs +13 -13
  139. package/toolbar/index.mjs +1 -1
  140. package/toolbar-button/index.mjs +1 -1
  141. package/vue-cron/index.mjs +1 -1
  142. package/web-types.json +1 -1
  143. package/x-input-tag/index.mjs +2 -2
  144. package/year-calendar/index.mjs +1 -1
  145. package/year-calendar/style.css +1 -1
  146. package/chunks/6GcIyEQV.mjs +0 -95
  147. package/chunks/8c9TEVNY.mjs +0 -36
  148. package/chunks/AAZfNtly.mjs +0 -119
  149. package/chunks/BKlMENhV.mjs +0 -57
  150. package/chunks/BNVYEWWW.mjs +0 -57
  151. package/chunks/BTuzBfTA.mjs +0 -141
  152. package/chunks/C6Dq9Dgb.mjs +0 -17
  153. package/chunks/C6u76g6o.mjs +0 -158
  154. package/chunks/CLO5X9Lb.mjs +0 -176
  155. package/chunks/CdoiMj7L2.mjs +0 -39
  156. package/chunks/DTVTvvq-.mjs +0 -189
  157. package/chunks/DWE67l1f.mjs +0 -317
  158. package/chunks/DWMePN6q.mjs +0 -660
  159. package/chunks/D_L1p3vm2.mjs +0 -90
  160. package/chunks/Dy_5vPdP.mjs +0 -101
  161. package/chunks/Goee5Y-H.mjs +0 -198
  162. /package/chunks/{BlxLaWcU.mjs → 6av50rJm.mjs} +0 -0
  163. /package/chunks/{CkOD-_VV.mjs → B1MSrc6f.mjs} +0 -0
  164. /package/chunks/{BNqVEHk_.mjs → C-0zqLII.mjs} +0 -0
  165. /package/chunks/{xq_LR6R2.mjs → CI1ehQi5.mjs} +0 -0
  166. /package/chunks/{DcTVYqeJ.mjs → DuOxL6xh.mjs} +0 -0
  167. /package/chunks/{CXsoKP22.mjs → mekxD3ef.mjs} +0 -0
@@ -0,0 +1,326 @@
1
+ import { commonManualBindProps } from './common.ts';
2
+ export declare const allProps: {
3
+ /**
4
+ * 选中项绑定值
5
+ */
6
+ modelValue: (StringConstructor | ArrayConstructor | NumberConstructor)[];
7
+ /**
8
+ * 选项的数据源,value 和 label 可以通过 CascaderProps 自定义
9
+ */
10
+ options: ArrayConstructor;
11
+ /**
12
+ * 配置选项,请参阅下面 CascaderProps 表
13
+ */
14
+ props: ObjectConstructor;
15
+ /**
16
+ * 尺寸
17
+ * @values large, default, small
18
+ */
19
+ size: StringConstructor;
20
+ /**
21
+ * 输入框占位文本
22
+ */
23
+ placeholder: StringConstructor;
24
+ /**
25
+ * 是否支持清空选项
26
+ */
27
+ clearable: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ /**
32
+ * 自定义清除图标
33
+ * @since 2.11.0
34
+ */
35
+ clearIcon: (StringConstructor | ObjectConstructor)[];
36
+ /**
37
+ * 输入框中是否显示选中值的完整路径
38
+ */
39
+ showAllLevels: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ /**
44
+ * 多选模式下是否折叠 Tag
45
+ */
46
+ collapseTags: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ /**
51
+ * 当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。要使用此属性,collapseTags 属性必须设定为 true
52
+ */
53
+ collapseTagsTooltip: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ /**
58
+ * collapse tags 的最大高度
59
+ * @since 2.10.2
60
+ */
61
+ maxCollapseTagsTooltipHeight: (StringConstructor | NumberConstructor)[];
62
+ /**
63
+ * 用于分隔选项的字符
64
+ */
65
+ separator: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ /**
70
+ * 该选项是否可以被搜索
71
+ */
72
+ filterable: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ /**
77
+ * 自定义搜索逻辑,第一个参数是 node,第二个参数是 keyword,返回的布尔值表示是否保留该选项
78
+ */
79
+ filterMethod: FunctionConstructor;
80
+ /**
81
+ * 搜索关键词正在输入时的去抖延迟,单位为毫秒
82
+ */
83
+ debounce: {
84
+ type: NumberConstructor;
85
+ default: number;
86
+ };
87
+ /**
88
+ * 过滤函数调用前,所要调用的钩子函数,该函数接收要过滤的值作为参数。如果该函数的返回值是 false 或者是一个被拒绝的 Promise,那么接下来的过滤逻辑便不会执行
89
+ */
90
+ beforeFilter: FunctionConstructor;
91
+ /**
92
+ * Cascader 下拉菜单和标签提示的自定义类名
93
+ */
94
+ popperClass: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ /**
99
+ * Cascader 下拉菜单和标签提示的自定义样式
100
+ */
101
+ popperStyle: (StringConstructor | ObjectConstructor)[];
102
+ /**
103
+ * 弹层是否使用 teleport
104
+ */
105
+ teleported: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ /**
110
+ * tooltip 主题,内置了 dark / light 两种
111
+ * @since 2.10.5
112
+ * @values dark, light
113
+ */
114
+ effect: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ };
118
+ /**
119
+ * 标签类型
120
+ * @values success, info, warning, danger
121
+ */
122
+ tagType: {
123
+ type: StringConstructor;
124
+ default: string;
125
+ };
126
+ /**
127
+ * tag effect
128
+ * @since 2.7.8
129
+ * @values dark, light, plain
130
+ */
131
+ tagEffect: {
132
+ type: StringConstructor;
133
+ default: string;
134
+ };
135
+ /**
136
+ * 输入时是否触发表单的校验
137
+ */
138
+ validateEvent: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
142
+ /**
143
+ * 需要显示的 Tag 的最大数量 要使用此功能,collapseTags 的值必须为 true
144
+ * @since 2.3.10
145
+ */
146
+ maxCollapseTags: {
147
+ type: NumberConstructor;
148
+ default: number;
149
+ };
150
+ /**
151
+ * 组件的空值配置,参考 config-provider
152
+ * @since 2.7.0
153
+ */
154
+ emptyValues: ArrayConstructor;
155
+ /**
156
+ * 清空选项的值,参考 config-provider
157
+ * @since 2.7.0
158
+ */
159
+ valueOnClear: (StringConstructor | BooleanConstructor | FunctionConstructor | NumberConstructor)[];
160
+ /**
161
+ * 当下拉框未被激活并且 persistent 设置为 false,下拉框容器会被删除
162
+ * @since 2.7.8
163
+ */
164
+ persistent: {
165
+ type: BooleanConstructor;
166
+ default: boolean;
167
+ };
168
+ /**
169
+ * Tooltip 可用的 positions 请查看 popper.js 文档
170
+ * @since 2.8.1
171
+ */
172
+ fallbackPlacements: {
173
+ type: ArrayConstructor;
174
+ default: () => string[];
175
+ };
176
+ /**
177
+ * 下拉框出现的位置
178
+ * @since 2.8.1
179
+ * @values top, top-start, top-end, bottom, bottom-start, bottom-end, left, left-start, left-end, right, right-start, right-end
180
+ */
181
+ placement: {
182
+ type: StringConstructor;
183
+ default: string;
184
+ };
185
+ /**
186
+ * 是否将弹出的内容直接插入到 body 元素。在弹出内容的边框定位出现问题时,可将该属性设置为 false
187
+ * @deprecated
188
+ */
189
+ popperAppendToBody: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ };
193
+ /**
194
+ * 多选模式下已选节点的展示策略。当你想让显示更简洁时,使用 parent。当你想显示每个子项时,使用 child
195
+ * @since 2.10.5
196
+ * @values parent, child, all
197
+ */
198
+ showCheckedStrategy: {
199
+ type: StringConstructor;
200
+ default: string;
201
+ };
202
+ readonly: BooleanConstructor;
203
+ last: BooleanConstructor;
204
+ checkStrictly: BooleanConstructor;
205
+ labelKey: {
206
+ type: StringConstructor;
207
+ default: string;
208
+ };
209
+ valueKey: {
210
+ type: StringConstructor;
211
+ default: string;
212
+ };
213
+ emitPath: {
214
+ type: BooleanConstructor;
215
+ default: boolean;
216
+ };
217
+ join: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ idAsValue: {
222
+ type: BooleanConstructor;
223
+ default: boolean;
224
+ };
225
+ labelAsValue: BooleanConstructor;
226
+ treeDict: {
227
+ type: BooleanConstructor;
228
+ default: boolean;
229
+ };
230
+ dictType: StringConstructor;
231
+ wrapFormItem: {
232
+ type: BooleanConstructor;
233
+ default: boolean;
234
+ };
235
+ disabled: {
236
+ type: BooleanConstructor;
237
+ default: undefined;
238
+ };
239
+ col: BooleanConstructor;
240
+ span: {
241
+ type: NumberConstructor;
242
+ default: number;
243
+ };
244
+ offset: {
245
+ type: NumberConstructor;
246
+ default: number;
247
+ };
248
+ push: {
249
+ type: NumberConstructor;
250
+ default: number;
251
+ };
252
+ pull: {
253
+ type: NumberConstructor;
254
+ default: number;
255
+ };
256
+ xs: {
257
+ type: (ObjectConstructor | NumberConstructor)[];
258
+ };
259
+ sm: {
260
+ type: (ObjectConstructor | NumberConstructor)[];
261
+ };
262
+ md: {
263
+ type: (ObjectConstructor | NumberConstructor)[];
264
+ };
265
+ lg: {
266
+ type: (ObjectConstructor | NumberConstructor)[];
267
+ };
268
+ xl: {
269
+ type: (ObjectConstructor | NumberConstructor)[];
270
+ };
271
+ tag: {
272
+ type: StringConstructor;
273
+ default: string;
274
+ };
275
+ prop: (StringConstructor | ArrayConstructor)[];
276
+ label: StringConstructor;
277
+ labelPosition: {
278
+ type: StringConstructor;
279
+ default: string;
280
+ };
281
+ labelWidth: (StringConstructor | NumberConstructor)[];
282
+ required: {
283
+ type: BooleanConstructor;
284
+ default: boolean;
285
+ };
286
+ rules: ObjectConstructor;
287
+ error: StringConstructor;
288
+ showMessage: {
289
+ type: BooleanConstructor;
290
+ default: boolean;
291
+ };
292
+ inlineMessage: {
293
+ type: BooleanConstructor;
294
+ default: boolean;
295
+ };
296
+ for: StringConstructor;
297
+ validateStatus: StringConstructor;
298
+ messagePrefix: StringConstructor;
299
+ message: StringConstructor;
300
+ wrapCol: {
301
+ type: BooleanConstructor;
302
+ default: boolean;
303
+ };
304
+ fixedSpan: NumberConstructor;
305
+ block: {
306
+ type: BooleanConstructor;
307
+ default: undefined;
308
+ };
309
+ unwrap: BooleanConstructor;
310
+ half: BooleanConstructor;
311
+ formItemClass: StringConstructor;
312
+ hideLabel: BooleanConstructor;
313
+ tips: {
314
+ type: StringConstructor;
315
+ };
316
+ tipsAfterLabel: {
317
+ type: BooleanConstructor;
318
+ default: boolean;
319
+ };
320
+ labelColspan: (StringConstructor | NumberConstructor)[];
321
+ inputColspan: (StringConstructor | NumberConstructor)[];
322
+ labelRowspan: (StringConstructor | NumberConstructor)[];
323
+ inputRowspan: (StringConstructor | NumberConstructor)[];
324
+ };
325
+ export declare const manualBindProps: Record<string, boolean | undefined>;
326
+ export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
@@ -1,14 +1,8 @@
1
- import { n as e, o as t } from "./BvKUeniN.mjs";
2
- import { n, t as r } from "./C6Dq9Dgb.mjs";
3
- import { useDictionary as i } from "../hook/useDictionary.mjs";
4
- import { findTreeChildren as a, isArray as o, isString as s, setParent as c } from "@web-utils/core";
5
- import { computed as l, createVNode as u, mergeProps as d } from "vue";
6
- import { cloneDeep as f } from "@web-utils/integrations/lodash";
7
- import { ElCascader as p } from "element-plus/es";
8
- //#region src/components/form/props/cascader.ts
9
- var m = {
10
- ...n,
11
- ...r,
1
+ import { commonAutoBindProps as e, commonManualBindProps as t } from "./common.mjs";
2
+ //#region src/props/cascader.ts
3
+ var n = {
4
+ ...t,
5
+ ...e,
12
6
  modelValue: [
13
7
  String,
14
8
  Number,
@@ -140,56 +134,12 @@ var m = {
140
134
  default: !0
141
135
  },
142
136
  dictType: String
143
- }, h = {
137
+ }, r = {
144
138
  modelValue: !0,
145
139
  readonly: !0,
146
140
  disabled: !0,
147
141
  props: !0,
148
142
  valueOnClear: !0
149
- }, g = (e) => n[e] === void 0 && h[e] !== !0, _ = {
150
- name: "FormCascader",
151
- props: { ...m },
152
- emits: { ...e },
153
- setup(e, { emit: n, slots: r, attrs: m }) {
154
- let { emitInput: h, render: _, placeholder: v, disabled: y, listeners: b, inputProps: x } = t(e, {
155
- emit: n,
156
- slots: r,
157
- attrs: m,
158
- predicate: g
159
- }), { dictItems: S } = i(e), C = l(() => {
160
- if (e.dictType) return S.value;
161
- if (e.options) {
162
- let t = f(e.options);
163
- return e.last && c(t), t;
164
- } else return [];
165
- }), w = l(() => {
166
- if (e.join) return o(e.modelValue) ? e.modelValue : s(e.modelValue) ? e.modelValue.split(e.separator) : [];
167
- if (e.last) {
168
- let [t] = a(C.value, (t) => t[e.valueKey] === e.modelValue), n = [];
169
- for (; t;) n.push(t[e.valueKey]), t = t.parent;
170
- return n.reverse();
171
- }
172
- return e.modelValue;
173
- }), T = (t) => {
174
- e.join && o(t) ? h(t.join(e.separator)) : h(e.last ? t[t.length - 1] : t);
175
- };
176
- return () => _({ vNodes: u(p, d(b.value, x.value, {
177
- style: "width: 100%",
178
- class: { "is-readonly": e.readonly },
179
- "model-value": w.value,
180
- options: C.value,
181
- props: {
182
- checkStrictly: e.checkStrictly,
183
- label: e.labelKey,
184
- value: e.valueKey,
185
- emitPath: e.emitPath,
186
- expandTrigger: "hover"
187
- },
188
- disabled: y.value,
189
- placeholder: v.value,
190
- "onUpdate:modelValue": T
191
- }), null) });
192
- }
193
- };
143
+ }, i = (e) => t[e] === void 0 && r[e] !== !0;
194
144
  //#endregion
195
- export { _ as t };
145
+ export { n as allProps, r as manualBindProps, i as predicate };
@@ -0,0 +1,213 @@
1
+ import { commonManualBindProps } from './common.ts';
2
+ export declare const allProps: {
3
+ /**
4
+ * 绑定值
5
+ */
6
+ modelValue: {
7
+ type: (StringConstructor | ArrayConstructor)[];
8
+ default: () => never[];
9
+ };
10
+ /**
11
+ * 多选框组尺寸
12
+ * @values large, default, small
13
+ */
14
+ size: StringConstructor;
15
+ /**
16
+ * 可被勾选的 checkbox 的最小数量
17
+ */
18
+ min: NumberConstructor;
19
+ /**
20
+ * 可被勾选的 checkbox 的最大数量
21
+ */
22
+ max: NumberConstructor;
23
+ /**
24
+ * 原生 aria-label 属性
25
+ * @since 2.7.2
26
+ */
27
+ ariaLabel: StringConstructor;
28
+ /**
29
+ * 当按钮为活跃状态时的字体颜色
30
+ */
31
+ textColor: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ /**
36
+ * 当按钮为活跃状态时的边框和背景颜色
37
+ */
38
+ fill: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ /**
43
+ * 复选框组元素标签
44
+ */
45
+ tag: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ /**
50
+ * 是否触发表单验证
51
+ */
52
+ validateEvent: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ /**
57
+ * 选项的数据源,value 的 key 和 label 和 disabled 可以通过 props 自定义
58
+ * @since 2.11.2
59
+ */
60
+ options: {
61
+ type: ArrayConstructor;
62
+ default: () => never[];
63
+ };
64
+ /**
65
+ * options 的配置
66
+ * @since 2.11.2
67
+ */
68
+ props: {
69
+ type: ObjectConstructor;
70
+ default: () => {
71
+ value: string;
72
+ label: string;
73
+ disabled: string;
74
+ };
75
+ };
76
+ /**
77
+ * 用于渲染选项的组件类型(例如 'button')
78
+ * @since 2.11.5
79
+ * @values checkbox, button
80
+ */
81
+ type: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ /**
86
+ * 是否输出字符串
87
+ */
88
+ stringMode: BooleanConstructor;
89
+ /**
90
+ * 输出字符串的分隔符
91
+ */
92
+ delimiter: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ other: StringConstructor[];
97
+ otherVal: StringConstructor[];
98
+ otherProp: StringConstructor;
99
+ otherPlaceholder: StringConstructor;
100
+ otherLabel: StringConstructor;
101
+ otherWidth: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ };
105
+ otherMaxLength: StringConstructor;
106
+ gender: BooleanConstructor;
107
+ confirm: BooleanConstructor;
108
+ labelProp: {
109
+ type: StringConstructor;
110
+ default: string;
111
+ };
112
+ valueProp: {
113
+ type: StringConstructor;
114
+ default: string;
115
+ };
116
+ split: BooleanConstructor;
117
+ sort: BooleanConstructor;
118
+ classic: BooleanConstructor;
119
+ fillRow: BooleanConstructor;
120
+ ellipsis: BooleanConstructor;
121
+ dictType: StringConstructor;
122
+ wrapFormItem: {
123
+ type: BooleanConstructor;
124
+ default: boolean;
125
+ };
126
+ disabled: {
127
+ type: BooleanConstructor;
128
+ default: undefined;
129
+ };
130
+ col: BooleanConstructor;
131
+ span: {
132
+ type: NumberConstructor;
133
+ default: number;
134
+ };
135
+ offset: {
136
+ type: NumberConstructor;
137
+ default: number;
138
+ };
139
+ push: {
140
+ type: NumberConstructor;
141
+ default: number;
142
+ };
143
+ pull: {
144
+ type: NumberConstructor;
145
+ default: number;
146
+ };
147
+ xs: {
148
+ type: (ObjectConstructor | NumberConstructor)[];
149
+ };
150
+ sm: {
151
+ type: (ObjectConstructor | NumberConstructor)[];
152
+ };
153
+ md: {
154
+ type: (ObjectConstructor | NumberConstructor)[];
155
+ };
156
+ lg: {
157
+ type: (ObjectConstructor | NumberConstructor)[];
158
+ };
159
+ xl: {
160
+ type: (ObjectConstructor | NumberConstructor)[];
161
+ };
162
+ prop: (StringConstructor | ArrayConstructor)[];
163
+ label: StringConstructor;
164
+ labelPosition: {
165
+ type: StringConstructor;
166
+ default: string;
167
+ };
168
+ labelWidth: (StringConstructor | NumberConstructor)[];
169
+ required: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
173
+ rules: ObjectConstructor;
174
+ error: StringConstructor;
175
+ showMessage: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ inlineMessage: {
180
+ type: BooleanConstructor;
181
+ default: boolean;
182
+ };
183
+ for: StringConstructor;
184
+ validateStatus: StringConstructor;
185
+ messagePrefix: StringConstructor;
186
+ message: StringConstructor;
187
+ wrapCol: {
188
+ type: BooleanConstructor;
189
+ default: boolean;
190
+ };
191
+ fixedSpan: NumberConstructor;
192
+ block: {
193
+ type: BooleanConstructor;
194
+ default: undefined;
195
+ };
196
+ unwrap: BooleanConstructor;
197
+ half: BooleanConstructor;
198
+ formItemClass: StringConstructor;
199
+ hideLabel: BooleanConstructor;
200
+ tips: {
201
+ type: StringConstructor;
202
+ };
203
+ tipsAfterLabel: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ labelColspan: (StringConstructor | NumberConstructor)[];
208
+ inputColspan: (StringConstructor | NumberConstructor)[];
209
+ labelRowspan: (StringConstructor | NumberConstructor)[];
210
+ inputRowspan: (StringConstructor | NumberConstructor)[];
211
+ };
212
+ export declare const manualBindProps: Record<string, boolean | undefined>;
213
+ export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
@@ -0,0 +1,83 @@
1
+ import { commonManualBindProps as e } from "./common.mjs";
2
+ //#region src/props/checkbox-group.ts
3
+ var t = {
4
+ ...e,
5
+ modelValue: {
6
+ type: [Array, String],
7
+ default: () => []
8
+ },
9
+ size: String,
10
+ min: Number,
11
+ max: Number,
12
+ ariaLabel: String,
13
+ textColor: {
14
+ type: String,
15
+ default: "#ffffff"
16
+ },
17
+ fill: {
18
+ type: String,
19
+ default: "#409eff"
20
+ },
21
+ tag: {
22
+ type: String,
23
+ default: "div"
24
+ },
25
+ validateEvent: {
26
+ type: Boolean,
27
+ default: !0
28
+ },
29
+ options: {
30
+ type: Array,
31
+ default: () => []
32
+ },
33
+ props: {
34
+ type: Object,
35
+ default: () => ({
36
+ value: "value",
37
+ label: "label",
38
+ disabled: "disabled"
39
+ })
40
+ },
41
+ type: {
42
+ type: String,
43
+ default: "checkbox"
44
+ },
45
+ stringMode: Boolean,
46
+ delimiter: {
47
+ type: String,
48
+ default: ","
49
+ },
50
+ other: [String],
51
+ otherVal: [String],
52
+ otherProp: String,
53
+ otherPlaceholder: String,
54
+ otherLabel: String,
55
+ otherWidth: {
56
+ type: String,
57
+ default: "200px"
58
+ },
59
+ otherMaxLength: String,
60
+ gender: Boolean,
61
+ confirm: Boolean,
62
+ labelProp: {
63
+ type: String,
64
+ default: "name"
65
+ },
66
+ valueProp: {
67
+ type: String,
68
+ default: "code"
69
+ },
70
+ split: Boolean,
71
+ sort: Boolean,
72
+ classic: Boolean,
73
+ fillRow: Boolean,
74
+ ellipsis: Boolean,
75
+ dictType: String
76
+ }, n = {
77
+ modelValue: !0,
78
+ type: !0,
79
+ disabled: !0,
80
+ options: !0
81
+ }, r = (t) => e[t] === void 0 && n[t] !== !0;
82
+ //#endregion
83
+ export { t as allProps, n as manualBindProps, r as predicate };