@sdata/web-vue 2.3.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/sd.css +117 -191
- package/dist/sd.min.css +1 -1
- package/es/_components/transition/expand-transition.vue.d.ts +2 -2
- package/es/_hooks/use-responsive.d.ts +2 -2
- package/es/_hooks/use-theme-mode.d.ts +3 -0
- package/es/{calendar/hooks/use-calendar-theme.js → _hooks/use-theme-mode.js} +14 -10
- package/es/_utils/responsive-observe.d.ts +5 -4
- package/es/_utils/responsive-observe.js +2 -1
- package/es/alert/index.d.ts +3 -3
- package/es/anchor/index.d.ts +3 -3
- package/es/avatar/index.d.ts +20 -20
- package/es/border-beam/border-beam.js +5 -0
- package/es/border-beam/border-beam.vue.d.ts +52 -0
- package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +623 -0
- package/es/border-beam/index.d.ts +106 -0
- package/es/border-beam/index.js +10 -0
- package/es/border-beam/pulseDriver.d.ts +2 -0
- package/es/border-beam/pulseDriver.js +74 -0
- package/es/border-beam/style/css.js +2 -0
- package/es/border-beam/style/index.css +21 -0
- package/es/border-beam/style/index.d.ts +2 -0
- package/es/border-beam/style/index.js +2 -0
- package/es/border-beam/style/index.scss +12 -0
- package/es/border-beam/style/token.scss +12 -0
- package/es/border-beam/styles.d.ts +42 -0
- package/es/border-beam/styles.js +3545 -0
- package/es/border-beam/types.d.ts +27 -0
- package/es/button/index.d.ts +24 -24
- package/es/calendar/components/cell.vue.d.ts +26 -26
- package/es/calendar/components/index.vue.d.ts +1 -1
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/calendar/index.d.ts +5 -5
- package/es/carousel/index.d.ts +3 -3
- package/es/cascader/cascader.vue.d.ts +8 -8
- package/es/checkbox/checkbox.d.ts +3 -3
- package/es/collapse/collapse-item.d.ts +5 -5
- package/es/collapse/index.d.ts +3 -3
- package/es/components.d.ts +1 -0
- package/es/config-provider/index.d.ts +21 -21
- package/es/date-picker/index.d.ts +14 -14
- package/es/date-picker/panels/date/index.vue.d.ts +2 -2
- package/es/date-picker/panels/month/index.vue.d.ts +2 -2
- package/es/date-picker/panels/quarter/index.vue.d.ts +2 -2
- package/es/date-picker/panels/week/index.vue.d.ts +2 -2
- package/es/date-picker/panels/year/index.vue.d.ts +2 -2
- package/es/date-picker/picker-panel.vue.d.ts +12 -12
- package/es/date-picker/picker.vue.d.ts +14 -14
- package/es/date-picker/range-picker.vue.d.ts +15 -15
- package/es/descriptions/index.d.ts +24 -24
- package/es/drawer/drawer.vue.d.ts +5 -5
- package/es/drawer/index.d.ts +15 -15
- package/es/dropdown/dropdown-button.vue.d.ts +4 -4
- package/es/dropdown/index.d.ts +15 -15
- package/es/ellipsis/ellipsis.vue.d.ts +7 -7
- package/es/ellipsis/performant-ellipsis.vue.d.ts +5 -5
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/form/index.d.ts +3 -3
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +10 -10
- package/es/icon/icon-menu/icon-menu.js +5 -0
- package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-menu/index.js +9 -0
- package/es/image/preview.vue.d.ts +2 -2
- package/es/index.css +117 -191
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -2
- package/es/index.scss +1 -0
- package/es/input/index.d.ts +7 -7
- package/es/input/input-password.vue.d.ts +3 -3
- package/es/json-form/index.d.ts +9 -9
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/json-form.vue.d.ts +3 -3
- package/es/layout/content.vue.d.ts +2 -2
- package/es/layout/content.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/layout/context.d.ts +12 -9
- package/es/layout/context.js +11 -3
- package/es/layout/footer.vue.d.ts +2 -2
- package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/layout/header.vue.d.ts +3 -30
- package/es/layout/header.vue_vue_type_script_setup_true_lang.js +9 -339
- package/es/layout/hooks/use-has-sider.d.ts +2 -0
- package/es/layout/hooks/use-has-sider.js +38 -0
- package/es/layout/index.d.ts +91 -380
- package/es/layout/index.js +2 -2
- package/es/layout/interface.d.ts +12 -46
- package/es/layout/layout.vue.d.ts +4 -2
- package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +38 -14
- package/es/layout/sider.vue.d.ts +47 -183
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +191 -370
- package/es/layout/style/index.css +112 -190
- package/es/layout/style/index.scss +127 -239
- package/es/layout/style/token.scss +46 -26
- package/es/link/index.d.ts +6 -6
- package/es/list/index.d.ts +18 -18
- package/es/menu/base-menu.vue.d.ts +1 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +14 -14
- package/es/menu/item.d.ts +1 -1
- package/es/menu/menu.d.ts +12 -12
- package/es/menu/menu.js +3 -3
- package/es/modal/index.d.ts +15 -15
- package/es/modal/modal.vue.d.ts +4 -4
- package/es/popconfirm/index.d.ts +12 -12
- package/es/popover/index.d.ts +12 -12
- package/es/progress/index.d.ts +6 -6
- package/es/qr-code/index.d.ts +3 -3
- package/es/radio/radio.d.ts +3 -3
- package/es/resize-box/resize-box.vue.d.ts +4 -4
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -7
- package/es/result/index.d.ts +3 -3
- package/es/scrollbar/style/index.css +1 -1
- package/es/scrollbar/style/index.scss +4 -1
- package/es/sd-vue.js +3 -1
- package/es/select/select.d.ts +17 -17
- package/es/slider/index.d.ts +3 -3
- package/es/split/split.vue.d.ts +4 -4
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/steps/index.d.ts +6 -6
- package/es/tabs/index.d.ts +6 -6
- package/es/tag/index.d.ts +6 -6
- package/es/tag/tag.vue.d.ts +2 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/theme-provider/index.d.ts +9 -9
- package/es/time-picker/index.d.ts +6 -6
- package/es/time-picker/time-picker.vue.d.ts +2 -2
- package/es/timeline/index.d.ts +3 -3
- package/es/timeline/timeline.d.ts +1 -1
- package/es/tooltip/index.d.ts +3 -3
- package/es/tour/index.d.ts +3 -3
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/tree/expand-transition.vue.d.ts +2 -2
- package/es/tree/node-switcher.vue.d.ts +1 -1
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +23 -23
- package/es/tree-select/tree-select.vue.d.ts +9 -9
- package/json/vetur-attributes.json +23 -156
- package/json/vetur-tags.json +12 -44
- package/json/web-types.json +38 -304
- package/package.json +5 -5
- package/es/calendar/hooks/use-calendar-theme.d.ts +0 -4
- package/es/layout/utils.d.ts +0 -1
- package/es/layout/utils.js +0 -11
package/es/layout/interface.d.ts
CHANGED
|
@@ -1,55 +1,21 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
2
|
+
import type { SiderBreakpoint } from '../_utils/responsive-observe';
|
|
3
|
+
import type { ScrollbarProps } from '../scrollbar';
|
|
4
|
+
export type SiderTheme = 'light' | 'dark';
|
|
5
|
+
export type CollapseType = 'clickTrigger' | 'responsive';
|
|
1
6
|
export interface LayoutProps {
|
|
2
7
|
hasSider?: boolean;
|
|
3
8
|
}
|
|
4
|
-
export type LayoutHeaderDensity = 'default' | 'prominent' | 'comfortable' | 'compact';
|
|
5
|
-
export type LayoutHeaderScrollBehavior = 'hide' | 'fully-hide' | 'inverted' | 'collapse' | 'elevate' | 'fade-image';
|
|
6
|
-
export interface LayoutHeaderProps {
|
|
7
|
-
title?: string;
|
|
8
|
-
image?: string;
|
|
9
|
-
modelValue?: boolean;
|
|
10
|
-
defaultVisible?: boolean;
|
|
11
|
-
height?: number | string;
|
|
12
|
-
density?: LayoutHeaderDensity;
|
|
13
|
-
extended?: boolean;
|
|
14
|
-
extensionHeight?: number | string;
|
|
15
|
-
collapse?: boolean;
|
|
16
|
-
flat?: boolean;
|
|
17
|
-
floating?: boolean;
|
|
18
|
-
fixed?: boolean;
|
|
19
|
-
sticky?: boolean;
|
|
20
|
-
absolute?: boolean;
|
|
21
|
-
location?: 'top' | 'bottom';
|
|
22
|
-
scrollBehavior?: string;
|
|
23
|
-
scrollTarget?: string;
|
|
24
|
-
scrollThreshold?: number | string;
|
|
25
|
-
}
|
|
26
9
|
export interface SiderProps {
|
|
27
|
-
|
|
28
|
-
modelValue?: boolean;
|
|
29
|
-
defaultVisible?: boolean;
|
|
10
|
+
collapsible?: boolean;
|
|
30
11
|
collapsed?: boolean;
|
|
31
12
|
defaultCollapsed?: boolean;
|
|
32
|
-
collapsible?: boolean;
|
|
33
|
-
rail?: boolean;
|
|
34
|
-
defaultRail?: boolean;
|
|
35
|
-
railWidth?: number | string;
|
|
36
|
-
expandOnHover?: boolean;
|
|
37
|
-
disableResizeWatcher?: boolean;
|
|
38
|
-
disableRouteWatcher?: boolean;
|
|
39
|
-
width?: number | string;
|
|
40
|
-
height?: number | string;
|
|
41
|
-
collapsedWidth?: number;
|
|
42
|
-
temporary?: boolean;
|
|
43
|
-
permanent?: boolean;
|
|
44
|
-
persistent?: boolean;
|
|
45
|
-
mask?: boolean;
|
|
46
|
-
maskClosable?: boolean;
|
|
47
|
-
escToClose?: boolean;
|
|
48
|
-
location?: 'start' | 'end' | 'left' | 'right' | 'top' | 'bottom';
|
|
49
|
-
floating?: boolean;
|
|
50
|
-
sticky?: boolean;
|
|
51
13
|
reverseArrow?: boolean;
|
|
52
|
-
|
|
53
|
-
resizeDirections?: string[];
|
|
14
|
+
zeroWidthTriggerStyle?: CSSProperties;
|
|
54
15
|
hideTrigger?: boolean;
|
|
16
|
+
width?: number | string;
|
|
17
|
+
collapsedWidth?: number | string;
|
|
18
|
+
breakpoint?: SiderBreakpoint;
|
|
19
|
+
theme?: SiderTheme;
|
|
20
|
+
scrollbar?: boolean | ScrollbarProps;
|
|
55
21
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
declare var
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
|
-
default?: (props: typeof
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
4
|
};
|
|
5
5
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
hasSider: {
|
|
7
7
|
type: BooleanConstructor;
|
|
8
|
+
default: undefined;
|
|
8
9
|
};
|
|
9
10
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
11
|
hasSider: {
|
|
11
12
|
type: BooleanConstructor;
|
|
13
|
+
default: undefined;
|
|
12
14
|
};
|
|
13
15
|
}>> & Readonly<{}>, {
|
|
14
16
|
hasSider: boolean;
|
|
@@ -1,29 +1,53 @@
|
|
|
1
|
+
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
1
2
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { LayoutContextInjectionKey } from "./context.js";
|
|
5
|
+
import { useHasSider } from "./hooks/use-has-sider.js";
|
|
6
|
+
import { computed, createBlock, defineComponent, inject, normalizeClass, openBlock, provide, ref, renderSlot, resolveDynamicComponent, useSlots, withCtx } from "vue";
|
|
7
|
+
//#region components/layout/layout.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var tagName = "div";
|
|
6
9
|
var layout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Layout" }), {}, {
|
|
7
10
|
__name: "layout",
|
|
8
11
|
props: {
|
|
9
12
|
/**
|
|
10
|
-
* @zh
|
|
11
|
-
* @en
|
|
13
|
+
* @zh 是否包含 Sider,设为布尔值时会覆盖自动检测
|
|
14
|
+
* @en Whether contains Sider, overrides auto detection when set to a boolean
|
|
12
15
|
*/
|
|
13
|
-
hasSider: {
|
|
16
|
+
hasSider: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: void 0
|
|
19
|
+
} },
|
|
14
20
|
setup(__props) {
|
|
15
21
|
const props = __props;
|
|
16
|
-
const siderIds = ref([]);
|
|
17
22
|
const prefixCls = getPrefixCls("layout");
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
const slots = useSlots();
|
|
24
|
+
const siders = ref([]);
|
|
25
|
+
const mergedHasSider = useHasSider(siders, computed(() => {
|
|
26
|
+
var _slots$default;
|
|
27
|
+
return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
|
|
28
|
+
}), computed(() => props.hasSider));
|
|
29
|
+
const configProvider = inject(configProviderInjectionKey, void 0);
|
|
30
|
+
const rtl = computed(() => {
|
|
31
|
+
var _configProvider$rtl;
|
|
32
|
+
return (_configProvider$rtl = configProvider === null || configProvider === void 0 ? void 0 : configProvider.rtl) !== null && _configProvider$rtl !== void 0 ? _configProvider$rtl : false;
|
|
24
33
|
});
|
|
34
|
+
const classNames = computed(() => [prefixCls, {
|
|
35
|
+
[`${prefixCls}-has-sider`]: mergedHasSider.value,
|
|
36
|
+
[`${prefixCls}-rtl`]: rtl.value
|
|
37
|
+
}]);
|
|
38
|
+
provide(LayoutContextInjectionKey, { siderHook: {
|
|
39
|
+
addSider(id) {
|
|
40
|
+
siders.value = [...siders.value, id];
|
|
41
|
+
},
|
|
42
|
+
removeSider(id) {
|
|
43
|
+
siders.value = siders.value.filter((currentId) => currentId !== id);
|
|
44
|
+
}
|
|
45
|
+
} });
|
|
25
46
|
return (_ctx, _cache) => {
|
|
26
|
-
return openBlock(),
|
|
47
|
+
return openBlock(), createBlock(resolveDynamicComponent(tagName), { class: normalizeClass(classNames.value) }, {
|
|
48
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
49
|
+
_: 3
|
|
50
|
+
}, 8, ["class"]);
|
|
27
51
|
};
|
|
28
52
|
}
|
|
29
53
|
}));
|
package/es/layout/sider.vue.d.ts
CHANGED
|
@@ -1,29 +1,21 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { SiderBreakpoint } from '../_utils/responsive-observe';
|
|
3
|
+
import type { CollapseType } from './interface';
|
|
4
|
+
import { type ScrollbarProps } from '../scrollbar';
|
|
5
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_11: {}, __VLS_13: {}, __VLS_20: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
|
|
7
|
+
header?: (props: typeof __VLS_1) => any;
|
|
8
8
|
} & {
|
|
9
|
-
|
|
9
|
+
default?: (props: typeof __VLS_3) => any;
|
|
10
10
|
} & {
|
|
11
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_11) => any;
|
|
12
12
|
} & {
|
|
13
|
-
|
|
13
|
+
trigger?: (props: typeof __VLS_13) => any;
|
|
14
14
|
} & {
|
|
15
|
-
trigger?: (props: typeof
|
|
15
|
+
trigger?: (props: typeof __VLS_20) => any;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
18
|
-
|
|
19
|
-
type: PropType<"dark" | "light">;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
modelValue: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: undefined;
|
|
25
|
-
};
|
|
26
|
-
defaultVisible: {
|
|
18
|
+
collapsible: {
|
|
27
19
|
type: BooleanConstructor;
|
|
28
20
|
default: boolean;
|
|
29
21
|
};
|
|
@@ -35,103 +27,43 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
35
27
|
type: BooleanConstructor;
|
|
36
28
|
default: boolean;
|
|
37
29
|
};
|
|
38
|
-
|
|
30
|
+
reverseArrow: {
|
|
39
31
|
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
40
33
|
};
|
|
41
|
-
|
|
42
|
-
type:
|
|
34
|
+
zeroWidthTriggerStyle: {
|
|
35
|
+
type: ObjectConstructor;
|
|
43
36
|
default: undefined;
|
|
44
37
|
};
|
|
45
|
-
|
|
38
|
+
hideTrigger: {
|
|
46
39
|
type: BooleanConstructor;
|
|
47
40
|
default: boolean;
|
|
48
41
|
};
|
|
49
|
-
railWidth: {
|
|
50
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
51
|
-
default: number;
|
|
52
|
-
};
|
|
53
|
-
expandOnHover: {
|
|
54
|
-
type: BooleanConstructor;
|
|
55
|
-
};
|
|
56
|
-
disableResizeWatcher: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
};
|
|
59
|
-
disableRouteWatcher: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
};
|
|
62
42
|
width: {
|
|
63
43
|
type: (StringConstructor | NumberConstructor)[];
|
|
64
44
|
default: number;
|
|
65
45
|
};
|
|
66
|
-
height: {
|
|
67
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
68
|
-
default: undefined;
|
|
69
|
-
};
|
|
70
46
|
collapsedWidth: {
|
|
71
|
-
type: NumberConstructor;
|
|
47
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
72
48
|
default: number;
|
|
73
49
|
};
|
|
74
|
-
temporary: {
|
|
75
|
-
type: BooleanConstructor;
|
|
76
|
-
};
|
|
77
|
-
permanent: {
|
|
78
|
-
type: BooleanConstructor;
|
|
79
|
-
};
|
|
80
|
-
persistent: {
|
|
81
|
-
type: BooleanConstructor;
|
|
82
|
-
};
|
|
83
|
-
mask: {
|
|
84
|
-
type: BooleanConstructor;
|
|
85
|
-
default: boolean;
|
|
86
|
-
};
|
|
87
|
-
maskClosable: {
|
|
88
|
-
type: BooleanConstructor;
|
|
89
|
-
default: boolean;
|
|
90
|
-
};
|
|
91
|
-
escToClose: {
|
|
92
|
-
type: BooleanConstructor;
|
|
93
|
-
default: boolean;
|
|
94
|
-
};
|
|
95
|
-
location: {
|
|
96
|
-
type: PropType<(typeof SIDER_LOCATIONS)[number]>;
|
|
97
|
-
default: string;
|
|
98
|
-
validator: (value: string) => boolean;
|
|
99
|
-
};
|
|
100
|
-
floating: {
|
|
101
|
-
type: BooleanConstructor;
|
|
102
|
-
};
|
|
103
|
-
sticky: {
|
|
104
|
-
type: BooleanConstructor;
|
|
105
|
-
};
|
|
106
|
-
reverseArrow: {
|
|
107
|
-
type: BooleanConstructor;
|
|
108
|
-
};
|
|
109
50
|
breakpoint: {
|
|
110
|
-
type: PropType<
|
|
111
|
-
};
|
|
112
|
-
resizeDirections: {
|
|
113
|
-
type: PropType<Array<"left" | "right" | "top" | "bottom">>;
|
|
51
|
+
type: PropType<SiderBreakpoint>;
|
|
114
52
|
default: undefined;
|
|
115
53
|
};
|
|
116
|
-
hideTrigger: {
|
|
117
|
-
type: BooleanConstructor;
|
|
118
|
-
};
|
|
119
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
120
|
-
collapse: (_collapsed: boolean, _type: "responsive" | "clickTrigger") => any;
|
|
121
|
-
"update:modelValue": (_value: boolean) => any;
|
|
122
|
-
breakpoint: (_collapsed: boolean) => any;
|
|
123
|
-
"update:rail": (_value: boolean) => any;
|
|
124
|
-
"update:collapsed": (_collapsed: boolean) => any;
|
|
125
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
126
54
|
theme: {
|
|
127
|
-
type:
|
|
128
|
-
default:
|
|
55
|
+
type: () => "light" | "dark";
|
|
56
|
+
default: undefined;
|
|
129
57
|
};
|
|
130
|
-
|
|
131
|
-
type:
|
|
58
|
+
scrollbar: {
|
|
59
|
+
type: PropType<boolean | ScrollbarProps>;
|
|
132
60
|
default: undefined;
|
|
133
61
|
};
|
|
134
|
-
|
|
62
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
63
|
+
collapse: (collapsed: boolean, type: CollapseType) => any;
|
|
64
|
+
breakpoint: (broken: boolean) => any;
|
|
65
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
collapsible: {
|
|
135
67
|
type: BooleanConstructor;
|
|
136
68
|
default: boolean;
|
|
137
69
|
};
|
|
@@ -143,121 +75,53 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
143
75
|
type: BooleanConstructor;
|
|
144
76
|
default: boolean;
|
|
145
77
|
};
|
|
146
|
-
|
|
78
|
+
reverseArrow: {
|
|
147
79
|
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
148
81
|
};
|
|
149
|
-
|
|
150
|
-
type:
|
|
82
|
+
zeroWidthTriggerStyle: {
|
|
83
|
+
type: ObjectConstructor;
|
|
151
84
|
default: undefined;
|
|
152
85
|
};
|
|
153
|
-
|
|
86
|
+
hideTrigger: {
|
|
154
87
|
type: BooleanConstructor;
|
|
155
88
|
default: boolean;
|
|
156
89
|
};
|
|
157
|
-
railWidth: {
|
|
158
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
159
|
-
default: number;
|
|
160
|
-
};
|
|
161
|
-
expandOnHover: {
|
|
162
|
-
type: BooleanConstructor;
|
|
163
|
-
};
|
|
164
|
-
disableResizeWatcher: {
|
|
165
|
-
type: BooleanConstructor;
|
|
166
|
-
};
|
|
167
|
-
disableRouteWatcher: {
|
|
168
|
-
type: BooleanConstructor;
|
|
169
|
-
};
|
|
170
90
|
width: {
|
|
171
91
|
type: (StringConstructor | NumberConstructor)[];
|
|
172
92
|
default: number;
|
|
173
93
|
};
|
|
174
|
-
height: {
|
|
175
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
176
|
-
default: undefined;
|
|
177
|
-
};
|
|
178
94
|
collapsedWidth: {
|
|
179
|
-
type: NumberConstructor;
|
|
95
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
180
96
|
default: number;
|
|
181
97
|
};
|
|
182
|
-
temporary: {
|
|
183
|
-
type: BooleanConstructor;
|
|
184
|
-
};
|
|
185
|
-
permanent: {
|
|
186
|
-
type: BooleanConstructor;
|
|
187
|
-
};
|
|
188
|
-
persistent: {
|
|
189
|
-
type: BooleanConstructor;
|
|
190
|
-
};
|
|
191
|
-
mask: {
|
|
192
|
-
type: BooleanConstructor;
|
|
193
|
-
default: boolean;
|
|
194
|
-
};
|
|
195
|
-
maskClosable: {
|
|
196
|
-
type: BooleanConstructor;
|
|
197
|
-
default: boolean;
|
|
198
|
-
};
|
|
199
|
-
escToClose: {
|
|
200
|
-
type: BooleanConstructor;
|
|
201
|
-
default: boolean;
|
|
202
|
-
};
|
|
203
|
-
location: {
|
|
204
|
-
type: PropType<(typeof SIDER_LOCATIONS)[number]>;
|
|
205
|
-
default: string;
|
|
206
|
-
validator: (value: string) => boolean;
|
|
207
|
-
};
|
|
208
|
-
floating: {
|
|
209
|
-
type: BooleanConstructor;
|
|
210
|
-
};
|
|
211
|
-
sticky: {
|
|
212
|
-
type: BooleanConstructor;
|
|
213
|
-
};
|
|
214
|
-
reverseArrow: {
|
|
215
|
-
type: BooleanConstructor;
|
|
216
|
-
};
|
|
217
98
|
breakpoint: {
|
|
218
|
-
type: PropType<
|
|
99
|
+
type: PropType<SiderBreakpoint>;
|
|
100
|
+
default: undefined;
|
|
219
101
|
};
|
|
220
|
-
|
|
221
|
-
type:
|
|
102
|
+
theme: {
|
|
103
|
+
type: () => "light" | "dark";
|
|
222
104
|
default: undefined;
|
|
223
105
|
};
|
|
224
|
-
|
|
225
|
-
type:
|
|
106
|
+
scrollbar: {
|
|
107
|
+
type: PropType<boolean | ScrollbarProps>;
|
|
108
|
+
default: undefined;
|
|
226
109
|
};
|
|
227
110
|
}>> & Readonly<{
|
|
228
|
-
onCollapse?: ((
|
|
229
|
-
|
|
230
|
-
onBreakpoint?: ((_collapsed: boolean) => any) | undefined;
|
|
231
|
-
"onUpdate:rail"?: ((_value: boolean) => any) | undefined;
|
|
232
|
-
"onUpdate:collapsed"?: ((_collapsed: boolean) => any) | undefined;
|
|
111
|
+
onCollapse?: ((collapsed: boolean, type: CollapseType) => any) | undefined;
|
|
112
|
+
onBreakpoint?: ((broken: boolean) => any) | undefined;
|
|
233
113
|
}>, {
|
|
234
|
-
|
|
235
|
-
height: string | number;
|
|
236
|
-
sticky: boolean;
|
|
237
|
-
modelValue: boolean;
|
|
238
|
-
defaultVisible: boolean;
|
|
114
|
+
scrollbar: boolean | ScrollbarProps;
|
|
239
115
|
width: string | number;
|
|
240
116
|
hideTrigger: boolean;
|
|
241
117
|
collapsed: boolean;
|
|
242
|
-
location: "top" | "bottom" | "left" | "right" | "end" | "start";
|
|
243
|
-
maskClosable: boolean;
|
|
244
|
-
escToClose: boolean;
|
|
245
118
|
theme: "dark" | "light";
|
|
246
|
-
floating: boolean;
|
|
247
|
-
defaultCollapsed: boolean;
|
|
248
119
|
collapsible: boolean;
|
|
249
|
-
|
|
250
|
-
defaultRail: boolean;
|
|
251
|
-
railWidth: string | number;
|
|
252
|
-
expandOnHover: boolean;
|
|
253
|
-
disableResizeWatcher: boolean;
|
|
254
|
-
disableRouteWatcher: boolean;
|
|
255
|
-
collapsedWidth: number;
|
|
256
|
-
temporary: boolean;
|
|
257
|
-
permanent: boolean;
|
|
258
|
-
persistent: boolean;
|
|
120
|
+
defaultCollapsed: boolean;
|
|
259
121
|
reverseArrow: boolean;
|
|
260
|
-
|
|
122
|
+
zeroWidthTriggerStyle: Record<string, any>;
|
|
123
|
+
collapsedWidth: string | number;
|
|
124
|
+
breakpoint: SiderBreakpoint;
|
|
261
125
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
262
126
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
263
127
|
declare const _default: typeof __VLS_export;
|