x-next 0.0.0-alpha.60 → 0.0.0-alpha.61
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/README.md +39 -47
- package/dist/components/form-input-number/InputNumber.d.ts +351 -0
- package/dist/components/form-input-number/index.d.ts +278 -0
- package/dist/components/form-input-tag/InputTag.d.ts +363 -0
- package/dist/components/form-input-tag/index.d.ts +321 -0
- package/dist/components/form-input-tag/interface.d.ts +32 -0
- package/dist/components/form-input-tag/style/index.d.ts +0 -0
- package/dist/components/form-input-tag/utils.d.ts +2 -0
- package/dist/components/form-slider/Slider.vue.d.ts +2153 -0
- package/dist/components/form-slider/index.d.ts +4098 -0
- package/dist/components/form-slider/slider-button.vue.d.ts +1397 -0
- package/dist/components/form-slider/slider-dots.vue.d.ts +62 -0
- package/dist/components/form-slider/slider-input.vue.d.ts +334 -0
- package/dist/components/form-slider/slider-marks.vue.d.ts +54 -0
- package/dist/components/form-slider/slider-ticks.vue.d.ts +60 -0
- package/dist/components/form-slider/utils.d.ts +4 -0
- package/dist/components/image/Image.vue.d.ts +1 -1
- package/dist/components/image/ImagePreview.vue.d.ts +1 -1
- package/dist/components/image/ImagePreviewGroup.vue.d.ts +2 -2
- package/dist/components/image/index.d.ts +10 -10
- package/dist/components/index.d.ts +4 -0
- package/dist/components/progress/Progress.vue.d.ts +661 -0
- package/dist/components/progress/circle.vue.d.ts +196 -0
- package/dist/components/progress/index.d.ts +1104 -0
- package/dist/components/progress/line.vue.d.ts +155 -0
- package/dist/components/progress/steps.vue.d.ts +124 -0
- package/dist/components/tag/Tag.vue.d.ts +1 -1
- package/dist/components/tag/index.d.ts +3 -3
- package/dist/icons/default/check.d.ts +50 -0
- package/dist/icons/default/exclamation.d.ts +50 -0
- package/dist/index.es.js +5647 -3539
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +4 -0
- package/package.json +2 -1
- package/volar.d.ts +4 -0
@@ -0,0 +1,321 @@
|
|
1
|
+
export declare const InputTag: {
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
3
|
+
modelValue: {
|
4
|
+
type: import('vue').PropType<(string | number | import('./interface.ts').TagData)[]>;
|
5
|
+
};
|
6
|
+
defaultValue: {
|
7
|
+
type: import('vue').PropType<(string | number | import('./interface.ts').TagData)[]>;
|
8
|
+
default: () => never[];
|
9
|
+
};
|
10
|
+
inputValue: StringConstructor;
|
11
|
+
defaultInputValue: {
|
12
|
+
type: StringConstructor;
|
13
|
+
default: string;
|
14
|
+
};
|
15
|
+
placeholder: StringConstructor;
|
16
|
+
disabled: {
|
17
|
+
type: BooleanConstructor;
|
18
|
+
default: boolean;
|
19
|
+
};
|
20
|
+
error: {
|
21
|
+
type: BooleanConstructor;
|
22
|
+
default: boolean;
|
23
|
+
};
|
24
|
+
readonly: {
|
25
|
+
type: BooleanConstructor;
|
26
|
+
default: boolean;
|
27
|
+
};
|
28
|
+
allowClear: {
|
29
|
+
type: BooleanConstructor;
|
30
|
+
default: boolean;
|
31
|
+
};
|
32
|
+
size: {
|
33
|
+
type: import('vue').PropType<import('../../_utils/constant.ts').Size>;
|
34
|
+
};
|
35
|
+
maxTagCount: {
|
36
|
+
type: NumberConstructor;
|
37
|
+
default: number;
|
38
|
+
};
|
39
|
+
retainInputValue: {
|
40
|
+
type: import('vue').PropType<boolean | {
|
41
|
+
create?: boolean;
|
42
|
+
blur?: boolean;
|
43
|
+
}>;
|
44
|
+
default: boolean;
|
45
|
+
};
|
46
|
+
formatTag: {
|
47
|
+
type: import('vue').PropType<(data: import('./interface.ts').TagData) => string>;
|
48
|
+
};
|
49
|
+
uniqueValue: {
|
50
|
+
type: BooleanConstructor;
|
51
|
+
default: boolean;
|
52
|
+
};
|
53
|
+
fieldNames: {
|
54
|
+
type: import('vue').PropType<import('./interface.ts').InputTagFieldNames>;
|
55
|
+
};
|
56
|
+
tagNowrap: {
|
57
|
+
type: BooleanConstructor;
|
58
|
+
default: boolean;
|
59
|
+
};
|
60
|
+
baseCls: StringConstructor;
|
61
|
+
focused: BooleanConstructor;
|
62
|
+
disabledInput: BooleanConstructor;
|
63
|
+
uninjectFormItemContext: BooleanConstructor;
|
64
|
+
}>> & Readonly<{
|
65
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
66
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
67
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
68
|
+
onChange?: ((value: (string | number | import('./interface.ts').TagData)[], ev: Event) => any) | undefined;
|
69
|
+
"onUpdate:modelValue"?: ((value: (string | number | import('./interface.ts').TagData)[]) => any) | undefined;
|
70
|
+
onPressEnter?: ((inputValue: string, ev: KeyboardEvent) => any) | undefined;
|
71
|
+
"onUpdate:inputValue"?: ((inputValue: string) => any) | undefined;
|
72
|
+
onInputValueChange?: ((inputValue: string, ev: Event) => any) | undefined;
|
73
|
+
onRemove?: ((removed: string | number, ev: Event) => any) | undefined;
|
74
|
+
}>, {
|
75
|
+
inputRef: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
76
|
+
render: () => any;
|
77
|
+
}, {}, {}, {
|
78
|
+
focus(): void;
|
79
|
+
blur(): void;
|
80
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
81
|
+
'update:modelValue': (value: (string | number | import('./interface.ts').TagData)[]) => true;
|
82
|
+
'update:inputValue': (inputValue: string) => true;
|
83
|
+
change: (value: (string | number | import('./interface.ts').TagData)[], ev: Event) => true;
|
84
|
+
inputValueChange: (inputValue: string, ev: Event) => true;
|
85
|
+
pressEnter: (inputValue: string, ev: KeyboardEvent) => true;
|
86
|
+
remove: (removed: string | number, ev: Event) => true;
|
87
|
+
clear: (ev: MouseEvent) => true;
|
88
|
+
focus: (ev: FocusEvent) => true;
|
89
|
+
blur: (ev: FocusEvent) => true;
|
90
|
+
}, import('vue').PublicProps, {
|
91
|
+
disabled: boolean;
|
92
|
+
error: boolean;
|
93
|
+
readonly: boolean;
|
94
|
+
defaultValue: (string | number | import('./interface.ts').TagData)[];
|
95
|
+
allowClear: boolean;
|
96
|
+
focused: boolean;
|
97
|
+
disabledInput: boolean;
|
98
|
+
uninjectFormItemContext: boolean;
|
99
|
+
defaultInputValue: string;
|
100
|
+
maxTagCount: number;
|
101
|
+
retainInputValue: boolean | {
|
102
|
+
create?: boolean;
|
103
|
+
blur?: boolean;
|
104
|
+
};
|
105
|
+
uniqueValue: boolean;
|
106
|
+
tagNowrap: boolean;
|
107
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
108
|
+
P: {};
|
109
|
+
B: {};
|
110
|
+
D: {};
|
111
|
+
C: {};
|
112
|
+
M: {};
|
113
|
+
Defaults: {};
|
114
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
115
|
+
modelValue: {
|
116
|
+
type: import('vue').PropType<(string | number | import('./interface.ts').TagData)[]>;
|
117
|
+
};
|
118
|
+
defaultValue: {
|
119
|
+
type: import('vue').PropType<(string | number | import('./interface.ts').TagData)[]>;
|
120
|
+
default: () => never[];
|
121
|
+
};
|
122
|
+
inputValue: StringConstructor;
|
123
|
+
defaultInputValue: {
|
124
|
+
type: StringConstructor;
|
125
|
+
default: string;
|
126
|
+
};
|
127
|
+
placeholder: StringConstructor;
|
128
|
+
disabled: {
|
129
|
+
type: BooleanConstructor;
|
130
|
+
default: boolean;
|
131
|
+
};
|
132
|
+
error: {
|
133
|
+
type: BooleanConstructor;
|
134
|
+
default: boolean;
|
135
|
+
};
|
136
|
+
readonly: {
|
137
|
+
type: BooleanConstructor;
|
138
|
+
default: boolean;
|
139
|
+
};
|
140
|
+
allowClear: {
|
141
|
+
type: BooleanConstructor;
|
142
|
+
default: boolean;
|
143
|
+
};
|
144
|
+
size: {
|
145
|
+
type: import('vue').PropType<import('../../_utils/constant.ts').Size>;
|
146
|
+
};
|
147
|
+
maxTagCount: {
|
148
|
+
type: NumberConstructor;
|
149
|
+
default: number;
|
150
|
+
};
|
151
|
+
retainInputValue: {
|
152
|
+
type: import('vue').PropType<boolean | {
|
153
|
+
create?: boolean;
|
154
|
+
blur?: boolean;
|
155
|
+
}>;
|
156
|
+
default: boolean;
|
157
|
+
};
|
158
|
+
formatTag: {
|
159
|
+
type: import('vue').PropType<(data: import('./interface.ts').TagData) => string>;
|
160
|
+
};
|
161
|
+
uniqueValue: {
|
162
|
+
type: BooleanConstructor;
|
163
|
+
default: boolean;
|
164
|
+
};
|
165
|
+
fieldNames: {
|
166
|
+
type: import('vue').PropType<import('./interface.ts').InputTagFieldNames>;
|
167
|
+
};
|
168
|
+
tagNowrap: {
|
169
|
+
type: BooleanConstructor;
|
170
|
+
default: boolean;
|
171
|
+
};
|
172
|
+
baseCls: StringConstructor;
|
173
|
+
focused: BooleanConstructor;
|
174
|
+
disabledInput: BooleanConstructor;
|
175
|
+
uninjectFormItemContext: BooleanConstructor;
|
176
|
+
}>> & Readonly<{
|
177
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
178
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
179
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
180
|
+
onChange?: ((value: (string | number | import('./interface.ts').TagData)[], ev: Event) => any) | undefined;
|
181
|
+
"onUpdate:modelValue"?: ((value: (string | number | import('./interface.ts').TagData)[]) => any) | undefined;
|
182
|
+
onPressEnter?: ((inputValue: string, ev: KeyboardEvent) => any) | undefined;
|
183
|
+
"onUpdate:inputValue"?: ((inputValue: string) => any) | undefined;
|
184
|
+
onInputValueChange?: ((inputValue: string, ev: Event) => any) | undefined;
|
185
|
+
onRemove?: ((removed: string | number, ev: Event) => any) | undefined;
|
186
|
+
}>, {
|
187
|
+
inputRef: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
188
|
+
render: () => any;
|
189
|
+
}, {}, {}, {
|
190
|
+
focus(): void;
|
191
|
+
blur(): void;
|
192
|
+
}, {
|
193
|
+
disabled: boolean;
|
194
|
+
error: boolean;
|
195
|
+
readonly: boolean;
|
196
|
+
defaultValue: (string | number | import('./interface.ts').TagData)[];
|
197
|
+
allowClear: boolean;
|
198
|
+
focused: boolean;
|
199
|
+
disabledInput: boolean;
|
200
|
+
uninjectFormItemContext: boolean;
|
201
|
+
defaultInputValue: string;
|
202
|
+
maxTagCount: number;
|
203
|
+
retainInputValue: boolean | {
|
204
|
+
create?: boolean;
|
205
|
+
blur?: boolean;
|
206
|
+
};
|
207
|
+
uniqueValue: boolean;
|
208
|
+
tagNowrap: boolean;
|
209
|
+
}>;
|
210
|
+
__isFragment?: never;
|
211
|
+
__isTeleport?: never;
|
212
|
+
__isSuspense?: never;
|
213
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
214
|
+
modelValue: {
|
215
|
+
type: import('vue').PropType<(string | number | import('./interface.ts').TagData)[]>;
|
216
|
+
};
|
217
|
+
defaultValue: {
|
218
|
+
type: import('vue').PropType<(string | number | import('./interface.ts').TagData)[]>;
|
219
|
+
default: () => never[];
|
220
|
+
};
|
221
|
+
inputValue: StringConstructor;
|
222
|
+
defaultInputValue: {
|
223
|
+
type: StringConstructor;
|
224
|
+
default: string;
|
225
|
+
};
|
226
|
+
placeholder: StringConstructor;
|
227
|
+
disabled: {
|
228
|
+
type: BooleanConstructor;
|
229
|
+
default: boolean;
|
230
|
+
};
|
231
|
+
error: {
|
232
|
+
type: BooleanConstructor;
|
233
|
+
default: boolean;
|
234
|
+
};
|
235
|
+
readonly: {
|
236
|
+
type: BooleanConstructor;
|
237
|
+
default: boolean;
|
238
|
+
};
|
239
|
+
allowClear: {
|
240
|
+
type: BooleanConstructor;
|
241
|
+
default: boolean;
|
242
|
+
};
|
243
|
+
size: {
|
244
|
+
type: import('vue').PropType<import('../../_utils/constant.ts').Size>;
|
245
|
+
};
|
246
|
+
maxTagCount: {
|
247
|
+
type: NumberConstructor;
|
248
|
+
default: number;
|
249
|
+
};
|
250
|
+
retainInputValue: {
|
251
|
+
type: import('vue').PropType<boolean | {
|
252
|
+
create?: boolean;
|
253
|
+
blur?: boolean;
|
254
|
+
}>;
|
255
|
+
default: boolean;
|
256
|
+
};
|
257
|
+
formatTag: {
|
258
|
+
type: import('vue').PropType<(data: import('./interface.ts').TagData) => string>;
|
259
|
+
};
|
260
|
+
uniqueValue: {
|
261
|
+
type: BooleanConstructor;
|
262
|
+
default: boolean;
|
263
|
+
};
|
264
|
+
fieldNames: {
|
265
|
+
type: import('vue').PropType<import('./interface.ts').InputTagFieldNames>;
|
266
|
+
};
|
267
|
+
tagNowrap: {
|
268
|
+
type: BooleanConstructor;
|
269
|
+
default: boolean;
|
270
|
+
};
|
271
|
+
baseCls: StringConstructor;
|
272
|
+
focused: BooleanConstructor;
|
273
|
+
disabledInput: BooleanConstructor;
|
274
|
+
uninjectFormItemContext: BooleanConstructor;
|
275
|
+
}>> & Readonly<{
|
276
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
277
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
278
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
279
|
+
onChange?: ((value: (string | number | import('./interface.ts').TagData)[], ev: Event) => any) | undefined;
|
280
|
+
"onUpdate:modelValue"?: ((value: (string | number | import('./interface.ts').TagData)[]) => any) | undefined;
|
281
|
+
onPressEnter?: ((inputValue: string, ev: KeyboardEvent) => any) | undefined;
|
282
|
+
"onUpdate:inputValue"?: ((inputValue: string) => any) | undefined;
|
283
|
+
onInputValueChange?: ((inputValue: string, ev: Event) => any) | undefined;
|
284
|
+
onRemove?: ((removed: string | number, ev: Event) => any) | undefined;
|
285
|
+
}>, {
|
286
|
+
inputRef: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
287
|
+
render: () => any;
|
288
|
+
}, {}, {}, {
|
289
|
+
focus(): void;
|
290
|
+
blur(): void;
|
291
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
292
|
+
'update:modelValue': (value: (string | number | import('./interface.ts').TagData)[]) => true;
|
293
|
+
'update:inputValue': (inputValue: string) => true;
|
294
|
+
change: (value: (string | number | import('./interface.ts').TagData)[], ev: Event) => true;
|
295
|
+
inputValueChange: (inputValue: string, ev: Event) => true;
|
296
|
+
pressEnter: (inputValue: string, ev: KeyboardEvent) => true;
|
297
|
+
remove: (removed: string | number, ev: Event) => true;
|
298
|
+
clear: (ev: MouseEvent) => true;
|
299
|
+
focus: (ev: FocusEvent) => true;
|
300
|
+
blur: (ev: FocusEvent) => true;
|
301
|
+
}, string, {
|
302
|
+
disabled: boolean;
|
303
|
+
error: boolean;
|
304
|
+
readonly: boolean;
|
305
|
+
defaultValue: (string | number | import('./interface.ts').TagData)[];
|
306
|
+
allowClear: boolean;
|
307
|
+
focused: boolean;
|
308
|
+
disabledInput: boolean;
|
309
|
+
uninjectFormItemContext: boolean;
|
310
|
+
defaultInputValue: string;
|
311
|
+
maxTagCount: number;
|
312
|
+
retainInputValue: boolean | {
|
313
|
+
create?: boolean;
|
314
|
+
blur?: boolean;
|
315
|
+
};
|
316
|
+
uniqueValue: boolean;
|
317
|
+
tagNowrap: boolean;
|
318
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
319
|
+
install(app: import('vue').App): void;
|
320
|
+
};
|
321
|
+
export { InputTag as default };
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { TagProps } from '../tag/interface';
|
2
|
+
import { FieldString } from '../../_hooks/_types';
|
3
|
+
export interface TagData {
|
4
|
+
/**
|
5
|
+
* @zh 标签值
|
6
|
+
* @en Tag value
|
7
|
+
*/
|
8
|
+
value?: string | number;
|
9
|
+
/**
|
10
|
+
* @zh 标签内容
|
11
|
+
* @en Tag content
|
12
|
+
*/
|
13
|
+
label?: string;
|
14
|
+
/**
|
15
|
+
* @zh 是否可关闭
|
16
|
+
* @en Whether to close
|
17
|
+
*/
|
18
|
+
closable?: boolean;
|
19
|
+
/**
|
20
|
+
* @zh 标签属性
|
21
|
+
* @en Tag props
|
22
|
+
*/
|
23
|
+
tagProps?: TagProps;
|
24
|
+
[other: string]: any;
|
25
|
+
}
|
26
|
+
export type InputTagFieldNames = FieldString<TagData>;
|
27
|
+
export interface TagDataInfo extends TagData {
|
28
|
+
raw: Record<string, unknown>;
|
29
|
+
value: string | number;
|
30
|
+
label: string;
|
31
|
+
closable: boolean;
|
32
|
+
}
|
File without changes
|