@web-utils/form-ui 1.0.0-beta56 → 1.0.0-beta58
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.
- package/chunks/-qKZw-3p2.mjs +23 -0
- package/chunks/{CauzhVSa2.mjs → 4-vc_q1t.mjs} +12 -12
- package/chunks/{Bq62m7IR2.mjs → 4C611CU2.mjs} +11 -11
- package/chunks/{gLPy4Sus.mjs → 8P-OAGbj.mjs} +1 -1
- package/chunks/B2PuSZ_F.mjs +35 -0
- package/chunks/B6B-rhhB.mjs +37 -0
- package/chunks/{C7Mak2La.mjs → BHT38Us-.mjs} +7 -6
- package/chunks/BWoKh6f6.mjs +66 -0
- package/chunks/{Dt_s96gL2.mjs → BXrA0SYn2.mjs} +2 -2
- package/chunks/BZ0v5mka.mjs +30 -0
- package/chunks/{5KomemiE2.mjs → BlmtfUfl2.mjs} +29 -29
- package/chunks/CE1uX9hJ.mjs +95 -0
- package/chunks/CGnOR2gn.mjs +59 -0
- package/chunks/CJ1-f8sg.mjs +30 -0
- package/chunks/{B3A-CnYr.mjs → CSnlDCNV.mjs} +5 -5
- package/chunks/CdzoVG6J.mjs +47 -0
- package/chunks/{BZTAuJxn2.mjs → CqoMZ9Wo2.mjs} +1 -1
- package/chunks/CrQmTHMA.mjs +105 -0
- package/chunks/Crh2RUrS.mjs +106 -0
- package/chunks/DBUJ7Bva.mjs +56 -0
- package/chunks/DB_UKPay.mjs +27 -0
- package/chunks/{BvKUeniN.mjs → DEC2O0q-.mjs} +46 -44
- package/chunks/{BoJgSMkL.mjs → DUhF8YOY.mjs} +2 -2
- package/chunks/{g8MIBMw92.mjs → Dqq8z1t4.mjs} +13 -13
- package/chunks/Du1PslcN.mjs +28 -0
- package/chunks/{Dluor05A.mjs → DyEYDv4B.mjs} +7 -6
- package/chunks/EAJCsX8W.mjs +32 -0
- package/chunks/ZFJ73RWd2.mjs +29 -0
- package/chunks/{D2B9Y3oT.mjs → fmIV_kHp.mjs} +2 -2
- package/chunks/h5488Kii.mjs +27 -0
- package/chunks/k3cC9SGC.mjs +27 -0
- package/chunks/{7GmKqdbC.mjs → usyXQe35.mjs} +1 -1
- package/chunks/{BpCiVuKL.mjs → v3wbYL_-.mjs} +7 -6
- package/chunks/vd9nXj8B.mjs +59 -0
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/editable-tree/index.mjs +591 -2
- package/element-dialog/index.mjs +1 -1
- package/element-resize-observer/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/helper/dictionary.mjs +1 -1
- package/helper/form-item.d.ts +1 -1
- package/helper/form-item.mjs +27 -2
- package/helper/input.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/index.mjs +37 -37
- package/package.json +1 -1
- package/pageable-table/index.mjs +1 -1
- package/props/cascader.d.ts +326 -0
- package/{chunks/Czz_49pC.mjs → props/cascader.mjs} +8 -58
- package/props/checkbox-group.d.ts +213 -0
- package/props/checkbox-group.mjs +83 -0
- package/props/checkbox.d.ts +202 -0
- package/props/checkbox.mjs +71 -0
- package/props/col.d.ts +74 -0
- package/props/col.mjs +32 -0
- package/props/common.d.ts +114 -0
- package/props/common.mjs +18 -0
- package/props/date.d.ts +339 -0
- package/props/date.mjs +145 -0
- package/props/form-item.d.ts +144 -0
- package/props/form-item.mjs +73 -0
- package/props/form.d.ts +157 -0
- package/props/form.mjs +89 -0
- package/props/image.d.ts +102 -0
- package/props/image.mjs +10 -0
- package/props/input-cron.d.ts +102 -0
- package/props/input-cron.mjs +16 -0
- package/props/input-number.d.ts +216 -0
- package/props/input-number.mjs +72 -0
- package/props/input-tag.d.ts +123 -0
- package/props/input-tag.mjs +33 -0
- package/props/input.d.ts +299 -0
- package/props/input.mjs +97 -0
- package/props/radio-group.d.ts +205 -0
- package/props/radio-group.mjs +84 -0
- package/props/rate.d.ts +211 -0
- package/{chunks/D0kIhzQo.mjs → props/rate.mjs} +7 -28
- package/props/select.d.ts +450 -0
- package/props/select.mjs +218 -0
- package/props/slide.d.ts +235 -0
- package/{chunks/DZrQmH9Y.mjs → props/slide.mjs} +7 -28
- package/props/switch.d.ts +229 -0
- package/{chunks/ecpQ-ODX.mjs → props/switch.mjs} +7 -33
- package/props/text.d.ts +127 -0
- package/props/text.mjs +22 -0
- package/props/textarea.d.ts +266 -0
- package/{chunks/CNK4mfga.mjs → props/textarea.mjs} +19 -31
- package/props/time-select.d.ts +216 -0
- package/props/time-select.mjs +67 -0
- package/props/time.d.ts +304 -0
- package/{chunks/C3MF_-bN.mjs → props/time.mjs} +8 -39
- package/props/tree.d.ts +76 -0
- package/props/tree.mjs +75 -0
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.mjs +13 -13
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +2 -2
- package/year-calendar/index.mjs +1 -1
- package/chunks/6GcIyEQV.mjs +0 -95
- package/chunks/8c9TEVNY.mjs +0 -36
- package/chunks/AAZfNtly.mjs +0 -119
- package/chunks/BKlMENhV.mjs +0 -57
- package/chunks/BNVYEWWW.mjs +0 -57
- package/chunks/BTuzBfTA.mjs +0 -141
- package/chunks/C6Dq9Dgb.mjs +0 -17
- package/chunks/C6u76g6o.mjs +0 -158
- package/chunks/CLO5X9Lb.mjs +0 -176
- package/chunks/CdoiMj7L2.mjs +0 -39
- package/chunks/DTVTvvq-.mjs +0 -189
- package/chunks/DWE67l1f.mjs +0 -317
- package/chunks/DWMePN6q.mjs +0 -660
- package/chunks/D_L1p3vm2.mjs +0 -90
- package/chunks/Dy_5vPdP.mjs +0 -101
- package/chunks/Goee5Y-H.mjs +0 -198
- /package/chunks/{BlxLaWcU.mjs → 6av50rJm.mjs} +0 -0
- /package/chunks/{CkOD-_VV.mjs → B1MSrc6f.mjs} +0 -0
- /package/chunks/{BNqVEHk_.mjs → C-0zqLII.mjs} +0 -0
- /package/chunks/{xq_LR6R2.mjs → CI1ehQi5.mjs} +0 -0
- /package/chunks/{DcTVYqeJ.mjs → DuOxL6xh.mjs} +0 -0
- /package/chunks/{CXsoKP22.mjs → mekxD3ef.mjs} +0 -0
|
@@ -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 };
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { commonManualBindProps } from './common.ts';
|
|
2
|
+
export declare const allProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 选中项绑定值
|
|
5
|
+
*/
|
|
6
|
+
modelValue: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
7
|
+
/**
|
|
8
|
+
* 选中状态的值(只有在 checkbox-group 或者绑定对象类型为 array 时有效)
|
|
9
|
+
* @since 2.6.0
|
|
10
|
+
*/
|
|
11
|
+
value: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
|
|
12
|
+
/**
|
|
13
|
+
* 选中状态的值,只有在绑定对象类型为 array 时有效。如果没有 value,label 则作为 value 使用
|
|
14
|
+
*/
|
|
15
|
+
labelValue: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
|
|
16
|
+
/**
|
|
17
|
+
* 选中时的值
|
|
18
|
+
* @since 2.6.0
|
|
19
|
+
*/
|
|
20
|
+
trueValue: {
|
|
21
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 没有选中时的值
|
|
26
|
+
* @since 2.6.0
|
|
27
|
+
*/
|
|
28
|
+
falseValue: {
|
|
29
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* 是否显示边框
|
|
34
|
+
*/
|
|
35
|
+
border: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Checkbox 的尺寸
|
|
41
|
+
* @values large, default, small
|
|
42
|
+
*/
|
|
43
|
+
size: StringConstructor;
|
|
44
|
+
/**
|
|
45
|
+
* 原生 name 属性
|
|
46
|
+
*/
|
|
47
|
+
name: StringConstructor;
|
|
48
|
+
/**
|
|
49
|
+
* 当前是否勾选
|
|
50
|
+
*/
|
|
51
|
+
checked: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 设置不确定状态,仅负责样式控制
|
|
57
|
+
*/
|
|
58
|
+
indeterminate: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* 输入时是否触发表单的校验
|
|
64
|
+
*/
|
|
65
|
+
validateEvent: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* 输入框的 tabindex
|
|
71
|
+
*/
|
|
72
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
73
|
+
/**
|
|
74
|
+
* input id
|
|
75
|
+
*/
|
|
76
|
+
id: StringConstructor;
|
|
77
|
+
/**
|
|
78
|
+
* 与 aria-control 一致,当 indeterminate 为 true 时生效
|
|
79
|
+
* @since 2.7.2
|
|
80
|
+
*/
|
|
81
|
+
ariaControls: StringConstructor;
|
|
82
|
+
/**
|
|
83
|
+
* 原生 aria-label 属性
|
|
84
|
+
*/
|
|
85
|
+
ariaLabel: StringConstructor;
|
|
86
|
+
/**
|
|
87
|
+
* 选中时的值
|
|
88
|
+
* @deprecated
|
|
89
|
+
*/
|
|
90
|
+
trueLabel: {
|
|
91
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* 没有选中时的值
|
|
96
|
+
* @deprecated
|
|
97
|
+
*/
|
|
98
|
+
falseLabel: {
|
|
99
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* 和 aria-control 一致。当 indeterminate 为 true 时生效
|
|
104
|
+
* @deprecated
|
|
105
|
+
*/
|
|
106
|
+
controls: StringConstructor;
|
|
107
|
+
wrapFormItem: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
disabled: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: undefined;
|
|
114
|
+
};
|
|
115
|
+
col: BooleanConstructor;
|
|
116
|
+
span: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
default: number;
|
|
119
|
+
};
|
|
120
|
+
offset: {
|
|
121
|
+
type: NumberConstructor;
|
|
122
|
+
default: number;
|
|
123
|
+
};
|
|
124
|
+
push: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
default: number;
|
|
127
|
+
};
|
|
128
|
+
pull: {
|
|
129
|
+
type: NumberConstructor;
|
|
130
|
+
default: number;
|
|
131
|
+
};
|
|
132
|
+
xs: {
|
|
133
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
134
|
+
};
|
|
135
|
+
sm: {
|
|
136
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
137
|
+
};
|
|
138
|
+
md: {
|
|
139
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
140
|
+
};
|
|
141
|
+
lg: {
|
|
142
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
143
|
+
};
|
|
144
|
+
xl: {
|
|
145
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
146
|
+
};
|
|
147
|
+
tag: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
prop: (StringConstructor | ArrayConstructor)[];
|
|
152
|
+
label: StringConstructor;
|
|
153
|
+
labelPosition: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
labelWidth: (StringConstructor | NumberConstructor)[];
|
|
158
|
+
required: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
162
|
+
rules: ObjectConstructor;
|
|
163
|
+
error: StringConstructor;
|
|
164
|
+
showMessage: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
inlineMessage: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
for: StringConstructor;
|
|
173
|
+
validateStatus: StringConstructor;
|
|
174
|
+
messagePrefix: StringConstructor;
|
|
175
|
+
message: StringConstructor;
|
|
176
|
+
wrapCol: {
|
|
177
|
+
type: BooleanConstructor;
|
|
178
|
+
default: boolean;
|
|
179
|
+
};
|
|
180
|
+
fixedSpan: NumberConstructor;
|
|
181
|
+
block: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: undefined;
|
|
184
|
+
};
|
|
185
|
+
unwrap: BooleanConstructor;
|
|
186
|
+
half: BooleanConstructor;
|
|
187
|
+
formItemClass: StringConstructor;
|
|
188
|
+
hideLabel: BooleanConstructor;
|
|
189
|
+
tips: {
|
|
190
|
+
type: StringConstructor;
|
|
191
|
+
};
|
|
192
|
+
tipsAfterLabel: {
|
|
193
|
+
type: BooleanConstructor;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
labelColspan: (StringConstructor | NumberConstructor)[];
|
|
197
|
+
inputColspan: (StringConstructor | NumberConstructor)[];
|
|
198
|
+
labelRowspan: (StringConstructor | NumberConstructor)[];
|
|
199
|
+
inputRowspan: (StringConstructor | NumberConstructor)[];
|
|
200
|
+
};
|
|
201
|
+
export declare const manualBindProps: Record<string, boolean | undefined>;
|
|
202
|
+
export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { commonManualBindProps as e } from "./common.mjs";
|
|
2
|
+
//#region src/props/checkbox.ts
|
|
3
|
+
var t = {
|
|
4
|
+
...e,
|
|
5
|
+
modelValue: [
|
|
6
|
+
String,
|
|
7
|
+
Number,
|
|
8
|
+
Boolean
|
|
9
|
+
],
|
|
10
|
+
value: [
|
|
11
|
+
String,
|
|
12
|
+
Number,
|
|
13
|
+
Boolean,
|
|
14
|
+
Object
|
|
15
|
+
],
|
|
16
|
+
labelValue: [
|
|
17
|
+
String,
|
|
18
|
+
Number,
|
|
19
|
+
Boolean,
|
|
20
|
+
Object
|
|
21
|
+
],
|
|
22
|
+
trueValue: {
|
|
23
|
+
type: [String, Number],
|
|
24
|
+
default: "1"
|
|
25
|
+
},
|
|
26
|
+
falseValue: {
|
|
27
|
+
type: [String, Number],
|
|
28
|
+
default: "0"
|
|
29
|
+
},
|
|
30
|
+
border: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
size: String,
|
|
35
|
+
name: String,
|
|
36
|
+
checked: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !1
|
|
39
|
+
},
|
|
40
|
+
indeterminate: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
},
|
|
44
|
+
validateEvent: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !0
|
|
47
|
+
},
|
|
48
|
+
tabindex: [String, Number],
|
|
49
|
+
id: String,
|
|
50
|
+
ariaControls: String,
|
|
51
|
+
ariaLabel: String,
|
|
52
|
+
trueLabel: {
|
|
53
|
+
type: [String, Number],
|
|
54
|
+
default: "1"
|
|
55
|
+
},
|
|
56
|
+
falseLabel: {
|
|
57
|
+
type: [String, Number],
|
|
58
|
+
default: "0"
|
|
59
|
+
},
|
|
60
|
+
controls: String
|
|
61
|
+
}, n = {
|
|
62
|
+
modelValue: !0,
|
|
63
|
+
disabled: !0,
|
|
64
|
+
labelValue: !0,
|
|
65
|
+
trueLabel: !0,
|
|
66
|
+
falseLabel: !0,
|
|
67
|
+
trueValue: !0,
|
|
68
|
+
falseValue: !0
|
|
69
|
+
}, r = (t) => e[t] === void 0 && n[t] !== !0;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { t as allProps, n as manualBindProps, r as predicate };
|
package/props/col.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare const colProps: {
|
|
2
|
+
/**
|
|
3
|
+
* 栅格占据的列数
|
|
4
|
+
*/
|
|
5
|
+
span: {
|
|
6
|
+
type: NumberConstructor;
|
|
7
|
+
default: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* 栅格左侧的间隔格数
|
|
11
|
+
*/
|
|
12
|
+
offset: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 栅格向右移动格数
|
|
18
|
+
*/
|
|
19
|
+
push: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 栅格向左移动格数
|
|
25
|
+
*/
|
|
26
|
+
pull: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* <768px 响应式栅格数或者栅格属性对象
|
|
32
|
+
*/
|
|
33
|
+
xs: {
|
|
34
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* ≥768px 响应式栅格数或者栅格属性对象
|
|
38
|
+
*/
|
|
39
|
+
sm: {
|
|
40
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* ≥992px 响应式栅格数或者栅格属性对象
|
|
44
|
+
*/
|
|
45
|
+
md: {
|
|
46
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* ≥1200px 响应式栅格数或者栅格属性对象
|
|
50
|
+
*/
|
|
51
|
+
lg: {
|
|
52
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* ≥1920px 响应式栅格数或者栅格属性对象
|
|
56
|
+
*/
|
|
57
|
+
xl: {
|
|
58
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 自定义元素标签
|
|
62
|
+
*/
|
|
63
|
+
tag: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare const manualBindProps: Record<string, boolean | undefined>;
|
|
69
|
+
export declare const predicate: (propsKey: keyof typeof colProps) => boolean;
|
|
70
|
+
export declare const useColAutoBind: (props: Record<string, any>, { emit, events, predicate }: {
|
|
71
|
+
emit: (event: string, ...args: any[]) => void;
|
|
72
|
+
events: string[];
|
|
73
|
+
predicate: (event: string, ...args: any[]) => boolean;
|
|
74
|
+
}) => globalThis.ComputedRef<Record<string, any>>;
|
package/props/col.mjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { o as e } from "../chunks/DuOxL6xh.mjs";
|
|
2
|
+
import { computed as t } from "vue";
|
|
3
|
+
//#region src/props/col.ts
|
|
4
|
+
var n = {
|
|
5
|
+
span: {
|
|
6
|
+
type: Number,
|
|
7
|
+
default: 12
|
|
8
|
+
},
|
|
9
|
+
offset: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 0
|
|
12
|
+
},
|
|
13
|
+
push: {
|
|
14
|
+
type: Number,
|
|
15
|
+
default: 0
|
|
16
|
+
},
|
|
17
|
+
pull: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 0
|
|
20
|
+
},
|
|
21
|
+
xs: { type: [Number, Object] },
|
|
22
|
+
sm: { type: [Number, Object] },
|
|
23
|
+
md: { type: [Number, Object] },
|
|
24
|
+
lg: { type: [Number, Object] },
|
|
25
|
+
xl: { type: [Number, Object] },
|
|
26
|
+
tag: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "div"
|
|
29
|
+
}
|
|
30
|
+
}, r = { span: !0 }, i = (e) => n[e] !== void 0 && r[e] !== !0, a = (n, { emit: r, events: i, predicate: a }) => t(() => e(n, a, i, r));
|
|
31
|
+
//#endregion
|
|
32
|
+
export { n as colProps, r as manualBindProps, i as predicate, a as useColAutoBind };
|