kui-vue 5.2.0 → 5.2.2
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/dist/index.js +2 -2
- package/es/affix/index.d.ts +49 -0
- package/es/alert/index.d.ts +61 -0
- package/es/anchor/anchor-link.d.ts +23 -0
- package/es/anchor/anchor.d.ts +67 -0
- package/es/anchor/index.d.ts +5 -0
- package/es/avatar/avatar-group.d.ts +39 -0
- package/es/avatar/avatar.d.ts +43 -0
- package/es/avatar/index.d.ts +5 -0
- package/es/back-top/index.d.ts +46 -0
- package/es/badge/index.d.ts +49 -0
- package/es/base/transition.d.ts +3 -0
- package/es/breadcrumb/breadcrumb-item.d.ts +15 -0
- package/es/breadcrumb/breadcrumb.d.ts +22 -0
- package/es/breadcrumb/index.d.ts +5 -0
- package/es/button/button-group.d.ts +21 -0
- package/es/button/button.d.ts +39 -0
- package/es/button/index.d.ts +5 -0
- package/es/card/index.d.ts +30 -0
- package/es/carousel/carousel-item.d.ts +2 -0
- package/es/carousel/carousel.d.ts +84 -0
- package/es/carousel/index.d.ts +4 -0
- package/es/checkbox/checkbox-group.d.ts +79 -0
- package/es/checkbox/checkbox.d.ts +105 -0
- package/es/checkbox/index.d.ts +6 -0
- package/es/collapse/collapse-panel.d.ts +15 -0
- package/es/collapse/collapse.d.ts +32 -0
- package/es/collapse/index.d.ts +6 -0
- package/es/color-picker/alpha.d.ts +15 -0
- package/es/color-picker/hue.d.ts +17 -0
- package/es/color-picker/index.d.ts +110 -0
- package/es/color-picker/mode.d.ts +25 -0
- package/es/color-picker/paint.d.ts +26 -0
- package/es/color-picker/presets.d.ts +20 -0
- package/es/components.d.ts +113 -0
- package/es/config/context.d.ts +10 -0
- package/es/config/index.d.ts +16 -0
- package/es/const/types.d.ts +19 -0
- package/es/const/var.d.ts +1 -0
- package/es/date-picker/index.d.ts +277 -0
- package/es/descriptions/descriptions-item.d.ts +35 -0
- package/es/descriptions/descriptions.d.ts +54 -0
- package/es/descriptions/index.d.ts +4 -0
- package/es/directives/outsiteclick.d.ts +2 -0
- package/es/directives/resize.d.ts +3 -0
- package/es/directives/scroll.d.ts +2 -0
- package/es/directives/transfer.d.ts +2 -0
- package/es/divider/index.d.ts +42 -0
- package/es/drawer/index.d.ts +177 -0
- package/es/dropdown/dropdown-button.d.ts +45 -0
- package/es/dropdown/dropdown.d.ts +72 -0
- package/es/dropdown/index.d.ts +4 -0
- package/es/dropdown/trigger.d.ts +11 -0
- package/es/empty/index.d.ts +9 -0
- package/es/flex/index.d.ts +45 -0
- package/es/form/form-item.d.ts +24 -0
- package/es/form/form.d.ts +92 -0
- package/es/form/index.d.ts +6 -0
- package/es/form/types.d.ts +14 -0
- package/es/grid/grid-item.d.ts +22 -0
- package/es/grid/grid.d.ts +39 -0
- package/es/grid/index.d.ts +5 -0
- package/es/grid/useBreakpoint.d.ts +3 -0
- package/es/icon/demo/search.d.ts +2 -0
- package/es/icon/demo/tags.d.ts +4 -0
- package/es/icon/index.d.ts +45 -0
- package/es/image/group.d.ts +11 -0
- package/es/image/image.d.ts +45 -0
- package/es/image/index.d.ts +5 -0
- package/es/image/instance.d.ts +2 -0
- package/es/image/preview.d.ts +36 -0
- package/es/image/utils.d.ts +6 -0
- package/es/index.d.ts +10 -0
- package/es/index.js +26 -22
- package/es/input/index.d.ts +8 -0
- package/es/input/input-box.d.ts +39 -0
- package/es/input/input-group.d.ts +58 -0
- package/es/input/input.d.ts +56 -0
- package/es/input/textarea.d.ts +25 -0
- package/es/input-number/index.d.ts +127 -0
- package/es/layout/index.d.ts +136 -0
- package/es/loading/index.d.ts +16 -0
- package/es/locale/de.d.ts +59 -0
- package/es/locale/de.js +1 -1
- package/es/locale/el.d.ts +59 -0
- package/es/locale/el.js +1 -1
- package/es/locale/en.d.ts +59 -0
- package/es/locale/en.js +1 -1
- package/es/locale/fr.d.ts +59 -0
- package/es/locale/fr.js +1 -1
- package/es/locale/it.d.ts +59 -0
- package/es/locale/it.js +1 -1
- package/es/locale/ja.d.ts +59 -0
- package/es/locale/ja.js +1 -1
- package/es/locale/ko.d.ts +59 -0
- package/es/locale/ko.js +1 -1
- package/es/locale/ru.d.ts +59 -0
- package/es/locale/ru.js +1 -1
- package/es/locale/th.d.ts +59 -0
- package/es/locale/th.js +1 -1
- package/es/locale/uk.d.ts +59 -0
- package/es/locale/uk.js +1 -1
- package/es/locale/vi.d.ts +59 -0
- package/es/locale/vi.js +1 -1
- package/es/locale/zh-CN.d.ts +59 -0
- package/es/locale/zh-CN.js +1 -1
- package/es/locale/zh-TW.d.ts +59 -0
- package/es/locale/zh-TW.js +1 -1
- package/es/menu/index.d.ts +7 -0
- package/es/menu/menu-divider.d.ts +2 -0
- package/es/menu/menu-group.d.ts +20 -0
- package/es/menu/menu-item.d.ts +22 -0
- package/es/menu/menu.d.ts +92 -0
- package/es/menu/recursive-menu.d.ts +17 -0
- package/es/menu/sub-menu.d.ts +24 -0
- package/es/message/index.d.ts +23 -0
- package/es/modal/index.d.ts +26 -0
- package/es/modal/modal.d.ts +176 -0
- package/es/modal/toast.d.ts +32 -0
- package/es/notice/container.d.ts +6 -0
- package/es/notice/content.d.ts +54 -0
- package/es/notice/index.d.ts +23 -0
- package/es/notice/instance.d.ts +8 -0
- package/es/page/index.d.ts +115 -0
- package/es/popconfirm/index.d.ts +75 -0
- package/es/poptip/index.d.ts +66 -0
- package/es/progress/index.d.ts +125 -0
- package/es/radio/index.d.ts +7 -0
- package/es/radio/radio-button.d.ts +76 -0
- package/es/radio/radio-group.d.ts +77 -0
- package/es/radio/radio.d.ts +73 -0
- package/es/radio/types.d.ts +5 -0
- package/es/rate/index.d.ts +99 -0
- package/es/rate/star.d.ts +65 -0
- package/es/row-col/col.d.ts +17 -0
- package/es/row-col/index.d.ts +5 -0
- package/es/row-col/row.d.ts +43 -0
- package/es/select/index.d.ts +5 -0
- package/es/select/option.d.ts +23 -0
- package/es/select/select.d.ts +150 -0
- package/es/skeleton/index.d.ts +7 -0
- package/es/skeleton/skeleton-avatar.d.ts +58 -0
- package/es/skeleton/skeleton-button.d.ts +58 -0
- package/es/skeleton/skeleton-image.d.ts +58 -0
- package/es/skeleton/skeleton-text.d.ts +58 -0
- package/es/skeleton/skeleton.d.ts +61 -0
- package/es/skeleton/types.d.ts +29 -0
- package/es/slider/index.d.ts +112 -0
- package/es/slider/thumb.d.ts +58 -0
- package/es/space/index.d.ts +50 -0
- package/es/spin/index.d.ts +58 -0
- package/es/splitter/index.d.ts +4 -0
- package/es/splitter/splitter-panel.d.ts +35 -0
- package/es/splitter/splitter.d.ts +32 -0
- package/es/stat-card/countup.d.ts +56 -0
- package/es/stat-card/index.d.ts +5 -0
- package/es/stat-card/rollup.d.ts +32 -0
- package/es/stat-card/stat-card.d.ts +72 -0
- package/es/stat-card/stat-number.d.ts +100 -0
- package/es/stat-card/utils/countup.d.ts +127 -0
- package/es/stat-card/utils/odometer.d.ts +13 -0
- package/es/switch/index.d.ts +72 -0
- package/es/table/index.d.ts +185 -0
- package/es/tabs/index.d.ts +5 -0
- package/es/tabs/tab-panel.d.ts +22 -0
- package/es/tabs/tabs.d.ts +44 -0
- package/es/tabs/types.d.ts +16 -0
- package/es/tag/index.d.ts +57 -0
- package/es/time-line/index.d.ts +5 -0
- package/es/time-line/timeline-item.d.ts +20 -0
- package/es/time-line/timeline.d.ts +26 -0
- package/es/tooltip/index.d.ts +42 -0
- package/es/tree/index.d.ts +179 -0
- package/es/tree/utils.d.ts +32 -0
- package/es/tree-select/index.d.ts +224 -0
- package/es/upload/file-list.d.ts +59 -0
- package/es/upload/index.d.ts +190 -0
- package/es/upload/selector.d.ts +73 -0
- package/es/utils/checked.d.ts +2 -0
- package/es/utils/color.d.ts +1 -0
- package/es/utils/element.d.ts +4 -0
- package/es/utils/mouse.d.ts +1 -0
- package/es/utils/number.d.ts +6 -0
- package/es/utils/placement.d.ts +16 -0
- package/es/utils/theme.d.ts +5 -0
- package/es/utils/vnode.d.ts +5 -0
- package/es/utils/vue.d.ts +5 -0
- package/lib/index.js +2 -2
- package/lib/locale/de.js +1 -1
- package/lib/locale/el.js +1 -1
- package/lib/locale/en.js +1 -1
- package/lib/locale/fr.js +1 -1
- package/lib/locale/it.js +1 -1
- package/lib/locale/ja.js +1 -1
- package/lib/locale/ko.js +1 -1
- package/lib/locale/ru.js +1 -1
- package/lib/locale/th.js +1 -1
- package/lib/locale/uk.js +1 -1
- package/lib/locale/vi.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/package.json +3 -2
- package/style/index.css +1 -1
- package/vetur/attributes.json +17 -33
- package/vetur/tags.json +5 -7
- package/vetur/web-types.json +34 -50
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
k: {
|
|
4
|
+
datePicker: {
|
|
5
|
+
year: string;
|
|
6
|
+
month: string;
|
|
7
|
+
selectYear: string;
|
|
8
|
+
selectMonth: string;
|
|
9
|
+
selectDate: string;
|
|
10
|
+
selectTime: string;
|
|
11
|
+
startDate: string;
|
|
12
|
+
endDate: string;
|
|
13
|
+
today: string;
|
|
14
|
+
now: string;
|
|
15
|
+
ok: string;
|
|
16
|
+
back: string;
|
|
17
|
+
};
|
|
18
|
+
form: {
|
|
19
|
+
required: string;
|
|
20
|
+
email: string;
|
|
21
|
+
phone: string;
|
|
22
|
+
number: string;
|
|
23
|
+
num_min: string;
|
|
24
|
+
num_max: string;
|
|
25
|
+
};
|
|
26
|
+
empty: {
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
common: {
|
|
30
|
+
ok: string;
|
|
31
|
+
cancel: string;
|
|
32
|
+
};
|
|
33
|
+
page: {
|
|
34
|
+
page: string;
|
|
35
|
+
pageSize: string;
|
|
36
|
+
goto: string;
|
|
37
|
+
items: string;
|
|
38
|
+
total: string;
|
|
39
|
+
};
|
|
40
|
+
select: {
|
|
41
|
+
placeholder: string;
|
|
42
|
+
loading: string;
|
|
43
|
+
emptyText: string;
|
|
44
|
+
};
|
|
45
|
+
table: {
|
|
46
|
+
emptyText: string;
|
|
47
|
+
};
|
|
48
|
+
upload: {
|
|
49
|
+
successful: string;
|
|
50
|
+
failed: string;
|
|
51
|
+
errorFileSize: string;
|
|
52
|
+
releaseToUpload: string;
|
|
53
|
+
};
|
|
54
|
+
image: {
|
|
55
|
+
preview: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default _default;
|
package/es/locale/vi.js
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
k: {
|
|
4
|
+
datePicker: {
|
|
5
|
+
year: string;
|
|
6
|
+
month: string;
|
|
7
|
+
selectYear: string;
|
|
8
|
+
selectMonth: string;
|
|
9
|
+
selectDate: string;
|
|
10
|
+
selectTime: string;
|
|
11
|
+
startDate: string;
|
|
12
|
+
endDate: string;
|
|
13
|
+
today: string;
|
|
14
|
+
now: string;
|
|
15
|
+
ok: string;
|
|
16
|
+
back: string;
|
|
17
|
+
};
|
|
18
|
+
form: {
|
|
19
|
+
required: string;
|
|
20
|
+
email: string;
|
|
21
|
+
phone: string;
|
|
22
|
+
number: string;
|
|
23
|
+
num_min: string;
|
|
24
|
+
num_max: string;
|
|
25
|
+
};
|
|
26
|
+
empty: {
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
common: {
|
|
30
|
+
ok: string;
|
|
31
|
+
cancel: string;
|
|
32
|
+
};
|
|
33
|
+
page: {
|
|
34
|
+
page: string;
|
|
35
|
+
pageSize: string;
|
|
36
|
+
goto: string;
|
|
37
|
+
items: string;
|
|
38
|
+
total: string;
|
|
39
|
+
};
|
|
40
|
+
select: {
|
|
41
|
+
placeholder: string;
|
|
42
|
+
loading: string;
|
|
43
|
+
emptyText: string;
|
|
44
|
+
};
|
|
45
|
+
table: {
|
|
46
|
+
emptyText: string;
|
|
47
|
+
};
|
|
48
|
+
upload: {
|
|
49
|
+
successful: string;
|
|
50
|
+
failed: string;
|
|
51
|
+
errorFileSize: string;
|
|
52
|
+
releaseToUpload: string;
|
|
53
|
+
};
|
|
54
|
+
image: {
|
|
55
|
+
preview: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default _default;
|
package/es/locale/zh-CN.js
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
k: {
|
|
4
|
+
datePicker: {
|
|
5
|
+
year: string;
|
|
6
|
+
month: string;
|
|
7
|
+
selectYear: string;
|
|
8
|
+
selectMonth: string;
|
|
9
|
+
selectDate: string;
|
|
10
|
+
selectTime: string;
|
|
11
|
+
startDate: string;
|
|
12
|
+
endDate: string;
|
|
13
|
+
today: string;
|
|
14
|
+
now: string;
|
|
15
|
+
ok: string;
|
|
16
|
+
back: string;
|
|
17
|
+
};
|
|
18
|
+
form: {
|
|
19
|
+
required: string;
|
|
20
|
+
email: string;
|
|
21
|
+
phone: string;
|
|
22
|
+
number: string;
|
|
23
|
+
num_min: string;
|
|
24
|
+
num_max: string;
|
|
25
|
+
};
|
|
26
|
+
empty: {
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
common: {
|
|
30
|
+
ok: string;
|
|
31
|
+
cancel: string;
|
|
32
|
+
};
|
|
33
|
+
page: {
|
|
34
|
+
page: string;
|
|
35
|
+
pageSize: string;
|
|
36
|
+
goto: string;
|
|
37
|
+
items: string;
|
|
38
|
+
total: string;
|
|
39
|
+
};
|
|
40
|
+
select: {
|
|
41
|
+
placeholder: string;
|
|
42
|
+
loading: string;
|
|
43
|
+
emptyText: string;
|
|
44
|
+
};
|
|
45
|
+
table: {
|
|
46
|
+
emptyText: string;
|
|
47
|
+
};
|
|
48
|
+
upload: {
|
|
49
|
+
successful: string;
|
|
50
|
+
failed: string;
|
|
51
|
+
errorFileSize: string;
|
|
52
|
+
releaseToUpload: string;
|
|
53
|
+
};
|
|
54
|
+
image: {
|
|
55
|
+
preview: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default _default;
|
package/es/locale/zh-TW.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as Menu, MenuOptionsProps, MenuProps, MenuSelectEvent } from './menu';
|
|
2
|
+
import { default as MenuDivider } from './menu-divider';
|
|
3
|
+
import { default as MenuGroup, MenuGroupProps } from './menu-group';
|
|
4
|
+
import { default as MenuItem, MenuItemProps } from './menu-item';
|
|
5
|
+
import { default as SubMenu, SubMenuProps } from './sub-menu';
|
|
6
|
+
export { Menu, MenuDivider, MenuGroup, MenuItem, SubMenu };
|
|
7
|
+
export type { MenuGroupProps, MenuItemProps, MenuOptionsProps, MenuProps, MenuSelectEvent, SubMenuProps };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const MenuDivider: import('vue').DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default MenuDivider;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const menuGroupProps: {
|
|
3
|
+
title: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
required: boolean;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export type MenuGroupProps = ExtractPropTypes<typeof menuGroupProps>;
|
|
9
|
+
declare const MenuGroup: import('vue').DefineComponent<ExtractPropTypes<{
|
|
10
|
+
title: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
15
|
+
title: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default MenuGroup;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
import { IconType } from '../icon';
|
|
4
|
+
export declare const menuItemProps: {
|
|
5
|
+
icon: PropType<IconType[]>;
|
|
6
|
+
title: PropType<string | VNodeChild>;
|
|
7
|
+
disabled: BooleanType;
|
|
8
|
+
isPopup: BooleanType;
|
|
9
|
+
};
|
|
10
|
+
export type MenuItemProps = ExtractPropTypes<typeof menuItemProps>;
|
|
11
|
+
declare const MenuItem: import('vue').DefineComponent<ExtractPropTypes<{
|
|
12
|
+
icon: PropType<IconType[]>;
|
|
13
|
+
title: PropType<string | VNodeChild>;
|
|
14
|
+
disabled: BooleanType;
|
|
15
|
+
isPopup: BooleanType;
|
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
17
|
+
icon: PropType<IconType[]>;
|
|
18
|
+
title: PropType<string | VNodeChild>;
|
|
19
|
+
disabled: BooleanType;
|
|
20
|
+
isPopup: BooleanType;
|
|
21
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export default MenuItem;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNode } from 'vue';
|
|
2
|
+
import { BooleanType, DirectionType } from '../const/types';
|
|
3
|
+
import { IconType } from '../icon';
|
|
4
|
+
export interface MenuSelectEvent {
|
|
5
|
+
key: string;
|
|
6
|
+
keyPath: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const menuProps: {
|
|
9
|
+
theme: StringConstructor;
|
|
10
|
+
mode: {
|
|
11
|
+
type: PropType<DirectionType>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: PropType<string[]>;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
accordion: BooleanType;
|
|
19
|
+
items: PropType<MenuOptionsProps[]>;
|
|
20
|
+
inlineCollapsed: BooleanType;
|
|
21
|
+
openKeys: {
|
|
22
|
+
type: PropType<string[]>;
|
|
23
|
+
default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
onSelect: {
|
|
26
|
+
type: PropType<(data: MenuSelectEvent) => void>;
|
|
27
|
+
};
|
|
28
|
+
onOpenChange: {
|
|
29
|
+
type: PropType<(openKeys: string[]) => void>;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export interface MenuOptionsProps {
|
|
33
|
+
icon?: IconType[];
|
|
34
|
+
title?: string | VNode;
|
|
35
|
+
key: string;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
children?: MenuOptionsProps[];
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}
|
|
40
|
+
export type MenuProps = ExtractPropTypes<typeof menuProps>;
|
|
41
|
+
declare const Menu: import('vue').DefineComponent<ExtractPropTypes<{
|
|
42
|
+
theme: StringConstructor;
|
|
43
|
+
mode: {
|
|
44
|
+
type: PropType<DirectionType>;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
modelValue: {
|
|
48
|
+
type: PropType<string[]>;
|
|
49
|
+
default: () => never[];
|
|
50
|
+
};
|
|
51
|
+
accordion: BooleanType;
|
|
52
|
+
items: PropType<MenuOptionsProps[]>;
|
|
53
|
+
inlineCollapsed: BooleanType;
|
|
54
|
+
openKeys: {
|
|
55
|
+
type: PropType<string[]>;
|
|
56
|
+
default: () => never[];
|
|
57
|
+
};
|
|
58
|
+
onSelect: {
|
|
59
|
+
type: PropType<(data: MenuSelectEvent) => void>;
|
|
60
|
+
};
|
|
61
|
+
onOpenChange: {
|
|
62
|
+
type: PropType<(openKeys: string[]) => void>;
|
|
63
|
+
};
|
|
64
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
65
|
+
theme: StringConstructor;
|
|
66
|
+
mode: {
|
|
67
|
+
type: PropType<DirectionType>;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
modelValue: {
|
|
71
|
+
type: PropType<string[]>;
|
|
72
|
+
default: () => never[];
|
|
73
|
+
};
|
|
74
|
+
accordion: BooleanType;
|
|
75
|
+
items: PropType<MenuOptionsProps[]>;
|
|
76
|
+
inlineCollapsed: BooleanType;
|
|
77
|
+
openKeys: {
|
|
78
|
+
type: PropType<string[]>;
|
|
79
|
+
default: () => never[];
|
|
80
|
+
};
|
|
81
|
+
onSelect: {
|
|
82
|
+
type: PropType<(data: MenuSelectEvent) => void>;
|
|
83
|
+
};
|
|
84
|
+
onOpenChange: {
|
|
85
|
+
type: PropType<(openKeys: string[]) => void>;
|
|
86
|
+
};
|
|
87
|
+
}>> & Readonly<{}>, {
|
|
88
|
+
mode: DirectionType;
|
|
89
|
+
modelValue: string[];
|
|
90
|
+
openKeys: string[];
|
|
91
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
92
|
+
export default Menu;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
import { MenuOptionsProps } from './menu';
|
|
4
|
+
declare const RecursiveMenu: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
item: {
|
|
6
|
+
type: PropType<MenuOptionsProps>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
isPopup: BooleanType;
|
|
10
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
item: {
|
|
12
|
+
type: PropType<MenuOptionsProps>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
isPopup: BooleanType;
|
|
16
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default RecursiveMenu;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
import { IconType } from '../icon';
|
|
4
|
+
export declare const submenuProps: {
|
|
5
|
+
disabled: BooleanType;
|
|
6
|
+
title: PropType<string | VNodeChild>;
|
|
7
|
+
isPopup: BooleanType;
|
|
8
|
+
icon: PropType<IconType[]>;
|
|
9
|
+
};
|
|
10
|
+
export type SubMenuProps = ExtractPropTypes<typeof submenuProps>;
|
|
11
|
+
declare const SubMenu: import('vue').DefineComponent<ExtractPropTypes<{
|
|
12
|
+
disabled: BooleanType;
|
|
13
|
+
title: PropType<string | VNodeChild>;
|
|
14
|
+
isPopup: BooleanType;
|
|
15
|
+
icon: PropType<IconType[]>;
|
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
17
|
+
disabled: BooleanType;
|
|
18
|
+
title: PropType<string | VNodeChild>;
|
|
19
|
+
isPopup: BooleanType;
|
|
20
|
+
icon: PropType<IconType[]>;
|
|
21
|
+
}>> & Readonly<{}>, {}, {}, {}, {
|
|
22
|
+
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
23
|
+
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default SubMenu;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NoticeType } from '../const/types';
|
|
2
|
+
import { IconType } from '../icon';
|
|
3
|
+
export interface MessageOptions {
|
|
4
|
+
type?: NoticeType;
|
|
5
|
+
content?: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
closable?: boolean;
|
|
8
|
+
icon?: IconType[];
|
|
9
|
+
color?: string;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface MessageApi {
|
|
13
|
+
name: "message";
|
|
14
|
+
info(content: string, duration?: number, onClose?: () => void): void;
|
|
15
|
+
success(content: string, duration?: number, onClose?: () => void): void;
|
|
16
|
+
warning(content: string, duration?: number, onClose?: () => void): void;
|
|
17
|
+
error(content: string, duration?: number, onClose?: () => void): void;
|
|
18
|
+
loading(content: string, duration?: number): () => void;
|
|
19
|
+
show(options: MessageOptions): () => void;
|
|
20
|
+
destroy(): void;
|
|
21
|
+
}
|
|
22
|
+
declare const message: MessageApi;
|
|
23
|
+
export default message;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IconType } from '../icon';
|
|
2
|
+
import { default as Modal } from './modal';
|
|
3
|
+
export type { ModalProps } from './modal';
|
|
4
|
+
export interface ModalApiProps {
|
|
5
|
+
title: string;
|
|
6
|
+
okText?: string;
|
|
7
|
+
cancelText?: string;
|
|
8
|
+
content: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
icon?: IconType[];
|
|
11
|
+
onOk?: Function;
|
|
12
|
+
onCancel?: Function;
|
|
13
|
+
type?: "info" | "success" | "error" | "warning" | "confirm";
|
|
14
|
+
}
|
|
15
|
+
export interface ModalApi {
|
|
16
|
+
name?: "modal";
|
|
17
|
+
show(props: ModalApiProps): void;
|
|
18
|
+
info(props: ModalApiProps): void;
|
|
19
|
+
success(props: ModalApiProps): void;
|
|
20
|
+
warning(props: ModalApiProps): void;
|
|
21
|
+
confirm(props: ModalApiProps): void;
|
|
22
|
+
error(props: ModalApiProps): void;
|
|
23
|
+
destroyAll(): void;
|
|
24
|
+
}
|
|
25
|
+
export declare const modal: ModalApi;
|
|
26
|
+
export default Modal;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
export declare const modalProps: {
|
|
4
|
+
modelValue: BooleanType;
|
|
5
|
+
title: StringConstructor;
|
|
6
|
+
okText: StringConstructor;
|
|
7
|
+
cancelText: StringConstructor;
|
|
8
|
+
width: {
|
|
9
|
+
type: PropType<number | string>;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
top: {
|
|
13
|
+
type: PropType<number>;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
transfer: {
|
|
17
|
+
type: BooleanType;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
mask: {
|
|
21
|
+
type: BooleanType;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
maskClosable: {
|
|
25
|
+
type: BooleanType;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
maximized: BooleanType;
|
|
29
|
+
centered: BooleanType;
|
|
30
|
+
draggable: BooleanType;
|
|
31
|
+
showClose: {
|
|
32
|
+
type: BooleanType;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
loading: BooleanType;
|
|
36
|
+
footer: {
|
|
37
|
+
type: BooleanType;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
escKey: {
|
|
41
|
+
type: BooleanType;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
onClose: {
|
|
45
|
+
type: PropType<() => void>;
|
|
46
|
+
};
|
|
47
|
+
onOk: {
|
|
48
|
+
type: PropType<() => void>;
|
|
49
|
+
};
|
|
50
|
+
onCancel: {
|
|
51
|
+
type: PropType<() => void>;
|
|
52
|
+
};
|
|
53
|
+
onOpenChange: {
|
|
54
|
+
type: PropType<(opened: boolean) => void>;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export type ModalProps = ExtractPropTypes<typeof modalProps>;
|
|
58
|
+
declare const Modal: import('vue').DefineComponent<ExtractPropTypes<{
|
|
59
|
+
modelValue: BooleanType;
|
|
60
|
+
title: StringConstructor;
|
|
61
|
+
okText: StringConstructor;
|
|
62
|
+
cancelText: StringConstructor;
|
|
63
|
+
width: {
|
|
64
|
+
type: PropType<number | string>;
|
|
65
|
+
default: number;
|
|
66
|
+
};
|
|
67
|
+
top: {
|
|
68
|
+
type: PropType<number>;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
transfer: {
|
|
72
|
+
type: BooleanType;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
mask: {
|
|
76
|
+
type: BooleanType;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
maskClosable: {
|
|
80
|
+
type: BooleanType;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
maximized: BooleanType;
|
|
84
|
+
centered: BooleanType;
|
|
85
|
+
draggable: BooleanType;
|
|
86
|
+
showClose: {
|
|
87
|
+
type: BooleanType;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
loading: BooleanType;
|
|
91
|
+
footer: {
|
|
92
|
+
type: BooleanType;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
escKey: {
|
|
96
|
+
type: BooleanType;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
onClose: {
|
|
100
|
+
type: PropType<() => void>;
|
|
101
|
+
};
|
|
102
|
+
onOk: {
|
|
103
|
+
type: PropType<() => void>;
|
|
104
|
+
};
|
|
105
|
+
onCancel: {
|
|
106
|
+
type: PropType<() => void>;
|
|
107
|
+
};
|
|
108
|
+
onOpenChange: {
|
|
109
|
+
type: PropType<(opened: boolean) => void>;
|
|
110
|
+
};
|
|
111
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
112
|
+
modelValue: BooleanType;
|
|
113
|
+
title: StringConstructor;
|
|
114
|
+
okText: StringConstructor;
|
|
115
|
+
cancelText: StringConstructor;
|
|
116
|
+
width: {
|
|
117
|
+
type: PropType<number | string>;
|
|
118
|
+
default: number;
|
|
119
|
+
};
|
|
120
|
+
top: {
|
|
121
|
+
type: PropType<number>;
|
|
122
|
+
default: number;
|
|
123
|
+
};
|
|
124
|
+
transfer: {
|
|
125
|
+
type: BooleanType;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
mask: {
|
|
129
|
+
type: BooleanType;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
maskClosable: {
|
|
133
|
+
type: BooleanType;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
maximized: BooleanType;
|
|
137
|
+
centered: BooleanType;
|
|
138
|
+
draggable: BooleanType;
|
|
139
|
+
showClose: {
|
|
140
|
+
type: BooleanType;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
loading: BooleanType;
|
|
144
|
+
footer: {
|
|
145
|
+
type: BooleanType;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
escKey: {
|
|
149
|
+
type: BooleanType;
|
|
150
|
+
default: boolean;
|
|
151
|
+
};
|
|
152
|
+
onClose: {
|
|
153
|
+
type: PropType<() => void>;
|
|
154
|
+
};
|
|
155
|
+
onOk: {
|
|
156
|
+
type: PropType<() => void>;
|
|
157
|
+
};
|
|
158
|
+
onCancel: {
|
|
159
|
+
type: PropType<() => void>;
|
|
160
|
+
};
|
|
161
|
+
onOpenChange: {
|
|
162
|
+
type: PropType<(opened: boolean) => void>;
|
|
163
|
+
};
|
|
164
|
+
}>> & Readonly<{}>, {
|
|
165
|
+
top: number;
|
|
166
|
+
width: string | number;
|
|
167
|
+
mask: boolean | undefined;
|
|
168
|
+
footer: boolean | undefined;
|
|
169
|
+
transfer: boolean | undefined;
|
|
170
|
+
maskClosable: boolean | undefined;
|
|
171
|
+
escKey: boolean | undefined;
|
|
172
|
+
showClose: boolean | undefined;
|
|
173
|
+
}, {}, {}, {
|
|
174
|
+
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
175
|
+
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
176
|
+
export default Modal;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IconType } from '../icon';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
title: StringConstructor;
|
|
5
|
+
okText: StringConstructor;
|
|
6
|
+
cancelText: StringConstructor;
|
|
7
|
+
content: StringConstructor;
|
|
8
|
+
color: StringConstructor;
|
|
9
|
+
icon: PropType<IconType[]>;
|
|
10
|
+
onOk: FunctionConstructor;
|
|
11
|
+
onCancel: FunctionConstructor;
|
|
12
|
+
type: {
|
|
13
|
+
type: PropType<"info" | "success" | "error" | "warning" | "confirm">;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
title: StringConstructor;
|
|
18
|
+
okText: StringConstructor;
|
|
19
|
+
cancelText: StringConstructor;
|
|
20
|
+
content: StringConstructor;
|
|
21
|
+
color: StringConstructor;
|
|
22
|
+
icon: PropType<IconType[]>;
|
|
23
|
+
onOk: FunctionConstructor;
|
|
24
|
+
onCancel: FunctionConstructor;
|
|
25
|
+
type: {
|
|
26
|
+
type: PropType<"info" | "success" | "error" | "warning" | "confirm">;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
type: "error" | "warning" | "success" | "info" | "confirm";
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
type: StringConstructor;
|
|
3
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|