vft 0.0.443 → 0.0.445
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/attributes.json +1 -1
- package/dist/index.css +2 -2
- package/es/components/affix/affix.d.ts +1 -1
- package/es/components/affix/affix.vue.d.ts +3 -3
- package/es/components/affix/index.d.ts +6 -6
- package/es/components/autocomplete/autocomplete.vue.d.ts +22 -22
- package/es/components/autocomplete/index.d.ts +64 -64
- package/es/components/avatar/index.d.ts +3 -3
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +33 -33
- package/es/components/button/use-button.d.ts +1 -1
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/cascader/cascader.d.ts +2 -2
- package/es/components/cascader/cascader.vue.d.ts +9 -9
- package/es/components/checkbox/index.d.ts +54 -54
- package/es/components/col/col.vue.d.ts +1 -1
- package/es/components/col/index.d.ts +9 -9
- package/es/components/collapse/collapse-item.vue.d.ts +1 -1
- package/es/components/color-picker/index.d.ts +12 -12
- package/es/components/config-provider/config-provider.vue.d.ts +1 -1
- package/es/components/config-provider/config-provider.vue2.js +8 -9
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/date-picker/date-picker.d.ts +6 -6
- package/es/components/date-picker/index.d.ts +12 -12
- package/es/components/date-picker/props/date-picker.d.ts +2 -2
- package/es/components/divider/index.d.ts +3 -3
- package/es/components/dropdown/dropdown.vue.d.ts +2 -2
- package/es/components/dropdown/index.d.ts +39 -39
- package/es/components/form/index.d.ts +27 -27
- package/es/components/input/index.d.ts +13 -13
- package/es/components/input/input.vue.d.ts +4 -4
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-number/index.d.ts +4 -4
- package/es/components/input-number/input-number.vue.d.ts +2 -2
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/input-tag/input-tag.d.ts +1 -1
- package/es/components/input-tag/input-tag.vue.d.ts +9 -9
- package/es/components/md-container/md-container.vue2.js +15 -15
- package/es/components/message/message.vue.d.ts +1 -18
- package/es/components/message/message.vue2.js +62 -54
- package/es/components/message/types.d.ts +23 -7
- package/es/components/modal/index.d.ts +15 -15
- package/es/components/modal/modal.vue.d.ts +1 -1
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popper/composables/use-content.d.ts +3 -3
- package/es/components/radio/index.d.ts +60 -60
- package/es/components/radio/radio.d.ts +1 -1
- package/es/components/radio/radio.vue.d.ts +5 -5
- package/es/components/search/index.d.ts +9 -9
- package/es/components/search/search.vue.d.ts +2 -2
- package/es/components/segmented/index.d.ts +6 -6
- package/es/components/segmented/segmented.d.ts +1 -1
- package/es/components/segmented/segmented.vue.d.ts +3 -3
- package/es/components/select/index.d.ts +45 -45
- package/es/components/select/select.vue.d.ts +45 -45
- package/es/components/select/useSelect.d.ts +36 -36
- package/es/components/slider/index.d.ts +2 -2
- package/es/components/slider/slider.vue.d.ts +2 -2
- package/es/components/space/index.d.ts +3 -3
- package/es/components/space/space.d.ts +4 -4
- package/es/components/steps/index.d.ts +3 -3
- package/es/components/super-form/index.d.ts +3 -3
- package/es/components/super-form/super-form-item.vue2.js +1 -1
- package/es/components/switch/index.d.ts +21 -21
- package/es/components/switch/switch.vue.d.ts +3 -3
- package/es/components/tabs/index.d.ts +4 -4
- package/es/components/tabs/tabs.vue.d.ts +2 -2
- package/es/components/time-picker/common/picker-range-trigger.vue.d.ts +2 -2
- package/es/components/time-picker/common/picker.vue.d.ts +8 -8
- package/es/components/time-picker/common/props.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +12 -12
- package/es/components/time-picker/time-picker.d.ts +6 -6
- package/es/components/time-select/time-select.vue.d.ts +1 -1
- package/es/components/timeline/index.d.ts +6 -6
- package/es/components/tooltip/index.d.ts +5 -5
- package/es/components/tooltip/tooltip.vue.d.ts +2 -2
- package/es/components/tree/tree-node.vue.d.ts +39 -39
- package/es/components/upload/index.d.ts +18 -18
- package/es/components/verify-code/useImageVerify.js +1 -1
- package/es/components/verify-code/verify-code.vue2.js +16 -16
- package/es/hooks/use-popper/index.d.ts +3 -3
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/affix/affix.d.ts +1 -1
- package/lib/components/affix/affix.vue.d.ts +3 -3
- package/lib/components/affix/index.d.ts +6 -6
- package/lib/components/autocomplete/autocomplete.vue.d.ts +22 -22
- package/lib/components/autocomplete/index.d.ts +64 -64
- package/lib/components/avatar/index.d.ts +3 -3
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +33 -33
- package/lib/components/button/use-button.d.ts +1 -1
- package/lib/components/cascader/cascader.d.ts +2 -2
- package/lib/components/cascader/cascader.vue.d.ts +9 -9
- package/lib/components/checkbox/index.d.ts +54 -54
- package/lib/components/col/col.vue.d.ts +1 -1
- package/lib/components/col/index.d.ts +9 -9
- package/lib/components/collapse/collapse-item.vue.d.ts +1 -1
- package/lib/components/color-picker/index.d.ts +12 -12
- package/lib/components/config-provider/config-provider.vue.d.ts +1 -1
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker.d.ts +6 -6
- package/lib/components/date-picker/index.d.ts +12 -12
- package/lib/components/date-picker/props/date-picker.d.ts +2 -2
- package/lib/components/divider/index.d.ts +3 -3
- package/lib/components/dropdown/dropdown.vue.d.ts +2 -2
- package/lib/components/dropdown/index.d.ts +39 -39
- package/lib/components/form/index.d.ts +27 -27
- package/lib/components/input/index.d.ts +13 -13
- package/lib/components/input/input.vue.d.ts +4 -4
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/index.d.ts +4 -4
- package/lib/components/input-number/input-number.vue.d.ts +2 -2
- package/lib/components/input-tag/input-tag.d.ts +1 -1
- package/lib/components/input-tag/input-tag.vue.d.ts +9 -9
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/message/message.vue.d.ts +1 -18
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/message/types.d.ts +23 -7
- package/lib/components/modal/index.d.ts +15 -15
- package/lib/components/modal/modal.vue.d.ts +1 -1
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popper/composables/use-content.d.ts +3 -3
- package/lib/components/radio/index.d.ts +60 -60
- package/lib/components/radio/radio.d.ts +1 -1
- package/lib/components/radio/radio.vue.d.ts +5 -5
- package/lib/components/search/index.d.ts +9 -9
- package/lib/components/search/search.vue.d.ts +2 -2
- package/lib/components/segmented/index.d.ts +6 -6
- package/lib/components/segmented/segmented.d.ts +1 -1
- package/lib/components/segmented/segmented.vue.d.ts +3 -3
- package/lib/components/select/index.d.ts +45 -45
- package/lib/components/select/select.vue.d.ts +45 -45
- package/lib/components/select/useSelect.d.ts +36 -36
- package/lib/components/slider/index.d.ts +2 -2
- package/lib/components/slider/slider.vue.d.ts +2 -2
- package/lib/components/space/index.d.ts +3 -3
- package/lib/components/space/space.d.ts +4 -4
- package/lib/components/steps/index.d.ts +3 -3
- package/lib/components/super-form/index.d.ts +3 -3
- package/lib/components/switch/index.d.ts +21 -21
- package/lib/components/switch/switch.vue.d.ts +3 -3
- package/lib/components/tabs/index.d.ts +4 -4
- package/lib/components/tabs/tabs.vue.d.ts +2 -2
- package/lib/components/time-picker/common/picker-range-trigger.vue.d.ts +2 -2
- package/lib/components/time-picker/common/picker.vue.d.ts +8 -8
- package/lib/components/time-picker/common/props.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +12 -12
- package/lib/components/time-picker/time-picker.d.ts +6 -6
- package/lib/components/time-select/time-select.vue.d.ts +1 -1
- package/lib/components/timeline/index.d.ts +6 -6
- package/lib/components/tooltip/index.d.ts +5 -5
- package/lib/components/tooltip/tooltip.vue.d.ts +2 -2
- package/lib/components/tree/tree-node.vue.d.ts +39 -39
- package/lib/components/upload/index.d.ts +18 -18
- package/lib/components/verify-code/useImageVerify.cjs +1 -1
- package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
- package/lib/hooks/use-popper/index.d.ts +3 -3
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +4 -4
- package/tags.json +1 -1
- package/theme-style/base.css +1 -1
- package/theme-style/dark/css-vars.css +1 -1
- package/theme-style/index.css +2 -2
- package/theme-style/src/common/var.scss +7 -7
- package/theme-style/src/dark/css-vars.scss +7 -1
- package/theme-style/src/icon.scss +1 -0
- package/theme-style/src/md-container.scss +1 -1
- package/theme-style/src/message.scss +8 -14
- package/theme-style/src/mixins/_var.scss +9 -0
- package/theme-style/src/var.scss +2 -1
- package/theme-style/vft-date-picker.css +1 -1
- package/theme-style/vft-icon.css +1 -1
- package/theme-style/vft-input.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-message.css +1 -1
- package/theme-style/vft-time-picker.css +1 -1
- package/theme-style/vft-time-select.css +1 -1
- package/theme-style/vft-var.css +1 -1
- package/web-types.json +1 -1
|
@@ -99,18 +99,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
99
99
|
})>;
|
|
100
100
|
TreeCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
101
101
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
102
|
-
|
|
103
|
-
type: import("vue").PropType<
|
|
102
|
+
value: {
|
|
103
|
+
type: import("vue").PropType<string | number | boolean | object>;
|
|
104
104
|
};
|
|
105
105
|
label: {
|
|
106
106
|
type: import("vue").PropType<string | number>;
|
|
107
107
|
};
|
|
108
|
-
disabled: {
|
|
109
|
-
type: import("vue").PropType<boolean>;
|
|
110
|
-
};
|
|
111
|
-
value: {
|
|
112
|
-
type: import("vue").PropType<string | number | boolean | object>;
|
|
113
|
-
};
|
|
114
108
|
border: {
|
|
115
109
|
type: import("vue").PropType<boolean>;
|
|
116
110
|
};
|
|
@@ -120,6 +114,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
120
114
|
id: {
|
|
121
115
|
type: import("vue").PropType<string>;
|
|
122
116
|
};
|
|
117
|
+
size: {
|
|
118
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
119
|
+
};
|
|
120
|
+
disabled: {
|
|
121
|
+
type: import("vue").PropType<boolean>;
|
|
122
|
+
};
|
|
123
123
|
modelValue: {
|
|
124
124
|
type: import("vue").PropType<string | number | boolean>;
|
|
125
125
|
};
|
|
@@ -161,18 +161,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
161
161
|
M: {};
|
|
162
162
|
Defaults: {};
|
|
163
163
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
164
|
-
|
|
165
|
-
type: import("vue").PropType<
|
|
164
|
+
value: {
|
|
165
|
+
type: import("vue").PropType<string | number | boolean | object>;
|
|
166
166
|
};
|
|
167
167
|
label: {
|
|
168
168
|
type: import("vue").PropType<string | number>;
|
|
169
169
|
};
|
|
170
|
-
disabled: {
|
|
171
|
-
type: import("vue").PropType<boolean>;
|
|
172
|
-
};
|
|
173
|
-
value: {
|
|
174
|
-
type: import("vue").PropType<string | number | boolean | object>;
|
|
175
|
-
};
|
|
176
170
|
border: {
|
|
177
171
|
type: import("vue").PropType<boolean>;
|
|
178
172
|
};
|
|
@@ -182,6 +176,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
182
176
|
id: {
|
|
183
177
|
type: import("vue").PropType<string>;
|
|
184
178
|
};
|
|
179
|
+
size: {
|
|
180
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
181
|
+
};
|
|
182
|
+
disabled: {
|
|
183
|
+
type: import("vue").PropType<boolean>;
|
|
184
|
+
};
|
|
185
185
|
modelValue: {
|
|
186
186
|
type: import("vue").PropType<string | number | boolean>;
|
|
187
187
|
};
|
|
@@ -217,18 +217,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
217
217
|
__isTeleport?: never;
|
|
218
218
|
__isSuspense?: never;
|
|
219
219
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
220
|
-
|
|
221
|
-
type: import("vue").PropType<
|
|
220
|
+
value: {
|
|
221
|
+
type: import("vue").PropType<string | number | boolean | object>;
|
|
222
222
|
};
|
|
223
223
|
label: {
|
|
224
224
|
type: import("vue").PropType<string | number>;
|
|
225
225
|
};
|
|
226
|
-
disabled: {
|
|
227
|
-
type: import("vue").PropType<boolean>;
|
|
228
|
-
};
|
|
229
|
-
value: {
|
|
230
|
-
type: import("vue").PropType<string | number | boolean | object>;
|
|
231
|
-
};
|
|
232
226
|
border: {
|
|
233
227
|
type: import("vue").PropType<boolean>;
|
|
234
228
|
};
|
|
@@ -238,6 +232,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
238
232
|
id: {
|
|
239
233
|
type: import("vue").PropType<string>;
|
|
240
234
|
};
|
|
235
|
+
size: {
|
|
236
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
237
|
+
};
|
|
238
|
+
disabled: {
|
|
239
|
+
type: import("vue").PropType<boolean>;
|
|
240
|
+
};
|
|
241
241
|
modelValue: {
|
|
242
242
|
type: import("vue").PropType<string | number | boolean>;
|
|
243
243
|
};
|
|
@@ -448,18 +448,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
448
448
|
});
|
|
449
449
|
CheckboxGroup: {
|
|
450
450
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
451
|
-
|
|
452
|
-
type: import("vue").PropType<
|
|
451
|
+
fill: {
|
|
452
|
+
type: import("vue").PropType<string>;
|
|
453
453
|
};
|
|
454
454
|
label: {
|
|
455
455
|
type: import("vue").PropType<string>;
|
|
456
456
|
};
|
|
457
|
+
size: {
|
|
458
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
459
|
+
};
|
|
457
460
|
disabled: {
|
|
458
461
|
type: import("vue").PropType<boolean>;
|
|
459
462
|
};
|
|
460
|
-
fill: {
|
|
461
|
-
type: import("vue").PropType<string>;
|
|
462
|
-
};
|
|
463
463
|
modelValue: {
|
|
464
464
|
type: import("vue").PropType<import("vft/es/components/checkbox").CheckboxGroupValueType>;
|
|
465
465
|
default: () => never[];
|
|
@@ -505,18 +505,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
505
505
|
M: {};
|
|
506
506
|
Defaults: {};
|
|
507
507
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
508
|
-
|
|
509
|
-
type: import("vue").PropType<
|
|
508
|
+
fill: {
|
|
509
|
+
type: import("vue").PropType<string>;
|
|
510
510
|
};
|
|
511
511
|
label: {
|
|
512
512
|
type: import("vue").PropType<string>;
|
|
513
513
|
};
|
|
514
|
+
size: {
|
|
515
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
516
|
+
};
|
|
514
517
|
disabled: {
|
|
515
518
|
type: import("vue").PropType<boolean>;
|
|
516
519
|
};
|
|
517
|
-
fill: {
|
|
518
|
-
type: import("vue").PropType<string>;
|
|
519
|
-
};
|
|
520
520
|
modelValue: {
|
|
521
521
|
type: import("vue").PropType<import("vft/es/components/checkbox").CheckboxGroupValueType>;
|
|
522
522
|
default: () => never[];
|
|
@@ -556,18 +556,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
556
556
|
__isTeleport?: never;
|
|
557
557
|
__isSuspense?: never;
|
|
558
558
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
559
|
-
|
|
560
|
-
type: import("vue").PropType<
|
|
559
|
+
fill: {
|
|
560
|
+
type: import("vue").PropType<string>;
|
|
561
561
|
};
|
|
562
562
|
label: {
|
|
563
563
|
type: import("vue").PropType<string>;
|
|
564
564
|
};
|
|
565
|
+
size: {
|
|
566
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
567
|
+
};
|
|
565
568
|
disabled: {
|
|
566
569
|
type: import("vue").PropType<boolean>;
|
|
567
570
|
};
|
|
568
|
-
fill: {
|
|
569
|
-
type: import("vue").PropType<string>;
|
|
570
|
-
};
|
|
571
571
|
modelValue: {
|
|
572
572
|
type: import("vue").PropType<import("vft/es/components/checkbox").CheckboxGroupValueType>;
|
|
573
573
|
default: () => never[];
|
|
@@ -3,19 +3,16 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
3
3
|
data: {
|
|
4
4
|
type: import("vue").PropType<Record<string, any>>;
|
|
5
5
|
};
|
|
6
|
-
disabled: {
|
|
7
|
-
type: import("vue").PropType<boolean>;
|
|
8
|
-
};
|
|
9
6
|
drag: {
|
|
10
7
|
type: import("vue").PropType<boolean>;
|
|
11
8
|
default: boolean;
|
|
12
9
|
};
|
|
13
|
-
onProgress: {
|
|
14
|
-
type: import("vue").PropType<(evt: import("./types").UploadProgressEvent, uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => void>;
|
|
15
|
-
};
|
|
16
10
|
onChange: {
|
|
17
11
|
type: import("vue").PropType<(uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles, uploadInstance?: any) => void>;
|
|
18
12
|
};
|
|
13
|
+
onProgress: {
|
|
14
|
+
type: import("vue").PropType<(evt: import("./types").UploadProgressEvent, uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => void>;
|
|
15
|
+
};
|
|
19
16
|
onError: {
|
|
20
17
|
type: import("vue").PropType<(error: Error, uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => void>;
|
|
21
18
|
};
|
|
@@ -27,6 +24,9 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
27
24
|
type: import("vue").PropType<string>;
|
|
28
25
|
default: string;
|
|
29
26
|
};
|
|
27
|
+
disabled: {
|
|
28
|
+
type: import("vue").PropType<boolean>;
|
|
29
|
+
};
|
|
30
30
|
method: {
|
|
31
31
|
type: import("vue").PropType<string>;
|
|
32
32
|
default: string;
|
|
@@ -199,19 +199,16 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
199
199
|
data: {
|
|
200
200
|
type: import("vue").PropType<Record<string, any>>;
|
|
201
201
|
};
|
|
202
|
-
disabled: {
|
|
203
|
-
type: import("vue").PropType<boolean>;
|
|
204
|
-
};
|
|
205
202
|
drag: {
|
|
206
203
|
type: import("vue").PropType<boolean>;
|
|
207
204
|
default: boolean;
|
|
208
205
|
};
|
|
209
|
-
onProgress: {
|
|
210
|
-
type: import("vue").PropType<(evt: import("./types").UploadProgressEvent, uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => void>;
|
|
211
|
-
};
|
|
212
206
|
onChange: {
|
|
213
207
|
type: import("vue").PropType<(uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles, uploadInstance?: any) => void>;
|
|
214
208
|
};
|
|
209
|
+
onProgress: {
|
|
210
|
+
type: import("vue").PropType<(evt: import("./types").UploadProgressEvent, uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => void>;
|
|
211
|
+
};
|
|
215
212
|
onError: {
|
|
216
213
|
type: import("vue").PropType<(error: Error, uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => void>;
|
|
217
214
|
};
|
|
@@ -223,6 +220,9 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
223
220
|
type: import("vue").PropType<string>;
|
|
224
221
|
default: string;
|
|
225
222
|
};
|
|
223
|
+
disabled: {
|
|
224
|
+
type: import("vue").PropType<boolean>;
|
|
225
|
+
};
|
|
226
226
|
method: {
|
|
227
227
|
type: import("vue").PropType<string>;
|
|
228
228
|
default: string;
|
|
@@ -392,19 +392,16 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
392
392
|
data: {
|
|
393
393
|
type: import("vue").PropType<Record<string, any>>;
|
|
394
394
|
};
|
|
395
|
-
disabled: {
|
|
396
|
-
type: import("vue").PropType<boolean>;
|
|
397
|
-
};
|
|
398
395
|
drag: {
|
|
399
396
|
type: import("vue").PropType<boolean>;
|
|
400
397
|
default: boolean;
|
|
401
398
|
};
|
|
402
|
-
onProgress: {
|
|
403
|
-
type: import("vue").PropType<(evt: import("./types").UploadProgressEvent, uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => void>;
|
|
404
|
-
};
|
|
405
399
|
onChange: {
|
|
406
400
|
type: import("vue").PropType<(uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles, uploadInstance?: any) => void>;
|
|
407
401
|
};
|
|
402
|
+
onProgress: {
|
|
403
|
+
type: import("vue").PropType<(evt: import("./types").UploadProgressEvent, uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => void>;
|
|
404
|
+
};
|
|
408
405
|
onError: {
|
|
409
406
|
type: import("vue").PropType<(error: Error, uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => void>;
|
|
410
407
|
};
|
|
@@ -416,6 +413,9 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
416
413
|
type: import("vue").PropType<string>;
|
|
417
414
|
default: string;
|
|
418
415
|
};
|
|
416
|
+
disabled: {
|
|
417
|
+
type: import("vue").PropType<boolean>;
|
|
418
|
+
};
|
|
419
419
|
method: {
|
|
420
420
|
type: import("vue").PropType<string>;
|
|
421
421
|
default: string;
|
|
@@ -32,7 +32,7 @@ function g(l, e, n) {
|
|
|
32
32
|
const s = a[o(0, a.length)];
|
|
33
33
|
f += s;
|
|
34
34
|
const i = o(18, 41), d = o(-30, 30);
|
|
35
|
-
t.font = `${i}px Simhei`, t.textBaseline = "top", t.fillStyle = c(80, 150), t.save(), t.translate(30 * r + 23, 15), t.rotate(d * Math.PI / 180), t.fillText(s,
|
|
35
|
+
t.font = `${i}px Simhei`, t.textBaseline = "top", t.fillStyle = c(80, 150), t.save(), t.translate(30 * r + 23, 15), t.rotate(d * Math.PI / 180), t.fillText(s, 0, -10), t.restore();
|
|
36
36
|
}
|
|
37
37
|
for (let r = 0; r < 5; r += 1)
|
|
38
38
|
t.beginPath(), t.moveTo(o(0, e), o(0, n)), t.lineTo(o(0, e), o(0, n)), t.strokeStyle = c(180, 230), t.closePath(), t.stroke();
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as d, computed as s, createElementBlock as f, openBlock as u, normalizeStyle as o, createElementVNode as g, unref as
|
|
1
|
+
import { defineComponent as d, computed as s, createElementBlock as f, openBlock as u, normalizeStyle as o, createElementVNode as g, unref as k } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import { addUnit as t } from "../../utils/helper.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "../form/index.js";
|
|
7
|
-
import
|
|
8
|
-
const y = ["width", "height"],
|
|
7
|
+
import w from "./useImageVerify.js";
|
|
8
|
+
const y = ["width", "height"], v = d({
|
|
9
9
|
name: "vft-verify-code"
|
|
10
|
-
}),
|
|
11
|
-
...
|
|
10
|
+
}), I = /* @__PURE__ */ d({
|
|
11
|
+
...v,
|
|
12
12
|
props: {
|
|
13
13
|
height: { default: 40 },
|
|
14
14
|
width: { default: 150 },
|
|
15
15
|
radius: { default: 5 }
|
|
16
16
|
},
|
|
17
17
|
emits: ["click"],
|
|
18
|
-
setup(e, { expose:
|
|
19
|
-
const n =
|
|
18
|
+
setup(e, { expose: c, emit: r }) {
|
|
19
|
+
const n = r, h = s(() => ({
|
|
20
20
|
width: t(e.width),
|
|
21
21
|
height: t(e.height)
|
|
22
|
-
})), { domRef:
|
|
22
|
+
})), { domRef: m, imgCode: l, getCode: i } = w(e.width, e.height), a = () => {
|
|
23
23
|
i(), n("click");
|
|
24
24
|
};
|
|
25
|
-
return
|
|
25
|
+
return c({
|
|
26
26
|
getCode: i,
|
|
27
|
-
code:
|
|
28
|
-
}), (
|
|
29
|
-
style: o(
|
|
30
|
-
onClick:
|
|
27
|
+
code: l
|
|
28
|
+
}), (C, p) => (u(), f("div", {
|
|
29
|
+
style: o(h.value),
|
|
30
|
+
onClick: a
|
|
31
31
|
}, [
|
|
32
32
|
g("canvas", {
|
|
33
33
|
ref_key: "domRef",
|
|
34
|
-
ref:
|
|
35
|
-
style: o({ borderRadius:
|
|
34
|
+
ref: m,
|
|
35
|
+
style: o({ borderRadius: k(t)(e.radius) }),
|
|
36
36
|
width: e.width,
|
|
37
37
|
height: e.height,
|
|
38
38
|
class: "cursor-pointer"
|
|
@@ -41,5 +41,5 @@ const y = ["width", "height"], w = d({
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
I as default
|
|
45
45
|
};
|
|
@@ -41,11 +41,11 @@ export declare const usePopper: (referenceElementRef: Ref<ReferenceElement>, pop
|
|
|
41
41
|
popperEscapeOffsets: import("@popperjs/core").SideObject;
|
|
42
42
|
};
|
|
43
43
|
offset?: {
|
|
44
|
-
|
|
45
|
-
bottom?: import("@popperjs/core").Offsets | undefined;
|
|
44
|
+
auto?: import("@popperjs/core").Offsets | undefined;
|
|
46
45
|
left?: import("@popperjs/core").Offsets | undefined;
|
|
47
46
|
right?: import("@popperjs/core").Offsets | undefined;
|
|
48
|
-
|
|
47
|
+
bottom?: import("@popperjs/core").Offsets | undefined;
|
|
48
|
+
top?: import("@popperjs/core").Offsets | undefined;
|
|
49
49
|
"auto-start"?: import("@popperjs/core").Offsets | undefined;
|
|
50
50
|
"auto-end"?: import("@popperjs/core").Offsets | undefined;
|
|
51
51
|
"top-start"?: import("@popperjs/core").Offsets | undefined;
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
package/es/utils/vue/vnode.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isArray as E, hasOwn as m, camelize as N } from "@vft/utils";
|
|
2
2
|
import { isVNode as o, Fragment as S, Comment as A, Text as s, createCommentVNode as L, createBlock as _, openBlock as C } from "vue";
|
|
3
3
|
import { debugWarn as O } from "../error.js";
|
|
4
4
|
const R = "utils/vue/vnode";
|
|
@@ -4,7 +4,7 @@ export declare const affixProps: {
|
|
|
4
4
|
readonly zIndex: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
5
5
|
readonly target: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
6
6
|
readonly offset: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
7
|
-
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "
|
|
7
|
+
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "bottom" | "top", unknown, "top", boolean>;
|
|
8
8
|
};
|
|
9
9
|
export type AffixProps = ExtractPropTypes<typeof affixProps>;
|
|
10
10
|
export declare const affixEmits: {
|
|
@@ -5,7 +5,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
5
5
|
readonly zIndex: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
6
6
|
readonly target: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
7
7
|
readonly offset: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
8
|
-
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "
|
|
8
|
+
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "bottom" | "top", unknown, "top", boolean>;
|
|
9
9
|
}>, {
|
|
10
10
|
/** @description update affix status */
|
|
11
11
|
update: () => void;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
21
21
|
readonly zIndex: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
22
22
|
readonly target: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
23
23
|
readonly offset: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
24
|
-
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "
|
|
24
|
+
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "bottom" | "top", unknown, "top", boolean>;
|
|
25
25
|
}>> & Readonly<{
|
|
26
26
|
onChange?: ((fixed: boolean) => any) | undefined;
|
|
27
27
|
onScroll?: ((args_0: {
|
|
@@ -30,7 +30,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
30
30
|
}) => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
32
|
readonly target: string;
|
|
33
|
-
readonly position: import("vft/es/utils").EpPropMergeType<StringConstructor, "
|
|
33
|
+
readonly position: import("vft/es/utils").EpPropMergeType<StringConstructor, "bottom" | "top", unknown>;
|
|
34
34
|
readonly zIndex: number;
|
|
35
35
|
readonly offset: number;
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,7 +3,7 @@ export declare const VftAffix: import("vft/es/utils").SFCWithInstall<{
|
|
|
3
3
|
readonly zIndex: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
4
4
|
readonly target: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
5
5
|
readonly offset: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
6
|
-
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "
|
|
6
|
+
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "bottom" | "top", unknown, "top", boolean>;
|
|
7
7
|
}>> & Readonly<{
|
|
8
8
|
onChange?: ((fixed: boolean) => any) | undefined;
|
|
9
9
|
onScroll?: ((args_0: {
|
|
@@ -21,7 +21,7 @@ export declare const VftAffix: import("vft/es/utils").SFCWithInstall<{
|
|
|
21
21
|
}) => void;
|
|
22
22
|
}, import("vue").PublicProps, {
|
|
23
23
|
readonly target: string;
|
|
24
|
-
readonly position: import("vft/es/utils").EpPropMergeType<StringConstructor, "
|
|
24
|
+
readonly position: import("vft/es/utils").EpPropMergeType<StringConstructor, "bottom" | "top", unknown>;
|
|
25
25
|
readonly zIndex: number;
|
|
26
26
|
readonly offset: number;
|
|
27
27
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -35,7 +35,7 @@ export declare const VftAffix: import("vft/es/utils").SFCWithInstall<{
|
|
|
35
35
|
readonly zIndex: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
36
36
|
readonly target: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
37
37
|
readonly offset: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
38
|
-
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "
|
|
38
|
+
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "bottom" | "top", unknown, "top", boolean>;
|
|
39
39
|
}>> & Readonly<{
|
|
40
40
|
onChange?: ((fixed: boolean) => any) | undefined;
|
|
41
41
|
onScroll?: ((args_0: {
|
|
@@ -47,7 +47,7 @@ export declare const VftAffix: import("vft/es/utils").SFCWithInstall<{
|
|
|
47
47
|
updateRoot: () => void;
|
|
48
48
|
}, {}, {}, {}, {
|
|
49
49
|
readonly target: string;
|
|
50
|
-
readonly position: import("vft/es/utils").EpPropMergeType<StringConstructor, "
|
|
50
|
+
readonly position: import("vft/es/utils").EpPropMergeType<StringConstructor, "bottom" | "top", unknown>;
|
|
51
51
|
readonly zIndex: number;
|
|
52
52
|
readonly offset: number;
|
|
53
53
|
}>;
|
|
@@ -58,7 +58,7 @@ export declare const VftAffix: import("vft/es/utils").SFCWithInstall<{
|
|
|
58
58
|
readonly zIndex: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
59
59
|
readonly target: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
60
60
|
readonly offset: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
61
|
-
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "
|
|
61
|
+
readonly position: import("vft/es/utils").EpPropFinalized<StringConstructor, "bottom" | "top", unknown, "top", boolean>;
|
|
62
62
|
}>> & Readonly<{
|
|
63
63
|
onChange?: ((fixed: boolean) => any) | undefined;
|
|
64
64
|
onScroll?: ((args_0: {
|
|
@@ -76,7 +76,7 @@ export declare const VftAffix: import("vft/es/utils").SFCWithInstall<{
|
|
|
76
76
|
}) => void;
|
|
77
77
|
}, string, {
|
|
78
78
|
readonly target: string;
|
|
79
|
-
readonly position: import("vft/es/utils").EpPropMergeType<StringConstructor, "
|
|
79
|
+
readonly position: import("vft/es/utils").EpPropMergeType<StringConstructor, "bottom" | "top", unknown>;
|
|
80
80
|
readonly zIndex: number;
|
|
81
81
|
readonly offset: number;
|
|
82
82
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|