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,72 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType, DropPlacementsType, TriggerType } from '../const/types';
|
|
3
|
+
export declare const dropdownProps: {
|
|
4
|
+
trigger: {
|
|
5
|
+
type: PropType<TriggerType>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
disabled: BooleanType;
|
|
9
|
+
arrow: {
|
|
10
|
+
type: BooleanType;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
show: BooleanType;
|
|
14
|
+
placement: {
|
|
15
|
+
type: PropType<DropPlacementsType>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
target: ObjectConstructor;
|
|
19
|
+
onOpenChange: {
|
|
20
|
+
type: PropType<(opened: boolean) => void>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type DropdownProps = ExtractPropTypes<typeof dropdownProps>;
|
|
24
|
+
declare const Dropdown: import('vue').DefineComponent<ExtractPropTypes<{
|
|
25
|
+
trigger: {
|
|
26
|
+
type: PropType<TriggerType>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
disabled: BooleanType;
|
|
30
|
+
arrow: {
|
|
31
|
+
type: BooleanType;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
show: BooleanType;
|
|
35
|
+
placement: {
|
|
36
|
+
type: PropType<DropPlacementsType>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
target: ObjectConstructor;
|
|
40
|
+
onOpenChange: {
|
|
41
|
+
type: PropType<(opened: boolean) => void>;
|
|
42
|
+
};
|
|
43
|
+
}>, () => (import('vue').VNode<unknown, unknown, {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}> | null)[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
46
|
+
trigger: {
|
|
47
|
+
type: PropType<TriggerType>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
disabled: BooleanType;
|
|
51
|
+
arrow: {
|
|
52
|
+
type: BooleanType;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
show: BooleanType;
|
|
56
|
+
placement: {
|
|
57
|
+
type: PropType<DropPlacementsType>;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
target: ObjectConstructor;
|
|
61
|
+
onOpenChange: {
|
|
62
|
+
type: PropType<(opened: boolean) => void>;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{}>, {
|
|
65
|
+
placement: DropPlacementsType;
|
|
66
|
+
trigger: TriggerType;
|
|
67
|
+
arrow: boolean | undefined;
|
|
68
|
+
}, {}, {}, {
|
|
69
|
+
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
70
|
+
resize: import('vue').ObjectDirective<any, any, string, any>;
|
|
71
|
+
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
72
|
+
export default Dropdown;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
import { IconType } from '../icon';
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
icon: PropType<IconType[]>;
|
|
6
|
+
disabled: BooleanType;
|
|
7
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
icon: PropType<IconType[]>;
|
|
9
|
+
disabled: BooleanType;
|
|
10
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSProperties, DefineComponent, ExtractPropTypes, HTMLAttributes, PropType } from 'vue';
|
|
2
|
+
export declare const emptyProps: {
|
|
3
|
+
description: (BooleanConstructor | StringConstructor)[];
|
|
4
|
+
image: StringConstructor;
|
|
5
|
+
imageStyle: PropType<CSSProperties>;
|
|
6
|
+
};
|
|
7
|
+
export type EmptyProps = Partial<ExtractPropTypes<typeof emptyProps>> & HTMLAttributes;
|
|
8
|
+
declare const _default: DefineComponent<EmptyProps>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType, SizeType } from '../const/types';
|
|
3
|
+
export type FlexSizeType = SizeType | number | (string | number)[];
|
|
4
|
+
export type FlexAlignType = "start" | "flex-start" | "end" | "flex-end" | "center" | "baseline";
|
|
5
|
+
export type FlexJustifyType = "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
6
|
+
export declare const flexProps: {
|
|
7
|
+
align: {
|
|
8
|
+
type: PropType<FlexAlignType>;
|
|
9
|
+
};
|
|
10
|
+
justify: {
|
|
11
|
+
type: PropType<FlexJustifyType>;
|
|
12
|
+
};
|
|
13
|
+
vertical: BooleanType;
|
|
14
|
+
wrap: BooleanType;
|
|
15
|
+
size: {
|
|
16
|
+
type: PropType<FlexSizeType>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type FlexProps = ExtractPropTypes<typeof flexProps>;
|
|
20
|
+
declare const Flex: import('vue').DefineComponent<ExtractPropTypes<{
|
|
21
|
+
align: {
|
|
22
|
+
type: PropType<FlexAlignType>;
|
|
23
|
+
};
|
|
24
|
+
justify: {
|
|
25
|
+
type: PropType<FlexJustifyType>;
|
|
26
|
+
};
|
|
27
|
+
vertical: BooleanType;
|
|
28
|
+
wrap: BooleanType;
|
|
29
|
+
size: {
|
|
30
|
+
type: PropType<FlexSizeType>;
|
|
31
|
+
};
|
|
32
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
33
|
+
align: {
|
|
34
|
+
type: PropType<FlexAlignType>;
|
|
35
|
+
};
|
|
36
|
+
justify: {
|
|
37
|
+
type: PropType<FlexJustifyType>;
|
|
38
|
+
};
|
|
39
|
+
vertical: BooleanType;
|
|
40
|
+
wrap: BooleanType;
|
|
41
|
+
size: {
|
|
42
|
+
type: PropType<FlexSizeType>;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
export default Flex;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ColProps, FormRule } from './types';
|
|
3
|
+
declare const formItemProps: {
|
|
4
|
+
label: StringConstructor;
|
|
5
|
+
prop: StringConstructor;
|
|
6
|
+
labelCol: PropType<ColProps>;
|
|
7
|
+
wrapperCol: PropType<ColProps>;
|
|
8
|
+
rules: PropType<FormRule | FormRule[]>;
|
|
9
|
+
};
|
|
10
|
+
export type FormItemProps = ExtractPropTypes<typeof formItemProps>;
|
|
11
|
+
declare const FormItem: import('vue').DefineComponent<ExtractPropTypes<{
|
|
12
|
+
label: StringConstructor;
|
|
13
|
+
prop: StringConstructor;
|
|
14
|
+
labelCol: PropType<ColProps>;
|
|
15
|
+
wrapperCol: PropType<ColProps>;
|
|
16
|
+
rules: PropType<FormRule | FormRule[]>;
|
|
17
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
18
|
+
label: StringConstructor;
|
|
19
|
+
prop: StringConstructor;
|
|
20
|
+
labelCol: PropType<ColProps>;
|
|
21
|
+
wrapperCol: PropType<ColProps>;
|
|
22
|
+
rules: PropType<FormRule | FormRule[]>;
|
|
23
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default FormItem;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType, DirectionType, ShapeType, SizeType, ThemeType } from '../const/types';
|
|
3
|
+
import { ColProps, FormRule } from './types';
|
|
4
|
+
export interface FormSubmitEvent {
|
|
5
|
+
valid: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const formProps: {
|
|
8
|
+
layout: {
|
|
9
|
+
type: PropType<DirectionType>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
model: PropType<Record<string, any>>;
|
|
13
|
+
name: StringConstructor;
|
|
14
|
+
labelCol: PropType<ColProps>;
|
|
15
|
+
wrapperCol: PropType<ColProps>;
|
|
16
|
+
rules: {
|
|
17
|
+
type: PropType<Record<string, FormRule[]>>;
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
type: PropType<SizeType>;
|
|
21
|
+
};
|
|
22
|
+
theme: PropType<ThemeType>;
|
|
23
|
+
shape: PropType<ShapeType>;
|
|
24
|
+
disabled: BooleanType;
|
|
25
|
+
onSubmit: {
|
|
26
|
+
type: PropType<(e: FormSubmitEvent) => void>;
|
|
27
|
+
};
|
|
28
|
+
onReset: {
|
|
29
|
+
type: PropType<() => void>;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export interface FormExpose {
|
|
33
|
+
validate: (callback?: (result: {
|
|
34
|
+
valid: boolean;
|
|
35
|
+
}) => void) => void;
|
|
36
|
+
reset: () => void;
|
|
37
|
+
test: (key: string) => void;
|
|
38
|
+
submit: (e: FormSubmitEvent) => void;
|
|
39
|
+
}
|
|
40
|
+
export type FormProps = ExtractPropTypes<typeof formProps>;
|
|
41
|
+
declare const Form: import('vue').DefineComponent<ExtractPropTypes<{
|
|
42
|
+
layout: {
|
|
43
|
+
type: PropType<DirectionType>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
model: PropType<Record<string, any>>;
|
|
47
|
+
name: StringConstructor;
|
|
48
|
+
labelCol: PropType<ColProps>;
|
|
49
|
+
wrapperCol: PropType<ColProps>;
|
|
50
|
+
rules: {
|
|
51
|
+
type: PropType<Record<string, FormRule[]>>;
|
|
52
|
+
};
|
|
53
|
+
size: {
|
|
54
|
+
type: PropType<SizeType>;
|
|
55
|
+
};
|
|
56
|
+
theme: PropType<ThemeType>;
|
|
57
|
+
shape: PropType<ShapeType>;
|
|
58
|
+
disabled: BooleanType;
|
|
59
|
+
onSubmit: {
|
|
60
|
+
type: PropType<(e: FormSubmitEvent) => void>;
|
|
61
|
+
};
|
|
62
|
+
onReset: {
|
|
63
|
+
type: PropType<() => void>;
|
|
64
|
+
};
|
|
65
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
66
|
+
layout: {
|
|
67
|
+
type: PropType<DirectionType>;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
model: PropType<Record<string, any>>;
|
|
71
|
+
name: StringConstructor;
|
|
72
|
+
labelCol: PropType<ColProps>;
|
|
73
|
+
wrapperCol: PropType<ColProps>;
|
|
74
|
+
rules: {
|
|
75
|
+
type: PropType<Record<string, FormRule[]>>;
|
|
76
|
+
};
|
|
77
|
+
size: {
|
|
78
|
+
type: PropType<SizeType>;
|
|
79
|
+
};
|
|
80
|
+
theme: PropType<ThemeType>;
|
|
81
|
+
shape: PropType<ShapeType>;
|
|
82
|
+
disabled: BooleanType;
|
|
83
|
+
onSubmit: {
|
|
84
|
+
type: PropType<(e: FormSubmitEvent) => void>;
|
|
85
|
+
};
|
|
86
|
+
onReset: {
|
|
87
|
+
type: PropType<() => void>;
|
|
88
|
+
};
|
|
89
|
+
}>> & Readonly<{}>, {
|
|
90
|
+
layout: DirectionType;
|
|
91
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
92
|
+
export default Form;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as Form, FormExpose } from './form';
|
|
2
|
+
import { default as FormItem } from './form-item';
|
|
3
|
+
export type { FormProps, FormSubmitEvent } from './form';
|
|
4
|
+
export type { FormItemProps } from './form-item';
|
|
5
|
+
export { Form, FormItem };
|
|
6
|
+
export type FormContext = InstanceType<typeof Form> & FormExpose;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ColProps {
|
|
2
|
+
span?: number;
|
|
3
|
+
offset?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface FormRule {
|
|
6
|
+
required?: boolean;
|
|
7
|
+
message?: string;
|
|
8
|
+
validator?: (rule: FormRule, value: any, callback: (error?: Error) => void) => void;
|
|
9
|
+
pattern?: RegExp;
|
|
10
|
+
type?: "mobile" | "mail" | "number";
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, HTMLAttributes } from 'vue';
|
|
2
|
+
declare const gridItemProps: {
|
|
3
|
+
span: {
|
|
4
|
+
type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
rowSpan: {
|
|
8
|
+
type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
offset: {
|
|
12
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
suffix: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type GridItemProps = Partial<ExtractPropTypes<typeof gridItemProps>> & HTMLAttributes;
|
|
21
|
+
declare const _default: DefineComponent<GridItemProps>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, HTMLAttributes } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
declare const gridProps: {
|
|
4
|
+
cols: {
|
|
5
|
+
type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
|
|
6
|
+
default: number;
|
|
7
|
+
};
|
|
8
|
+
rows: {
|
|
9
|
+
type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
autoRows: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
xGap: {
|
|
17
|
+
type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
yGap: {
|
|
21
|
+
type: (NumberConstructor | ObjectConstructor | StringConstructor)[];
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
itemMinWidth: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
};
|
|
27
|
+
align: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
};
|
|
30
|
+
justify: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
debug: {
|
|
34
|
+
type: BooleanType;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export type GridProps = Partial<ExtractPropTypes<typeof gridProps>> & HTMLAttributes;
|
|
38
|
+
declare const _default: DefineComponent<GridProps>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: 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 _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
export interface IconType {
|
|
4
|
+
d: string;
|
|
5
|
+
s?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const iconProps: {
|
|
8
|
+
type: PropType<IconType[]>;
|
|
9
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
10
|
+
color: StringConstructor;
|
|
11
|
+
spin: BooleanType;
|
|
12
|
+
strokeWidth: {
|
|
13
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
onClick: PropType<(e: PointerEvent) => void>;
|
|
17
|
+
reverseFill: BooleanType;
|
|
18
|
+
};
|
|
19
|
+
export type IconProps = ExtractPropTypes<typeof iconProps>;
|
|
20
|
+
declare const Icon: import('vue').DefineComponent<ExtractPropTypes<{
|
|
21
|
+
type: PropType<IconType[]>;
|
|
22
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
23
|
+
color: StringConstructor;
|
|
24
|
+
spin: BooleanType;
|
|
25
|
+
strokeWidth: {
|
|
26
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
onClick: PropType<(e: PointerEvent) => void>;
|
|
30
|
+
reverseFill: BooleanType;
|
|
31
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
32
|
+
type: PropType<IconType[]>;
|
|
33
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
34
|
+
color: StringConstructor;
|
|
35
|
+
spin: BooleanType;
|
|
36
|
+
strokeWidth: {
|
|
37
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
onClick: PropType<(e: PointerEvent) => void>;
|
|
41
|
+
reverseFill: BooleanType;
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
43
|
+
strokeWidth: string | number;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
export default Icon;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const imageGroupProps: {
|
|
3
|
+
data: PropType<string[]>;
|
|
4
|
+
};
|
|
5
|
+
export type ImageGroupProps = ExtractPropTypes<typeof imageGroupProps>;
|
|
6
|
+
declare const ImageGroup: import('vue').DefineComponent<ExtractPropTypes<{
|
|
7
|
+
data: PropType<string[]>;
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
9
|
+
data: PropType<string[]>;
|
|
10
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default ImageGroup;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CSSProperties, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
declare const imageProps: {
|
|
4
|
+
alt: StringConstructor;
|
|
5
|
+
src: StringConstructor;
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
origin: StringConstructor;
|
|
8
|
+
height: (NumberConstructor | StringConstructor)[];
|
|
9
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
10
|
+
placeholder: StringConstructor;
|
|
11
|
+
data: ArrayConstructor;
|
|
12
|
+
imgStyle: PropType<CSSProperties>;
|
|
13
|
+
showPanel: BooleanType;
|
|
14
|
+
onClose: PropType<() => void>;
|
|
15
|
+
onSwitch: PropType<(index: number) => void>;
|
|
16
|
+
};
|
|
17
|
+
export type ImageProps = ExtractPropTypes<typeof imageProps>;
|
|
18
|
+
declare const KImage: import('vue').DefineComponent<ExtractPropTypes<{
|
|
19
|
+
alt: StringConstructor;
|
|
20
|
+
src: StringConstructor;
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
origin: StringConstructor;
|
|
23
|
+
height: (NumberConstructor | StringConstructor)[];
|
|
24
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
25
|
+
placeholder: StringConstructor;
|
|
26
|
+
data: ArrayConstructor;
|
|
27
|
+
imgStyle: PropType<CSSProperties>;
|
|
28
|
+
showPanel: BooleanType;
|
|
29
|
+
onClose: PropType<() => void>;
|
|
30
|
+
onSwitch: PropType<(index: number) => void>;
|
|
31
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
32
|
+
alt: StringConstructor;
|
|
33
|
+
src: StringConstructor;
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
origin: StringConstructor;
|
|
36
|
+
height: (NumberConstructor | StringConstructor)[];
|
|
37
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
38
|
+
placeholder: StringConstructor;
|
|
39
|
+
data: ArrayConstructor;
|
|
40
|
+
imgStyle: PropType<CSSProperties>;
|
|
41
|
+
showPanel: BooleanType;
|
|
42
|
+
onClose: PropType<() => void>;
|
|
43
|
+
onSwitch: PropType<(index: number) => void>;
|
|
44
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
export default KImage;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
export interface ImagePreviewProps {
|
|
4
|
+
type?: string;
|
|
5
|
+
src?: string;
|
|
6
|
+
showPanel?: boolean;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
onSwitch?: (index: number) => void;
|
|
9
|
+
data?: string[];
|
|
10
|
+
}
|
|
11
|
+
declare const ImagePreview: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
src: StringConstructor;
|
|
14
|
+
origin: StringConstructor;
|
|
15
|
+
hasControl: BooleanType;
|
|
16
|
+
value: BooleanType;
|
|
17
|
+
data: {
|
|
18
|
+
type: PropType<string[]>;
|
|
19
|
+
default: () => never[];
|
|
20
|
+
};
|
|
21
|
+
showPanel: BooleanType;
|
|
22
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
src: StringConstructor;
|
|
25
|
+
origin: StringConstructor;
|
|
26
|
+
hasControl: BooleanType;
|
|
27
|
+
value: BooleanType;
|
|
28
|
+
data: {
|
|
29
|
+
type: PropType<string[]>;
|
|
30
|
+
default: () => never[];
|
|
31
|
+
};
|
|
32
|
+
showPanel: BooleanType;
|
|
33
|
+
}>> & Readonly<{}>, {
|
|
34
|
+
data: string[];
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
36
|
+
export default ImagePreview;
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
export * from './components';
|
|
3
|
+
declare const UI: {
|
|
4
|
+
version: string;
|
|
5
|
+
lang: {};
|
|
6
|
+
install: (app: App) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const install: (app: App) => void;
|
|
9
|
+
export declare const version: string;
|
|
10
|
+
export default UI;
|