@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.
- package/api/index.d.ts +6 -0
- package/chunks/-qKZw-3p2.mjs +23 -0
- package/chunks/{B3A-CnYr.mjs → 33G2_TH8.mjs} +4 -4
- 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/CE1uX9hJ.mjs +95 -0
- package/chunks/CGnOR2gn.mjs +59 -0
- package/chunks/CJ1-f8sg.mjs +30 -0
- package/chunks/{5KomemiE2.mjs → CUq3MOiQ2.mjs} +29 -29
- package/chunks/CdzoVG6J.mjs +47 -0
- package/chunks/{Dg4R65aG2.mjs → CqoMZ9Wo2.mjs} +2 -2
- 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/Du1PslcN.mjs +28 -0
- package/chunks/{Dluor05A.mjs → DyEYDv4B.mjs} +7 -6
- package/chunks/EAJCsX8W.mjs +32 -0
- package/chunks/{Bq62m7IR2.mjs → T4GdQtY8.mjs} +11 -11
- 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/{CauzhVSa2.mjs → rJWvEBq9.mjs} +12 -12
- package/chunks/{7GmKqdbC.mjs → usyXQe35.mjs} +1 -1
- package/chunks/{BpCiVuKL.mjs → v3wbYL_-.mjs} +7 -6
- package/chunks/vd9nXj8B.mjs +59 -0
- package/chunks/{g8MIBMw92.mjs → ztBRZQwM.mjs} +13 -13
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/constants/index.d.ts +18 -0
- package/editable-tree/index.d.ts +27 -0
- 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.d.ts +3 -0
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.d.ts +6 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +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-config-provider/index.d.ts +18 -0
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +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.d.ts +14 -0
- package/helper/dictionary.mjs +1 -1
- package/helper/form-item.d.ts +8 -1
- package/helper/form-item.mjs +27 -2
- package/helper/input.d.ts +3 -0
- package/helper/input.mjs +1 -1
- package/helper/sub-table-plus.d.ts +60 -0
- package/iframe-window/index.mjs +1 -1
- package/index.css +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.d.ts +3 -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/year-calendar/style.css +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/slide.d.ts
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { commonManualBindProps } from './common.ts';
|
|
2
|
+
export declare const allProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 选中项绑定值
|
|
5
|
+
*/
|
|
6
|
+
modelValue: (ArrayConstructor | NumberConstructor)[];
|
|
7
|
+
/**
|
|
8
|
+
* 最小值
|
|
9
|
+
*/
|
|
10
|
+
min: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 最大值
|
|
16
|
+
*/
|
|
17
|
+
max: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* 步长,可以是数字或 'mark',用于将值限制为刻度。当设置为 'mark' 时,必须设置 marks 属性
|
|
23
|
+
* @since 2.13.6
|
|
24
|
+
*/
|
|
25
|
+
step: (StringConstructor | NumberConstructor)[];
|
|
26
|
+
/**
|
|
27
|
+
* 是否显示输入框,仅在 range 为 false 且 step 不为 'mark' 时生效
|
|
28
|
+
*/
|
|
29
|
+
showInput: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 在显示输入框的情况下,是否显示输入框的控制按钮
|
|
35
|
+
*/
|
|
36
|
+
showInputControls: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* slider 包装器的大小,垂直模式下该属性不可用
|
|
42
|
+
* @values large, default, small
|
|
43
|
+
*/
|
|
44
|
+
size: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* 输入框的大小,如果设置了 size 属性,默认值自动取 size
|
|
50
|
+
* @values large, default, small
|
|
51
|
+
*/
|
|
52
|
+
inputSize: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* 是否显示间断点
|
|
58
|
+
*/
|
|
59
|
+
showStops: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* 是否显示提示信息
|
|
65
|
+
*/
|
|
66
|
+
showTooltip: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* 格式化提示信息
|
|
72
|
+
*/
|
|
73
|
+
formatTooltip: FunctionConstructor;
|
|
74
|
+
/**
|
|
75
|
+
* 是否开启选择范围
|
|
76
|
+
*/
|
|
77
|
+
range: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* 垂直模式
|
|
83
|
+
*/
|
|
84
|
+
vertical: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* 滑块高度,垂直模式必填
|
|
90
|
+
*/
|
|
91
|
+
height: StringConstructor;
|
|
92
|
+
/**
|
|
93
|
+
* 原生 aria-label 属性
|
|
94
|
+
* @since 2.7.2
|
|
95
|
+
*/
|
|
96
|
+
ariaLabel: StringConstructor;
|
|
97
|
+
/**
|
|
98
|
+
* 当 range 为 true 时,屏幕阅读器标签开始的标记
|
|
99
|
+
*/
|
|
100
|
+
rangeStartLabel: StringConstructor;
|
|
101
|
+
/**
|
|
102
|
+
* 当 range 为 true 时,屏幕阅读器标签结尾的标记
|
|
103
|
+
*/
|
|
104
|
+
rangeEndLabel: StringConstructor;
|
|
105
|
+
/**
|
|
106
|
+
* 显示屏幕阅读器的 aria-valuenow 属性的格式
|
|
107
|
+
*/
|
|
108
|
+
formatValueText: FunctionConstructor;
|
|
109
|
+
/**
|
|
110
|
+
* tooltip 的自定义类名
|
|
111
|
+
*/
|
|
112
|
+
tooltipClass: StringConstructor;
|
|
113
|
+
/**
|
|
114
|
+
* Tooltip 出现的位置
|
|
115
|
+
* @values top, top-start, top-end, bottom, bottom-start, bottom-end, left, left-start, left-end, right, right-start, right-end
|
|
116
|
+
*/
|
|
117
|
+
placement: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* 标记,key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标记可以单独设置样式
|
|
123
|
+
*/
|
|
124
|
+
marks: ObjectConstructor;
|
|
125
|
+
/**
|
|
126
|
+
* 输入时是否触发表单的校验
|
|
127
|
+
*/
|
|
128
|
+
validateEvent: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* 当 slider 的 tooltip 处于非活动状态且 persistent 为 false 时,tooltip 将被销毁。当 showTooltip 为 false 时,persistent 将始终为 false
|
|
134
|
+
* @since 2.9.5
|
|
135
|
+
*/
|
|
136
|
+
persistent: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
wrapFormItem: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
disabled: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: undefined;
|
|
147
|
+
};
|
|
148
|
+
col: BooleanConstructor;
|
|
149
|
+
span: {
|
|
150
|
+
type: NumberConstructor;
|
|
151
|
+
default: number;
|
|
152
|
+
};
|
|
153
|
+
offset: {
|
|
154
|
+
type: NumberConstructor;
|
|
155
|
+
default: number;
|
|
156
|
+
};
|
|
157
|
+
push: {
|
|
158
|
+
type: NumberConstructor;
|
|
159
|
+
default: number;
|
|
160
|
+
};
|
|
161
|
+
pull: {
|
|
162
|
+
type: NumberConstructor;
|
|
163
|
+
default: number;
|
|
164
|
+
};
|
|
165
|
+
xs: {
|
|
166
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
167
|
+
};
|
|
168
|
+
sm: {
|
|
169
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
170
|
+
};
|
|
171
|
+
md: {
|
|
172
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
173
|
+
};
|
|
174
|
+
lg: {
|
|
175
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
176
|
+
};
|
|
177
|
+
xl: {
|
|
178
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
179
|
+
};
|
|
180
|
+
tag: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
default: string;
|
|
183
|
+
};
|
|
184
|
+
prop: (StringConstructor | ArrayConstructor)[];
|
|
185
|
+
label: StringConstructor;
|
|
186
|
+
labelPosition: {
|
|
187
|
+
type: StringConstructor;
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
|
+
labelWidth: (StringConstructor | NumberConstructor)[];
|
|
191
|
+
required: {
|
|
192
|
+
type: BooleanConstructor;
|
|
193
|
+
default: boolean;
|
|
194
|
+
};
|
|
195
|
+
rules: ObjectConstructor;
|
|
196
|
+
error: StringConstructor;
|
|
197
|
+
showMessage: {
|
|
198
|
+
type: BooleanConstructor;
|
|
199
|
+
default: boolean;
|
|
200
|
+
};
|
|
201
|
+
inlineMessage: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
for: StringConstructor;
|
|
206
|
+
validateStatus: StringConstructor;
|
|
207
|
+
messagePrefix: StringConstructor;
|
|
208
|
+
message: StringConstructor;
|
|
209
|
+
wrapCol: {
|
|
210
|
+
type: BooleanConstructor;
|
|
211
|
+
default: boolean;
|
|
212
|
+
};
|
|
213
|
+
fixedSpan: NumberConstructor;
|
|
214
|
+
block: {
|
|
215
|
+
type: BooleanConstructor;
|
|
216
|
+
default: undefined;
|
|
217
|
+
};
|
|
218
|
+
unwrap: BooleanConstructor;
|
|
219
|
+
half: BooleanConstructor;
|
|
220
|
+
formItemClass: StringConstructor;
|
|
221
|
+
hideLabel: BooleanConstructor;
|
|
222
|
+
tips: {
|
|
223
|
+
type: StringConstructor;
|
|
224
|
+
};
|
|
225
|
+
tipsAfterLabel: {
|
|
226
|
+
type: BooleanConstructor;
|
|
227
|
+
default: boolean;
|
|
228
|
+
};
|
|
229
|
+
labelColspan: (StringConstructor | NumberConstructor)[];
|
|
230
|
+
inputColspan: (StringConstructor | NumberConstructor)[];
|
|
231
|
+
labelRowspan: (StringConstructor | NumberConstructor)[];
|
|
232
|
+
inputRowspan: (StringConstructor | NumberConstructor)[];
|
|
233
|
+
};
|
|
234
|
+
export declare const manualBindProps: Record<string, boolean | undefined>;
|
|
235
|
+
export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//#region src/components/form/props/slide.ts
|
|
6
|
-
var s = {
|
|
7
|
-
...n,
|
|
1
|
+
import { commonManualBindProps as e } from "./common.mjs";
|
|
2
|
+
//#region src/props/slide.ts
|
|
3
|
+
var t = {
|
|
4
|
+
...e,
|
|
8
5
|
modelValue: [Number, Array],
|
|
9
6
|
min: {
|
|
10
7
|
type: Number,
|
|
@@ -67,27 +64,9 @@ var s = {
|
|
|
67
64
|
type: Boolean,
|
|
68
65
|
default: !0
|
|
69
66
|
}
|
|
70
|
-
},
|
|
67
|
+
}, n = {
|
|
71
68
|
modelValue: !0,
|
|
72
69
|
disabled: !0
|
|
73
|
-
},
|
|
74
|
-
name: "FormSlider",
|
|
75
|
-
inheritAttrs: !1,
|
|
76
|
-
props: { ...s },
|
|
77
|
-
emits: { ...e },
|
|
78
|
-
setup(e, { emit: n, slots: s, attrs: c }) {
|
|
79
|
-
let u = a(e, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = t(e, {
|
|
80
|
-
emit: n,
|
|
81
|
-
slots: s,
|
|
82
|
-
predicate: l,
|
|
83
|
-
attrs: c
|
|
84
|
-
});
|
|
85
|
-
return () => d({ vNodes: r(o, i(p.value, m.value, {
|
|
86
|
-
modelValue: u.value,
|
|
87
|
-
"onUpdate:modelValue": (e) => u.value = e,
|
|
88
|
-
disabled: f.value
|
|
89
|
-
}), null) });
|
|
90
|
-
}
|
|
91
|
-
};
|
|
70
|
+
}, r = (t) => e[t] === void 0 && n[t] !== !0;
|
|
92
71
|
//#endregion
|
|
93
|
-
export {
|
|
72
|
+
export { t as allProps, n as manualBindProps, r as predicate };
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { commonManualBindProps } from './common.ts';
|
|
2
|
+
export declare const allProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 绑定值,必须等于 activeValue 或 inactiveValue,默认为 Boolean 类型
|
|
5
|
+
*/
|
|
6
|
+
modelValue: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
7
|
+
/**
|
|
8
|
+
* 是否显示加载中
|
|
9
|
+
*/
|
|
10
|
+
loading: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* switch 的大小
|
|
16
|
+
* @values large, default, small
|
|
17
|
+
*/
|
|
18
|
+
size: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* switch 的宽度
|
|
24
|
+
*/
|
|
25
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
26
|
+
/**
|
|
27
|
+
* 无论图标或文本是否显示在点内,只会呈现文本的第一个字符
|
|
28
|
+
*/
|
|
29
|
+
inlinePrompt: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* switch 状态为 on 时所显示图标,设置此项会忽略 activeText
|
|
35
|
+
*/
|
|
36
|
+
activeIcon: (StringConstructor | ObjectConstructor)[];
|
|
37
|
+
/**
|
|
38
|
+
* switch 状态为 off 时所显示图标,设置此项会忽略 inactiveText
|
|
39
|
+
*/
|
|
40
|
+
inactiveIcon: (StringConstructor | ObjectConstructor)[];
|
|
41
|
+
/**
|
|
42
|
+
* on 状态下显示的图标组件
|
|
43
|
+
* @since 2.3.9
|
|
44
|
+
*/
|
|
45
|
+
activeActionIcon: (StringConstructor | ObjectConstructor)[];
|
|
46
|
+
/**
|
|
47
|
+
* off 状态下显示的图标组件
|
|
48
|
+
* @since 2.3.9
|
|
49
|
+
*/
|
|
50
|
+
inactiveActionIcon: (StringConstructor | ObjectConstructor)[];
|
|
51
|
+
/**
|
|
52
|
+
* switch 打开时的文字描述
|
|
53
|
+
*/
|
|
54
|
+
activeText: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* switch 的状态为 off 时的文字描述
|
|
60
|
+
*/
|
|
61
|
+
inactiveText: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* switch 状态为 on 时的值
|
|
67
|
+
*/
|
|
68
|
+
activeValue: {
|
|
69
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* switch 的状态为 off 时的值
|
|
74
|
+
*/
|
|
75
|
+
inactiveValue: {
|
|
76
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* switch 对应的 name 属性
|
|
81
|
+
*/
|
|
82
|
+
name: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* 是否触发表单验证
|
|
88
|
+
*/
|
|
89
|
+
validateEvent: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* switch 状态改变前的钩子,返回 false 或者返回 Promise 且被 reject 则停止切换
|
|
95
|
+
*/
|
|
96
|
+
beforeChange: FunctionConstructor;
|
|
97
|
+
/**
|
|
98
|
+
* input 的 id
|
|
99
|
+
*/
|
|
100
|
+
id: StringConstructor;
|
|
101
|
+
/**
|
|
102
|
+
* input 的 tabindex
|
|
103
|
+
*/
|
|
104
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
105
|
+
/**
|
|
106
|
+
* 等价于原生 input aria-label 属性
|
|
107
|
+
* @since 2.7.2
|
|
108
|
+
*/
|
|
109
|
+
ariaLabel: StringConstructor;
|
|
110
|
+
/**
|
|
111
|
+
* 当在 on 状态时的背景颜色(推荐使用 CSS var --el-switch-on-color)
|
|
112
|
+
* @deprecated
|
|
113
|
+
*/
|
|
114
|
+
activeColor: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* off 状态时的背景颜色(推荐使用 CSS var --el-switch-off-color)
|
|
120
|
+
* @deprecated
|
|
121
|
+
*/
|
|
122
|
+
inactiveColor: {
|
|
123
|
+
type: StringConstructor;
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* 开关的边框颜色(推荐使用 CSS var --el-switch-border-color)
|
|
128
|
+
* @deprecated
|
|
129
|
+
*/
|
|
130
|
+
borderColor: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
wrapFormItem: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
disabled: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: undefined;
|
|
141
|
+
};
|
|
142
|
+
col: BooleanConstructor;
|
|
143
|
+
span: {
|
|
144
|
+
type: NumberConstructor;
|
|
145
|
+
default: number;
|
|
146
|
+
};
|
|
147
|
+
offset: {
|
|
148
|
+
type: NumberConstructor;
|
|
149
|
+
default: number;
|
|
150
|
+
};
|
|
151
|
+
push: {
|
|
152
|
+
type: NumberConstructor;
|
|
153
|
+
default: number;
|
|
154
|
+
};
|
|
155
|
+
pull: {
|
|
156
|
+
type: NumberConstructor;
|
|
157
|
+
default: number;
|
|
158
|
+
};
|
|
159
|
+
xs: {
|
|
160
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
161
|
+
};
|
|
162
|
+
sm: {
|
|
163
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
164
|
+
};
|
|
165
|
+
md: {
|
|
166
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
167
|
+
};
|
|
168
|
+
lg: {
|
|
169
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
170
|
+
};
|
|
171
|
+
xl: {
|
|
172
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
173
|
+
};
|
|
174
|
+
tag: {
|
|
175
|
+
type: StringConstructor;
|
|
176
|
+
default: string;
|
|
177
|
+
};
|
|
178
|
+
prop: (StringConstructor | ArrayConstructor)[];
|
|
179
|
+
label: StringConstructor;
|
|
180
|
+
labelPosition: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
default: string;
|
|
183
|
+
};
|
|
184
|
+
labelWidth: (StringConstructor | NumberConstructor)[];
|
|
185
|
+
required: {
|
|
186
|
+
type: BooleanConstructor;
|
|
187
|
+
default: boolean;
|
|
188
|
+
};
|
|
189
|
+
rules: ObjectConstructor;
|
|
190
|
+
error: StringConstructor;
|
|
191
|
+
showMessage: {
|
|
192
|
+
type: BooleanConstructor;
|
|
193
|
+
default: boolean;
|
|
194
|
+
};
|
|
195
|
+
inlineMessage: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
default: boolean;
|
|
198
|
+
};
|
|
199
|
+
for: StringConstructor;
|
|
200
|
+
validateStatus: StringConstructor;
|
|
201
|
+
messagePrefix: StringConstructor;
|
|
202
|
+
message: StringConstructor;
|
|
203
|
+
wrapCol: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
default: boolean;
|
|
206
|
+
};
|
|
207
|
+
fixedSpan: NumberConstructor;
|
|
208
|
+
block: {
|
|
209
|
+
type: BooleanConstructor;
|
|
210
|
+
default: undefined;
|
|
211
|
+
};
|
|
212
|
+
unwrap: BooleanConstructor;
|
|
213
|
+
half: BooleanConstructor;
|
|
214
|
+
formItemClass: StringConstructor;
|
|
215
|
+
hideLabel: BooleanConstructor;
|
|
216
|
+
tips: {
|
|
217
|
+
type: StringConstructor;
|
|
218
|
+
};
|
|
219
|
+
tipsAfterLabel: {
|
|
220
|
+
type: BooleanConstructor;
|
|
221
|
+
default: boolean;
|
|
222
|
+
};
|
|
223
|
+
labelColspan: (StringConstructor | NumberConstructor)[];
|
|
224
|
+
inputColspan: (StringConstructor | NumberConstructor)[];
|
|
225
|
+
labelRowspan: (StringConstructor | NumberConstructor)[];
|
|
226
|
+
inputRowspan: (StringConstructor | NumberConstructor)[];
|
|
227
|
+
};
|
|
228
|
+
export declare const manualBindProps: Record<string, boolean | undefined>;
|
|
229
|
+
export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//#region src/components/form/props/switch.ts
|
|
6
|
-
var s = {
|
|
7
|
-
...n,
|
|
1
|
+
import { commonManualBindProps as e } from "./common.mjs";
|
|
2
|
+
//#region src/props/switch.ts
|
|
3
|
+
var t = {
|
|
4
|
+
...e,
|
|
8
5
|
modelValue: [
|
|
9
6
|
Boolean,
|
|
10
7
|
String,
|
|
@@ -75,32 +72,9 @@ var s = {
|
|
|
75
72
|
type: String,
|
|
76
73
|
default: ""
|
|
77
74
|
}
|
|
78
|
-
},
|
|
75
|
+
}, n = {
|
|
79
76
|
disabled: !0,
|
|
80
77
|
modelValue: !0
|
|
81
|
-
},
|
|
82
|
-
name: "FormSwitch",
|
|
83
|
-
inheritAttrs: !1,
|
|
84
|
-
props: { ...s },
|
|
85
|
-
emits: { ...e },
|
|
86
|
-
setup(e, { emit: n, slots: s, attrs: c }) {
|
|
87
|
-
let u = a(e, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = t(e, {
|
|
88
|
-
emit: n,
|
|
89
|
-
attrs: c,
|
|
90
|
-
slots: s,
|
|
91
|
-
predicate: l
|
|
92
|
-
});
|
|
93
|
-
return () => d({ vNodes: r(o, i(p.value, m.value, {
|
|
94
|
-
modelValue: u.value,
|
|
95
|
-
"onUpdate:modelValue": (e) => u.value = e,
|
|
96
|
-
disabled: f.value
|
|
97
|
-
}), {
|
|
98
|
-
"active-action": s["active-action"],
|
|
99
|
-
"inactive-action": s["inactive-action"],
|
|
100
|
-
active: s.active,
|
|
101
|
-
inactive: s.inactive
|
|
102
|
-
}) });
|
|
103
|
-
}
|
|
104
|
-
};
|
|
78
|
+
}, r = (t) => e[t] === void 0 && n[t] !== !0;
|
|
105
79
|
//#endregion
|
|
106
|
-
export {
|
|
80
|
+
export { t as allProps, n as manualBindProps, r as predicate };
|
package/props/text.d.ts
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { commonManualBindProps } from './common.ts';
|
|
2
|
+
export declare const allProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 类型
|
|
5
|
+
* @values primary, success, warning, danger, info
|
|
6
|
+
*/
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
/**
|
|
9
|
+
* 大小
|
|
10
|
+
* @values large, default, small
|
|
11
|
+
*/
|
|
12
|
+
size: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 显示省略号
|
|
18
|
+
*/
|
|
19
|
+
truncated: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 最大行数
|
|
25
|
+
* @since 2.4.0
|
|
26
|
+
*/
|
|
27
|
+
lineClamp: (StringConstructor | NumberConstructor)[];
|
|
28
|
+
/**
|
|
29
|
+
* 自定义元素标签
|
|
30
|
+
*/
|
|
31
|
+
tag: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
text: StringConstructor;
|
|
36
|
+
wrapFormItem: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
disabled: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
col: BooleanConstructor;
|
|
45
|
+
span: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
default: number;
|
|
48
|
+
};
|
|
49
|
+
offset: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
push: {
|
|
54
|
+
type: NumberConstructor;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
pull: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
xs: {
|
|
62
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
63
|
+
};
|
|
64
|
+
sm: {
|
|
65
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
66
|
+
};
|
|
67
|
+
md: {
|
|
68
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
69
|
+
};
|
|
70
|
+
lg: {
|
|
71
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
72
|
+
};
|
|
73
|
+
xl: {
|
|
74
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
75
|
+
};
|
|
76
|
+
prop: (StringConstructor | ArrayConstructor)[];
|
|
77
|
+
label: StringConstructor;
|
|
78
|
+
labelPosition: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
labelWidth: (StringConstructor | NumberConstructor)[];
|
|
83
|
+
required: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
rules: ObjectConstructor;
|
|
88
|
+
error: StringConstructor;
|
|
89
|
+
showMessage: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
inlineMessage: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
for: StringConstructor;
|
|
98
|
+
validateStatus: StringConstructor;
|
|
99
|
+
messagePrefix: StringConstructor;
|
|
100
|
+
message: StringConstructor;
|
|
101
|
+
wrapCol: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
fixedSpan: NumberConstructor;
|
|
106
|
+
block: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
unwrap: BooleanConstructor;
|
|
111
|
+
half: BooleanConstructor;
|
|
112
|
+
formItemClass: StringConstructor;
|
|
113
|
+
hideLabel: BooleanConstructor;
|
|
114
|
+
tips: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
};
|
|
117
|
+
tipsAfterLabel: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
labelColspan: (StringConstructor | NumberConstructor)[];
|
|
122
|
+
inputColspan: (StringConstructor | NumberConstructor)[];
|
|
123
|
+
labelRowspan: (StringConstructor | NumberConstructor)[];
|
|
124
|
+
inputRowspan: (StringConstructor | NumberConstructor)[];
|
|
125
|
+
};
|
|
126
|
+
export declare const manualBindProps: Record<string, boolean | undefined>;
|
|
127
|
+
export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
|
package/props/text.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { commonManualBindProps as e } from "./common.mjs";
|
|
2
|
+
//#region src/props/text.ts
|
|
3
|
+
var t = {
|
|
4
|
+
...e,
|
|
5
|
+
type: String,
|
|
6
|
+
size: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "default"
|
|
9
|
+
},
|
|
10
|
+
truncated: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
},
|
|
14
|
+
lineClamp: [String, Number],
|
|
15
|
+
tag: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "span"
|
|
18
|
+
},
|
|
19
|
+
text: String
|
|
20
|
+
}, n = { modelValue: !0 }, r = (t) => e[t] === void 0 && n[t] !== !0;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { t as allProps, n as manualBindProps, r as predicate };
|