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/modal/toast.d.ts
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { PropType } from
|
|
2
|
-
import { IconType } from
|
|
3
|
-
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import { type IconType } from "../icon";
|
|
3
|
+
import type { ModalApiProps } from "./index";
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
5
|
title: StringConstructor;
|
|
5
6
|
okText: StringConstructor;
|
|
6
7
|
cancelText: StringConstructor;
|
|
7
8
|
content: StringConstructor;
|
|
8
9
|
color: StringConstructor;
|
|
9
10
|
icon: PropType<IconType[]>;
|
|
10
|
-
onOk:
|
|
11
|
-
onCancel:
|
|
11
|
+
onOk: PropType<NonNullable<ModalApiProps["onOk"]>>;
|
|
12
|
+
onCancel: PropType<NonNullable<ModalApiProps["onCancel"]>>;
|
|
12
13
|
type: {
|
|
13
14
|
type: PropType<"info" | "success" | "error" | "warning" | "confirm">;
|
|
14
15
|
default: string;
|
|
15
16
|
};
|
|
16
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
17
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
18
|
destroy: () => true;
|
|
18
|
-
}, string, import(
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
20
|
title: StringConstructor;
|
|
20
21
|
okText: StringConstructor;
|
|
21
22
|
cancelText: StringConstructor;
|
|
22
23
|
content: StringConstructor;
|
|
23
24
|
color: StringConstructor;
|
|
24
25
|
icon: PropType<IconType[]>;
|
|
25
|
-
onOk:
|
|
26
|
-
onCancel:
|
|
26
|
+
onOk: PropType<NonNullable<ModalApiProps["onOk"]>>;
|
|
27
|
+
onCancel: PropType<NonNullable<ModalApiProps["onCancel"]>>;
|
|
27
28
|
type: {
|
|
28
29
|
type: PropType<"info" | "success" | "error" | "warning" | "confirm">;
|
|
29
30
|
default: string;
|
|
@@ -32,5 +33,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
32
33
|
onDestroy?: (() => any) | undefined;
|
|
33
34
|
}>, {
|
|
34
35
|
type: "error" | "warning" | "success" | "info" | "confirm";
|
|
35
|
-
}, {}, {}, {}, string, import(
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
37
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
type: StringConstructor;
|
|
3
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
3
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
4
|
type: StringConstructor;
|
|
5
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import(
|
|
5
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
6
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ForwardedComponent } from "../utils/vue";
|
|
2
|
+
import { type ExtractPropTypes, type PropType, type VNode } from "vue";
|
|
3
|
+
import type { BooleanType, NoticeType } from "../const/types";
|
|
4
|
+
import { type IconType } from "../icon";
|
|
4
5
|
export declare const contentProps: {
|
|
5
6
|
type: {
|
|
6
7
|
type: PropType<NoticeType>;
|
|
@@ -21,7 +22,7 @@ export type ContentProps = ExtractPropTypes<typeof contentProps>;
|
|
|
21
22
|
export interface NoticeOptions extends ContentProps {
|
|
22
23
|
onClose?: () => void;
|
|
23
24
|
}
|
|
24
|
-
declare const NoticeContent: import(
|
|
25
|
+
declare const NoticeContent: import("vue").DefineComponent<ExtractPropTypes<{
|
|
25
26
|
type: {
|
|
26
27
|
type: PropType<NoticeType>;
|
|
27
28
|
};
|
|
@@ -36,9 +37,9 @@ declare const NoticeContent: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
36
37
|
default: string;
|
|
37
38
|
};
|
|
38
39
|
grouping: StringConstructor;
|
|
39
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
40
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
41
|
close: () => true;
|
|
41
|
-
}, string, import(
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
42
43
|
type: {
|
|
43
44
|
type: PropType<NoticeType>;
|
|
44
45
|
};
|
|
@@ -57,75 +58,7 @@ declare const NoticeContent: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
57
58
|
onClose?: (() => any) | undefined;
|
|
58
59
|
}>, {
|
|
59
60
|
noticeType: "message" | "notice";
|
|
60
|
-
}, {}, {}, {}, string, import(
|
|
61
|
-
export declare const MessagePanel:
|
|
62
|
-
|
|
63
|
-
type: PropType<NoticeType>;
|
|
64
|
-
};
|
|
65
|
-
title: StringConstructor;
|
|
66
|
-
content: PropType<string | VNode>;
|
|
67
|
-
icon: PropType<IconType[]>;
|
|
68
|
-
color: StringConstructor;
|
|
69
|
-
duration: NumberConstructor;
|
|
70
|
-
closable: BooleanType;
|
|
71
|
-
noticeType: {
|
|
72
|
-
type: PropType<"message" | "notice">;
|
|
73
|
-
default: string;
|
|
74
|
-
};
|
|
75
|
-
grouping: StringConstructor;
|
|
76
|
-
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
77
|
-
[key: string]: any;
|
|
78
|
-
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
79
|
-
type: {
|
|
80
|
-
type: PropType<NoticeType>;
|
|
81
|
-
};
|
|
82
|
-
title: StringConstructor;
|
|
83
|
-
content: PropType<string | VNode>;
|
|
84
|
-
icon: PropType<IconType[]>;
|
|
85
|
-
color: StringConstructor;
|
|
86
|
-
duration: NumberConstructor;
|
|
87
|
-
closable: BooleanType;
|
|
88
|
-
noticeType: {
|
|
89
|
-
type: PropType<"message" | "notice">;
|
|
90
|
-
default: string;
|
|
91
|
-
};
|
|
92
|
-
grouping: StringConstructor;
|
|
93
|
-
}>> & Readonly<{}>, {
|
|
94
|
-
noticeType: "message" | "notice";
|
|
95
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
96
|
-
export declare const NoticePanel: import('vue').DefineComponent<ExtractPropTypes<{
|
|
97
|
-
type: {
|
|
98
|
-
type: PropType<NoticeType>;
|
|
99
|
-
};
|
|
100
|
-
title: StringConstructor;
|
|
101
|
-
content: PropType<string | VNode>;
|
|
102
|
-
icon: PropType<IconType[]>;
|
|
103
|
-
color: StringConstructor;
|
|
104
|
-
duration: NumberConstructor;
|
|
105
|
-
closable: BooleanType;
|
|
106
|
-
noticeType: {
|
|
107
|
-
type: PropType<"message" | "notice">;
|
|
108
|
-
default: string;
|
|
109
|
-
};
|
|
110
|
-
grouping: StringConstructor;
|
|
111
|
-
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
112
|
-
[key: string]: any;
|
|
113
|
-
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
114
|
-
type: {
|
|
115
|
-
type: PropType<NoticeType>;
|
|
116
|
-
};
|
|
117
|
-
title: StringConstructor;
|
|
118
|
-
content: PropType<string | VNode>;
|
|
119
|
-
icon: PropType<IconType[]>;
|
|
120
|
-
color: StringConstructor;
|
|
121
|
-
duration: NumberConstructor;
|
|
122
|
-
closable: BooleanType;
|
|
123
|
-
noticeType: {
|
|
124
|
-
type: PropType<"message" | "notice">;
|
|
125
|
-
default: string;
|
|
126
|
-
};
|
|
127
|
-
grouping: StringConstructor;
|
|
128
|
-
}>> & Readonly<{}>, {
|
|
129
|
-
noticeType: "message" | "notice";
|
|
130
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
61
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
62
|
+
export declare const MessagePanel: ForwardedComponent<typeof NoticeContent>;
|
|
63
|
+
export declare const NoticePanel: ForwardedComponent<typeof NoticeContent>;
|
|
131
64
|
export default NoticeContent;
|
package/types/notice/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VNode } from
|
|
2
|
-
import { NoticeType } from
|
|
3
|
-
import { IconType } from
|
|
1
|
+
import type { VNode } from "vue";
|
|
2
|
+
import type { NoticeType } from "../const/types";
|
|
3
|
+
import type { IconType } from "../icon";
|
|
4
4
|
export interface NoticeOptions {
|
|
5
5
|
type?: NoticeType;
|
|
6
6
|
title?: string;
|
package/types/page/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from
|
|
2
|
-
import { BooleanType, ShapeType, SizeType, ThemeType } from
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType, ShapeType, SizeType, ThemeType } from "../const/types";
|
|
3
3
|
declare const pageProps: {
|
|
4
4
|
disabled: BooleanType;
|
|
5
5
|
showSizer: BooleanType;
|
|
@@ -38,7 +38,7 @@ declare const pageProps: {
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
export type PageProps = ExtractPropTypes<typeof pageProps>;
|
|
41
|
-
declare const Page: import(
|
|
41
|
+
declare const Page: import("vue").DefineComponent<ExtractPropTypes<{
|
|
42
42
|
disabled: BooleanType;
|
|
43
43
|
showSizer: BooleanType;
|
|
44
44
|
showTotal: {
|
|
@@ -74,11 +74,11 @@ declare const Page: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
74
74
|
default: number;
|
|
75
75
|
type: NumberConstructor;
|
|
76
76
|
};
|
|
77
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
77
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
78
78
|
"update:page": (page: number) => boolean;
|
|
79
79
|
"update:pageSize": (pageSize: number) => boolean;
|
|
80
80
|
change: (page: number, pageSize: number) => boolean;
|
|
81
|
-
}, string, import(
|
|
81
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
82
82
|
disabled: BooleanType;
|
|
83
83
|
showSizer: BooleanType;
|
|
84
84
|
showTotal: {
|
|
@@ -126,5 +126,5 @@ declare const Page: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
126
126
|
sizeData: number[];
|
|
127
127
|
total: number;
|
|
128
128
|
pageSize: number;
|
|
129
|
-
}, {}, {}, {}, string, import(
|
|
129
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
130
130
|
export default Page;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ExtractPropTypes } from
|
|
1
|
+
import { type ExtractPropTypes } from "vue";
|
|
2
2
|
declare const pageHeaderProps: {
|
|
3
3
|
title: StringConstructor;
|
|
4
4
|
description: StringConstructor;
|
|
5
5
|
};
|
|
6
6
|
export type PageHeaderProps = ExtractPropTypes<typeof pageHeaderProps>;
|
|
7
|
-
declare const PageHeader: import(
|
|
7
|
+
declare const PageHeader: import("vue").DefineComponent<ExtractPropTypes<{
|
|
8
8
|
title: StringConstructor;
|
|
9
9
|
description: StringConstructor;
|
|
10
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import(
|
|
10
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
11
11
|
title: StringConstructor;
|
|
12
12
|
description: StringConstructor;
|
|
13
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import(
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
export default PageHeader;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ForwardedComponent } from "../utils/vue";
|
|
2
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
3
|
+
import type { BooleanType, PlacementsType } from "../const/types";
|
|
3
4
|
declare const popconfirmProps: {
|
|
4
5
|
dark: BooleanType;
|
|
5
6
|
show: BooleanType;
|
|
@@ -18,7 +19,7 @@ declare const popconfirmProps: {
|
|
|
18
19
|
panelOnly: BooleanType;
|
|
19
20
|
};
|
|
20
21
|
export type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>;
|
|
21
|
-
declare const Popconfirm: import(
|
|
22
|
+
declare const Popconfirm: import("vue").DefineComponent<ExtractPropTypes<{
|
|
22
23
|
dark: BooleanType;
|
|
23
24
|
show: BooleanType;
|
|
24
25
|
title: PropType<VNodeChild>;
|
|
@@ -34,13 +35,11 @@ declare const Popconfirm: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
34
35
|
default: string;
|
|
35
36
|
};
|
|
36
37
|
panelOnly: BooleanType;
|
|
37
|
-
}>, () => import("vue/jsx-runtime").JSX.Element
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
38
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
39
|
"update:show": (show: boolean) => boolean;
|
|
41
40
|
ok: () => true;
|
|
42
41
|
cancel: () => true;
|
|
43
|
-
}, string, import(
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
44
43
|
dark: BooleanType;
|
|
45
44
|
show: BooleanType;
|
|
46
45
|
title: PropType<VNodeChild>;
|
|
@@ -62,42 +61,6 @@ declare const Popconfirm: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
62
61
|
onOk?: (() => any) | undefined;
|
|
63
62
|
}>, {
|
|
64
63
|
placement: PlacementsType;
|
|
65
|
-
}, {}, {}, {}, string, import(
|
|
66
|
-
export declare const PopconfirmPanel:
|
|
67
|
-
dark: BooleanType;
|
|
68
|
-
show: BooleanType;
|
|
69
|
-
title: PropType<VNodeChild>;
|
|
70
|
-
width: (NumberConstructor | StringConstructor)[];
|
|
71
|
-
okText: {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
};
|
|
74
|
-
cancelText: {
|
|
75
|
-
type: StringConstructor;
|
|
76
|
-
};
|
|
77
|
-
placement: {
|
|
78
|
-
type: PropType<PlacementsType>;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
|
-
panelOnly: BooleanType;
|
|
82
|
-
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
83
|
-
[key: string]: any;
|
|
84
|
-
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
85
|
-
dark: BooleanType;
|
|
86
|
-
show: BooleanType;
|
|
87
|
-
title: PropType<VNodeChild>;
|
|
88
|
-
width: (NumberConstructor | StringConstructor)[];
|
|
89
|
-
okText: {
|
|
90
|
-
type: StringConstructor;
|
|
91
|
-
};
|
|
92
|
-
cancelText: {
|
|
93
|
-
type: StringConstructor;
|
|
94
|
-
};
|
|
95
|
-
placement: {
|
|
96
|
-
type: PropType<PlacementsType>;
|
|
97
|
-
default: string;
|
|
98
|
-
};
|
|
99
|
-
panelOnly: BooleanType;
|
|
100
|
-
}>> & Readonly<{}>, {
|
|
101
|
-
placement: PlacementsType;
|
|
102
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
64
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
65
|
+
export declare const PopconfirmPanel: ForwardedComponent<typeof Popconfirm>;
|
|
103
66
|
export default Popconfirm;
|
package/types/poptip/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import type { ForwardedComponent } from "../utils/vue";
|
|
2
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
3
|
+
import type { BooleanType, PlacementsType } from "../const/types";
|
|
4
4
|
declare const poptipProps: {
|
|
5
5
|
dark: BooleanConstructor;
|
|
6
6
|
show: BooleanConstructor;
|
|
@@ -17,7 +17,8 @@ declare const poptipProps: {
|
|
|
17
17
|
};
|
|
18
18
|
panelOnly: BooleanType;
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
export type PoptipProps = ExtractPropTypes<typeof poptipProps>;
|
|
21
|
+
declare const Poptip: import("vue").DefineComponent<ExtractPropTypes<{
|
|
21
22
|
dark: BooleanConstructor;
|
|
22
23
|
show: BooleanConstructor;
|
|
23
24
|
title: PropType<VNodeChild>;
|
|
@@ -32,12 +33,10 @@ declare const Poptip: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
32
33
|
default: string;
|
|
33
34
|
};
|
|
34
35
|
panelOnly: BooleanType;
|
|
35
|
-
}>, () => import("vue/jsx-runtime").JSX.Element
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
}>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
37
|
"update:show": (show: boolean) => boolean;
|
|
39
38
|
close: () => true;
|
|
40
|
-
}, string, import(
|
|
39
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
41
40
|
dark: BooleanConstructor;
|
|
42
41
|
show: BooleanConstructor;
|
|
43
42
|
title: PropType<VNodeChild>;
|
|
@@ -58,45 +57,8 @@ declare const Poptip: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
58
57
|
}>, {
|
|
59
58
|
dark: boolean;
|
|
60
59
|
show: boolean;
|
|
61
|
-
placement: PlacementsType;
|
|
62
60
|
trigger: "click" | "focus" | "hover";
|
|
63
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
64
|
-
export declare const PoptipPanel: import('vue').DefineComponent<ExtractPropTypes<{
|
|
65
|
-
dark: BooleanConstructor;
|
|
66
|
-
show: BooleanConstructor;
|
|
67
|
-
title: PropType<VNodeChild>;
|
|
68
|
-
content: StringConstructor;
|
|
69
|
-
width: (NumberConstructor | StringConstructor)[];
|
|
70
|
-
trigger: {
|
|
71
|
-
type: PropType<"click" | "hover" | "focus">;
|
|
72
|
-
default: string;
|
|
73
|
-
};
|
|
74
|
-
placement: {
|
|
75
|
-
type: PropType<PlacementsType>;
|
|
76
|
-
default: string;
|
|
77
|
-
};
|
|
78
|
-
panelOnly: BooleanType;
|
|
79
|
-
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
80
|
-
[key: string]: any;
|
|
81
|
-
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
82
|
-
dark: BooleanConstructor;
|
|
83
|
-
show: BooleanConstructor;
|
|
84
|
-
title: PropType<VNodeChild>;
|
|
85
|
-
content: StringConstructor;
|
|
86
|
-
width: (NumberConstructor | StringConstructor)[];
|
|
87
|
-
trigger: {
|
|
88
|
-
type: PropType<"click" | "hover" | "focus">;
|
|
89
|
-
default: string;
|
|
90
|
-
};
|
|
91
|
-
placement: {
|
|
92
|
-
type: PropType<PlacementsType>;
|
|
93
|
-
default: string;
|
|
94
|
-
};
|
|
95
|
-
panelOnly: BooleanType;
|
|
96
|
-
}>> & Readonly<{}>, {
|
|
97
|
-
dark: boolean;
|
|
98
|
-
show: boolean;
|
|
99
61
|
placement: PlacementsType;
|
|
100
|
-
|
|
101
|
-
|
|
62
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
export declare const PoptipPanel: ForwardedComponent<typeof Poptip>;
|
|
102
64
|
export default Poptip;
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { type CSSProperties, type ExtractPropTypes, type PropType, type Ref, type SlotsType, type VNodeChild } from "vue";
|
|
2
|
+
import type { PlacementsType } from "../const/types";
|
|
3
|
+
import type { PopupOpenChangeDetail, PopupRef, PopupTrigger } from "./types";
|
|
4
|
+
export type { PopupOpenChangeDetail, PopupOpenReason, PopupRef, PopupTrigger } from "./types";
|
|
5
|
+
export declare const popupProps: {
|
|
6
|
+
open: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
disabled: BooleanConstructor;
|
|
11
|
+
placement: {
|
|
12
|
+
type: PropType<PlacementsType>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
trigger: {
|
|
16
|
+
type: PropType<PopupTrigger>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
arrow: BooleanConstructor;
|
|
20
|
+
offset: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
openDelay: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
closeDelay: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
closeOnOutsideClick: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
closeOnEscape: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
matchTriggerWidth: BooleanConstructor;
|
|
41
|
+
getPopupContainer: PropType<() => HTMLElement | null | undefined>;
|
|
42
|
+
destroyOnClose: BooleanConstructor;
|
|
43
|
+
target: PropType<HTMLElement | Ref<HTMLElement | {
|
|
44
|
+
$el: HTMLElement;
|
|
45
|
+
} | null>>;
|
|
46
|
+
overlay: PropType<VNodeChild>;
|
|
47
|
+
raw: BooleanConstructor;
|
|
48
|
+
outsideEvent: {
|
|
49
|
+
type: PropType<"click" | "mousedown">;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
transitionDuration: NumberConstructor;
|
|
53
|
+
getAnchorPosition: PropType<() => {
|
|
54
|
+
x: number;
|
|
55
|
+
y: number;
|
|
56
|
+
} | null>;
|
|
57
|
+
prefixCls: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
transitionName: StringConstructor;
|
|
62
|
+
panelOnly: BooleanConstructor;
|
|
63
|
+
triggerAttrs: PropType<Record<string, unknown>>;
|
|
64
|
+
respectDefaultPrevented: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
contentStyle: PropType<CSSProperties>;
|
|
69
|
+
hideWhenDetached: BooleanConstructor;
|
|
70
|
+
onTriggerKeydown: PropType<(event: KeyboardEvent, popup: PopupRef) => void>;
|
|
71
|
+
};
|
|
72
|
+
export type PopupProps = Partial<ExtractPropTypes<typeof popupProps>> & {
|
|
73
|
+
"onUpdate:open"?: (open: boolean) => void;
|
|
74
|
+
onOpenChange?: (open: boolean, detail: PopupOpenChangeDetail) => void;
|
|
75
|
+
onAfterOpen?: () => void;
|
|
76
|
+
onAfterClose?: () => void;
|
|
77
|
+
};
|
|
78
|
+
export declare const PopupArrow: ({ prefixCls }: {
|
|
79
|
+
prefixCls: string;
|
|
80
|
+
}) => import("vue/jsx-runtime").JSX.Element;
|
|
81
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
82
|
+
open: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: undefined;
|
|
85
|
+
};
|
|
86
|
+
disabled: BooleanConstructor;
|
|
87
|
+
placement: {
|
|
88
|
+
type: PropType<PlacementsType>;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
trigger: {
|
|
92
|
+
type: PropType<PopupTrigger>;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
arrow: BooleanConstructor;
|
|
96
|
+
offset: {
|
|
97
|
+
type: NumberConstructor;
|
|
98
|
+
default: number;
|
|
99
|
+
};
|
|
100
|
+
openDelay: {
|
|
101
|
+
type: NumberConstructor;
|
|
102
|
+
default: number;
|
|
103
|
+
};
|
|
104
|
+
closeDelay: {
|
|
105
|
+
type: NumberConstructor;
|
|
106
|
+
default: number;
|
|
107
|
+
};
|
|
108
|
+
closeOnOutsideClick: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
closeOnEscape: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
matchTriggerWidth: BooleanConstructor;
|
|
117
|
+
getPopupContainer: PropType<() => HTMLElement | null | undefined>;
|
|
118
|
+
destroyOnClose: BooleanConstructor;
|
|
119
|
+
target: PropType<HTMLElement | Ref<HTMLElement | {
|
|
120
|
+
$el: HTMLElement;
|
|
121
|
+
} | null>>;
|
|
122
|
+
overlay: PropType<VNodeChild>;
|
|
123
|
+
raw: BooleanConstructor;
|
|
124
|
+
outsideEvent: {
|
|
125
|
+
type: PropType<"click" | "mousedown">;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
transitionDuration: NumberConstructor;
|
|
129
|
+
getAnchorPosition: PropType<() => {
|
|
130
|
+
x: number;
|
|
131
|
+
y: number;
|
|
132
|
+
} | null>;
|
|
133
|
+
prefixCls: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
transitionName: StringConstructor;
|
|
138
|
+
panelOnly: BooleanConstructor;
|
|
139
|
+
triggerAttrs: PropType<Record<string, unknown>>;
|
|
140
|
+
respectDefaultPrevented: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
contentStyle: PropType<CSSProperties>;
|
|
145
|
+
hideWhenDetached: BooleanConstructor;
|
|
146
|
+
onTriggerKeydown: PropType<(event: KeyboardEvent, popup: PopupRef) => void>;
|
|
147
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
}> | (false | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
150
|
+
[key: string]: any;
|
|
151
|
+
}> | null)[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
152
|
+
"update:open": (open: boolean) => boolean;
|
|
153
|
+
openChange: (open: boolean, detail: PopupOpenChangeDetail) => boolean;
|
|
154
|
+
afterOpen: () => true;
|
|
155
|
+
afterClose: () => true;
|
|
156
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
157
|
+
open: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: undefined;
|
|
160
|
+
};
|
|
161
|
+
disabled: BooleanConstructor;
|
|
162
|
+
placement: {
|
|
163
|
+
type: PropType<PlacementsType>;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
trigger: {
|
|
167
|
+
type: PropType<PopupTrigger>;
|
|
168
|
+
default: string;
|
|
169
|
+
};
|
|
170
|
+
arrow: BooleanConstructor;
|
|
171
|
+
offset: {
|
|
172
|
+
type: NumberConstructor;
|
|
173
|
+
default: number;
|
|
174
|
+
};
|
|
175
|
+
openDelay: {
|
|
176
|
+
type: NumberConstructor;
|
|
177
|
+
default: number;
|
|
178
|
+
};
|
|
179
|
+
closeDelay: {
|
|
180
|
+
type: NumberConstructor;
|
|
181
|
+
default: number;
|
|
182
|
+
};
|
|
183
|
+
closeOnOutsideClick: {
|
|
184
|
+
type: BooleanConstructor;
|
|
185
|
+
default: boolean;
|
|
186
|
+
};
|
|
187
|
+
closeOnEscape: {
|
|
188
|
+
type: BooleanConstructor;
|
|
189
|
+
default: boolean;
|
|
190
|
+
};
|
|
191
|
+
matchTriggerWidth: BooleanConstructor;
|
|
192
|
+
getPopupContainer: PropType<() => HTMLElement | null | undefined>;
|
|
193
|
+
destroyOnClose: BooleanConstructor;
|
|
194
|
+
target: PropType<HTMLElement | Ref<HTMLElement | {
|
|
195
|
+
$el: HTMLElement;
|
|
196
|
+
} | null>>;
|
|
197
|
+
overlay: PropType<VNodeChild>;
|
|
198
|
+
raw: BooleanConstructor;
|
|
199
|
+
outsideEvent: {
|
|
200
|
+
type: PropType<"click" | "mousedown">;
|
|
201
|
+
default: string;
|
|
202
|
+
};
|
|
203
|
+
transitionDuration: NumberConstructor;
|
|
204
|
+
getAnchorPosition: PropType<() => {
|
|
205
|
+
x: number;
|
|
206
|
+
y: number;
|
|
207
|
+
} | null>;
|
|
208
|
+
prefixCls: {
|
|
209
|
+
type: StringConstructor;
|
|
210
|
+
default: string;
|
|
211
|
+
};
|
|
212
|
+
transitionName: StringConstructor;
|
|
213
|
+
panelOnly: BooleanConstructor;
|
|
214
|
+
triggerAttrs: PropType<Record<string, unknown>>;
|
|
215
|
+
respectDefaultPrevented: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
219
|
+
contentStyle: PropType<CSSProperties>;
|
|
220
|
+
hideWhenDetached: BooleanConstructor;
|
|
221
|
+
onTriggerKeydown: PropType<(event: KeyboardEvent, popup: PopupRef) => void>;
|
|
222
|
+
}>> & Readonly<{
|
|
223
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
224
|
+
onOpenChange?: ((open: boolean, detail: PopupOpenChangeDetail) => any) | undefined;
|
|
225
|
+
onAfterOpen?: (() => any) | undefined;
|
|
226
|
+
onAfterClose?: (() => any) | undefined;
|
|
227
|
+
}>, {
|
|
228
|
+
offset: number;
|
|
229
|
+
open: boolean;
|
|
230
|
+
disabled: boolean;
|
|
231
|
+
trigger: PopupTrigger;
|
|
232
|
+
placement: PlacementsType;
|
|
233
|
+
arrow: boolean;
|
|
234
|
+
openDelay: number;
|
|
235
|
+
closeDelay: number;
|
|
236
|
+
closeOnOutsideClick: boolean;
|
|
237
|
+
closeOnEscape: boolean;
|
|
238
|
+
matchTriggerWidth: boolean;
|
|
239
|
+
destroyOnClose: boolean;
|
|
240
|
+
raw: boolean;
|
|
241
|
+
outsideEvent: "click" | "mousedown";
|
|
242
|
+
prefixCls: string;
|
|
243
|
+
panelOnly: boolean;
|
|
244
|
+
respectDefaultPrevented: boolean;
|
|
245
|
+
hideWhenDetached: boolean;
|
|
246
|
+
}, SlotsType<{
|
|
247
|
+
default?: (popup: PopupRef) => VNodeChild;
|
|
248
|
+
overlay?: (popup: PopupRef) => VNodeChild;
|
|
249
|
+
arrow?: () => VNodeChild;
|
|
250
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
251
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface PopupLayer {
|
|
2
|
+
trigger: () => HTMLElement | null;
|
|
3
|
+
popup: HTMLElement;
|
|
4
|
+
close: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function registerPopupLayer(layer: PopupLayer): () => void;
|
|
7
|
+
export declare function isTopPopupLayer(layer: PopupLayer): boolean;
|
|
8
|
+
export declare function popupLayerElements(layer: PopupLayer): HTMLElement[];
|
|
9
|
+
export declare function closePopupChildren(popup: HTMLElement): void;
|