kui-vue 6.0.0 → 6.2.0
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/AI.en-US.md +21 -1
- package/AI.md +37 -1
- package/ai/behaviors.json +82 -0
- package/ai/evals/README.md +59 -0
- package/ai/evals/cases.json +91 -24
- package/ai/evals/config.json +4 -0
- package/ai/evals/evaluate.mjs +267 -0
- package/ai/evals/run.mjs +118 -0
- package/ai/kui-components.json +7894 -955
- package/ai/kui-components.schema.json +67 -0
- package/ai/mcp.mjs +210 -166
- package/ai/skills/kui-vue/SKILL.md +2 -1
- package/ai/skills/kui-vue/references/mcp.md +12 -12
- package/ai/templates/form.vue +49 -0
- package/ai/templates/index.json +23 -0
- package/ai/templates/modal-editor.vue +59 -0
- package/ai/templates/table.vue +63 -0
- package/ai/validate.mjs +225 -0
- package/dist/index.js +2 -2
- package/es/index.js +2180 -2179
- package/es/locale/de.js +1 -1
- package/es/locale/el.js +1 -1
- package/es/locale/en.js +1 -1
- package/es/locale/fr.js +1 -1
- package/es/locale/it.js +1 -1
- package/es/locale/ja.js +1 -1
- package/es/locale/ko.js +1 -1
- package/es/locale/ru.js +1 -1
- package/es/locale/th.js +1 -1
- package/es/locale/uk.js +1 -1
- package/es/locale/vi.js +1 -1
- package/es/locale/zh-CN.js +1 -1
- package/es/locale/zh-TW.js +1 -1
- package/lib/index.cjs +2 -2
- package/lib/locale/de.cjs +1 -1
- package/lib/locale/el.cjs +1 -1
- package/lib/locale/en.cjs +1 -1
- package/lib/locale/fr.cjs +1 -1
- package/lib/locale/it.cjs +1 -1
- package/lib/locale/ja.cjs +1 -1
- package/lib/locale/ko.cjs +1 -1
- package/lib/locale/ru.cjs +1 -1
- package/lib/locale/th.cjs +1 -1
- package/lib/locale/uk.cjs +1 -1
- package/lib/locale/vi.cjs +1 -1
- package/lib/locale/zh-CN.cjs +1 -1
- package/lib/locale/zh-TW.cjs +1 -1
- package/package.json +37 -31
- package/style/base.css +1 -1
- package/style/components.css +2 -2
- package/style/index.css +2 -2
- package/style/motion.css +1 -1
- package/style/theme.css +2 -2
- package/types/affix/index.d.ts +5 -5
- package/types/alert/index.d.ts +9 -7
- package/types/anchor/anchor-link.d.ts +4 -4
- package/types/anchor/anchor.d.ts +6 -6
- package/types/anchor/context.d.ts +1 -1
- package/types/anchor/index.d.ts +4 -4
- package/types/auto-complete/index.d.ts +7 -11
- package/types/avatar/avatar-group.d.ts +5 -5
- package/types/avatar/avatar.d.ts +6 -6
- package/types/avatar/context.d.ts +1 -1
- package/types/avatar/index.d.ts +4 -4
- package/types/back-top/index.d.ts +5 -5
- package/types/badge/index.d.ts +6 -6
- package/types/base/transition.d.ts +1 -1
- package/types/breadcrumb/breadcrumb-item.d.ts +6 -6
- package/types/breadcrumb/breadcrumb.d.ts +4 -4
- package/types/breadcrumb/index.d.ts +4 -4
- package/types/button/button-group.d.ts +5 -5
- package/types/button/button.d.ts +4 -4
- package/types/button/index.d.ts +4 -4
- package/types/calendar/index.d.ts +8 -5
- package/types/card/card-meta.d.ts +4 -4
- package/types/card/index.d.ts +8 -8
- package/types/carousel/carousel-item.d.ts +1 -1
- package/types/carousel/carousel.d.ts +20 -7
- package/types/carousel/index.d.ts +3 -3
- package/types/cascader/index.d.ts +41 -32
- package/types/cascader/types.d.ts +7 -3
- package/types/check-card/check-card-group.d.ts +10 -7
- package/types/check-card/check-card.d.ts +21 -8
- package/types/check-card/context.d.ts +3 -3
- package/types/check-card/index.d.ts +5 -5
- package/types/check-card/types.d.ts +2 -2
- package/types/checkbox/checkbox-group.d.ts +20 -7
- package/types/checkbox/checkbox.d.ts +4 -3
- package/types/checkbox/index.d.ts +5 -5
- package/types/collapse/collapse-panel.d.ts +6 -6
- package/types/collapse/collapse.d.ts +7 -7
- package/types/collapse/context.d.ts +1 -1
- package/types/collapse/index.d.ts +4 -4
- package/types/color-picker/alpha.d.ts +10 -6
- package/types/color-picker/hue.d.ts +7 -4
- package/types/color-picker/index.d.ts +34 -20
- package/types/color-picker/mode.d.ts +9 -9
- package/types/color-picker/paint.d.ts +9 -6
- package/types/color-picker/presets.d.ts +7 -7
- package/types/color-picker/types.d.ts +1 -0
- package/types/components.d.ts +166 -161
- package/types/config/context.d.ts +2 -2
- package/types/config/index.d.ts +7 -7
- package/types/config/popup.d.ts +1 -1
- package/types/const/types.d.ts +2 -2
- package/types/date-picker/index.d.ts +49 -19
- package/types/descriptions/descriptions-item.d.ts +5 -5
- package/types/descriptions/descriptions.d.ts +5 -5
- package/types/descriptions/index.d.ts +4 -2
- package/types/directives/outsiteclick.d.ts +1 -1
- package/types/directives/resize.d.ts +1 -1
- package/types/directives/scroll.d.ts +1 -1
- package/types/divider/index.d.ts +5 -5
- package/types/drawer/index.d.ts +24 -11
- package/types/dropdown/dropdown-button.d.ts +7 -7
- package/types/dropdown/dropdown.d.ts +12 -16
- package/types/dropdown/index.d.ts +4 -2
- package/types/dropdown/trigger.d.ts +6 -6
- package/types/empty/index.d.ts +1 -1
- package/types/feature-card/index.d.ts +7 -7
- package/types/feedback-panel/feedback-panel.d.ts +7 -7
- package/types/feedback-panel/index.d.ts +3 -3
- package/types/flame-wrap/index.d.ts +9 -9
- package/types/flex/index.d.ts +7 -7
- package/types/flex/types.d.ts +1 -1
- package/types/form/context.d.ts +3 -3
- package/types/form/form-item.d.ts +6 -6
- package/types/form/form.d.ts +9 -13
- package/types/form/index.d.ts +6 -6
- package/types/global.d.ts +2 -0
- package/types/grid/grid-item.d.ts +2 -2
- package/types/grid/grid.d.ts +3 -3
- package/types/grid/index.d.ts +5 -5
- package/types/grid/useBreakpoint.d.ts +1 -1
- package/types/icon/index.d.ts +8 -8
- package/types/image/context.d.ts +2 -2
- package/types/image/group.d.ts +4 -4
- package/types/image/image.d.ts +7 -7
- package/types/image/index.d.ts +5 -5
- package/types/image/instance.d.ts +11 -4
- package/types/image/preview.d.ts +6 -6
- package/types/index.d.cts +2 -2
- package/types/index.d.ts +2 -2
- package/types/input/index.d.ts +6 -6
- package/types/input/input-box.d.ts +6 -6
- package/types/input/input-group.d.ts +5 -5
- package/types/input/input.d.ts +27 -10
- package/types/input/textarea.d.ts +17 -8
- package/types/input-number/index.d.ts +10 -7
- package/types/input-otp/index.d.ts +3 -3
- package/types/input-otp/input-otp.d.ts +21 -8
- package/types/input-tag/index.d.ts +6 -6
- package/types/kanban/index.d.ts +5 -5
- package/types/layout/index.d.ts +17 -17
- package/types/list-panel/index.d.ts +7 -7
- package/types/mentions/index.d.ts +7 -7
- package/types/menu/index.d.ts +6 -6
- package/types/menu/menu-context.d.ts +4 -2
- package/types/menu/menu-divider.d.ts +1 -1
- package/types/menu/menu-group.d.ts +4 -4
- package/types/menu/menu-item.d.ts +10 -6
- package/types/menu/menu.d.ts +24 -17
- package/types/menu/recursive-menu.d.ts +5 -5
- package/types/menu/sub-menu.d.ts +6 -6
- package/types/menu/types.d.ts +2 -2
- package/types/message/index.d.ts +3 -3
- package/types/modal/index.d.ts +15 -10
- package/types/modal/modal.d.ts +25 -97
- package/types/modal/toast.d.ts +11 -10
- package/types/notice/container.d.ts +3 -3
- package/types/notice/content.d.ts +10 -77
- package/types/notice/index.d.ts +3 -3
- package/types/notice/instance.d.ts +2 -2
- package/types/page/index.d.ts +6 -6
- package/types/page-header/index.d.ts +4 -4
- package/types/popconfirm/index.d.ts +8 -45
- package/types/poptip/index.d.ts +9 -47
- package/types/popup/index.d.ts +251 -0
- package/types/popup/layers.d.ts +9 -0
- package/types/popup/types.d.ts +15 -0
- package/types/progress/index.d.ts +6 -6
- package/types/qrcode/index.d.ts +7 -7
- package/types/radio/index.d.ts +8 -7
- package/types/radio/radio-button.d.ts +8 -8
- package/types/radio/radio-group.d.ts +4 -3
- package/types/radio/radio.d.ts +7 -7
- package/types/radio/types.d.ts +1 -1
- package/types/rate/index.d.ts +7 -7
- package/types/rate/star.d.ts +7 -7
- package/types/result/index.d.ts +3 -3
- package/types/result/result.d.ts +7 -7
- package/types/ripple/index.d.ts +6 -6
- package/types/row-col/col.d.ts +4 -4
- package/types/row-col/index.d.ts +4 -4
- package/types/row-col/row.d.ts +4 -4
- package/types/segmented/index.d.ts +6 -4
- package/types/select/index.d.ts +5 -5
- package/types/select/option.d.ts +13 -14
- package/types/select/select.d.ts +10 -6
- package/types/select/types.d.ts +1 -1
- package/types/skeleton/index.d.ts +10 -10
- package/types/skeleton/skeleton-avatar.d.ts +13 -13
- package/types/skeleton/skeleton-button.d.ts +15 -15
- package/types/skeleton/skeleton-image.d.ts +11 -11
- package/types/skeleton/skeleton-text.d.ts +11 -11
- package/types/skeleton/skeleton.d.ts +15 -15
- package/types/skeleton/types.d.ts +2 -2
- package/types/skeleton/use-skeleton-loading.d.ts +1 -1
- package/types/slider/index.d.ts +8 -3
- package/types/slider/thumb.d.ts +7 -7
- package/types/space/index.d.ts +4 -4
- package/types/spin/index.d.ts +18 -5
- package/types/splitter/index.d.ts +2 -2
- package/types/splitter/splitter-panel.d.ts +4 -4
- package/types/splitter/splitter.d.ts +6 -6
- package/types/stat-card/countup.d.ts +4 -4
- package/types/stat-card/index.d.ts +5 -5
- package/types/stat-card/rollup.d.ts +6 -4
- package/types/stat-card/stat-card.d.ts +7 -7
- package/types/stat-card/stat-number.d.ts +19 -6
- package/types/stat-card/types.d.ts +1 -1
- package/types/stat-card/utils/countup.d.ts +1 -1
- package/types/stat-card/utils/odometer.d.ts +8 -5
- package/types/steps/index.d.ts +8 -8
- package/types/switch/index.d.ts +3 -2
- package/types/table/column-setting.d.ts +7 -7
- package/types/table/index.d.ts +13 -26
- package/types/table/types.d.ts +2 -2
- package/types/table/utils.d.ts +1 -1
- package/types/tabs/index.d.ts +5 -4
- package/types/tabs/tab-panel.d.ts +6 -6
- package/types/tabs/tabs.d.ts +6 -6
- package/types/tabs/types.d.ts +1 -1
- package/types/tag/index.d.ts +9 -7
- package/types/time-line/index.d.ts +5 -5
- package/types/time-line/timeline-item.d.ts +5 -5
- package/types/time-line/timeline.d.ts +6 -6
- package/types/tooltip/index.d.ts +21 -35
- package/types/tour/index.d.ts +34 -23
- package/types/transfer/index.d.ts +18 -5
- package/types/tree/context.d.ts +1 -1
- package/types/tree/index.d.ts +13 -10
- package/types/tree/types.d.ts +1 -1
- package/types/tree/utils.d.ts +1 -1
- package/types/tree-select/index.d.ts +14 -7
- package/types/typography/index.d.ts +26 -17
- package/types/upload/file-list.d.ts +8 -8
- package/types/upload/index.d.ts +9 -22
- package/types/upload/picture-sort.d.ts +2 -0
- package/types/upload/selector.d.ts +9 -9
- package/types/upload/types.d.ts +1 -1
- package/types/utils/checked.d.ts +1 -1
- package/types/utils/model-value.d.ts +10 -0
- package/types/utils/number.d.ts +1 -1
- package/types/utils/placement.d.ts +1 -1
- package/types/utils/popup.d.ts +11 -0
- package/types/utils/selection-tags.d.ts +18 -0
- package/types/utils/vnode.d.ts +3 -3
- package/types/utils/vue.d.ts +7 -1
- package/types/virtual-list/index.d.ts +6 -6
- package/types/watermark/index.d.ts +8 -8
- package/vetur/attributes.json +1717 -781
- package/vetur/tags.json +359 -159
- package/vetur/web-types.json +7563 -6197
- package/types/directives/transfer.d.ts +0 -2
package/types/tour/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType, VNodeChild } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
2
|
export interface TourStep {
|
|
3
3
|
target?: HTMLElement | null | (() => HTMLElement | null);
|
|
4
4
|
title?: VNodeChild;
|
|
@@ -11,12 +11,15 @@ declare const propsDef: {
|
|
|
11
11
|
type: BooleanConstructor;
|
|
12
12
|
default: undefined;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
value: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
open: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: undefined;
|
|
19
21
|
};
|
|
22
|
+
current: NumberConstructor;
|
|
20
23
|
steps: {
|
|
21
24
|
type: PropType<TourStep[]>;
|
|
22
25
|
default: () => never[];
|
|
@@ -35,17 +38,20 @@ declare const propsDef: {
|
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
export type TourProps = ExtractPropTypes<typeof propsDef>;
|
|
38
|
-
declare const _default: import(
|
|
41
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
39
42
|
modelValue: {
|
|
40
43
|
type: BooleanConstructor;
|
|
41
44
|
default: undefined;
|
|
42
45
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
type: NumberConstructor;
|
|
47
|
-
default: number;
|
|
46
|
+
value: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: undefined;
|
|
48
49
|
};
|
|
50
|
+
open: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
current: NumberConstructor;
|
|
49
55
|
steps: {
|
|
50
56
|
type: PropType<TourStep[]>;
|
|
51
57
|
default: () => never[];
|
|
@@ -62,22 +68,26 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
62
68
|
type: BooleanConstructor;
|
|
63
69
|
default: boolean;
|
|
64
70
|
};
|
|
65
|
-
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import(
|
|
71
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
72
|
+
"update:open": (open: boolean) => boolean;
|
|
66
73
|
"update:modelValue": (open: boolean) => boolean;
|
|
67
74
|
change: (current: number) => boolean;
|
|
68
75
|
openChange: (open: boolean) => boolean;
|
|
69
76
|
finish: () => true;
|
|
70
|
-
}, string, import(
|
|
77
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
71
78
|
modelValue: {
|
|
72
79
|
type: BooleanConstructor;
|
|
73
80
|
default: undefined;
|
|
74
81
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
type: NumberConstructor;
|
|
79
|
-
default: number;
|
|
82
|
+
value: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: undefined;
|
|
80
85
|
};
|
|
86
|
+
open: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: undefined;
|
|
89
|
+
};
|
|
90
|
+
current: NumberConstructor;
|
|
81
91
|
steps: {
|
|
82
92
|
type: PropType<TourStep[]>;
|
|
83
93
|
default: () => never[];
|
|
@@ -96,16 +106,17 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
96
106
|
};
|
|
97
107
|
}>> & Readonly<{
|
|
98
108
|
onChange?: ((current: number) => any) | undefined;
|
|
99
|
-
"onUpdate:
|
|
109
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
100
110
|
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
111
|
+
"onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
|
|
101
112
|
onFinish?: (() => any) | undefined;
|
|
102
113
|
}>, {
|
|
103
114
|
mask: boolean;
|
|
115
|
+
open: boolean;
|
|
116
|
+
value: boolean;
|
|
104
117
|
closable: boolean;
|
|
105
118
|
modelValue: boolean;
|
|
106
|
-
defaultOpen: boolean;
|
|
107
119
|
escKey: boolean;
|
|
108
|
-
defaultCurrent: number;
|
|
109
120
|
steps: TourStep[];
|
|
110
|
-
}, {}, {}, {}, string, import(
|
|
121
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
111
122
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType, VNodeChild } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
2
|
export type TransferKey = string | number;
|
|
3
3
|
export interface TransferItem {
|
|
4
4
|
key: TransferKey;
|
|
@@ -8,6 +8,10 @@ export interface TransferItem {
|
|
|
8
8
|
}
|
|
9
9
|
declare const transferProps: {
|
|
10
10
|
modelValue: {
|
|
11
|
+
type: PropType<TransferKey[]>;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
value: {
|
|
11
15
|
type: PropType<TransferKey[]>;
|
|
12
16
|
default: () => never[];
|
|
13
17
|
};
|
|
@@ -36,8 +40,12 @@ declare const transferProps: {
|
|
|
36
40
|
render: PropType<(item: TransferItem) => VNodeChild>;
|
|
37
41
|
};
|
|
38
42
|
export type TransferProps = ExtractPropTypes<typeof transferProps>;
|
|
39
|
-
declare const _default: import(
|
|
43
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
40
44
|
modelValue: {
|
|
45
|
+
type: PropType<TransferKey[]>;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
value: {
|
|
41
49
|
type: PropType<TransferKey[]>;
|
|
42
50
|
default: () => never[];
|
|
43
51
|
};
|
|
@@ -64,13 +72,17 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
64
72
|
};
|
|
65
73
|
filterOption: PropType<(keyword: string, item: TransferItem) => boolean>;
|
|
66
74
|
render: PropType<(item: TransferItem) => VNodeChild>;
|
|
67
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
75
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
68
76
|
"update:modelValue": (keys: TransferKey[]) => boolean;
|
|
69
77
|
change: (targetKeys: TransferKey[], direction: "left" | "right", movedKeys: TransferKey[]) => boolean;
|
|
70
78
|
search: (direction: "left" | "right", value: string) => boolean;
|
|
71
79
|
selectChange: (sourceKeys: TransferKey[], targetKeys: TransferKey[]) => boolean;
|
|
72
|
-
}, string, import(
|
|
80
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
73
81
|
modelValue: {
|
|
82
|
+
type: PropType<TransferKey[]>;
|
|
83
|
+
default: undefined;
|
|
84
|
+
};
|
|
85
|
+
value: {
|
|
74
86
|
type: PropType<TransferKey[]>;
|
|
75
87
|
default: () => never[];
|
|
76
88
|
};
|
|
@@ -105,11 +117,12 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
105
117
|
}>, {
|
|
106
118
|
disabled: boolean;
|
|
107
119
|
theme: "fill" | "outline";
|
|
120
|
+
value: TransferKey[];
|
|
108
121
|
modelValue: TransferKey[];
|
|
109
122
|
readonly: boolean;
|
|
110
123
|
dataSource: TransferItem[];
|
|
111
124
|
titles: [string, string];
|
|
112
125
|
operations: [string, string];
|
|
113
126
|
searchable: boolean;
|
|
114
|
-
}, {}, {}, {}, string, import(
|
|
127
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
115
128
|
export default _default;
|
package/types/tree/context.d.ts
CHANGED
package/types/tree/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
2
|
-
import { BooleanType } from
|
|
3
|
-
import { TreeDropEvent, TreeExpandEvent, TreeFieldNames } from
|
|
4
|
-
import { TreeNode, TreeNodeData } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType } from "../const/types";
|
|
3
|
+
import type { TreeDropEvent, TreeExpandEvent, TreeFieldNames } from "./types";
|
|
4
|
+
import { type TreeNode, type TreeNodeData } from "./utils";
|
|
5
5
|
declare const treeProps: {
|
|
6
6
|
data: PropType<TreeNodeData[]>;
|
|
7
7
|
selectedKeys: PropType<string[]>;
|
|
8
8
|
expandedKeys: PropType<string[]>;
|
|
9
9
|
checkedKeys: PropType<string[]>;
|
|
10
10
|
directory: BooleanType;
|
|
11
|
+
disabled: BooleanType;
|
|
11
12
|
checkable: BooleanType;
|
|
12
13
|
draggable: BooleanType;
|
|
13
14
|
showLine: BooleanType;
|
|
@@ -44,13 +45,14 @@ declare const treeProps: {
|
|
|
44
45
|
fieldNames: PropType<TreeFieldNames>;
|
|
45
46
|
};
|
|
46
47
|
export type TreeProps = ExtractPropTypes<typeof treeProps>;
|
|
47
|
-
export type { BuildTreeOptions, TreeNode } from
|
|
48
|
-
declare const Tree: import(
|
|
48
|
+
export type { BuildTreeOptions, TreeNode } from "./utils";
|
|
49
|
+
declare const Tree: import("vue").DefineComponent<ExtractPropTypes<{
|
|
49
50
|
data: PropType<TreeNodeData[]>;
|
|
50
51
|
selectedKeys: PropType<string[]>;
|
|
51
52
|
expandedKeys: PropType<string[]>;
|
|
52
53
|
checkedKeys: PropType<string[]>;
|
|
53
54
|
directory: BooleanType;
|
|
55
|
+
disabled: BooleanType;
|
|
54
56
|
checkable: BooleanType;
|
|
55
57
|
draggable: BooleanType;
|
|
56
58
|
showLine: BooleanType;
|
|
@@ -85,7 +87,7 @@ declare const Tree: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
85
87
|
};
|
|
86
88
|
loading: BooleanType;
|
|
87
89
|
fieldNames: PropType<TreeFieldNames>;
|
|
88
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
90
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
89
91
|
"update:expandedKeys": (keys: string[]) => boolean;
|
|
90
92
|
"update:checkedKeys": (keys: string[]) => boolean;
|
|
91
93
|
"update:selectedKeys": (keys: string[]) => boolean;
|
|
@@ -98,12 +100,13 @@ declare const Tree: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
98
100
|
drop: (nodes: TreeDropEvent, event: DragEvent) => boolean;
|
|
99
101
|
loadError: (_error: unknown, node: TreeNode) => boolean;
|
|
100
102
|
dragend: (node: TreeNode, event: DragEvent) => boolean;
|
|
101
|
-
}, string, import(
|
|
103
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
102
104
|
data: PropType<TreeNodeData[]>;
|
|
103
105
|
selectedKeys: PropType<string[]>;
|
|
104
106
|
expandedKeys: PropType<string[]>;
|
|
105
107
|
checkedKeys: PropType<string[]>;
|
|
106
108
|
directory: BooleanType;
|
|
109
|
+
disabled: BooleanType;
|
|
107
110
|
checkable: BooleanType;
|
|
108
111
|
draggable: BooleanType;
|
|
109
112
|
showLine: BooleanType;
|
|
@@ -158,6 +161,6 @@ declare const Tree: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
158
161
|
itemHeight: number;
|
|
159
162
|
overscan: number;
|
|
160
163
|
showExtra: boolean | undefined;
|
|
161
|
-
}, {}, {}, {}, string, import(
|
|
164
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
162
165
|
export default Tree;
|
|
163
|
-
export type { TreeDropEvent, TreeDropPosition, TreeExpandEvent, TreeExpose, TreeFieldNames, } from
|
|
166
|
+
export type { TreeDropEvent, TreeDropPosition, TreeExpandEvent, TreeExpose, TreeFieldNames, } from "./types";
|
package/types/tree/types.d.ts
CHANGED
package/types/tree/utils.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ExtractPropTypes, HTMLAttributes, PropType } from
|
|
2
|
-
import { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from
|
|
3
|
-
import { IconType } from
|
|
4
|
-
import { TreeExpandEvent } from
|
|
5
|
-
import { TreeNode } from
|
|
6
|
-
type TreeSelectValue = string | string[] | null | undefined;
|
|
1
|
+
import { type ExtractPropTypes, type HTMLAttributes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import type { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from "../const/types";
|
|
3
|
+
import { type IconType } from "../icon";
|
|
4
|
+
import { type TreeExpandEvent } from "../tree";
|
|
5
|
+
import type { TreeNode } from "../tree/utils";
|
|
6
|
+
export type TreeSelectValue = string | string[] | null | undefined;
|
|
7
7
|
declare const treeSelectProps: {
|
|
8
8
|
placeholder: StringConstructor;
|
|
9
9
|
size: {
|
|
@@ -16,6 +16,7 @@ declare const treeSelectProps: {
|
|
|
16
16
|
width: NumberConstructor;
|
|
17
17
|
maxTagCount: NumberConstructor;
|
|
18
18
|
modelValue: PropType<TreeSelectValue>;
|
|
19
|
+
value: PropType<TreeSelectValue>;
|
|
19
20
|
clearable: {
|
|
20
21
|
type: BooleanType;
|
|
21
22
|
default: boolean;
|
|
@@ -69,11 +70,17 @@ declare const treeSelectProps: {
|
|
|
69
70
|
};
|
|
70
71
|
};
|
|
71
72
|
export type TreeSelectProps = ExtractPropTypes<typeof treeSelectProps>;
|
|
72
|
-
type TreeSelectPublicProps<T extends TreeSelectValue> = Omit<Partial<TreeSelectProps>, "modelValue"> & Omit<HTMLAttributes, "onChange"> & {
|
|
73
|
+
type TreeSelectPublicProps<T extends TreeSelectValue> = Omit<Partial<TreeSelectProps>, "modelValue" | "value"> & Omit<HTMLAttributes, "onChange"> & {
|
|
73
74
|
modelValue?: T;
|
|
75
|
+
value?: T;
|
|
74
76
|
"onUpdate:modelValue"?: (value: T) => void;
|
|
75
77
|
onChange?: (value: T) => void;
|
|
76
78
|
onTreeExpand?: (event: TreeExpandEvent) => void;
|
|
79
|
+
"onUpdate:treeExpandedKeys"?: (keys: string[]) => void;
|
|
80
|
+
onTreeSelect?: (value: string, label: VNodeChild, selected: boolean) => void;
|
|
81
|
+
onSearch?: (event: InputEvent) => void;
|
|
82
|
+
onOpenChange?: (open: boolean) => void;
|
|
83
|
+
onClear?: () => void;
|
|
77
84
|
};
|
|
78
85
|
type TreeSelectComponent = {
|
|
79
86
|
new <T extends TreeSelectValue = string>(props: TreeSelectPublicProps<T>): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
2
|
export type TypographyType = "secondary" | "success" | "warning" | "danger";
|
|
3
3
|
export type TypographyTag = "span" | "p" | "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
4
4
|
export interface TypographyCopyableOptions {
|
|
@@ -17,6 +17,7 @@ export interface TypographyEllipsisOptions {
|
|
|
17
17
|
}
|
|
18
18
|
declare const typographyProps: {
|
|
19
19
|
modelValue: StringConstructor;
|
|
20
|
+
value: StringConstructor;
|
|
20
21
|
tag: PropType<TypographyTag>;
|
|
21
22
|
type: PropType<TypographyType>;
|
|
22
23
|
strong: BooleanConstructor;
|
|
@@ -40,8 +41,9 @@ declare const typographyProps: {
|
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
43
|
export type TypographyProps = ExtractPropTypes<typeof typographyProps>;
|
|
43
|
-
export declare const TypographyText: import(
|
|
44
|
+
export declare const TypographyText: import("vue").DefineComponent<ExtractPropTypes<{
|
|
44
45
|
modelValue: StringConstructor;
|
|
46
|
+
value: StringConstructor;
|
|
45
47
|
tag: PropType<TypographyTag>;
|
|
46
48
|
type: PropType<TypographyType>;
|
|
47
49
|
strong: BooleanConstructor;
|
|
@@ -63,12 +65,13 @@ export declare const TypographyText: import('vue').DefineComponent<ExtractPropTy
|
|
|
63
65
|
type: PropType<boolean | number | TypographyEllipsisOptions>;
|
|
64
66
|
default: boolean;
|
|
65
67
|
};
|
|
66
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
68
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
67
69
|
"update:modelValue": (value: string) => boolean;
|
|
68
70
|
change: (value: string) => boolean;
|
|
69
71
|
copy: (value: string) => boolean;
|
|
70
|
-
}, string, import(
|
|
72
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
71
73
|
modelValue: StringConstructor;
|
|
74
|
+
value: StringConstructor;
|
|
72
75
|
tag: PropType<TypographyTag>;
|
|
73
76
|
type: PropType<TypographyType>;
|
|
74
77
|
strong: BooleanConstructor;
|
|
@@ -105,9 +108,10 @@ export declare const TypographyText: import('vue').DefineComponent<ExtractPropTy
|
|
|
105
108
|
delete: boolean;
|
|
106
109
|
editable: boolean | TypographyEditableOptions;
|
|
107
110
|
copyable: boolean | TypographyCopyableOptions;
|
|
108
|
-
}, {}, {}, {}, string, import(
|
|
109
|
-
export declare const TypographyParagraph: import(
|
|
111
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
112
|
+
export declare const TypographyParagraph: import("vue").DefineComponent<ExtractPropTypes<{
|
|
110
113
|
modelValue: StringConstructor;
|
|
114
|
+
value: StringConstructor;
|
|
111
115
|
tag: PropType<TypographyTag>;
|
|
112
116
|
type: PropType<TypographyType>;
|
|
113
117
|
strong: BooleanConstructor;
|
|
@@ -129,12 +133,13 @@ export declare const TypographyParagraph: import('vue').DefineComponent<ExtractP
|
|
|
129
133
|
type: PropType<boolean | number | TypographyEllipsisOptions>;
|
|
130
134
|
default: boolean;
|
|
131
135
|
};
|
|
132
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
136
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
133
137
|
"update:modelValue": (value: string) => boolean;
|
|
134
138
|
change: (value: string) => boolean;
|
|
135
139
|
copy: (value: string) => boolean;
|
|
136
|
-
}, string, import(
|
|
140
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
137
141
|
modelValue: StringConstructor;
|
|
142
|
+
value: StringConstructor;
|
|
138
143
|
tag: PropType<TypographyTag>;
|
|
139
144
|
type: PropType<TypographyType>;
|
|
140
145
|
strong: BooleanConstructor;
|
|
@@ -171,9 +176,10 @@ export declare const TypographyParagraph: import('vue').DefineComponent<ExtractP
|
|
|
171
176
|
delete: boolean;
|
|
172
177
|
editable: boolean | TypographyEditableOptions;
|
|
173
178
|
copyable: boolean | TypographyCopyableOptions;
|
|
174
|
-
}, {}, {}, {}, string, import(
|
|
175
|
-
export declare const TypographyTitle: import(
|
|
179
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
180
|
+
export declare const TypographyTitle: import("vue").DefineComponent<ExtractPropTypes<{
|
|
176
181
|
modelValue: StringConstructor;
|
|
182
|
+
value: StringConstructor;
|
|
177
183
|
tag: PropType<TypographyTag>;
|
|
178
184
|
type: PropType<TypographyType>;
|
|
179
185
|
strong: BooleanConstructor;
|
|
@@ -195,12 +201,13 @@ export declare const TypographyTitle: import('vue').DefineComponent<ExtractPropT
|
|
|
195
201
|
type: PropType<boolean | number | TypographyEllipsisOptions>;
|
|
196
202
|
default: boolean;
|
|
197
203
|
};
|
|
198
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
204
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
199
205
|
"update:modelValue": (value: string) => boolean;
|
|
200
206
|
change: (value: string) => boolean;
|
|
201
207
|
copy: (value: string) => boolean;
|
|
202
|
-
}, string, import(
|
|
208
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
203
209
|
modelValue: StringConstructor;
|
|
210
|
+
value: StringConstructor;
|
|
204
211
|
tag: PropType<TypographyTag>;
|
|
205
212
|
type: PropType<TypographyType>;
|
|
206
213
|
strong: BooleanConstructor;
|
|
@@ -237,9 +244,10 @@ export declare const TypographyTitle: import('vue').DefineComponent<ExtractPropT
|
|
|
237
244
|
delete: boolean;
|
|
238
245
|
editable: boolean | TypographyEditableOptions;
|
|
239
246
|
copyable: boolean | TypographyCopyableOptions;
|
|
240
|
-
}, {}, {}, {}, string, import(
|
|
241
|
-
declare const Typography: import(
|
|
247
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
248
|
+
declare const Typography: import("vue").DefineComponent<ExtractPropTypes<{
|
|
242
249
|
modelValue: StringConstructor;
|
|
250
|
+
value: StringConstructor;
|
|
243
251
|
tag: PropType<TypographyTag>;
|
|
244
252
|
type: PropType<TypographyType>;
|
|
245
253
|
strong: BooleanConstructor;
|
|
@@ -261,12 +269,13 @@ declare const Typography: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
261
269
|
type: PropType<boolean | number | TypographyEllipsisOptions>;
|
|
262
270
|
default: boolean;
|
|
263
271
|
};
|
|
264
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
272
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
265
273
|
"update:modelValue": (value: string) => boolean;
|
|
266
274
|
change: (value: string) => boolean;
|
|
267
275
|
copy: (value: string) => boolean;
|
|
268
|
-
}, string, import(
|
|
276
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
269
277
|
modelValue: StringConstructor;
|
|
278
|
+
value: StringConstructor;
|
|
270
279
|
tag: PropType<TypographyTag>;
|
|
271
280
|
type: PropType<TypographyType>;
|
|
272
281
|
strong: BooleanConstructor;
|
|
@@ -303,5 +312,5 @@ declare const Typography: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
303
312
|
delete: boolean;
|
|
304
313
|
editable: boolean | TypographyEditableOptions;
|
|
305
314
|
copyable: boolean | TypographyCopyableOptions;
|
|
306
|
-
}, {}, {}, {}, string, import(
|
|
315
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
307
316
|
export default Typography;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
2
|
-
import { BooleanType } from
|
|
3
|
-
import { UploadFile } from
|
|
4
|
-
import
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType } from "../const/types";
|
|
3
|
+
import type { UploadFile } from "./types";
|
|
4
|
+
import zhCN from "../locale/zh-CN";
|
|
5
5
|
declare const uploadFileListProps: {
|
|
6
6
|
showUploadList: {
|
|
7
7
|
type: BooleanType;
|
|
@@ -26,7 +26,7 @@ declare const uploadFileListProps: {
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
export type UploadFileListProps = ExtractPropTypes<typeof uploadFileListProps>;
|
|
29
|
-
declare const _default: import(
|
|
29
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
30
30
|
showUploadList: {
|
|
31
31
|
type: BooleanType;
|
|
32
32
|
default: boolean;
|
|
@@ -48,7 +48,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
48
48
|
type: BooleanType;
|
|
49
49
|
default: boolean;
|
|
50
50
|
};
|
|
51
|
-
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import(
|
|
51
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
52
52
|
remove: (event: {
|
|
53
53
|
index: number;
|
|
54
54
|
file: UploadFile;
|
|
@@ -59,7 +59,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
59
59
|
}) => boolean;
|
|
60
60
|
abort: (file: UploadFile) => boolean;
|
|
61
61
|
retry: (file: UploadFile) => boolean;
|
|
62
|
-
}, string, import(
|
|
62
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
63
63
|
showUploadList: {
|
|
64
64
|
type: BooleanType;
|
|
65
65
|
default: boolean;
|
|
@@ -97,5 +97,5 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
97
97
|
showUploadList: boolean | undefined;
|
|
98
98
|
fileList: UploadFile[];
|
|
99
99
|
preview: boolean | undefined;
|
|
100
|
-
}, {}, {}, {}, string, import(
|
|
100
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
101
101
|
export default _default;
|
package/types/upload/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
2
|
-
import { BooleanType } from
|
|
3
|
-
import { IconType } from
|
|
4
|
-
import { UploadChangeEvent, UploadCustomRequest, UploadFile, UploadSortEvent } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType } from "../const/types";
|
|
3
|
+
import { type IconType } from "../icon";
|
|
4
|
+
import type { UploadChangeEvent, UploadCustomRequest, UploadFile, UploadSortEvent } from "./types";
|
|
5
5
|
declare const uploadProps: {
|
|
6
6
|
method: {
|
|
7
7
|
type: StringConstructor;
|
|
@@ -39,10 +39,6 @@ declare const uploadProps: {
|
|
|
39
39
|
};
|
|
40
40
|
transformFile: PropType<(file: File) => File | Blob | Promise<File | Blob>>;
|
|
41
41
|
fileList: PropType<UploadFile[]>;
|
|
42
|
-
defaultFileList: {
|
|
43
|
-
type: PropType<UploadFile[]>;
|
|
44
|
-
default: () => never[];
|
|
45
|
-
};
|
|
46
42
|
autoTrigger: {
|
|
47
43
|
type: BooleanType;
|
|
48
44
|
default: boolean;
|
|
@@ -75,7 +71,7 @@ export interface UploadContext extends UploadProps {
|
|
|
75
71
|
abort: (file?: UploadFile) => void;
|
|
76
72
|
retry: (file: UploadFile) => void;
|
|
77
73
|
}
|
|
78
|
-
declare const _default: import(
|
|
74
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
79
75
|
method: {
|
|
80
76
|
type: StringConstructor;
|
|
81
77
|
default: string;
|
|
@@ -112,10 +108,6 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
112
108
|
};
|
|
113
109
|
transformFile: PropType<(file: File) => File | Blob | Promise<File | Blob>>;
|
|
114
110
|
fileList: PropType<UploadFile[]>;
|
|
115
|
-
defaultFileList: {
|
|
116
|
-
type: PropType<UploadFile[]>;
|
|
117
|
-
default: () => never[];
|
|
118
|
-
};
|
|
119
111
|
autoTrigger: {
|
|
120
112
|
type: BooleanType;
|
|
121
113
|
default: boolean;
|
|
@@ -141,7 +133,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
141
133
|
default: number;
|
|
142
134
|
};
|
|
143
135
|
onBeforeUpload: PropType<(item: UploadFile, file: File) => boolean | File | Blob | void | Promise<boolean | File | Blob | void>>;
|
|
144
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
136
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
145
137
|
"update:fileList": (files: UploadFile[]) => boolean;
|
|
146
138
|
change: (event: UploadChangeEvent) => boolean;
|
|
147
139
|
remove: (event: UploadChangeEvent) => boolean;
|
|
@@ -150,7 +142,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
150
142
|
sizeError: (event: UploadChangeEvent) => boolean;
|
|
151
143
|
typeError: (event: UploadChangeEvent) => boolean;
|
|
152
144
|
sort: (event: UploadSortEvent) => boolean;
|
|
153
|
-
}, string, import(
|
|
145
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
154
146
|
method: {
|
|
155
147
|
type: StringConstructor;
|
|
156
148
|
default: string;
|
|
@@ -187,10 +179,6 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
187
179
|
};
|
|
188
180
|
transformFile: PropType<(file: File) => File | Blob | Promise<File | Blob>>;
|
|
189
181
|
fileList: PropType<UploadFile[]>;
|
|
190
|
-
defaultFileList: {
|
|
191
|
-
type: PropType<UploadFile[]>;
|
|
192
|
-
default: () => never[];
|
|
193
|
-
};
|
|
194
182
|
autoTrigger: {
|
|
195
183
|
type: BooleanType;
|
|
196
184
|
default: boolean;
|
|
@@ -233,10 +221,9 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
233
221
|
preview: boolean | undefined;
|
|
234
222
|
method: string;
|
|
235
223
|
timeout: number;
|
|
236
|
-
defaultFileList: UploadFile[];
|
|
237
224
|
autoTrigger: boolean | undefined;
|
|
238
225
|
validateAccept: boolean | undefined;
|
|
239
226
|
maxConcurrent: number;
|
|
240
|
-
}, {}, {}, {}, string, import(
|
|
227
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
241
228
|
export default _default;
|
|
242
|
-
export type { UploadChangeEvent, UploadCustomRequest, UploadFile, UploadRequestHandle, UploadRequestOptions, UploadSortEvent, } from
|
|
229
|
+
export type { UploadChangeEvent, UploadCustomRequest, UploadFile, UploadRequestHandle, UploadRequestOptions, UploadSortEvent, } from "./types";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
2
|
-
import { BooleanType } from
|
|
3
|
-
import { IconType } from
|
|
4
|
-
import
|
|
5
|
-
import { UploadFile } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType } from "../const/types";
|
|
3
|
+
import type { IconType } from "../icon";
|
|
4
|
+
import zhCN from "../locale/zh-CN";
|
|
5
|
+
import type { UploadFile } from "./types";
|
|
6
6
|
declare const selectorProps: {
|
|
7
7
|
disabled: BooleanType;
|
|
8
8
|
readonly: BooleanType;
|
|
@@ -27,7 +27,7 @@ declare const selectorProps: {
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
export type SelectorProps = ExtractPropTypes<typeof selectorProps>;
|
|
30
|
-
declare const _default: import(
|
|
30
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
31
31
|
disabled: BooleanType;
|
|
32
32
|
readonly: BooleanType;
|
|
33
33
|
name: {
|
|
@@ -49,9 +49,9 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
49
49
|
default: string;
|
|
50
50
|
validator: (val: string) => boolean;
|
|
51
51
|
};
|
|
52
|
-
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import(
|
|
52
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
53
|
select: (files: File[]) => boolean;
|
|
54
|
-
}, string, import(
|
|
54
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
55
55
|
disabled: BooleanType;
|
|
56
56
|
readonly: BooleanType;
|
|
57
57
|
name: {
|
|
@@ -78,5 +78,5 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
78
78
|
}>, {
|
|
79
79
|
name: string;
|
|
80
80
|
type: "picture" | "list";
|
|
81
|
-
}, {}, {}, {}, string, import(
|
|
81
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
82
82
|
export default _default;
|
package/types/upload/types.d.ts
CHANGED
package/types/utils/checked.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValueType } from
|
|
1
|
+
import type { ValueType } from "../const/types";
|
|
2
2
|
export declare const getValueWithType: (checked: boolean, vType: ValueType) => string | number | boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type WritableComputedRef } from "vue";
|
|
2
|
+
/** Capture value once; subsequent external updates belong to modelValue. */
|
|
3
|
+
export declare function useInitialValue<T>(props: {
|
|
4
|
+
modelValue?: T;
|
|
5
|
+
value: T;
|
|
6
|
+
}): WritableComputedRef<T>;
|
|
7
|
+
export declare function useInitialValue<T>(props: {
|
|
8
|
+
modelValue?: T;
|
|
9
|
+
value?: T;
|
|
10
|
+
}): WritableComputedRef<T | undefined>;
|
package/types/utils/number.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SliderProps } from '../slider';
|
|
2
1
|
export declare const isEmpty: (value: unknown) => boolean;
|
|
3
2
|
export declare const isRealNum: (val: unknown) => boolean;
|
|
4
3
|
export declare const normalize: (val: unknown, precision?: number) => string;
|
|
5
4
|
export declare const isValidBig: (val: unknown) => boolean;
|
|
5
|
+
import type { SliderProps } from "../slider";
|
|
6
6
|
export declare const getClosestStep: (val: number, { min, max, step, marks }: SliderProps) => number;
|