@thestarweb/ui 1.7.1 → 2.0.0-beta.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/_virtual/_plugin-vue_export-helper.js +7 -0
- package/dist/components/base/button/button.vue.js +5 -0
- package/dist/components/base/button/button.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/components/data/card/card.vue.js +5 -0
- package/dist/components/data/card/card.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/components/data/pagination/pagination.vue.js +5 -0
- package/dist/components/data/pagination/pagination.vue_vue_type_script_setup_true_lang.js +101 -0
- package/dist/components/data/popover/popover.vue.js +5 -0
- package/dist/components/data/popover/popover.vue_vue_type_script_setup_true_lang.js +122 -0
- package/dist/components/data/popover/utils.js +68 -0
- package/dist/components/data/table/table.vue.js +5 -0
- package/dist/components/data/table/table.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/data/tag/tag.vue.js +5 -0
- package/dist/components/data/tag/tag.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/components/data/tree/tree-item.vue.js +5 -0
- package/dist/components/data/tree/tree-item.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/data/tree/tree-raw.vue.js +5 -0
- package/dist/components/data/tree/tree-raw.vue_vue_type_script_setup_true_lang.js +104 -0
- package/dist/components/data/tree/tree.vue.js +4 -0
- package/dist/components/data/tree/tree.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/data/tree/utils.js +66 -0
- package/dist/components/form/checkbox/checkbox.vue.js +5 -0
- package/dist/components/form/checkbox/checkbox.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/components/form/input/input.vue.js +5 -0
- package/dist/components/form/input/input.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/form/select/select.vue.js +5 -0
- package/dist/components/form/select/select.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/components/form/slider/slider.vue.js +5 -0
- package/dist/components/form/slider/slider.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/components/form/switch/switch.vue.js +5 -0
- package/dist/components/form/switch/switch.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/components/layout/layout/index.js +9 -0
- package/dist/components/layout/layout/layout-dividing.vue.js +10 -0
- package/dist/components/layout/layout/layout-main.vue.js +10 -0
- package/dist/components/layout/layout/layout.vue.js +5 -0
- package/dist/components/layout/layout/layout.vue_vue_type_script_setup_true_lang.js +14 -0
- package/dist/components/layout/page/Page.vue.js +5 -0
- package/dist/components/layout/page/Page.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/other/calendar/calendar.vue.js +5 -0
- package/dist/components/other/calendar/calendar.vue_vue_type_script_setup_true_lang.js +103 -0
- package/dist/components/other/menu/index.vue.js +5 -0
- package/dist/components/other/menu/index.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/components/other/menu/menu-h/index.vue.js +5 -0
- package/dist/components/other/menu/menu-h/index.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/components/other/menu/menu-h/menu-h-item.vue.js +5 -0
- package/dist/components/other/menu/menu-h/menu-h-item.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/other/menu/menu-v/index.vue.js +4 -0
- package/dist/components/other/menu/menu-v/index.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/context/is-mobile.js +10 -0
- package/dist/icons/arrow-down.svg_component.js +12 -0
- package/dist/icons/arrow-right.svg_component.js +12 -0
- package/dist/icons/home.svg_component.js +12 -0
- package/dist/icons/menu.svg_component.js +12 -0
- package/dist/index.js +19 -0
- package/dist/style.css +2 -0
- package/dist/utils/index.js +9 -0
- package/dist/utils/z-index.js +6 -0
- package/package.json +38 -81
- package/types/src/components/base/button/button.vue.d.ts +22 -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 +6 -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 +21 -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,17 @@
|
|
|
1
|
+
import { Size } from "../../../types.js";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
size?: Size;
|
|
4
|
+
name?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
|
+
modelValue?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: boolean) => any;
|
|
13
|
+
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const Layout: {
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
direction?: "h" | "v";
|
|
4
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
5
|
+
P: {};
|
|
6
|
+
B: {};
|
|
7
|
+
D: {};
|
|
8
|
+
C: {};
|
|
9
|
+
M: {};
|
|
10
|
+
Defaults: {};
|
|
11
|
+
}, Readonly<{
|
|
12
|
+
direction?: "h" | "v";
|
|
13
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
14
|
+
__isFragment?: never;
|
|
15
|
+
__isTeleport?: never;
|
|
16
|
+
__isSuspense?: never;
|
|
17
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
18
|
+
direction?: "h" | "v";
|
|
19
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
20
|
+
$slots: {
|
|
21
|
+
default?: (props: {}) => any;
|
|
22
|
+
};
|
|
23
|
+
}) & {
|
|
24
|
+
Main: {
|
|
25
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
26
|
+
P: {};
|
|
27
|
+
B: {};
|
|
28
|
+
D: {};
|
|
29
|
+
C: {};
|
|
30
|
+
M: {};
|
|
31
|
+
Defaults: {};
|
|
32
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
33
|
+
__isFragment?: never;
|
|
34
|
+
__isTeleport?: never;
|
|
35
|
+
__isSuspense?: never;
|
|
36
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
37
|
+
$slots: {
|
|
38
|
+
default?: (props: {}) => any;
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
Dividing: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const __VLS_template: () => {
|
|
2
|
+
__VLS_Slots: {
|
|
3
|
+
default?: (props: {}) => any;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
7
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
direction?: "h" | "v";
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_template: () => {
|
|
5
|
+
__VLS_Slots: {
|
|
6
|
+
default?: (props: {}) => any;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
10
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MenuItem } from "../../other/index.js";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
menu: MenuItem[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_template: () => {
|
|
6
|
+
__VLS_Slots: {
|
|
7
|
+
header?: (props: {}) => any;
|
|
8
|
+
} & {
|
|
9
|
+
menu?: (props: {
|
|
10
|
+
name?: string;
|
|
11
|
+
path?: string;
|
|
12
|
+
title: string;
|
|
13
|
+
children?: MenuItem[];
|
|
14
|
+
}) => any;
|
|
15
|
+
} & {
|
|
16
|
+
text?: (props: any) => any;
|
|
17
|
+
} & {
|
|
18
|
+
default?: (props: {}) => any;
|
|
19
|
+
} & {
|
|
20
|
+
menu?: (props: {
|
|
21
|
+
name?: string;
|
|
22
|
+
path?: string;
|
|
23
|
+
title: string;
|
|
24
|
+
children?: MenuItem[];
|
|
25
|
+
}) => any;
|
|
26
|
+
} & {
|
|
27
|
+
text?: (props: any) => any;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
31
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).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 { default as Page } from "./Page.vue";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{
|
|
5
|
+
displayMonth?: Date | string | number | dayjs.Dayjs;
|
|
6
|
+
/**
|
|
7
|
+
* 周的名字
|
|
8
|
+
*/
|
|
9
|
+
weekNames?: [string, string, string, string, string, string, string];
|
|
10
|
+
/**
|
|
11
|
+
* 周的偏移量
|
|
12
|
+
*/
|
|
13
|
+
weekOffset?: number;
|
|
14
|
+
}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
|
|
15
|
+
"date-click": (date: dayjs.Dayjs) => any;
|
|
16
|
+
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{
|
|
17
|
+
displayMonth?: Date | string | number | dayjs.Dayjs;
|
|
18
|
+
/**
|
|
19
|
+
* 周的名字
|
|
20
|
+
*/
|
|
21
|
+
weekNames?: [string, string, string, string, string, string, string];
|
|
22
|
+
/**
|
|
23
|
+
* 周的偏移量
|
|
24
|
+
*/
|
|
25
|
+
weekOffset?: number;
|
|
26
|
+
}> & Readonly<{
|
|
27
|
+
"onDate-click"?: ((date: dayjs.Dayjs) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
29
|
+
default?: (props: {
|
|
30
|
+
display: number;
|
|
31
|
+
isPrevious: boolean;
|
|
32
|
+
isNext: boolean;
|
|
33
|
+
week: string;
|
|
34
|
+
date: dayjs.Dayjs;
|
|
35
|
+
}) => any;
|
|
36
|
+
}>;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Calender } from "./calendar.vue";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { MenuItem } from "./types.js";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
menu: MenuItem[];
|
|
4
|
+
direction: "h" | "v";
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_template: () => {
|
|
7
|
+
__VLS_Slots: {
|
|
8
|
+
default?: (props: {
|
|
9
|
+
name?: string;
|
|
10
|
+
path?: string;
|
|
11
|
+
title: string;
|
|
12
|
+
children?: MenuItem[];
|
|
13
|
+
}) => any;
|
|
14
|
+
} & {
|
|
15
|
+
default?: (props: {
|
|
16
|
+
name?: string;
|
|
17
|
+
path?: string;
|
|
18
|
+
title: string;
|
|
19
|
+
children?: MenuItem[];
|
|
20
|
+
}) => any;
|
|
21
|
+
} & {
|
|
22
|
+
default?: (props: {
|
|
23
|
+
name?: string;
|
|
24
|
+
path?: string;
|
|
25
|
+
title: string;
|
|
26
|
+
children?: MenuItem[];
|
|
27
|
+
}) => any;
|
|
28
|
+
} & {
|
|
29
|
+
default?: (props: {
|
|
30
|
+
name?: string;
|
|
31
|
+
path?: string;
|
|
32
|
+
title: string;
|
|
33
|
+
children?: MenuItem[];
|
|
34
|
+
}) => any;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
38
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MenuItem } from "../types.js";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
menu: MenuItem[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_template: () => {
|
|
6
|
+
__VLS_Slots: {
|
|
7
|
+
default?: (props: any) => any;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
11
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MenuItem } from "../types.js";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: MenuItem;
|
|
4
|
+
childDirection?: "right" | "bottom";
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_template: () => {
|
|
7
|
+
__VLS_Slots: {
|
|
8
|
+
default?: (props: {
|
|
9
|
+
name?: string;
|
|
10
|
+
path?: string;
|
|
11
|
+
title: string;
|
|
12
|
+
children?: MenuItem[];
|
|
13
|
+
}) => any;
|
|
14
|
+
} & {
|
|
15
|
+
default?: (props: any) => any;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
19
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MenuItem } from "../types.js";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
menu: MenuItem[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_template: () => {
|
|
6
|
+
__VLS_Slots: {
|
|
7
|
+
default?: (props: {
|
|
8
|
+
name?: string;
|
|
9
|
+
path?: string;
|
|
10
|
+
title: string;
|
|
11
|
+
children?: MenuItem[];
|
|
12
|
+
}) => any;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
16
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type DeviceType = "mobile" | "pc";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
deviceType?: DeviceType;
|
|
4
|
+
checkFunction?: "ua" | "screen-width";
|
|
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", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).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 @@
|
|
|
1
|
+
export * from "./is-mobile.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from "vue";
|
|
2
|
+
export declare const SuViewCtrlInjectKeyIsMobile: unique symbol;
|
|
3
|
+
export declare function useIsMobile(): Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
4
|
+
export declare function provideIsMobile(p: Ref<boolean> | ComputedRef<boolean>): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./z-index.js";
|
|
2
|
+
export type StringOrNumberValueKey<T> = {
|
|
3
|
+
[k in keyof T]: T[k] extends string | number ? k : never;
|
|
4
|
+
}[keyof T];
|
|
5
|
+
export type ObjectKeyProp<T, P extends any[] = [index: number]> = StringOrNumberValueKey<T> | ((data: T, ...prop: P) => string | number);
|
|
6
|
+
export declare function getObjectKeyFn<T, P extends any[] = [index: number]>(recordKey?: ObjectKeyProp<T, P> | undefined): ((data: T, ...prop: P) => string | number) | ((record: T) => string | number) | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getNewIndex(): number;
|
package/build-ts/main.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const srcDir="./src";
|
|
4
|
-
const outDir="./out";
|
|
5
|
-
const alias = JSON.parse(fs.readFileSync('./tsconfig.json')).compilerOptions.paths;
|
|
6
|
-
var down = [];
|
|
7
|
-
var task = ["/main.ts"];
|
|
8
|
-
while(task.length){
|
|
9
|
-
const file=task.pop();
|
|
10
|
-
if(down.indexOf(file) != -1) continue;
|
|
11
|
-
let fileData = fs.readFileSync(path.join(srcDir, file), "utf8");
|
|
12
|
-
let outfile=path.join(outDir, file);
|
|
13
|
-
if(file.endsWith(".vue")){
|
|
14
|
-
//fileData
|
|
15
|
-
fileData=fileData.substring(fileData.indexOf("<script lang=\"ts\">")+18,fileData.lastIndexOf("</script>"));
|
|
16
|
-
outfile+=".ts";
|
|
17
|
-
}
|
|
18
|
-
fileData=fileData.replace(/(?:import|export) (?:.+?) from "(.+?)"/g,function(row,importFile){
|
|
19
|
-
if(alias){
|
|
20
|
-
Object.keys(alias).find(key => {
|
|
21
|
-
const _key = key.replace("*","");
|
|
22
|
-
if(importFile.startsWith(_key)){
|
|
23
|
-
const _r = path.relative(path.resolve(path.dirname(path.join(srcDir, file))),path.resolve(alias[key][0].replace("*","")));
|
|
24
|
-
const r = _r.replace(/\\/g, "/");
|
|
25
|
-
row = row.replace(`from "${_key}`,`from "${r}/`);
|
|
26
|
-
importFile = importFile.replace(_key, `${r}/`);
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
return false;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
if(!importFile.startsWith(".")){
|
|
33
|
-
return row;
|
|
34
|
-
}
|
|
35
|
-
let importFile_ = path.join(path.dirname(file), importFile);
|
|
36
|
-
if(importFile.lastIndexOf(".")<=importFile.lastIndexOf("/")){
|
|
37
|
-
const base = path.join(srcDir, importFile_);
|
|
38
|
-
if(fs.existsSync(base+".ts")){
|
|
39
|
-
importFile_+=".ts";
|
|
40
|
-
}else if(fs.existsSync(base+".tsx")){
|
|
41
|
-
importFile_+=".tsx";
|
|
42
|
-
}else if(fs.existsSync(base+".d.ts")){
|
|
43
|
-
importFile_+=".d.ts";
|
|
44
|
-
}else if(fs.existsSync(base+"/index.ts")){
|
|
45
|
-
importFile_+="/index.ts";
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
task.push(importFile_);
|
|
49
|
-
return row;
|
|
50
|
-
});
|
|
51
|
-
try{
|
|
52
|
-
makdir(path.dirname(outfile));
|
|
53
|
-
}catch(e){
|
|
54
|
-
//nothin to do
|
|
55
|
-
}
|
|
56
|
-
down.push(file);
|
|
57
|
-
fs.writeFileSync(outfile, fileData, {flag: "w+"});
|
|
58
|
-
}
|
|
59
|
-
function makdir(pathName){
|
|
60
|
-
if (fs.existsSync(pathName)) return;
|
|
61
|
-
makdir(path.dirname(pathName));
|
|
62
|
-
fs.mkdirSync(pathName);
|
|
63
|
-
}
|