@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,304 @@
1
+ import { commonManualBindProps } from './common.ts';
2
+ export declare const allProps: {
3
+ /**
4
+ * 绑定值,如果它是数组,长度应该是 2
5
+ */
6
+ modelValue: (StringConstructor | ObjectConstructor | NumberConstructor)[];
7
+ /**
8
+ * 完全只读
9
+ */
10
+ readonly: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ /**
15
+ * 文本框可输入
16
+ */
17
+ editable: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ /**
22
+ * 是否显示清除按钮
23
+ */
24
+ clearable: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ /**
29
+ * 输入框尺寸
30
+ * @values large, default, small
31
+ */
32
+ size: StringConstructor;
33
+ /**
34
+ * 非范围选择时的占位内容
35
+ */
36
+ placeholder: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ /**
41
+ * 范围选择时开始日期的占位内容
42
+ */
43
+ startPlaceholder: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ /**
48
+ * 范围选择时结束日期的占位内容
49
+ */
50
+ endPlaceholder: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ /**
55
+ * 是否为时间范围选择
56
+ */
57
+ isRange: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ /**
62
+ * 是否使用箭头进行时间选择
63
+ */
64
+ arrowControl: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ /**
69
+ * TimePicker 下拉框的类名
70
+ */
71
+ popperClass: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ /**
76
+ * 为 TimePicke 的下拉菜单自定义样式
77
+ */
78
+ popperStyle: (StringConstructor | ObjectConstructor)[];
79
+ /**
80
+ * 自定义 popper 选项,更多请参考 popper.js
81
+ */
82
+ popperOptions: ObjectConstructor;
83
+ /**
84
+ * Tooltip 可用的 positions 请查看 popper.js 文档
85
+ * @since 2.8.4
86
+ */
87
+ fallbackPlacements: {
88
+ type: ArrayConstructor;
89
+ default: () => string[];
90
+ };
91
+ /**
92
+ * 下拉框出现的位置
93
+ * @since 2.8.4
94
+ * @values top, top-start, top-end, bottom, bottom-start, bottom-end, left, left-start, left-end, right, right-start, right-end
95
+ */
96
+ placement: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
100
+ /**
101
+ * 选择范围时的分隔符
102
+ */
103
+ rangeSeparator: {
104
+ type: StringConstructor;
105
+ default: string;
106
+ };
107
+ /**
108
+ * 显示在输入框中的格式
109
+ */
110
+ format: {
111
+ type: StringConstructor;
112
+ default: string;
113
+ };
114
+ /**
115
+ * 可选,选择器打开时默认显示的时间
116
+ */
117
+ defaultValue: (DateConstructor | ArrayConstructor)[];
118
+ /**
119
+ * 可选,绑定值的格式。不指定则绑定值为 Date 对象
120
+ */
121
+ valueFormat: StringConstructor;
122
+ /**
123
+ * 等价于原生 input id 属性
124
+ */
125
+ id: (StringConstructor | ArrayConstructor)[];
126
+ /**
127
+ * 等价于原生 input name 属性
128
+ */
129
+ name: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ /**
134
+ * 等价于原生 input aria-label 属性
135
+ * @since 2.7.2
136
+ */
137
+ ariaLabel: StringConstructor;
138
+ /**
139
+ * 自定义前缀图标
140
+ */
141
+ prefixIcon: (StringConstructor | ObjectConstructor)[];
142
+ /**
143
+ * 自定义清除图标
144
+ */
145
+ clearIcon: (StringConstructor | ObjectConstructor)[];
146
+ /**
147
+ * 禁止选择部分小时选项
148
+ */
149
+ disabledHours: FunctionConstructor;
150
+ /**
151
+ * 禁止选择部分分钟选项
152
+ */
153
+ disabledMinutes: FunctionConstructor;
154
+ /**
155
+ * 禁止选择部分秒选项
156
+ */
157
+ disabledSeconds: FunctionConstructor;
158
+ /**
159
+ * 是否将 popover 的下拉列表镜像至 body 元素
160
+ */
161
+ teleported: {
162
+ type: BooleanConstructor;
163
+ default: boolean;
164
+ };
165
+ /**
166
+ * 输入框的 tabindex
167
+ */
168
+ tabindex: (StringConstructor | NumberConstructor)[];
169
+ /**
170
+ * 组件的空值配置,参考 config-provider
171
+ * @since 2.7.0
172
+ */
173
+ emptyValues: ArrayConstructor;
174
+ /**
175
+ * 清空选项的值,参考 config-provider
176
+ * @since 2.7.0
177
+ */
178
+ valueOnClear: (StringConstructor | BooleanConstructor | FunctionConstructor | NumberConstructor)[];
179
+ /**
180
+ * 当未选择任何值时,是否在获得焦点时自动填充为当前时间
181
+ * @since 2.13.4
182
+ */
183
+ saveOnBlur: {
184
+ type: BooleanConstructor;
185
+ default: boolean;
186
+ };
187
+ range: BooleanConstructor;
188
+ start: {
189
+ type: StringConstructor;
190
+ default: string;
191
+ };
192
+ end: {
193
+ type: StringConstructor;
194
+ default: string;
195
+ };
196
+ step: {
197
+ type: StringConstructor;
198
+ default: string;
199
+ };
200
+ minTime: {
201
+ type: StringConstructor;
202
+ default: string;
203
+ };
204
+ maxTime: {
205
+ type: StringConstructor;
206
+ default: string;
207
+ };
208
+ selectableRange: StringConstructor;
209
+ wrapFormItem: {
210
+ type: BooleanConstructor;
211
+ default: boolean;
212
+ };
213
+ disabled: {
214
+ type: BooleanConstructor;
215
+ default: undefined;
216
+ };
217
+ col: BooleanConstructor;
218
+ span: {
219
+ type: NumberConstructor;
220
+ default: number;
221
+ };
222
+ offset: {
223
+ type: NumberConstructor;
224
+ default: number;
225
+ };
226
+ push: {
227
+ type: NumberConstructor;
228
+ default: number;
229
+ };
230
+ pull: {
231
+ type: NumberConstructor;
232
+ default: number;
233
+ };
234
+ xs: {
235
+ type: (ObjectConstructor | NumberConstructor)[];
236
+ };
237
+ sm: {
238
+ type: (ObjectConstructor | NumberConstructor)[];
239
+ };
240
+ md: {
241
+ type: (ObjectConstructor | NumberConstructor)[];
242
+ };
243
+ lg: {
244
+ type: (ObjectConstructor | NumberConstructor)[];
245
+ };
246
+ xl: {
247
+ type: (ObjectConstructor | NumberConstructor)[];
248
+ };
249
+ tag: {
250
+ type: StringConstructor;
251
+ default: string;
252
+ };
253
+ prop: (StringConstructor | ArrayConstructor)[];
254
+ label: StringConstructor;
255
+ labelPosition: {
256
+ type: StringConstructor;
257
+ default: string;
258
+ };
259
+ labelWidth: (StringConstructor | NumberConstructor)[];
260
+ required: {
261
+ type: BooleanConstructor;
262
+ default: boolean;
263
+ };
264
+ rules: ObjectConstructor;
265
+ error: StringConstructor;
266
+ showMessage: {
267
+ type: BooleanConstructor;
268
+ default: boolean;
269
+ };
270
+ inlineMessage: {
271
+ type: BooleanConstructor;
272
+ default: boolean;
273
+ };
274
+ for: StringConstructor;
275
+ validateStatus: StringConstructor;
276
+ messagePrefix: StringConstructor;
277
+ message: StringConstructor;
278
+ wrapCol: {
279
+ type: BooleanConstructor;
280
+ default: boolean;
281
+ };
282
+ fixedSpan: NumberConstructor;
283
+ block: {
284
+ type: BooleanConstructor;
285
+ default: undefined;
286
+ };
287
+ unwrap: BooleanConstructor;
288
+ half: BooleanConstructor;
289
+ formItemClass: StringConstructor;
290
+ hideLabel: BooleanConstructor;
291
+ tips: {
292
+ type: StringConstructor;
293
+ };
294
+ tipsAfterLabel: {
295
+ type: BooleanConstructor;
296
+ default: boolean;
297
+ };
298
+ labelColspan: (StringConstructor | NumberConstructor)[];
299
+ inputColspan: (StringConstructor | NumberConstructor)[];
300
+ labelRowspan: (StringConstructor | NumberConstructor)[];
301
+ inputRowspan: (StringConstructor | NumberConstructor)[];
302
+ };
303
+ export declare const manualBindProps: Record<string, boolean | undefined>;
304
+ export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
@@ -1,11 +1,8 @@
1
- import { n as e, o as t } from "./BvKUeniN.mjs";
2
- import { n, t as r } from "./C6Dq9Dgb.mjs";
3
- import { createVNode as i, mergeProps as a } from "vue";
4
- import { ElTimePicker as o } from "element-plus/es";
5
- //#region src/components/form/props/time.ts
6
- var s = {
7
- ...n,
8
- ...r,
1
+ import { commonAutoBindProps as e, commonManualBindProps as t } from "./common.mjs";
2
+ //#region src/props/time.ts
3
+ var n = {
4
+ ...t,
5
+ ...e,
9
6
  modelValue: [
10
7
  Number,
11
8
  String,
@@ -122,7 +119,7 @@ var s = {
122
119
  default: ""
123
120
  },
124
121
  selectableRange: String
125
- }, c = {
122
+ }, r = {
126
123
  disabled: !0,
127
124
  modelValue: !0,
128
125
  isRange: !0,
@@ -136,34 +133,6 @@ var s = {
136
133
  maxTime: !0,
137
134
  selectableRange: !0,
138
135
  valueOnClear: !0
139
- }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
140
- name: "FormInputTime",
141
- inheritAttrs: !1,
142
- props: { ...s },
143
- emits: { ...e },
144
- setup(e, { emit: n, slots: r, attrs: s }) {
145
- let { emitInput: c, render: u, placeholder: d, disabled: f, listeners: p, inputProps: m } = t(e, {
146
- emit: n,
147
- slots: r,
148
- attrs: s,
149
- predicate: l
150
- }), h = { modifiers: [{
151
- name: "arrow",
152
- options: { padding: ({ popper: e, reference: t, placement: n }) => e.width / 2 }
153
- }] };
154
- return () => u({ vNodes: i(o, a(p.value, m.value, {
155
- "popper-options": e.popperOptions || h,
156
- style: "width: 100%",
157
- placement: e.placement || "left",
158
- "is-range": e.isRange || e.range,
159
- format: e.format,
160
- "value-format": e.valueFormat || e.format,
161
- modelValue: e.modelValue,
162
- disabled: f.value,
163
- "onUpdate:modelValue": c,
164
- placeholder: d.value
165
- }), null) });
166
- }
167
- };
136
+ }, i = (e) => t[e] === void 0 && r[e] !== !0;
168
137
  //#endregion
169
- export { u as t };
138
+ export { n as allProps, r as manualBindProps, i as predicate };
@@ -0,0 +1,76 @@
1
+ export declare const allProps: {
2
+ label: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ addRootNodeLabel: StringConstructor;
7
+ defaultExpandedKeys: {
8
+ type: ArrayConstructor;
9
+ default: () => never[];
10
+ };
11
+ newNodeBuilder: {
12
+ type: FunctionConstructor;
13
+ default: (name: string, parent: {
14
+ id: string | number;
15
+ [key: string]: any;
16
+ }) => {
17
+ name: string;
18
+ parentId: string | number;
19
+ };
20
+ };
21
+ contextMenu: BooleanConstructor;
22
+ lazy: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ expandFirstNode: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ readonly: BooleanConstructor;
31
+ saveApi: FunctionConstructor;
32
+ updateApi: FunctionConstructor;
33
+ deleteApi: FunctionConstructor;
34
+ fetchApi: FunctionConstructor;
35
+ customRootNode: (ObjectConstructor | FunctionConstructor)[];
36
+ rootNode: ObjectConstructor;
37
+ contextMenuIcon: BooleanConstructor;
38
+ contextMenuInline: BooleanConstructor;
39
+ treeProps: {
40
+ type: ObjectConstructor;
41
+ default: () => {
42
+ children: string;
43
+ label: string;
44
+ isLeaf: (data: any) => boolean;
45
+ };
46
+ };
47
+ menuLabel: {
48
+ type: ObjectConstructor;
49
+ default: () => {
50
+ appendPeer: string;
51
+ appendChild: string;
52
+ removeNode: string;
53
+ editNode: string;
54
+ };
55
+ };
56
+ icon: {
57
+ type: (BooleanConstructor | FunctionConstructor)[];
58
+ default: (data: any, node: any) => string;
59
+ };
60
+ confirmButton: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ addRootNodeButtonStyle: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ reserveExpandKey: BooleanConstructor;
69
+ nodeKey: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ defaultExpandAll: BooleanConstructor;
74
+ };
75
+ export declare const manualBindProps: Record<string, boolean | undefined>;
76
+ export declare const predicate: (propsKey: keyof typeof manualBindProps) => boolean;
package/props/tree.mjs ADDED
@@ -0,0 +1,75 @@
1
+ import { hasOwn as e } from "@web-utils/core";
2
+ //#region src/props/tree.ts
3
+ var t = {
4
+ label: {
5
+ type: String,
6
+ default: "书签"
7
+ },
8
+ addRootNodeLabel: String,
9
+ defaultExpandedKeys: {
10
+ type: Array,
11
+ default: () => []
12
+ },
13
+ newNodeBuilder: {
14
+ type: Function,
15
+ default: (e, t) => ({
16
+ name: e,
17
+ parentId: t.id
18
+ })
19
+ },
20
+ contextMenu: Boolean,
21
+ lazy: {
22
+ type: Boolean,
23
+ default: !0
24
+ },
25
+ expandFirstNode: {
26
+ type: Boolean,
27
+ default: !0
28
+ },
29
+ readonly: Boolean,
30
+ saveApi: Function,
31
+ updateApi: Function,
32
+ deleteApi: Function,
33
+ fetchApi: Function,
34
+ customRootNode: [Object, Function],
35
+ rootNode: Object,
36
+ contextMenuIcon: Boolean,
37
+ contextMenuInline: Boolean,
38
+ treeProps: {
39
+ type: Object,
40
+ default: () => ({
41
+ children: "children",
42
+ label: "name",
43
+ isLeaf: (t) => e(t, "hasChildren") ? !t.hasChildren : e(t, "hasChild") ? !t.hasChild : e(t, "children") && t.children ? t.children.length === 0 : !0
44
+ })
45
+ },
46
+ menuLabel: {
47
+ type: Object,
48
+ default: () => ({
49
+ appendPeer: "添加同级节点",
50
+ appendChild: "添加",
51
+ removeNode: "删除",
52
+ editNode: "修改"
53
+ })
54
+ },
55
+ icon: {
56
+ type: [Function, Boolean],
57
+ default: (e, t) => "el-icon-collection-tag"
58
+ },
59
+ confirmButton: {
60
+ type: Boolean,
61
+ default: !0
62
+ },
63
+ addRootNodeButtonStyle: {
64
+ type: String,
65
+ default: "top"
66
+ },
67
+ reserveExpandKey: Boolean,
68
+ nodeKey: {
69
+ type: String,
70
+ default: "id"
71
+ },
72
+ defaultExpandAll: Boolean
73
+ }, n = { icon: !0 }, r = (e) => n[e] !== !0;
74
+ //#endregion
75
+ export { t as allProps, n as manualBindProps, r as predicate };
@@ -53,6 +53,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
53
53
  refresh(): void;
54
54
  getVal(row: any, column: any, item: any): any;
55
55
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
+ /**
57
+ * 添加行
58
+ */
56
59
  'add-row': null;
57
60
  "update:modelValue": null;
58
61
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CauzhVSa2.mjs";
1
+ import { t as e } from "../chunks/rJWvEBq9.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/g8MIBMw92.mjs";
1
+ import { t as e } from "../chunks/ztBRZQwM.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/D2B9Y3oT.mjs";
1
+ import { t as e } from "../chunks/fmIV_kHp.mjs";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/xq_LR6R2.mjs";
1
+ import { t as e } from "../chunks/CI1ehQi5.mjs";
2
2
  //#region src/components/table/TableColumnDef.vue
3
3
  var t = /* @__PURE__ */ Object.assign({ name: "TableColumnDef" }, {
4
4
  __name: "TableColumnDef",
@@ -1,13 +1,13 @@
1
- import { i as e, l as t } from "../chunks/DcTVYqeJ.mjs";
1
+ import { i as e, l as t } from "../chunks/DuOxL6xh.mjs";
2
2
  import { processButtons as n, reloadTable as r } from "../api/index.mjs";
3
3
  import { cellClickHandlerContextKey as i, tableViewContextKey as a } from "../constants/index.mjs";
4
- import { t as o } from "../chunks/7GmKqdbC.mjs";
5
- import { t as s } from "../chunks/DWMePN6q.mjs";
6
- import { t as c } from "../chunks/CkOD-_VV.mjs";
7
- import { s as l } from "../chunks/BvKUeniN.mjs";
4
+ import { t as o } from "../chunks/usyXQe35.mjs";
5
+ import { t as s } from "../chunks/B1MSrc6f.mjs";
6
+ import c from "../editable-tree/index.mjs";
7
+ import { s as l } from "../chunks/DEC2O0q-.mjs";
8
8
  import u from "../form-item-config-provider/index.mjs";
9
- import { t as d } from "../chunks/B3A-CnYr.mjs";
10
- import { t as f } from "../chunks/Dt_s96gL2.mjs";
9
+ import { t as d } from "../chunks/33G2_TH8.mjs";
10
+ import { t as f } from "../chunks/BXrA0SYn2.mjs";
11
11
  import { hasOwn as p, isArray as m, isFunction as h, isString as g, toStringArray as _, trace as v, warning as y } from "@web-utils/core";
12
12
  import { Transition as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, mergeProps as O, normalizeClass as k, normalizeStyle as A, openBlock as j, renderList as M, renderSlot as N, toDisplayString as P, toHandlers as F, vShow as I, withCtx as L, withDirectives as R, withModifiers as z } from "vue";
13
13
  import { merge as B } from "@web-utils/integrations/lodash";
@@ -267,7 +267,7 @@ var G = [
267
267
  class: "search-form-top"
268
268
  }, Y = { class: "table-view-content-wrapper" }, X = { class: "table-view-content" }, Z = { class: "table-view-table" }, Q = { class: "slide-panel-content" }, $ = { class: "slide-panel-actions" };
269
269
  function ee(e, t, n, r, i, a) {
270
- let c = o, p = l, m = W, h = u, g = H, _ = V, v = f, y = s, B = d, G = U;
270
+ let s = o, p = l, m = W, h = u, g = H, _ = V, v = f, y = c, B = d, G = U;
271
271
  return j(), C("div", { class: k(["table-view", {
272
272
  embed: n.embed,
273
273
  "has-tree": a.treeProps.show
@@ -288,13 +288,13 @@ function ee(e, t, n, r, i, a) {
288
288
  "hide-label": "",
289
289
  "fixed-span": 24
290
290
  }, {
291
- default: L(() => [D(c, {
291
+ default: L(() => [D(s, {
292
292
  type: "primary",
293
293
  "native-type": "submit"
294
294
  }, {
295
295
  default: L(() => [...t[4] || (t[4] = [E("开始搜索", -1)])]),
296
296
  _: 1
297
- }), D(c, {
297
+ }), D(s, {
298
298
  style: { "margin-left": "10px" },
299
299
  onClick: a.onClearClick
300
300
  }, {
@@ -439,13 +439,13 @@ function ee(e, t, n, r, i, a) {
439
439
  })]),
440
440
  _: 3
441
441
  }), D(G, { "label-width": "0" }, {
442
- default: L(() => [w("div", $, [D(c, {
442
+ default: L(() => [w("div", $, [D(s, {
443
443
  type: "primary",
444
444
  "native-type": "submit"
445
445
  }, {
446
446
  default: L(() => [...t[7] || (t[7] = [E("开始搜索", -1)])]),
447
447
  _: 1
448
- }), D(c, { onClick: a.onClearClick }, {
448
+ }), D(s, { onClick: a.onClearClick }, {
449
449
  default: L(() => [...t[8] || (t[8] = [E("清除条件", -1)])]),
450
450
  _: 1
451
451
  }, 8, ["onClick"])])]),
@@ -463,6 +463,6 @@ function ee(e, t, n, r, i, a) {
463
463
  N(e.$slots, "default")
464
464
  ])], 2);
465
465
  }
466
- var te = /* @__PURE__ */ c(K, [["render", ee]]);
466
+ var te = /* @__PURE__ */ s(K, [["render", ee]]);
467
467
  //#endregion
468
468
  export { te as default };
package/toolbar/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/Dt_s96gL2.mjs";
1
+ import { t as e } from "../chunks/BXrA0SYn2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/7GmKqdbC.mjs";
1
+ import { t as e } from "../chunks/usyXQe35.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/BoJgSMkL.mjs";
1
+ import { t as e } from "../chunks/DUhF8YOY.mjs";
2
2
  export { e as default };