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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type PopupTrigger = "hover" | "click" | "focus" | "contextmenu" | "manual";
|
|
2
|
+
export type PopupOpenReason = "trigger" | "hover" | "focus" | "contextmenu" | "outside" | "escape" | "programmatic" | "host";
|
|
3
|
+
export interface PopupOpenChangeDetail {
|
|
4
|
+
reason: PopupOpenReason;
|
|
5
|
+
event?: Event;
|
|
6
|
+
}
|
|
7
|
+
export interface PopupRef {
|
|
8
|
+
open: () => void;
|
|
9
|
+
close: () => void;
|
|
10
|
+
updatePosition: () => void;
|
|
11
|
+
cancelClose: () => void;
|
|
12
|
+
scheduleClose: () => void;
|
|
13
|
+
getTriggerElement: () => HTMLElement | null;
|
|
14
|
+
getPopupElement: () => HTMLElement | null;
|
|
15
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType, VNodeChild } from
|
|
2
|
-
import { BooleanType, ProgressStatus, ProgressStroke, ProgressType, SizeType } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import type { BooleanType, ProgressStatus, ProgressStroke, ProgressType, SizeType } from "../const/types";
|
|
3
3
|
declare const progressProps: {
|
|
4
4
|
percent: {
|
|
5
5
|
type: NumberConstructor;
|
|
@@ -38,7 +38,7 @@ declare const progressProps: {
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
export type ProgressProps = ExtractPropTypes<typeof progressProps>;
|
|
41
|
-
declare const Progress: import(
|
|
41
|
+
declare const Progress: import("vue").DefineComponent<ExtractPropTypes<{
|
|
42
42
|
percent: {
|
|
43
43
|
type: NumberConstructor;
|
|
44
44
|
default: number;
|
|
@@ -74,7 +74,7 @@ declare const Progress: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
74
74
|
type: BooleanType;
|
|
75
75
|
default: boolean;
|
|
76
76
|
};
|
|
77
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
77
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
78
78
|
percent: {
|
|
79
79
|
type: NumberConstructor;
|
|
80
80
|
default: number;
|
|
@@ -118,6 +118,6 @@ declare const Progress: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
118
118
|
percent: number;
|
|
119
119
|
gapDegree: number;
|
|
120
120
|
showInfo: boolean | undefined;
|
|
121
|
-
}, {}, {}, {}, string, import(
|
|
121
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
122
122
|
export default Progress;
|
|
123
|
-
export type { ProgressStatus, ProgressStroke, ProgressType } from
|
|
123
|
+
export type { ProgressStatus, ProgressStroke, ProgressType } from "../const/types";
|
package/types/qrcode/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
2
|
-
import { BooleanType, QRCodeErrorLevel, QRCodeStatus, ShapeType, ThemeType } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType, QRCodeErrorLevel, QRCodeStatus, ShapeType, ThemeType } from "../const/types";
|
|
3
3
|
declare const qrCodeProps: {
|
|
4
4
|
value: {
|
|
5
5
|
type: StringConstructor;
|
|
@@ -61,7 +61,7 @@ export type QRCodeProps = ExtractPropTypes<typeof qrCodeProps>;
|
|
|
61
61
|
export interface QRCodeRef {
|
|
62
62
|
download: (fileName?: string) => Promise<void>;
|
|
63
63
|
}
|
|
64
|
-
declare const QRCode: import(
|
|
64
|
+
declare const QRCode: import("vue").DefineComponent<ExtractPropTypes<{
|
|
65
65
|
value: {
|
|
66
66
|
type: StringConstructor;
|
|
67
67
|
required: boolean;
|
|
@@ -117,9 +117,9 @@ declare const QRCode: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
117
117
|
type: PropType<QRCodeErrorLevel>;
|
|
118
118
|
default: string;
|
|
119
119
|
};
|
|
120
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
120
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
121
121
|
refresh: () => true;
|
|
122
|
-
}, string, import(
|
|
122
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
123
123
|
value: {
|
|
124
124
|
type: StringConstructor;
|
|
125
125
|
required: boolean;
|
|
@@ -190,6 +190,6 @@ declare const QRCode: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
190
190
|
logoRadius: number;
|
|
191
191
|
logoBorder: boolean | undefined;
|
|
192
192
|
errorLevel: QRCodeErrorLevel;
|
|
193
|
-
}, {}, {}, {}, string, import(
|
|
193
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
194
194
|
export default QRCode;
|
|
195
|
-
export type { QRCodeErrorLevel, QRCodeStatus } from
|
|
195
|
+
export type { QRCodeErrorLevel, QRCodeStatus } from "../const/types";
|
package/types/radio/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
export type { RadioProps } from
|
|
5
|
-
export type { RadioButtonProps } from
|
|
6
|
-
export type { RadioGroupProps } from
|
|
7
|
-
export type { RadioOption } from
|
|
1
|
+
import Radio from "./radio";
|
|
2
|
+
import RadioButton from "./radio-button";
|
|
3
|
+
import RadioGroup from "./radio-group";
|
|
4
|
+
export type { RadioProps } from "./radio";
|
|
5
|
+
export type { RadioButtonProps } from "./radio-button";
|
|
6
|
+
export type { RadioGroupProps } from "./radio-group";
|
|
7
|
+
export type { RadioOption } from "./types";
|
|
8
|
+
export type { ChangeEvent as RadioChangeEvent } from "./types";
|
|
8
9
|
export { Radio, RadioButton, RadioGroup };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
2
|
-
import { BooleanType, ShapeType, SizeType, ThemeType } from
|
|
3
|
-
import { IconType } from
|
|
4
|
-
import { ChangeEvent } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType, ShapeType, SizeType, ThemeType } from "../const/types";
|
|
3
|
+
import type { IconType } from "../icon";
|
|
4
|
+
import type { ChangeEvent } from "./types";
|
|
5
5
|
declare const radioButtonProps: {
|
|
6
6
|
modelValue: {
|
|
7
7
|
type: BooleanConstructor;
|
|
@@ -26,7 +26,7 @@ declare const radioButtonProps: {
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
export type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>;
|
|
29
|
-
declare const _default: import(
|
|
29
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
30
30
|
modelValue: {
|
|
31
31
|
type: BooleanConstructor;
|
|
32
32
|
default: undefined;
|
|
@@ -48,11 +48,11 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
48
48
|
shape: {
|
|
49
49
|
type: PropType<ShapeType>;
|
|
50
50
|
};
|
|
51
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
51
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
52
52
|
change: (event: ChangeEvent) => boolean;
|
|
53
53
|
"update:modelValue": (value: boolean) => boolean;
|
|
54
54
|
"update:checked": (value: boolean) => boolean;
|
|
55
|
-
}, string, import(
|
|
55
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
56
56
|
modelValue: {
|
|
57
57
|
type: BooleanConstructor;
|
|
58
58
|
default: undefined;
|
|
@@ -80,5 +80,5 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
80
80
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
81
81
|
}>, {
|
|
82
82
|
modelValue: boolean;
|
|
83
|
-
}, {}, {}, {}, string, import(
|
|
83
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
84
84
|
export default _default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
2
|
-
import { BooleanType, DirectionType, RadioType, ShapeType, SizeType, ThemeType } from
|
|
3
|
-
import { RadioOption } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType, DirectionType, RadioType, ShapeType, SizeType, ThemeType } from "../const/types";
|
|
3
|
+
import type { RadioOption } from "./types";
|
|
4
4
|
declare const radioGroupProps: {
|
|
5
5
|
modelValue: PropType<string | number>;
|
|
6
|
+
value: PropType<string | number>;
|
|
6
7
|
disabled: BooleanType;
|
|
7
8
|
readonly: BooleanType;
|
|
8
9
|
direction: {
|
package/types/radio/radio.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
2
|
-
import { BooleanType, SizeType, ThemeType } from
|
|
3
|
-
import { ChangeEvent } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType, SizeType, ThemeType } from "../const/types";
|
|
3
|
+
import type { ChangeEvent } from "./types";
|
|
4
4
|
declare const radioProps: {
|
|
5
5
|
modelValue: {
|
|
6
6
|
type: BooleanConstructor;
|
|
@@ -25,7 +25,7 @@ declare const radioProps: {
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
export type RadioProps = ExtractPropTypes<typeof radioProps>;
|
|
28
|
-
declare const _default: import(
|
|
28
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
29
29
|
modelValue: {
|
|
30
30
|
type: BooleanConstructor;
|
|
31
31
|
default: undefined;
|
|
@@ -47,11 +47,11 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
47
47
|
size: {
|
|
48
48
|
type: PropType<SizeType>;
|
|
49
49
|
};
|
|
50
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
50
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
51
|
change: (event: ChangeEvent) => boolean;
|
|
52
52
|
"update:modelValue": (value: boolean) => boolean;
|
|
53
53
|
"update:checked": (value: boolean) => boolean;
|
|
54
|
-
}, string, import(
|
|
54
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
55
55
|
modelValue: {
|
|
56
56
|
type: BooleanConstructor;
|
|
57
57
|
default: undefined;
|
|
@@ -80,5 +80,5 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
80
80
|
}>, {
|
|
81
81
|
theme: ThemeType;
|
|
82
82
|
modelValue: boolean;
|
|
83
|
-
}, {}, {}, {}, string, import(
|
|
83
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
84
84
|
export default _default;
|
package/types/radio/types.d.ts
CHANGED
package/types/rate/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType, VNodeChild } from
|
|
2
|
-
import { BooleanType, SizeType } from
|
|
3
|
-
import { IconType } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import { type BooleanType, type SizeType } from "../const/types";
|
|
3
|
+
import type { IconType } from "../icon";
|
|
4
4
|
declare const rateProps: {
|
|
5
5
|
modelValue: NumberConstructor;
|
|
6
6
|
value: {
|
|
@@ -31,7 +31,7 @@ declare const rateProps: {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
export type RateProps = ExtractPropTypes<typeof rateProps>;
|
|
34
|
-
declare const _default: import(
|
|
34
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
35
35
|
modelValue: NumberConstructor;
|
|
36
36
|
value: {
|
|
37
37
|
type: NumberConstructor;
|
|
@@ -59,10 +59,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
59
59
|
type: NumberConstructor;
|
|
60
60
|
default: number;
|
|
61
61
|
};
|
|
62
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
62
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
63
|
"update:modelValue": (value: number) => boolean;
|
|
64
64
|
change: (value: number) => boolean;
|
|
65
|
-
}, string, import(
|
|
65
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
66
66
|
modelValue: NumberConstructor;
|
|
67
67
|
value: {
|
|
68
68
|
type: NumberConstructor;
|
|
@@ -98,5 +98,5 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
98
98
|
value: number;
|
|
99
99
|
count: number;
|
|
100
100
|
allowClear: boolean | undefined;
|
|
101
|
-
}, {}, {}, {}, string, import(
|
|
101
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
102
102
|
export default _default;
|
package/types/rate/star.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType, VNodeChild } from
|
|
2
|
-
import { BooleanType } from
|
|
3
|
-
import { IconType } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import type { BooleanType } from "../const/types";
|
|
3
|
+
import { type IconType } from "../icon";
|
|
4
4
|
declare const starProps: {
|
|
5
5
|
character: PropType<string | ((index: number) => VNodeChild)>;
|
|
6
6
|
tooltips: StringConstructor;
|
|
@@ -22,7 +22,7 @@ declare const starProps: {
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export type StarProps = ExtractPropTypes<typeof starProps>;
|
|
25
|
-
declare const _default: import(
|
|
25
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
26
26
|
character: PropType<string | ((index: number) => VNodeChild)>;
|
|
27
27
|
tooltips: StringConstructor;
|
|
28
28
|
percent: NumberConstructor;
|
|
@@ -41,9 +41,9 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
41
41
|
type: NumberConstructor;
|
|
42
42
|
default: number;
|
|
43
43
|
};
|
|
44
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
44
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
45
|
update: (type: "C" | "M", index: number, percent: number) => boolean;
|
|
46
|
-
}, string, import(
|
|
46
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
47
47
|
character: PropType<string | ((index: number) => VNodeChild)>;
|
|
48
48
|
tooltips: StringConstructor;
|
|
49
49
|
percent: NumberConstructor;
|
|
@@ -66,5 +66,5 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
66
66
|
onUpdate?: ((type: "C" | "M", index: number, percent: number) => any) | undefined;
|
|
67
67
|
}>, {
|
|
68
68
|
strokeWidth: number;
|
|
69
|
-
}, {}, {}, {}, string, import(
|
|
69
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
70
70
|
export default _default;
|
package/types/result/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export type { ResultStatus } from
|
|
3
|
-
export type { ResultProps } from
|
|
1
|
+
import Result from "./result";
|
|
2
|
+
export type { ResultStatus } from "../const/types";
|
|
3
|
+
export type { ResultProps } from "./result";
|
|
4
4
|
export default Result;
|
package/types/result/result.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType, VNodeChild } from
|
|
2
|
-
import { ResultStatus } from
|
|
3
|
-
import { IconType } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import type { ResultStatus } from "../const/types";
|
|
3
|
+
import { type IconType } from "../icon";
|
|
4
4
|
declare const resultProps: {
|
|
5
5
|
status: {
|
|
6
6
|
type: PropType<ResultStatus>;
|
|
@@ -11,7 +11,7 @@ declare const resultProps: {
|
|
|
11
11
|
icon: PropType<IconType[]>;
|
|
12
12
|
};
|
|
13
13
|
export type ResultProps = ExtractPropTypes<typeof resultProps>;
|
|
14
|
-
declare const Result: import(
|
|
14
|
+
declare const Result: import("vue").DefineComponent<ExtractPropTypes<{
|
|
15
15
|
status: {
|
|
16
16
|
type: PropType<ResultStatus>;
|
|
17
17
|
default: string;
|
|
@@ -19,7 +19,7 @@ declare const Result: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
19
19
|
title: PropType<VNodeChild>;
|
|
20
20
|
subTitle: PropType<VNodeChild>;
|
|
21
21
|
icon: PropType<IconType[]>;
|
|
22
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
22
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
23
23
|
status: {
|
|
24
24
|
type: PropType<ResultStatus>;
|
|
25
25
|
default: string;
|
|
@@ -29,6 +29,6 @@ declare const Result: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
29
29
|
icon: PropType<IconType[]>;
|
|
30
30
|
}>> & Readonly<{}>, {
|
|
31
31
|
status: ResultStatus;
|
|
32
|
-
}, {}, {}, {}, string, import(
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
33
|
export default Result;
|
|
34
|
-
export type { ResultStatus } from
|
|
34
|
+
export type { ResultStatus } from "../const/types";
|
package/types/ripple/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
2
|
-
import { RippleInstance, RippleOptions, RippleTrigger } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import { type RippleInstance, type RippleOptions, type RippleTrigger } from "./engine";
|
|
3
3
|
declare const rippleProps: {
|
|
4
4
|
amplitude: NumberConstructor;
|
|
5
5
|
speed: NumberConstructor;
|
|
@@ -14,7 +14,7 @@ declare const rippleProps: {
|
|
|
14
14
|
};
|
|
15
15
|
export type RippleProps = ExtractPropTypes<typeof rippleProps>;
|
|
16
16
|
export type { RippleInstance, RippleOptions, RippleTrigger };
|
|
17
|
-
declare const Ripple: import(
|
|
17
|
+
declare const Ripple: import("vue").DefineComponent<ExtractPropTypes<{
|
|
18
18
|
amplitude: NumberConstructor;
|
|
19
19
|
speed: NumberConstructor;
|
|
20
20
|
wavelength: NumberConstructor;
|
|
@@ -25,9 +25,9 @@ declare const Ripple: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
shine: NumberConstructor;
|
|
26
26
|
trigger: PropType<RippleTrigger>;
|
|
27
27
|
interval: NumberConstructor;
|
|
28
|
-
}>, () => import(
|
|
28
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
29
|
[key: string]: any;
|
|
30
|
-
}>, {}, {}, {}, import(
|
|
30
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
31
31
|
amplitude: NumberConstructor;
|
|
32
32
|
speed: NumberConstructor;
|
|
33
33
|
wavelength: NumberConstructor;
|
|
@@ -38,5 +38,5 @@ declare const Ripple: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
38
38
|
shine: NumberConstructor;
|
|
39
39
|
trigger: PropType<RippleTrigger>;
|
|
40
40
|
interval: NumberConstructor;
|
|
41
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import(
|
|
41
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
42
|
export default Ripple;
|
package/types/row-col/col.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
1
|
+
import type { ExtractPropTypes, PropType } from "vue";
|
|
2
2
|
export interface ColSize {
|
|
3
3
|
span?: number;
|
|
4
4
|
offset?: number;
|
|
@@ -22,7 +22,7 @@ declare const colProps: {
|
|
|
22
22
|
xxl: PropType<ColResponsiveSize>;
|
|
23
23
|
};
|
|
24
24
|
export type ColProps = ExtractPropTypes<typeof colProps>;
|
|
25
|
-
declare const Col: import(
|
|
25
|
+
declare const Col: import("vue").DefineComponent<ExtractPropTypes<{
|
|
26
26
|
span: NumberConstructor;
|
|
27
27
|
offset: NumberConstructor;
|
|
28
28
|
order: NumberConstructor;
|
|
@@ -35,7 +35,7 @@ declare const Col: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
35
35
|
lg: PropType<ColResponsiveSize>;
|
|
36
36
|
xl: PropType<ColResponsiveSize>;
|
|
37
37
|
xxl: PropType<ColResponsiveSize>;
|
|
38
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
38
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
39
39
|
span: NumberConstructor;
|
|
40
40
|
offset: NumberConstructor;
|
|
41
41
|
order: NumberConstructor;
|
|
@@ -48,5 +48,5 @@ declare const Col: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
48
48
|
lg: PropType<ColResponsiveSize>;
|
|
49
49
|
xl: PropType<ColResponsiveSize>;
|
|
50
50
|
xxl: PropType<ColResponsiveSize>;
|
|
51
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import(
|
|
51
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
52
52
|
export default Col;
|
package/types/row-col/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export type { ColProps, ColResponsiveSize, ColSize } from
|
|
4
|
-
export type { RowProps } from
|
|
1
|
+
import Col from "./col";
|
|
2
|
+
import Row from "./row";
|
|
3
|
+
export type { ColProps, ColResponsiveSize, ColSize } from "./col";
|
|
4
|
+
export type { RowProps } from "./row";
|
|
5
5
|
export { Col, Row };
|
package/types/row-col/row.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
1
|
+
import type { ExtractPropTypes, PropType } from "vue";
|
|
2
2
|
declare const rowProps: {
|
|
3
3
|
gutter: PropType<number | [number, number]>;
|
|
4
4
|
justify: {
|
|
@@ -11,7 +11,7 @@ declare const rowProps: {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export type RowProps = ExtractPropTypes<typeof rowProps>;
|
|
14
|
-
declare const Row: import(
|
|
14
|
+
declare const Row: import("vue").DefineComponent<ExtractPropTypes<{
|
|
15
15
|
gutter: PropType<number | [number, number]>;
|
|
16
16
|
justify: {
|
|
17
17
|
type: PropType<"start" | "end" | "center" | "space-around" | "space-between">;
|
|
@@ -21,7 +21,7 @@ declare const Row: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
21
21
|
type: PropType<"top" | "middle" | "bottom">;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
24
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
25
25
|
gutter: PropType<number | [number, number]>;
|
|
26
26
|
justify: {
|
|
27
27
|
type: PropType<"start" | "end" | "center" | "space-around" | "space-between">;
|
|
@@ -34,5 +34,5 @@ declare const Row: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
34
34
|
}>> & Readonly<{}>, {
|
|
35
35
|
justify: "space-around" | "space-between" | "center" | "end" | "start";
|
|
36
36
|
align: "bottom" | "top" | "middle";
|
|
37
|
-
}, {}, {}, {}, string, import(
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
38
|
export default Row;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType, VNodeChild } from
|
|
2
|
-
import { BooleanType, ShapeType, SizeType } from
|
|
3
|
-
import { IconType } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import type { BooleanType, ShapeType, SizeType } from "../const/types";
|
|
3
|
+
import { type IconType } from "../icon";
|
|
4
4
|
export type SegmentedValue = string | number;
|
|
5
5
|
export interface SegmentedOption {
|
|
6
6
|
label?: VNodeChild;
|
|
@@ -11,6 +11,7 @@ export interface SegmentedOption {
|
|
|
11
11
|
}
|
|
12
12
|
declare const segmentedProps: {
|
|
13
13
|
modelValue: PropType<SegmentedValue>;
|
|
14
|
+
value: PropType<SegmentedValue>;
|
|
14
15
|
options: {
|
|
15
16
|
type: PropType<SegmentedOption[]>;
|
|
16
17
|
default: () => never[];
|
|
@@ -32,8 +33,9 @@ declare const segmentedProps: {
|
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
35
|
export type SegmentedProps = ExtractPropTypes<typeof segmentedProps>;
|
|
35
|
-
type SegmentedPublicProps<T extends SegmentedValue> = Omit<Partial<SegmentedProps>, "modelValue"> & {
|
|
36
|
+
type SegmentedPublicProps<T extends SegmentedValue> = Omit<Partial<SegmentedProps>, "modelValue" | "value"> & {
|
|
36
37
|
modelValue?: T;
|
|
38
|
+
value?: T;
|
|
37
39
|
"onUpdate:modelValue"?: (value: T) => void;
|
|
38
40
|
onChange?: (value: T) => void;
|
|
39
41
|
};
|
package/types/select/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export type { OptionProps } from
|
|
4
|
-
export type { SelectProps } from
|
|
5
|
-
export type { SelectOption } from
|
|
1
|
+
import Option from "./option";
|
|
2
|
+
import Select from "./select";
|
|
3
|
+
export type { OptionProps } from "./option";
|
|
4
|
+
export type { SelectProps } from "./select";
|
|
5
|
+
export type { SelectOption, SelectValue, OptionSelectEvent } from "./types";
|
|
6
6
|
export { Option, Select };
|
package/types/select/option.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DefineComponent, ExtractPropTypes, HTMLAttributes, PropType, VNodeChild } from
|
|
2
|
-
import { BooleanType } from
|
|
1
|
+
import { type DefineComponent, type ExtractPropTypes, type HTMLAttributes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import { type BooleanType } from "../const/types";
|
|
3
|
+
import type { OptionSelectEvent } from "./types";
|
|
3
4
|
declare const optionProps: {
|
|
4
5
|
value: {
|
|
5
6
|
type: PropType<string | number>;
|
|
@@ -26,12 +27,11 @@ declare const Option: DefineComponent<ExtractPropTypes<{
|
|
|
26
27
|
checked: BooleanType;
|
|
27
28
|
active: BooleanType;
|
|
28
29
|
multiple: BooleanType;
|
|
29
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
30
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
click: (event: MouseEvent) => boolean;
|
|
32
|
+
mouseenter: (event: MouseEvent) => boolean;
|
|
33
|
+
select: (option: OptionSelectEvent) => boolean;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
35
35
|
value: {
|
|
36
36
|
type: PropType<string | number>;
|
|
37
37
|
required: boolean;
|
|
@@ -44,11 +44,10 @@ declare const Option: DefineComponent<ExtractPropTypes<{
|
|
|
44
44
|
active: BooleanType;
|
|
45
45
|
multiple: BooleanType;
|
|
46
46
|
}>> & Readonly<{
|
|
47
|
-
onSelect?: ((option:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
onSelect?: ((option: OptionSelectEvent) => any) | undefined;
|
|
48
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
49
|
+
onMouseenter?: ((event: MouseEvent) => any) | undefined;
|
|
50
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
52
51
|
declare const _default: typeof Option & DefineComponent<OptionProps>;
|
|
53
52
|
export default _default;
|
|
54
|
-
export type { OptionSelectEvent } from
|
|
53
|
+
export type { OptionSelectEvent } from "./types";
|
package/types/select/select.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExtractPropTypes, HTMLAttributes, PropType } from
|
|
2
|
-
import { IconType } from
|
|
3
|
-
import { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from
|
|
4
|
-
import { OptionSelectEvent, SelectOption, SelectValue } from
|
|
1
|
+
import { type ExtractPropTypes, type HTMLAttributes, type PropType } from "vue";
|
|
2
|
+
import { type IconType } from "../icon";
|
|
3
|
+
import type { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from "../const/types";
|
|
4
|
+
import type { OptionSelectEvent, SelectOption, SelectValue } from "./types";
|
|
5
5
|
declare const selectProps: {
|
|
6
6
|
placeholder: StringConstructor;
|
|
7
7
|
size: {
|
|
@@ -14,6 +14,7 @@ declare const selectProps: {
|
|
|
14
14
|
width: NumberConstructor;
|
|
15
15
|
maxTagCount: NumberConstructor;
|
|
16
16
|
modelValue: PropType<SelectValue | SelectValue[]>;
|
|
17
|
+
value: PropType<SelectValue | SelectValue[]>;
|
|
17
18
|
clearable: {
|
|
18
19
|
type: BooleanType;
|
|
19
20
|
default: boolean;
|
|
@@ -55,12 +56,15 @@ declare const selectProps: {
|
|
|
55
56
|
};
|
|
56
57
|
export type SelectProps = ExtractPropTypes<typeof selectProps>;
|
|
57
58
|
type SelectModelValue = SelectValue | SelectValue[];
|
|
58
|
-
type SelectPublicProps<T extends SelectModelValue> = Omit<Partial<SelectProps>, "modelValue"> & Omit<HTMLAttributes, "onChange" | "onSelect"> & {
|
|
59
|
+
type SelectPublicProps<T extends SelectModelValue> = Omit<Partial<SelectProps>, "modelValue" | "value"> & Omit<HTMLAttributes, "onChange" | "onSelect"> & {
|
|
59
60
|
modelValue?: T;
|
|
61
|
+
value?: T;
|
|
60
62
|
"onUpdate:modelValue"?: (value: T) => void;
|
|
61
63
|
onChange?: (value: T) => void;
|
|
62
64
|
onSearch?: (event: InputEvent) => void;
|
|
63
65
|
onSelect?: (option: OptionSelectEvent) => void;
|
|
66
|
+
onOpenChange?: (open: boolean) => void;
|
|
67
|
+
onClear?: () => void;
|
|
64
68
|
};
|
|
65
69
|
type SelectComponent = {
|
|
66
70
|
new <T extends SelectModelValue = SelectValue>(props: SelectPublicProps<T>): {
|
|
@@ -69,4 +73,4 @@ type SelectComponent = {
|
|
|
69
73
|
};
|
|
70
74
|
declare const _default: SelectComponent;
|
|
71
75
|
export default _default;
|
|
72
|
-
export type { SelectOption } from
|
|
76
|
+
export type { SelectOption } from "./types";
|
package/types/select/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { VNodeChild } from 'vue';
|
|
2
1
|
export type SelectValue = string | number;
|
|
3
2
|
export interface SelectOption {
|
|
4
3
|
label: SelectValue;
|
|
@@ -10,3 +9,4 @@ export interface OptionSelectEvent {
|
|
|
10
9
|
label: VNodeChild;
|
|
11
10
|
selected?: boolean;
|
|
12
11
|
}
|
|
12
|
+
import type { VNodeChild } from "vue";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
export type { SkeletonProps } from
|
|
7
|
-
export type { SkeletonAvatarProps } from
|
|
8
|
-
export type { SkeletonButtonProps } from
|
|
9
|
-
export type { SkeletonImageProps } from
|
|
10
|
-
export type { SkeletonTextProps } from
|
|
1
|
+
import Skeleton from "./skeleton";
|
|
2
|
+
import SkeletonAvatar from "./skeleton-avatar";
|
|
3
|
+
import SkeletonButton from "./skeleton-button";
|
|
4
|
+
import SkeletonImage from "./skeleton-image";
|
|
5
|
+
import SkeletonText from "./skeleton-text";
|
|
6
|
+
export type { SkeletonProps } from "./skeleton";
|
|
7
|
+
export type { SkeletonAvatarProps } from "./skeleton-avatar";
|
|
8
|
+
export type { SkeletonButtonProps } from "./skeleton-button";
|
|
9
|
+
export type { SkeletonImageProps } from "./skeleton-image";
|
|
10
|
+
export type { SkeletonTextProps } from "./skeleton-text";
|
|
11
11
|
export { Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonText };
|