@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
package/props/rate.d.ts
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { commonManualBindProps } from './common.ts';
|
|
2
|
+
export declare const allProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 选中项绑定值
|
|
5
|
+
*/
|
|
6
|
+
modelValue: NumberConstructor;
|
|
7
|
+
/**
|
|
8
|
+
* 最大分值
|
|
9
|
+
*/
|
|
10
|
+
max: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 尺寸
|
|
16
|
+
* @values large, default, small
|
|
17
|
+
*/
|
|
18
|
+
size: StringConstructor;
|
|
19
|
+
/**
|
|
20
|
+
* 是否允许半选
|
|
21
|
+
*/
|
|
22
|
+
allowHalf: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 低分和中等分数的界限值,值本身被划分在低分中
|
|
28
|
+
*/
|
|
29
|
+
lowThreshold: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 高分和中等分数的界限值,值本身被划分在高分中
|
|
35
|
+
*/
|
|
36
|
+
highThreshold: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* icon 的颜色。若传入数组,共有 3 个元素,为 3 个分段所对应的颜色;若传入对象,可自定义分段,键名为分段的界限值,键值为对应的颜色
|
|
42
|
+
*/
|
|
43
|
+
colors: (ObjectConstructor | ArrayConstructor)[];
|
|
44
|
+
/**
|
|
45
|
+
* 未选中 icon 的颜色
|
|
46
|
+
*/
|
|
47
|
+
voidColor: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* 只读时未选中 icon 的颜色
|
|
53
|
+
*/
|
|
54
|
+
disabledVoidColor: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* 图标组件 若传入数组,则需要传入 3 个元素,分别为 3 个部分所对应的类名;若传入对象,则可自定义分段,键名为分段的界限值,键值为对应的类名
|
|
60
|
+
*/
|
|
61
|
+
icons: (ObjectConstructor | ArrayConstructor)[];
|
|
62
|
+
/**
|
|
63
|
+
* 未被选中的图标组件
|
|
64
|
+
*/
|
|
65
|
+
voidIcon: (StringConstructor | ObjectConstructor)[];
|
|
66
|
+
/**
|
|
67
|
+
* 禁用状态的未选择图标
|
|
68
|
+
*/
|
|
69
|
+
disabledVoidIcon: (StringConstructor | ObjectConstructor)[];
|
|
70
|
+
/**
|
|
71
|
+
* 是否显示辅助文字,若为真,则会从 texts 数组中选取当前分数对应的文字内容
|
|
72
|
+
*/
|
|
73
|
+
showText: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* 是否显示当前分数,showScore 和 showText 不能同时为真
|
|
79
|
+
*/
|
|
80
|
+
showScore: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* 辅助文字的颜色
|
|
86
|
+
*/
|
|
87
|
+
textColor: StringConstructor;
|
|
88
|
+
/**
|
|
89
|
+
* 辅助文字数组
|
|
90
|
+
*/
|
|
91
|
+
texts: {
|
|
92
|
+
type: ArrayConstructor;
|
|
93
|
+
default: () => string[];
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* 分数显示模板
|
|
97
|
+
*/
|
|
98
|
+
scoreTemplate: StringConstructor;
|
|
99
|
+
/**
|
|
100
|
+
* 是否可以重置值为 0
|
|
101
|
+
* @since 2.2.18
|
|
102
|
+
*/
|
|
103
|
+
clearable: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* 原生 id 属性
|
|
109
|
+
*/
|
|
110
|
+
id: StringConstructor;
|
|
111
|
+
/**
|
|
112
|
+
* 和 Rate 的 aria-label 属性保持一致
|
|
113
|
+
* @since 2.7.2
|
|
114
|
+
*/
|
|
115
|
+
ariaLabel: StringConstructor;
|
|
116
|
+
wrapFormItem: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
disabled: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: undefined;
|
|
123
|
+
};
|
|
124
|
+
col: BooleanConstructor;
|
|
125
|
+
span: {
|
|
126
|
+
type: NumberConstructor;
|
|
127
|
+
default: number;
|
|
128
|
+
};
|
|
129
|
+
offset: {
|
|
130
|
+
type: NumberConstructor;
|
|
131
|
+
default: number;
|
|
132
|
+
};
|
|
133
|
+
push: {
|
|
134
|
+
type: NumberConstructor;
|
|
135
|
+
default: number;
|
|
136
|
+
};
|
|
137
|
+
pull: {
|
|
138
|
+
type: NumberConstructor;
|
|
139
|
+
default: number;
|
|
140
|
+
};
|
|
141
|
+
xs: {
|
|
142
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
143
|
+
};
|
|
144
|
+
sm: {
|
|
145
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
146
|
+
};
|
|
147
|
+
md: {
|
|
148
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
149
|
+
};
|
|
150
|
+
lg: {
|
|
151
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
152
|
+
};
|
|
153
|
+
xl: {
|
|
154
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
155
|
+
};
|
|
156
|
+
tag: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
prop: (StringConstructor | ArrayConstructor)[];
|
|
161
|
+
label: StringConstructor;
|
|
162
|
+
labelPosition: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
labelWidth: (StringConstructor | NumberConstructor)[];
|
|
167
|
+
required: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
171
|
+
rules: ObjectConstructor;
|
|
172
|
+
error: StringConstructor;
|
|
173
|
+
showMessage: {
|
|
174
|
+
type: BooleanConstructor;
|
|
175
|
+
default: boolean;
|
|
176
|
+
};
|
|
177
|
+
inlineMessage: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
for: StringConstructor;
|
|
182
|
+
validateStatus: StringConstructor;
|
|
183
|
+
messagePrefix: StringConstructor;
|
|
184
|
+
message: StringConstructor;
|
|
185
|
+
wrapCol: {
|
|
186
|
+
type: BooleanConstructor;
|
|
187
|
+
default: boolean;
|
|
188
|
+
};
|
|
189
|
+
fixedSpan: NumberConstructor;
|
|
190
|
+
block: {
|
|
191
|
+
type: BooleanConstructor;
|
|
192
|
+
default: undefined;
|
|
193
|
+
};
|
|
194
|
+
unwrap: BooleanConstructor;
|
|
195
|
+
half: BooleanConstructor;
|
|
196
|
+
formItemClass: StringConstructor;
|
|
197
|
+
hideLabel: BooleanConstructor;
|
|
198
|
+
tips: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
};
|
|
201
|
+
tipsAfterLabel: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
labelColspan: (StringConstructor | NumberConstructor)[];
|
|
206
|
+
inputColspan: (StringConstructor | NumberConstructor)[];
|
|
207
|
+
labelRowspan: (StringConstructor | NumberConstructor)[];
|
|
208
|
+
inputRowspan: (StringConstructor | NumberConstructor)[];
|
|
209
|
+
};
|
|
210
|
+
export declare const manualBindProps: Record<string, boolean | undefined>;
|
|
211
|
+
export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//#region src/components/form/props/rate.ts
|
|
6
|
-
var s = {
|
|
7
|
-
...n,
|
|
1
|
+
import { commonManualBindProps as e } from "./common.mjs";
|
|
2
|
+
//#region src/props/rate.ts
|
|
3
|
+
var t = {
|
|
4
|
+
...e,
|
|
8
5
|
modelValue: Number,
|
|
9
6
|
max: {
|
|
10
7
|
type: Number,
|
|
@@ -61,27 +58,9 @@ var s = {
|
|
|
61
58
|
},
|
|
62
59
|
id: String,
|
|
63
60
|
ariaLabel: String
|
|
64
|
-
},
|
|
61
|
+
}, n = {
|
|
65
62
|
disabled: !0,
|
|
66
63
|
modelValue: !0
|
|
67
|
-
},
|
|
68
|
-
name: "FormRate",
|
|
69
|
-
inheritAttrs: !1,
|
|
70
|
-
props: { ...s },
|
|
71
|
-
emits: { ...e },
|
|
72
|
-
setup(e, { emit: n, slots: s, attrs: c }) {
|
|
73
|
-
let u = a(e, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = t(e, {
|
|
74
|
-
emit: n,
|
|
75
|
-
slots: s,
|
|
76
|
-
attrs: c,
|
|
77
|
-
predicate: l
|
|
78
|
-
});
|
|
79
|
-
return () => d({ vNodes: r(o, i(p.value, m.value, {
|
|
80
|
-
modelValue: u.value,
|
|
81
|
-
"onUpdate:modelValue": (e) => u.value = e,
|
|
82
|
-
disabled: f.value
|
|
83
|
-
}), null) });
|
|
84
|
-
}
|
|
85
|
-
};
|
|
64
|
+
}, r = (t) => e[t] === void 0 && n[t] !== !0;
|
|
86
65
|
//#endregion
|
|
87
|
-
export {
|
|
66
|
+
export { t as allProps, n as manualBindProps, r as predicate };
|
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
import { commonManualBindProps } from './common.ts';
|
|
2
|
+
export declare const allProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 选中项绑定值
|
|
5
|
+
*/
|
|
6
|
+
modelValue: (StringConstructor | BooleanConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
|
|
7
|
+
/**
|
|
8
|
+
* 是否多选
|
|
9
|
+
*/
|
|
10
|
+
multiple: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 选项的数据源,value 的 key 和 label 和 disabled 可以通过 props 自定义
|
|
16
|
+
* @since 2.10.5
|
|
17
|
+
*/
|
|
18
|
+
options: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* options 的配置
|
|
24
|
+
* @since 2.10.5
|
|
25
|
+
*/
|
|
26
|
+
props: {
|
|
27
|
+
type: ObjectConstructor;
|
|
28
|
+
default: () => {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 作为 value 唯一标识的键名,绑定值为对象类型时必填
|
|
35
|
+
*/
|
|
36
|
+
valueKey: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* 输入框尺寸
|
|
42
|
+
* @values large, default, small
|
|
43
|
+
*/
|
|
44
|
+
size: StringConstructor;
|
|
45
|
+
/**
|
|
46
|
+
* 是否可以清空选项
|
|
47
|
+
*/
|
|
48
|
+
clearable: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* 多选时是否将选中值按文字的形式展示
|
|
54
|
+
*/
|
|
55
|
+
collapseTags: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* 当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。要使用此属性,collapseTags 属性必须设定为 true
|
|
61
|
+
* @since 2.3.0
|
|
62
|
+
*/
|
|
63
|
+
collapseTagsTooltip: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* 折叠标签工具提示的配置对象。要使用此项,collapseTags 和 collapseTagsTooltip 必须为 true
|
|
69
|
+
* @since 2.13.3
|
|
70
|
+
*/
|
|
71
|
+
tagTooltip: {
|
|
72
|
+
type: ObjectConstructor;
|
|
73
|
+
default: () => {};
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数,为 0 则不限制
|
|
77
|
+
*/
|
|
78
|
+
multipleLimit: {
|
|
79
|
+
type: NumberConstructor;
|
|
80
|
+
default: number;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* 原生 input 的 id
|
|
84
|
+
*/
|
|
85
|
+
id: StringConstructor;
|
|
86
|
+
/**
|
|
87
|
+
* Select 输入框的原生 name 属性
|
|
88
|
+
*/
|
|
89
|
+
name: StringConstructor;
|
|
90
|
+
/**
|
|
91
|
+
* tooltip 主题,内置了 dark / light 两种
|
|
92
|
+
* @values dark, light
|
|
93
|
+
*/
|
|
94
|
+
effect: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Select 输入框的原生 autocomplete 属性
|
|
100
|
+
*/
|
|
101
|
+
autocomplete: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* 占位符,默认为 “Select”
|
|
107
|
+
*/
|
|
108
|
+
placeholder: StringConstructor;
|
|
109
|
+
/**
|
|
110
|
+
* Select 组件是否可筛选
|
|
111
|
+
*/
|
|
112
|
+
filterable: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* 是否允许用户创建新条目,当 filterable 设置为 true 时才会生效
|
|
118
|
+
*/
|
|
119
|
+
allowCreate: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* 自定义筛选方法的第一个参数是当前输入的值。只有当 filterable 设置为 true 时才会生效
|
|
125
|
+
*/
|
|
126
|
+
filterMethod: FunctionConstructor;
|
|
127
|
+
/**
|
|
128
|
+
* 其中的选项是否从服务器远程加载
|
|
129
|
+
*/
|
|
130
|
+
remote: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* 远程搜索时的防抖延迟(以毫秒为单位)
|
|
136
|
+
* @since 2.11.7
|
|
137
|
+
*/
|
|
138
|
+
debounce: {
|
|
139
|
+
type: NumberConstructor;
|
|
140
|
+
default: number;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* 当输入值发生变化时触发的函数。它的参数就是当前的输入值。当 filterable 设置为 true 时才会生效
|
|
144
|
+
*/
|
|
145
|
+
remoteMethod: FunctionConstructor;
|
|
146
|
+
/**
|
|
147
|
+
* 远程搜索方法显示后缀图标
|
|
148
|
+
*/
|
|
149
|
+
remoteShowSuffix: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* 是否正在从远程获取数据
|
|
155
|
+
*/
|
|
156
|
+
loading: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* 从服务器加载数据时显示的文本,默认为 “Loading”
|
|
162
|
+
*/
|
|
163
|
+
loadingText: StringConstructor;
|
|
164
|
+
/**
|
|
165
|
+
* 搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data”
|
|
166
|
+
*/
|
|
167
|
+
noMatchText: StringConstructor;
|
|
168
|
+
/**
|
|
169
|
+
* 无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”
|
|
170
|
+
*/
|
|
171
|
+
noDataText: StringConstructor;
|
|
172
|
+
/**
|
|
173
|
+
* 为 Select 下拉菜单和标签提示设置自定义类名
|
|
174
|
+
*/
|
|
175
|
+
popperClass: {
|
|
176
|
+
type: StringConstructor;
|
|
177
|
+
default: string;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* 为 Select 下拉菜单和标签提示设置自定义样式
|
|
181
|
+
* @since 2.11.0
|
|
182
|
+
*/
|
|
183
|
+
popperStyle: (StringConstructor | ObjectConstructor)[];
|
|
184
|
+
/**
|
|
185
|
+
* 当 multiple 和 filterable 被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词
|
|
186
|
+
*/
|
|
187
|
+
reserveKeyword: {
|
|
188
|
+
type: BooleanConstructor;
|
|
189
|
+
default: boolean;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* 是否在输入框按下回车时,选择第一个匹配项。需配合 filterable 或 remote 使用
|
|
193
|
+
*/
|
|
194
|
+
defaultFirstOption: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* 是否使用 teleport。设置成 true 则会被追加到 appendTo 的位置
|
|
200
|
+
*/
|
|
201
|
+
teleported: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* 下拉框挂载到哪个 DOM 元素
|
|
207
|
+
* @since 2.8.4
|
|
208
|
+
*/
|
|
209
|
+
appendTo: (StringConstructor | ObjectConstructor)[];
|
|
210
|
+
/**
|
|
211
|
+
* 当下拉选择器未被激活并且 persistent 设置为 false,选择器会被删除
|
|
212
|
+
*/
|
|
213
|
+
persistent: {
|
|
214
|
+
type: BooleanConstructor;
|
|
215
|
+
default: boolean;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* 对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单
|
|
219
|
+
*/
|
|
220
|
+
automaticDropdown: {
|
|
221
|
+
type: BooleanConstructor;
|
|
222
|
+
default: boolean;
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* 自定义清除图标
|
|
226
|
+
*/
|
|
227
|
+
clearIcon: (StringConstructor | ObjectConstructor)[];
|
|
228
|
+
/**
|
|
229
|
+
* 下拉框的宽度是否与输入框相同
|
|
230
|
+
*/
|
|
231
|
+
fitInputWidth: {
|
|
232
|
+
type: BooleanConstructor;
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* 自定义后缀图标组件
|
|
237
|
+
*/
|
|
238
|
+
suffixIcon: (StringConstructor | ObjectConstructor)[];
|
|
239
|
+
/**
|
|
240
|
+
* 标签类型
|
|
241
|
+
* @values success, info, warning, danger
|
|
242
|
+
*/
|
|
243
|
+
tagType: {
|
|
244
|
+
type: StringConstructor;
|
|
245
|
+
default: string;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* 标签效果
|
|
249
|
+
* @since 2.7.7
|
|
250
|
+
* @values dark, light, plain
|
|
251
|
+
*/
|
|
252
|
+
tagEffect: {
|
|
253
|
+
type: StringConstructor;
|
|
254
|
+
default: string;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* 是否触发表单验证
|
|
258
|
+
*/
|
|
259
|
+
validateEvent: {
|
|
260
|
+
type: BooleanConstructor;
|
|
261
|
+
default: boolean;
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* 下拉面板偏移量
|
|
265
|
+
* @since 2.8.8
|
|
266
|
+
*/
|
|
267
|
+
dropDownOffset: {
|
|
268
|
+
type: NumberConstructor;
|
|
269
|
+
default: number;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* 下拉菜单的内容是否有箭头
|
|
273
|
+
* @since 2.8.8
|
|
274
|
+
*/
|
|
275
|
+
showArrow: {
|
|
276
|
+
type: BooleanConstructor;
|
|
277
|
+
default: boolean;
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* 下拉框出现的位置
|
|
281
|
+
* @since 2.2.17
|
|
282
|
+
* @values top, top-start, top-end, bottom, bottom-start, bottom-end, left, left-start, left-end, right, right-start, right-end
|
|
283
|
+
*/
|
|
284
|
+
placement: {
|
|
285
|
+
type: StringConstructor;
|
|
286
|
+
default: string;
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* dropdown 可用的 positions 请查看 popper.js 文档
|
|
290
|
+
* @since 2.5.6
|
|
291
|
+
*/
|
|
292
|
+
fallbackPlacements: {
|
|
293
|
+
type: ArrayConstructor;
|
|
294
|
+
default: () => string[];
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* 需要显示的 Tag 的最大数量 只有当 collapseTags 设置为 true 时才会生效
|
|
298
|
+
* @since 2.3.0
|
|
299
|
+
*/
|
|
300
|
+
maxCollapseTags: {
|
|
301
|
+
type: NumberConstructor;
|
|
302
|
+
default: number;
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* popper.js 参数
|
|
306
|
+
*/
|
|
307
|
+
popperOptions: {
|
|
308
|
+
type: ObjectConstructor;
|
|
309
|
+
default: () => {};
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* 等价于原生 input aria-label 属性
|
|
313
|
+
*/
|
|
314
|
+
ariaLabel: StringConstructor;
|
|
315
|
+
/**
|
|
316
|
+
* 组件的空值配置,参考 config-provider
|
|
317
|
+
* @since 2.7.0
|
|
318
|
+
*/
|
|
319
|
+
emptyValues: ArrayConstructor;
|
|
320
|
+
/**
|
|
321
|
+
* 清空选项的值,参考 config-provider
|
|
322
|
+
* @since 2.7.0
|
|
323
|
+
*/
|
|
324
|
+
valueOnClear: (StringConstructor | BooleanConstructor | FunctionConstructor | NumberConstructor)[];
|
|
325
|
+
/**
|
|
326
|
+
* 下拉菜单显示/消失时后缀图标的动画
|
|
327
|
+
* @deprecated
|
|
328
|
+
*/
|
|
329
|
+
suffixTransition: {
|
|
330
|
+
type: BooleanConstructor;
|
|
331
|
+
default: boolean;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* input 的 tabindex
|
|
335
|
+
* @since 2.9.0
|
|
336
|
+
*/
|
|
337
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
338
|
+
dictType: StringConstructor;
|
|
339
|
+
gender: BooleanConstructor;
|
|
340
|
+
year: (BooleanConstructor | NumberConstructor)[];
|
|
341
|
+
all: BooleanConstructor;
|
|
342
|
+
confirm: BooleanConstructor;
|
|
343
|
+
start: NumberConstructor;
|
|
344
|
+
end: NumberConstructor;
|
|
345
|
+
optionLabel: (StringConstructor | NumberConstructor)[];
|
|
346
|
+
emitLabel: BooleanConstructor;
|
|
347
|
+
english: BooleanConstructor;
|
|
348
|
+
chinese: BooleanConstructor;
|
|
349
|
+
typing: BooleanConstructor;
|
|
350
|
+
multipleStringMode: BooleanConstructor;
|
|
351
|
+
multipleStringSeparator: {
|
|
352
|
+
type: StringConstructor;
|
|
353
|
+
default: string;
|
|
354
|
+
};
|
|
355
|
+
wrapFormItem: {
|
|
356
|
+
type: BooleanConstructor;
|
|
357
|
+
default: boolean;
|
|
358
|
+
};
|
|
359
|
+
disabled: {
|
|
360
|
+
type: BooleanConstructor;
|
|
361
|
+
default: undefined;
|
|
362
|
+
};
|
|
363
|
+
col: BooleanConstructor;
|
|
364
|
+
span: {
|
|
365
|
+
type: NumberConstructor;
|
|
366
|
+
default: number;
|
|
367
|
+
};
|
|
368
|
+
offset: {
|
|
369
|
+
type: NumberConstructor;
|
|
370
|
+
default: number;
|
|
371
|
+
};
|
|
372
|
+
push: {
|
|
373
|
+
type: NumberConstructor;
|
|
374
|
+
default: number;
|
|
375
|
+
};
|
|
376
|
+
pull: {
|
|
377
|
+
type: NumberConstructor;
|
|
378
|
+
default: number;
|
|
379
|
+
};
|
|
380
|
+
xs: {
|
|
381
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
382
|
+
};
|
|
383
|
+
sm: {
|
|
384
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
385
|
+
};
|
|
386
|
+
md: {
|
|
387
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
388
|
+
};
|
|
389
|
+
lg: {
|
|
390
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
391
|
+
};
|
|
392
|
+
xl: {
|
|
393
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
394
|
+
};
|
|
395
|
+
tag: {
|
|
396
|
+
type: StringConstructor;
|
|
397
|
+
default: string;
|
|
398
|
+
};
|
|
399
|
+
prop: (StringConstructor | ArrayConstructor)[];
|
|
400
|
+
label: StringConstructor;
|
|
401
|
+
labelPosition: {
|
|
402
|
+
type: StringConstructor;
|
|
403
|
+
default: string;
|
|
404
|
+
};
|
|
405
|
+
labelWidth: (StringConstructor | NumberConstructor)[];
|
|
406
|
+
required: {
|
|
407
|
+
type: BooleanConstructor;
|
|
408
|
+
default: boolean;
|
|
409
|
+
};
|
|
410
|
+
rules: ObjectConstructor;
|
|
411
|
+
error: StringConstructor;
|
|
412
|
+
showMessage: {
|
|
413
|
+
type: BooleanConstructor;
|
|
414
|
+
default: boolean;
|
|
415
|
+
};
|
|
416
|
+
inlineMessage: {
|
|
417
|
+
type: BooleanConstructor;
|
|
418
|
+
default: boolean;
|
|
419
|
+
};
|
|
420
|
+
for: StringConstructor;
|
|
421
|
+
validateStatus: StringConstructor;
|
|
422
|
+
messagePrefix: StringConstructor;
|
|
423
|
+
message: StringConstructor;
|
|
424
|
+
wrapCol: {
|
|
425
|
+
type: BooleanConstructor;
|
|
426
|
+
default: boolean;
|
|
427
|
+
};
|
|
428
|
+
fixedSpan: NumberConstructor;
|
|
429
|
+
block: {
|
|
430
|
+
type: BooleanConstructor;
|
|
431
|
+
default: undefined;
|
|
432
|
+
};
|
|
433
|
+
unwrap: BooleanConstructor;
|
|
434
|
+
half: BooleanConstructor;
|
|
435
|
+
formItemClass: StringConstructor;
|
|
436
|
+
hideLabel: BooleanConstructor;
|
|
437
|
+
tips: {
|
|
438
|
+
type: StringConstructor;
|
|
439
|
+
};
|
|
440
|
+
tipsAfterLabel: {
|
|
441
|
+
type: BooleanConstructor;
|
|
442
|
+
default: boolean;
|
|
443
|
+
};
|
|
444
|
+
labelColspan: (StringConstructor | NumberConstructor)[];
|
|
445
|
+
inputColspan: (StringConstructor | NumberConstructor)[];
|
|
446
|
+
labelRowspan: (StringConstructor | NumberConstructor)[];
|
|
447
|
+
inputRowspan: (StringConstructor | NumberConstructor)[];
|
|
448
|
+
};
|
|
449
|
+
export declare const manualBindProps: Record<string, boolean | undefined>;
|
|
450
|
+
export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
|