@thestarweb/ui 1.7.1 → 2.0.0-beta.1
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/_virtual/_plugin-vue_export-helper.mjs +7 -0
- package/dist/components/base/button/button.vue.mjs +5 -0
- package/dist/components/base/button/button.vue_vue_type_script_setup_true_lang.mjs +27 -0
- package/dist/components/base/button/index.mjs +1 -0
- package/dist/components/base/index.mjs +2 -0
- package/dist/components/data/card/card.vue.mjs +5 -0
- package/dist/components/data/card/card.vue_vue_type_script_setup_true_lang.mjs +50 -0
- package/dist/components/data/card/index.mjs +1 -0
- package/dist/components/data/index.mjs +11 -0
- package/dist/components/data/popover/index.mjs +1 -0
- package/dist/components/data/popover/popover.vue.mjs +5 -0
- package/dist/components/data/popover/popover.vue_vue_type_script_setup_true_lang.mjs +123 -0
- package/dist/components/data/popover/utils.mjs +68 -0
- package/dist/components/data/table/index.mjs +1 -0
- package/dist/components/data/table/table.vue.mjs +5 -0
- package/dist/components/data/table/table.vue_vue_type_script_setup_true_lang.mjs +45 -0
- package/dist/components/data/tag/index.mjs +1 -0
- package/dist/components/data/tag/tag.vue.mjs +5 -0
- package/dist/components/data/tag/tag.vue_vue_type_script_setup_true_lang.mjs +21 -0
- package/dist/components/data/tree/index.mjs +1 -0
- package/dist/components/data/tree/tree-item.vue.mjs +5 -0
- package/dist/components/data/tree/tree-item.vue_vue_type_script_setup_true_lang.mjs +77 -0
- package/dist/components/data/tree/tree-raw.vue.mjs +5 -0
- package/dist/components/data/tree/tree-raw.vue_vue_type_script_setup_true_lang.mjs +104 -0
- package/dist/components/data/tree/tree.vue.mjs +4 -0
- package/dist/components/data/tree/tree.vue_vue_type_script_setup_true_lang.mjs +60 -0
- package/dist/components/data/tree/utils.mjs +66 -0
- package/dist/components/form/checkbox/checkbox.vue.mjs +5 -0
- package/dist/components/form/checkbox/checkbox.vue_vue_type_script_setup_true_lang.mjs +50 -0
- package/dist/components/form/checkbox/index.mjs +1 -0
- package/dist/components/form/index.mjs +11 -0
- package/dist/components/form/input/index.mjs +1 -0
- package/dist/components/form/input/input.vue.mjs +5 -0
- package/dist/components/form/input/input.vue_vue_type_script_setup_true_lang.mjs +34 -0
- package/dist/components/form/select/index.mjs +1 -0
- package/dist/components/form/select/select.vue.mjs +5 -0
- package/dist/components/form/select/select.vue_vue_type_script_setup_true_lang.mjs +148 -0
- package/dist/components/form/slider/index.mjs +1 -0
- package/dist/components/form/slider/slider.vue.mjs +5 -0
- package/dist/components/form/slider/slider.vue_vue_type_script_setup_true_lang.mjs +67 -0
- package/dist/components/form/switch/index.mjs +1 -0
- package/dist/components/form/switch/switch.vue.mjs +5 -0
- package/dist/components/form/switch/switch.vue_vue_type_script_setup_true_lang.mjs +38 -0
- package/dist/components/index.mjs +21 -0
- package/dist/components/layout/index.mjs +4 -0
- package/dist/components/layout/layout/index.mjs +9 -0
- package/dist/components/layout/layout/layout-dividing.vue.mjs +10 -0
- package/dist/components/layout/layout/layout-main.vue.mjs +10 -0
- package/dist/components/layout/layout/layout.vue.mjs +5 -0
- package/dist/components/layout/layout/layout.vue_vue_type_script_setup_true_lang.mjs +14 -0
- package/dist/components/layout/page/Page.vue.mjs +5 -0
- package/dist/components/layout/page/Page.vue_vue_type_script_setup_true_lang.mjs +63 -0
- package/dist/components/layout/page/index.mjs +1 -0
- package/dist/components/other/calendar/calendar.vue.mjs +5 -0
- package/dist/components/other/calendar/calendar.vue_vue_type_script_setup_true_lang.mjs +103 -0
- package/dist/components/other/calendar/index.mjs +1 -0
- package/dist/components/other/index.mjs +5 -0
- package/dist/components/other/menu/index.mjs +1 -0
- package/dist/components/other/menu/index.vue.mjs +5 -0
- package/dist/components/other/menu/index.vue_vue_type_script_setup_true_lang.mjs +22 -0
- package/dist/components/other/menu/menu-h/index.vue.mjs +5 -0
- package/dist/components/other/menu/menu-h/index.vue_vue_type_script_setup_true_lang.mjs +22 -0
- package/dist/components/other/menu/menu-h/menu-h-item.vue.mjs +5 -0
- package/dist/components/other/menu/menu-h/menu-h-item.vue_vue_type_script_setup_true_lang.mjs +30 -0
- package/dist/components/other/menu/menu-v/index.vue.mjs +4 -0
- package/dist/components/other/menu/menu-v/index.vue_vue_type_script_setup_true_lang.mjs +33 -0
- package/dist/context/index.mjs +1 -0
- package/dist/context/is-mobile.mjs +10 -0
- package/dist/icons/arrow-down.svg_component.mjs +12 -0
- package/dist/icons/arrow-right.svg_component.mjs +12 -0
- package/dist/icons/home.svg_component.mjs +12 -0
- package/dist/icons/index.mjs +5 -0
- package/dist/icons/menu.svg_component.mjs +12 -0
- package/dist/index.mjs +20 -0
- package/dist/style.css +2 -0
- package/dist/utils/index.mjs +9 -0
- package/dist/utils/z-index.mjs +6 -0
- package/package.json +33 -81
- package/types/src/components/base/button/button.vue.d.ts +21 -0
- package/types/src/components/base/button/example/base.vue.d.ts +3 -0
- package/types/src/components/base/button/index.d.ts +1 -0
- package/types/src/components/base/index.d.ts +1 -0
- package/types/src/components/data/card/card.vue.d.ts +32 -0
- package/types/src/components/data/card/index.d.ts +1 -0
- package/types/src/components/data/index.d.ts +5 -0
- package/types/src/components/data/pagination/example/base.vue.d.ts +3 -0
- package/types/src/components/data/pagination/index.d.ts +1 -0
- package/types/src/components/data/pagination/pagination.vue.d.ts +20 -0
- package/types/src/components/data/popover/example/base.vue.d.ts +3 -0
- package/types/src/components/data/popover/index.d.ts +1 -0
- package/types/src/components/data/popover/popover.vue.d.ts +39 -0
- package/types/src/components/data/popover/type.d.ts +1 -0
- package/types/src/components/data/popover/utils.d.ts +12 -0
- package/types/src/components/data/table/example/base.vue.d.ts +3 -0
- package/types/src/components/data/table/example/render.vue.d.ts +3 -0
- package/types/src/components/data/table/index.d.ts +2 -0
- package/types/src/components/data/table/table.vue.d.ts +36 -0
- package/types/src/components/data/table/types.d.ts +12 -0
- package/types/src/components/data/tag/example/base.vue.d.ts +3 -0
- package/types/src/components/data/tag/index.d.ts +1 -0
- package/types/src/components/data/tag/tag.vue.d.ts +20 -0
- package/types/src/components/data/tree/example/base.vue.d.ts +3 -0
- package/types/src/components/data/tree/index.d.ts +2 -0
- package/types/src/components/data/tree/tree-item.vue.d.ts +36 -0
- package/types/src/components/data/tree/tree-raw.vue.d.ts +47 -0
- package/types/src/components/data/tree/tree.vue.d.ts +34 -0
- package/types/src/components/data/tree/type.d.ts +40 -0
- package/types/src/components/data/tree/utils.d.ts +10 -0
- package/types/src/components/form/checkbox/checkbox.vue.d.ts +32 -0
- package/types/src/components/form/checkbox/example/base.vue.d.ts +3 -0
- package/types/src/components/form/checkbox/example/group.vue.d.ts +3 -0
- package/types/src/components/form/checkbox/index.d.ts +1 -0
- package/types/src/components/form/index.d.ts +5 -0
- package/types/src/components/form/input/example/base.vue.d.ts +3 -0
- package/types/src/components/form/input/index.d.ts +1 -0
- package/types/src/components/form/input/input.vue.d.ts +17 -0
- package/types/src/components/form/select/example/base.vue.d.ts +3 -0
- package/types/src/components/form/select/example/tree-select.vue.d.ts +3 -0
- package/types/src/components/form/select/index.d.ts +2 -0
- package/types/src/components/form/select/select.vue.d.ts +25 -0
- package/types/src/components/form/select/types.d.ts +25 -0
- package/types/src/components/form/slider/example/base.vue.d.ts +3 -0
- package/types/src/components/form/slider/index.d.ts +1 -0
- package/types/src/components/form/slider/slider.vue.d.ts +19 -0
- package/types/src/components/form/switch/example/base.vue.d.ts +3 -0
- package/types/src/components/form/switch/index.d.ts +1 -0
- package/types/src/components/form/switch/switch.vue.d.ts +17 -0
- package/types/src/components/index.d.ts +5 -0
- package/types/src/components/layout/index.d.ts +2 -0
- package/types/src/components/layout/layout/index.d.ts +42 -0
- package/types/src/components/layout/layout/layout-dividing.vue.d.ts +3 -0
- package/types/src/components/layout/layout/layout-main.vue.d.ts +15 -0
- package/types/src/components/layout/layout/layout.vue.d.ts +18 -0
- package/types/src/components/layout/page/Page.vue.d.ts +39 -0
- package/types/src/components/layout/page/index.d.ts +1 -0
- package/types/src/components/other/calendar/calendar.vue.d.ts +41 -0
- package/types/src/components/other/calendar/index.d.ts +1 -0
- package/types/src/components/other/index.d.ts +2 -0
- package/types/src/components/other/menu/index.d.ts +2 -0
- package/types/src/components/other/menu/index.vue.d.ts +46 -0
- package/types/src/components/other/menu/menu-h/index.vue.d.ts +19 -0
- package/types/src/components/other/menu/menu-h/menu-h-item.vue.d.ts +27 -0
- package/types/src/components/other/menu/menu-v/index.vue.d.ts +24 -0
- package/types/src/components/other/menu/types.d.ts +6 -0
- package/types/src/components/other/view-control/index.d.ts +1 -0
- package/types/src/components/other/view-control/view-control.vue.d.ts +20 -0
- package/types/src/context/index.d.ts +1 -0
- package/types/src/context/is-mobile.d.ts +4 -0
- package/types/src/icons/index.d.ts +4 -0
- package/types/src/index.d.ts +3 -0
- package/types/src/types.d.ts +2 -0
- package/types/src/utils/index.d.ts +6 -0
- package/types/src/utils/z-index.d.ts +1 -0
- package/types/vite.config.d.ts +2 -0
- package/build-ts/main.js +0 -63
- package/dist/demo.html +0 -8
- package/dist/star-ui.common.js +0 -33776
- package/dist/star-ui.common.js.map +0 -1
- package/dist/star-ui.umd.js +0 -33786
- package/dist/star-ui.umd.js.map +0 -1
- package/dist/star-ui.umd.min.js +0 -299
- package/dist/star-ui.umd.min.js.map +0 -1
- package/readme.md +0 -16
- package/src/components/button.vue +0 -34
- package/src/components/calendar.vue +0 -244
- package/src/components/call-render.tsx +0 -22
- package/src/components/card.vue +0 -126
- package/src/components/common/base-popper.vue +0 -132
- package/src/components/content/context-menu-box/index.vue +0 -117
- package/src/components/content/index.ts +0 -5
- package/src/components/content/menu/index.vue +0 -86
- package/src/components/content/menu/menu-h/index.vue +0 -68
- package/src/components/content/menu/menu-h/menu-h-child.vue +0 -74
- package/src/components/content/menu/menu-h/menu-h-item.vue +0 -66
- package/src/components/content/menu/menu-v/index.vue +0 -56
- package/src/components/content/modals/confirm.vue +0 -45
- package/src/components/content/modals/modal.vue +0 -110
- package/src/components/content/page.vue +0 -134
- package/src/components/form/form/form-item.vue +0 -116
- package/src/components/form/form/form.vue +0 -109
- package/src/components/form/form/index.ts +0 -2
- package/src/components/form/index.ts +0 -1
- package/src/components/input.vue +0 -89
- package/src/components/layout/auto-direction/index.vue +0 -28
- package/src/components/layout/index.ts +0 -1
- package/src/components/layout-h.vue +0 -34
- package/src/components/layout-main.vue +0 -25
- package/src/components/layout-v.vue +0 -36
- package/src/components/line-h.vue +0 -29
- package/src/components/line-v.vue +0 -29
- package/src/components/select.vue +0 -265
- package/src/components/slider.vue +0 -171
- package/src/components/switch.vue +0 -95
- package/src/components/table.vue +0 -59
- package/src/components/tree/index.vue +0 -116
- package/src/components/tree/tree-item.vue +0 -157
- package/src/components/view-control.vue +0 -83
- package/src/directives/is-focus.ts +0 -10
- package/src/func/download.ts +0 -15
- package/src/func/index.ts +0 -2
- package/src/func/modal/index.ts +0 -72
- package/src/global-style.css +0 -127
- package/src/icon-font/iconfont.css +0 -75
- package/src/icon-font/iconfont.eot +0 -0
- package/src/icon-font/iconfont.json +0 -114
- package/src/icon-font/iconfont.svg +0 -62
- package/src/icon-font/iconfont.ttf +0 -0
- package/src/icon-font/iconfont.woff +0 -0
- package/src/icon-font/iconfont.woff2 +0 -0
- package/src/main.ts +0 -57
- package/src/outher/index.ts +0 -8
- package/src/reg.ts +0 -129
- package/src/shims-vue.d.ts +0 -8
- package/src/types.d.ts +0 -15
- package/src/utils.ts +0 -24
- package/types/components/button.vue.d.ts +0 -5
- package/types/components/calendar.vue.d.ts +0 -26
- package/types/components/call-render.d.ts +0 -6
- package/types/components/card.vue.d.ts +0 -13
- package/types/components/common/base-popper.vue.d.ts +0 -21
- package/types/components/content/context-menu-box/index.vue.d.ts +0 -20
- package/types/components/content/index.d.ts +0 -5
- package/types/components/content/menu/index.vue.d.ts +0 -12
- package/types/components/content/menu/menu-h/index.vue.d.ts +0 -8
- package/types/components/content/menu/menu-h/menu-h-child.vue.d.ts +0 -7
- package/types/components/content/menu/menu-h/menu-h-item.vue.d.ts +0 -8
- package/types/components/content/menu/menu-v/index.vue.d.ts +0 -9
- package/types/components/content/modals/confirm.vue.d.ts +0 -7
- package/types/components/content/modals/modal.vue.d.ts +0 -12
- package/types/components/content/page.vue.d.ts +0 -9
- package/types/components/form/form/form-item.vue.d.ts +0 -22
- package/types/components/form/form/form.vue.d.ts +0 -24
- package/types/components/form/form/index.d.ts +0 -2
- package/types/components/form/index.d.ts +0 -1
- package/types/components/input.vue.d.ts +0 -17
- package/types/components/layout/auto-direction/index.vue.d.ts +0 -4
- package/types/components/layout/index.d.ts +0 -1
- package/types/components/layout-h.vue.d.ts +0 -4
- package/types/components/layout-main.vue.d.ts +0 -4
- package/types/components/layout-v.vue.d.ts +0 -4
- package/types/components/line-h.vue.d.ts +0 -4
- package/types/components/line-v.vue.d.ts +0 -4
- package/types/components/select.vue.d.ts +0 -26
- package/types/components/slider.vue.d.ts +0 -29
- package/types/components/switch.vue.d.ts +0 -12
- package/types/components/table.vue.d.ts +0 -5
- package/types/components/tree/index.vue.d.ts +0 -15
- package/types/components/tree/tree-item.vue.d.ts +0 -18
- package/types/components/view-control.vue.d.ts +0 -16
- package/types/directives/is-focus.d.ts +0 -4
- package/types/func/download.d.ts +0 -1
- package/types/func/index.d.ts +0 -2
- package/types/func/modal/index.d.ts +0 -13
- package/types/main.d.ts +0 -75
- package/types/outher/index.d.ts +0 -5
- package/types/reg.d.ts +0 -45
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Button } from "./button.vue";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./button";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
collapsible?: boolean;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_ModelProps = {
|
|
6
|
+
"isCollapse"?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_template: () => {
|
|
10
|
+
__VLS_Slots: {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
__VLS_TemplateRefs: {
|
|
14
|
+
body: __VLS_Elements["div"];
|
|
15
|
+
} & {
|
|
16
|
+
bodyInner: __VLS_Elements["div"];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:isCollapse": (value: boolean) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:isCollapse"?: ((value: boolean) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Card } from "./card.vue";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Pagination } from "./pagination.vue";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Size } from "../../../types";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
total: number;
|
|
4
|
+
size?: Size;
|
|
5
|
+
pagerCont?: number;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
|
+
"pageSize": number;
|
|
9
|
+
"page": number;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:pageSize": (value: number) => any;
|
|
14
|
+
"update:page": (value: number) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
17
|
+
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Popover } from "./popover.vue";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Placement } from "./type";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
referenceElement?: Element | {
|
|
4
|
+
value: Element;
|
|
5
|
+
} | null;
|
|
6
|
+
className?: string | string[];
|
|
7
|
+
updatePoseAt?: "open" | "scroll";
|
|
8
|
+
teleportTo?: Element | string;
|
|
9
|
+
keepRender?: "allways" | "mounted" | "visible";
|
|
10
|
+
placement?: Placement;
|
|
11
|
+
margin?: number;
|
|
12
|
+
allowMobileStyle?: boolean;
|
|
13
|
+
maskOnMobile?: boolean;
|
|
14
|
+
trigger?: "click" | "none";
|
|
15
|
+
position?: "fixed" | "absolute";
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {
|
|
18
|
+
reference?: any;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_ModelProps = {
|
|
21
|
+
"visible"?: any;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:visible": (value: any) => any;
|
|
26
|
+
} & {
|
|
27
|
+
"out-click": (ev: MouseEvent) => any;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
"onOut-click"?: ((ev: MouseEvent) => any) | undefined;
|
|
30
|
+
"onUpdate:visible"?: ((value: any) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Placement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Placement } from "./type";
|
|
2
|
+
export declare const placementHandleFn: {
|
|
3
|
+
before(refBox: any, selfBox: any, offsetBox: any, margin: number, d1: "top" | "left", d2: "height" | "width"): string;
|
|
4
|
+
start(refBox: any, selfBox: any, offsetBox: any, margin: number, d1: "top" | "left", d2: "height" | "width"): string;
|
|
5
|
+
center(refBox: any, selfBox: any, offsetBox: any, margin: number, d1: "top" | "left", d2: "height" | "width"): string;
|
|
6
|
+
end(refBox: any, selfBox: any, offsetBox: any, margin: number, d1: "top" | "left", d2: "height" | "width"): string;
|
|
7
|
+
after(refBox: any, selfBox: any, offsetBox: any, margin: number, d1: "top" | "left", d2: "height" | "width"): string;
|
|
8
|
+
};
|
|
9
|
+
export declare const placementMap: Record<Placement, {
|
|
10
|
+
x: keyof typeof placementHandleFn;
|
|
11
|
+
y: keyof typeof placementHandleFn;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TableColumn } from "./types";
|
|
2
|
+
import { ObjectKeyProp } from "../../../utils";
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
data: T[];
|
|
6
|
+
columns: TableColumn<T>[];
|
|
7
|
+
recordKey?: ObjectKeyProp<T>;
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {
|
|
14
|
+
[x: `header_${string}`]: ((props: {
|
|
15
|
+
column: TableColumn<T>;
|
|
16
|
+
}) => any) | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
[x: `render_${string}`]: ((props: {
|
|
19
|
+
record: T;
|
|
20
|
+
index: number;
|
|
21
|
+
column: TableColumn<T>;
|
|
22
|
+
}) => any) | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
default?: (props: {}) => any;
|
|
25
|
+
};
|
|
26
|
+
emit: {};
|
|
27
|
+
}>) => import("vue").VNode & {
|
|
28
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
29
|
+
};
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} : {
|
|
35
|
+
[K in keyof T as K]: T[K];
|
|
36
|
+
}) & {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Tag } from "./tag.vue";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Size, ThemeColor } from "../../../types";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
size?: Size;
|
|
4
|
+
theme?: ThemeColor;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_template: () => {
|
|
7
|
+
__VLS_Slots: {
|
|
8
|
+
default?: (props: {}) => any;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Size } from "../../../types";
|
|
2
|
+
import { Tree } from "./type";
|
|
3
|
+
declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
item: Tree<T>;
|
|
6
|
+
size: Size;
|
|
7
|
+
currentKey?: string | number;
|
|
8
|
+
expendKey: Set<string | number>;
|
|
9
|
+
labelRender: (item: Tree<T>) => any;
|
|
10
|
+
shouldItemShow?: (item: Tree<T>) => boolean;
|
|
11
|
+
showCheckbox?: boolean;
|
|
12
|
+
} & {
|
|
13
|
+
onExpend?: ((item: Tree<T>) => any) | undefined;
|
|
14
|
+
"onItem-click"?: ((item: Tree<T>) => any) | undefined;
|
|
15
|
+
onCheck?: ((item: Tree<T>) => any) | undefined;
|
|
16
|
+
}> & (typeof globalThis extends {
|
|
17
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
18
|
+
} ? P : {});
|
|
19
|
+
expose: (exposed: {}) => void;
|
|
20
|
+
attrs: any;
|
|
21
|
+
slots: {};
|
|
22
|
+
emit: {
|
|
23
|
+
(ev: "item-click", item: Tree<T>): void;
|
|
24
|
+
(ev: "expend", item: Tree<T>): void;
|
|
25
|
+
(ev: "check", item: Tree<T>): void;
|
|
26
|
+
};
|
|
27
|
+
}>) => import("vue").VNode & {
|
|
28
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
29
|
+
};
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} : {
|
|
35
|
+
[K in keyof T as K]: T[K];
|
|
36
|
+
}) & {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Size } from "../../../types";
|
|
2
|
+
import { TreeCheckboxMode, Tree } from "./type";
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
5
|
+
tree: Tree<T>[];
|
|
6
|
+
size: Size;
|
|
7
|
+
highlightCurrent?: boolean;
|
|
8
|
+
currentKey?: Tree<T>["itemKey"];
|
|
9
|
+
labelRender: (item: Tree<T>) => any;
|
|
10
|
+
shouldItemShow?: (item: Tree<T>) => boolean;
|
|
11
|
+
showCheckbox?: boolean;
|
|
12
|
+
showCheckboxMode?: TreeCheckboxMode;
|
|
13
|
+
itemHandle?: "expend" | "none" | "check";
|
|
14
|
+
} & {
|
|
15
|
+
expendKey?: (string | number)[];
|
|
16
|
+
}) & {
|
|
17
|
+
onExpend?: ((expend: boolean, item: Tree<T>) => any) | undefined;
|
|
18
|
+
"onUpdate:expendKey"?: ((value: (string | number)[] | undefined) => any) | undefined;
|
|
19
|
+
"onItem-click"?: ((item: Tree<T>) => any) | undefined;
|
|
20
|
+
"onCheck-change"?: ((changed: {
|
|
21
|
+
add: Set<Tree<T>>;
|
|
22
|
+
remove: Set<Tree<T>>;
|
|
23
|
+
}) => any) | undefined;
|
|
24
|
+
}> & (typeof globalThis extends {
|
|
25
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
26
|
+
} ? P : {});
|
|
27
|
+
expose: (exposed: {}) => void;
|
|
28
|
+
attrs: any;
|
|
29
|
+
slots: {};
|
|
30
|
+
emit: {
|
|
31
|
+
(ev: "item-click", item: Tree<T>): void;
|
|
32
|
+
(ev: "expend", expend: boolean, item: Tree<T>): void;
|
|
33
|
+
(ev: "check-change", changed: {
|
|
34
|
+
add: Set<Tree<T>>;
|
|
35
|
+
remove: Set<Tree<T>>;
|
|
36
|
+
}): void;
|
|
37
|
+
} & ((event: "update:expendKey", value: (string | number)[] | undefined) => void);
|
|
38
|
+
}>) => import("vue").VNode & {
|
|
39
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
40
|
+
};
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} : {
|
|
46
|
+
[K in keyof T as K]: T[K];
|
|
47
|
+
}) & {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TreeItemContextWithKey, TreeProp } from "./type";
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(TreeProp<T> & {
|
|
4
|
+
currentKey?: string | number;
|
|
5
|
+
expendKey?: (string | number)[];
|
|
6
|
+
checkedKey?: (string | number)[];
|
|
7
|
+
}) & {
|
|
8
|
+
onExpend?: ((expend: boolean, item: T) => any) | undefined;
|
|
9
|
+
"onUpdate:expendKey"?: ((value: (string | number)[] | undefined) => any) | undefined;
|
|
10
|
+
"onItem-click"?: ((context: TreeItemContextWithKey<T>) => any) | undefined;
|
|
11
|
+
"onUpdate:currentKey"?: ((value: string | number | undefined) => any) | undefined;
|
|
12
|
+
"onUpdate:checkedKey"?: ((value: (string | number)[] | undefined) => any) | undefined;
|
|
13
|
+
}> & (typeof globalThis extends {
|
|
14
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
15
|
+
} ? P : {});
|
|
16
|
+
expose: (exposed: {}) => void;
|
|
17
|
+
attrs: any;
|
|
18
|
+
slots: {
|
|
19
|
+
default(props: TreeItemContextWithKey<T>): any;
|
|
20
|
+
};
|
|
21
|
+
emit: {
|
|
22
|
+
(ev: "item-click", context: TreeItemContextWithKey<T>): void;
|
|
23
|
+
(ev: "expend", expend: boolean, item: T): void;
|
|
24
|
+
} & (((event: "update:expendKey", value: (string | number)[] | undefined) => void) & ((event: "update:currentKey", value: string | number | undefined) => void) & ((event: "update:checkedKey", value: (string | number)[] | undefined) => void));
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComputedRef } from "vue";
|
|
2
|
+
import { Size } from "../../../types";
|
|
3
|
+
import { ObjectKeyProp, StringOrNumberValueKey } from "../../../utils";
|
|
4
|
+
export type TreeCheckboxMode = "default" | "leafOnly" | "raw";
|
|
5
|
+
export interface TreeItemContext<T> {
|
|
6
|
+
item: T;
|
|
7
|
+
index: number;
|
|
8
|
+
items: T[];
|
|
9
|
+
indexes: number[];
|
|
10
|
+
}
|
|
11
|
+
export interface TreeItemContextWithKey<T> extends TreeItemContext<T> {
|
|
12
|
+
item: T;
|
|
13
|
+
index: number;
|
|
14
|
+
itemKey: string | number;
|
|
15
|
+
items: T[];
|
|
16
|
+
indexes: number[];
|
|
17
|
+
}
|
|
18
|
+
export interface Tree<T> extends TreeItemContextWithKey<T> {
|
|
19
|
+
children?: Tree<T>[];
|
|
20
|
+
parent?: Tree<T> | null;
|
|
21
|
+
selfChecked: ComputedRef<boolean>;
|
|
22
|
+
checked: ComputedRef<boolean>;
|
|
23
|
+
indeterminate: ComputedRef<boolean>;
|
|
24
|
+
}
|
|
25
|
+
type MayChildrenKey<T> = {
|
|
26
|
+
[k in keyof T]: T[k] extends T[] | undefined ? k : never;
|
|
27
|
+
}[keyof T];
|
|
28
|
+
export interface TreeProp<T> {
|
|
29
|
+
size?: Size;
|
|
30
|
+
treeData: T[];
|
|
31
|
+
itemKey?: ObjectKeyProp<T, [context: TreeItemContext<T>]>;
|
|
32
|
+
label?: StringOrNumberValueKey<T> | ((context: TreeItemContextWithKey<T>) => any);
|
|
33
|
+
children?: MayChildrenKey<T> | ((item: T) => T[] | undefined);
|
|
34
|
+
highlightCurrent?: boolean;
|
|
35
|
+
itemClick?: "expend" | "select";
|
|
36
|
+
shouldItemShow?: (context: TreeItemContextWithKey<T>) => boolean;
|
|
37
|
+
showCheckbox?: boolean;
|
|
38
|
+
showCheckboxMode?: TreeCheckboxMode;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tree, TreeItemContext, TreeItemContextWithKey, TreeProp } from "./type";
|
|
2
|
+
export declare function toTree<T>(raw: T[], itemKey: TreeProp<T>["itemKey"], children: TreeProp<T>["children"], checkMode: TreeProp<T>["showCheckboxMode"], isItemChecked: (context: Tree<T>) => boolean): {
|
|
3
|
+
map: Map<string | number, Tree<T>>;
|
|
4
|
+
tree: Tree<T>[];
|
|
5
|
+
};
|
|
6
|
+
export declare function traverseTree<T>(tree: T[], getChildren: TreeProp<T>["children"], fn: (context: TreeItemContext<T>) => boolean | undefined | void): any;
|
|
7
|
+
export declare function getTreeKeyFn<T>(itemKey: TreeProp<T>["itemKey"]): (item: T, context: TreeItemContext<T>) => number | string;
|
|
8
|
+
export declare function getChildrenFn<T>(c: TreeProp<T>["children"]): (item: T, context: TreeItemContext<T>) => T[] | undefined | null;
|
|
9
|
+
export declare function getTreeLabelRender<T>(render: TreeProp<T>["label"]): (context: TreeItemContextWithKey<T>) => any;
|
|
10
|
+
export declare function filertTree<T>(tree: T[], getChildren: TreeProp<T> | T, fn: (context: TreeItemContext<T>) => boolean): void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Size } from "../../../types";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
size?: Size;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
indeterminate?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
|
+
modelValue?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare const __VLS_template: () => {
|
|
12
|
+
__VLS_Slots: {
|
|
13
|
+
default?: (props: {}) => any;
|
|
14
|
+
};
|
|
15
|
+
__VLS_TemplateRefs: {
|
|
16
|
+
input: __VLS_Elements["input"];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: boolean) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CheckBox } from "./checkbox.vue";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Input } from "./input.vue";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Size } from "../../../types";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
name?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
size?: Size;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
|
+
modelValue?: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: any) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SelectProp } from "./types";
|
|
2
|
+
declare const __VLS_export: <T, V, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(SelectProp<T, V, M> & {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
modelValue?: M extends true ? V[] : V;
|
|
6
|
+
}) & {
|
|
7
|
+
"onUpdate:modelValue"?: ((value: M extends true ? V[] : V | undefined) => any) | undefined;
|
|
8
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
9
|
+
}> & (typeof globalThis extends {
|
|
10
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
11
|
+
} ? P : {});
|
|
12
|
+
expose: (exposed: {}) => void;
|
|
13
|
+
attrs: any;
|
|
14
|
+
slots: {};
|
|
15
|
+
emit: ((event: "update:modelValue", value: M extends true ? V[] : V | undefined) => void) & ((event: "update:open", value: boolean) => void);
|
|
16
|
+
}>) => import("vue").VNode & {
|
|
17
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
18
|
+
};
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
22
|
+
[K in keyof T]: T[K];
|
|
23
|
+
} : {
|
|
24
|
+
[K in keyof T as K]: T[K];
|
|
25
|
+
}) & {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Size } from "../../../types";
|
|
2
|
+
import { TreeCheckboxMode, TreeProp } from "../../data/tree/type";
|
|
3
|
+
export type ValueKey<T, V> = {
|
|
4
|
+
[k in keyof T]: T[k] extends V ? k : never;
|
|
5
|
+
}[keyof T];
|
|
6
|
+
export interface SelectProp<T, V, M extends boolean> {
|
|
7
|
+
size?: Size;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
label?: TreeProp<T>["label"];
|
|
10
|
+
itemKey?: TreeProp<T>["itemKey"];
|
|
11
|
+
/**
|
|
12
|
+
* item的value,不指定时和itemKey一致
|
|
13
|
+
*/
|
|
14
|
+
value?: ValueKey<T, V> | ((item: T) => V);
|
|
15
|
+
/**
|
|
16
|
+
* 判断两个value是否是相等的(仅设置value后)
|
|
17
|
+
*/
|
|
18
|
+
isValueEqual?: (a: V, b: V) => boolean;
|
|
19
|
+
children?: TreeProp<T>["children"];
|
|
20
|
+
options: T[];
|
|
21
|
+
multiple?: M;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
filterable?: boolean;
|
|
24
|
+
treeCheckboxMode?: TreeCheckboxMode;
|
|
25
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Slider } from "./slider.vue";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Size } from "../../../types";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
min?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
size?: Size;
|
|
6
|
+
step?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_ModelProps = {
|
|
10
|
+
modelValue?: number;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: number) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Switch } from "./switch.vue";
|