@sdata/web-vue 2.3.1 → 2.8.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.
Files changed (119) hide show
  1. package/README.md +1 -1
  2. package/dist/sd.css +133 -187
  3. package/dist/sd.min.css +1 -1
  4. package/es/_hooks/use-responsive.d.ts +2 -2
  5. package/es/_hooks/use-theme-mode.d.ts +3 -0
  6. package/es/{calendar/hooks/use-calendar-theme.js → _hooks/use-theme-mode.js} +14 -10
  7. package/es/_utils/responsive-observe.d.ts +5 -4
  8. package/es/_utils/responsive-observe.js +2 -1
  9. package/es/alert/index.d.ts +3 -3
  10. package/es/anchor/index.d.ts +3 -3
  11. package/es/avatar/index.d.ts +20 -20
  12. package/es/border-beam/border-beam.js +5 -0
  13. package/es/border-beam/border-beam.vue.d.ts +52 -0
  14. package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +623 -0
  15. package/es/border-beam/index.d.ts +106 -0
  16. package/es/border-beam/index.js +10 -0
  17. package/es/border-beam/pulseDriver.d.ts +2 -0
  18. package/es/border-beam/pulseDriver.js +74 -0
  19. package/es/border-beam/style/css.js +2 -0
  20. package/es/border-beam/style/index.css +21 -0
  21. package/es/border-beam/style/index.d.ts +2 -0
  22. package/es/border-beam/style/index.js +2 -0
  23. package/es/border-beam/style/index.scss +12 -0
  24. package/es/border-beam/style/token.scss +12 -0
  25. package/es/border-beam/styles.d.ts +42 -0
  26. package/es/border-beam/styles.js +3545 -0
  27. package/es/border-beam/types.d.ts +27 -0
  28. package/es/button/index.d.ts +24 -24
  29. package/es/calendar/components/index.vue.d.ts +1 -1
  30. package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -2
  31. package/es/calendar/index.d.ts +5 -5
  32. package/es/carousel/index.d.ts +3 -3
  33. package/es/checkbox/checkbox.d.ts +3 -3
  34. package/es/collapse/collapse-item.d.ts +5 -5
  35. package/es/collapse/index.d.ts +3 -3
  36. package/es/components.d.ts +1 -0
  37. package/es/config-provider/index.d.ts +21 -21
  38. package/es/date-picker/index.d.ts +14 -14
  39. package/es/date-picker/picker.vue.d.ts +2 -2
  40. package/es/date-picker/range-picker.vue.d.ts +2 -2
  41. package/es/descriptions/index.d.ts +24 -24
  42. package/es/drawer/index.d.ts +16 -15
  43. package/es/dropdown/index.d.ts +15 -15
  44. package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +3 -3
  45. package/es/form/index.d.ts +3 -3
  46. package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +2 -2
  47. package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +10 -10
  48. package/es/icon/icon-menu/icon-menu.js +5 -0
  49. package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +52 -0
  50. package/es/icon/icon-menu/index.js +9 -0
  51. package/es/index.css +133 -187
  52. package/es/index.d.ts +4 -2
  53. package/es/index.js +3 -2
  54. package/es/index.scss +1 -0
  55. package/es/input/index.d.ts +7 -7
  56. package/es/json-form/index.d.ts +9 -9
  57. package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
  58. package/es/json-form/json-form.vue.d.ts +3 -3
  59. package/es/layout/content.vue.d.ts +2 -2
  60. package/es/layout/content.vue_vue_type_script_setup_true_lang.js +8 -3
  61. package/es/layout/context.d.ts +12 -9
  62. package/es/layout/context.js +11 -3
  63. package/es/layout/footer.vue.d.ts +2 -2
  64. package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +8 -3
  65. package/es/layout/header.vue.d.ts +3 -30
  66. package/es/layout/header.vue_vue_type_script_setup_true_lang.js +9 -339
  67. package/es/layout/hooks/use-has-sider.d.ts +2 -0
  68. package/es/layout/hooks/use-has-sider.js +38 -0
  69. package/es/layout/index.d.ts +120 -371
  70. package/es/layout/index.js +2 -2
  71. package/es/layout/interface.d.ts +16 -46
  72. package/es/layout/layout.vue.d.ts +4 -2
  73. package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +38 -14
  74. package/es/layout/sider.vue.d.ts +68 -178
  75. package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +243 -363
  76. package/es/layout/style/index.css +128 -186
  77. package/es/layout/style/index.scss +146 -234
  78. package/es/layout/style/token.scss +46 -26
  79. package/es/link/index.d.ts +6 -6
  80. package/es/list/index.d.ts +18 -18
  81. package/es/menu/base-menu.vue.d.ts +1 -1
  82. package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +14 -14
  83. package/es/menu/item.d.ts +1 -1
  84. package/es/menu/menu.d.ts +12 -12
  85. package/es/menu/menu.js +3 -3
  86. package/es/modal/index.d.ts +15 -15
  87. package/es/popconfirm/index.d.ts +12 -12
  88. package/es/popover/index.d.ts +12 -12
  89. package/es/progress/index.d.ts +6 -6
  90. package/es/qr-code/index.d.ts +3 -3
  91. package/es/radio/radio.d.ts +3 -3
  92. package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -7
  93. package/es/result/index.d.ts +3 -3
  94. package/es/scrollbar/style/index.css +1 -1
  95. package/es/scrollbar/style/index.scss +4 -1
  96. package/es/sd-vue.js +3 -1
  97. package/es/select/select.d.ts +17 -17
  98. package/es/slider/index.d.ts +3 -3
  99. package/es/split/split.vue_vue_type_script_setup_true_lang.js +6 -6
  100. package/es/steps/index.d.ts +6 -6
  101. package/es/tabs/index.d.ts +6 -6
  102. package/es/tag/index.d.ts +6 -6
  103. package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +2 -2
  104. package/es/theme-provider/index.d.ts +9 -9
  105. package/es/time-picker/index.d.ts +6 -6
  106. package/es/timeline/index.d.ts +3 -3
  107. package/es/timeline/timeline.d.ts +1 -1
  108. package/es/tooltip/index.d.ts +3 -3
  109. package/es/tour/index.d.ts +3 -3
  110. package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +6 -6
  111. package/es/tree/node-switcher.vue.d.ts +1 -1
  112. package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +23 -23
  113. package/json/vetur-attributes.json +27 -153
  114. package/json/vetur-tags.json +13 -43
  115. package/json/web-types.json +43 -293
  116. package/package.json +10 -10
  117. package/es/calendar/hooks/use-calendar-theme.d.ts +0 -4
  118. package/es/layout/utils.d.ts +0 -1
  119. package/es/layout/utils.js +0 -11
@@ -7,16 +7,16 @@ import sider_default from "./sider.js";
7
7
  //#region components/layout/index.ts
8
8
  var Layout = Object.assign(layout_default, {
9
9
  Header: header_default,
10
- Content: content_default,
11
10
  Footer: footer_default,
11
+ Content: content_default,
12
12
  Sider: sider_default,
13
13
  install: (app, options) => {
14
14
  setGlobalConfig(app, options);
15
15
  const componentPrefix = getComponentPrefix(options);
16
16
  app.component(componentPrefix + layout_default.name, layout_default);
17
17
  app.component(componentPrefix + header_default.name, header_default);
18
- app.component(componentPrefix + content_default.name, content_default);
19
18
  app.component(componentPrefix + footer_default.name, footer_default);
19
+ app.component(componentPrefix + content_default.name, content_default);
20
20
  app.component(componentPrefix + sider_default.name, sider_default);
21
21
  }
22
22
  });
@@ -1,55 +1,25 @@
1
+ import type { CSSProperties } from 'vue';
2
+ import type { SiderBreakpoint } from '../_utils/responsive-observe';
3
+ import type { DrawerProps } from '../drawer';
4
+ import type { ScrollbarProps } from '../scrollbar';
5
+ export type SiderTheme = 'light' | 'dark';
6
+ export type CollapseType = 'clickTrigger' | 'responsive';
1
7
  export interface LayoutProps {
2
8
  hasSider?: boolean;
3
9
  }
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
10
  export interface SiderProps {
27
- theme?: 'dark' | 'light';
28
- modelValue?: boolean;
29
- defaultVisible?: boolean;
11
+ collapsible?: boolean;
30
12
  collapsed?: boolean;
31
13
  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
14
  reverseArrow?: boolean;
52
- breakpoint?: 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
53
- resizeDirections?: string[];
15
+ zeroWidthTriggerStyle?: CSSProperties;
54
16
  hideTrigger?: boolean;
17
+ width?: number | string;
18
+ collapsedWidth?: number | string;
19
+ breakpoint?: SiderBreakpoint;
20
+ theme?: SiderTheme;
21
+ scrollbar?: boolean | ScrollbarProps;
22
+ temporary?: boolean;
23
+ drawerProps?: SiderTemporaryDrawerProps;
55
24
  }
25
+ export type SiderTemporaryDrawerProps = Omit<DrawerProps, 'visible' | 'defaultVisible' | 'width' | 'footer' | 'okText' | 'cancelText' | 'okLoading' | 'okButtonProps' | 'cancelButtonProps' | 'hideCancel' | 'onBeforeOk' | 'onBeforeCancel'>;
@@ -1,14 +1,16 @@
1
- declare var __VLS_1: {};
1
+ declare var __VLS_8: {};
2
2
  type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_1) => any;
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 { LayoutSiderInjectionKey } from "./context.js";
4
- import { computed, createElementBlock, defineComponent, normalizeClass, openBlock, provide, ref, renderSlot } from "vue";
5
- //#region components/layout/layout.vue?vue&type=script&setup=true&lang.tsx
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 表示子元素里有 Sider,一般不用指定。可用于服务端渲染时避免样式闪动
11
- * @en Indicates that there is a Sider in the sub-element, which generally does not need to be specified. Used to avoid style flicker when rendering on the server side.
13
+ * @zh 是否包含 Sider,设为布尔值时会覆盖自动检测
14
+ * @en Whether contains Sider, overrides auto detection when set to a boolean
12
15
  */
13
- hasSider: { type: Boolean } },
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 classNames = computed(() => [prefixCls, { [`${prefixCls}-has-sider`]: props.hasSider || siderIds.value.length }]);
19
- provide(LayoutSiderInjectionKey, {
20
- onSiderMount: (id) => siderIds.value.push(id),
21
- onSiderUnMount: (id) => {
22
- siderIds.value = siderIds.value.filter((_id) => _id !== id);
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(), createElementBlock("section", { class: normalizeClass(classNames.value) }, [renderSlot(_ctx.$slots, "default")], 2);
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
  }));
@@ -1,29 +1,29 @@
1
- import { PropType } from 'vue';
2
- import { SIDER_LOCATIONS } from './utils';
3
- declare var __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {
4
- collapsed: boolean;
5
- };
1
+ import { type PropType } from 'vue';
2
+ import type { SiderBreakpoint } from '../_utils/responsive-observe';
3
+ import type { CollapseType, SiderTemporaryDrawerProps } from './interface';
4
+ import { type ScrollbarProps } from '../scrollbar';
5
+ declare var __VLS_9: {}, __VLS_11: {}, __VLS_19: {}, __VLS_21: {}, __VLS_28: {}, __VLS_30: {}, __VLS_38: {}, __VLS_40: {}, __VLS_47: {};
6
6
  type __VLS_Slots = {} & {
7
- image?: (props: typeof __VLS_11) => any;
7
+ header?: (props: typeof __VLS_9) => any;
8
+ } & {
9
+ default?: (props: typeof __VLS_11) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_19) => any;
8
12
  } & {
9
- prepend?: (props: typeof __VLS_13) => any;
13
+ trigger?: (props: typeof __VLS_21) => any;
10
14
  } & {
11
- default?: (props: typeof __VLS_15) => any;
15
+ header?: (props: typeof __VLS_28) => any;
12
16
  } & {
13
- append?: (props: typeof __VLS_17) => any;
17
+ default?: (props: typeof __VLS_30) => any;
14
18
  } & {
15
- trigger?: (props: typeof __VLS_19) => any;
19
+ default?: (props: typeof __VLS_38) => any;
20
+ } & {
21
+ trigger?: (props: typeof __VLS_40) => any;
22
+ } & {
23
+ trigger?: (props: typeof __VLS_47) => any;
16
24
  };
17
25
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
18
- theme: {
19
- type: PropType<"dark" | "light">;
20
- default: string;
21
- };
22
- modelValue: {
23
- type: BooleanConstructor;
24
- default: undefined;
25
- };
26
- defaultVisible: {
26
+ collapsible: {
27
27
  type: BooleanConstructor;
28
28
  default: boolean;
29
29
  };
@@ -35,103 +35,51 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
35
35
  type: BooleanConstructor;
36
36
  default: boolean;
37
37
  };
38
- collapsible: {
38
+ reverseArrow: {
39
39
  type: BooleanConstructor;
40
+ default: boolean;
40
41
  };
41
- rail: {
42
- type: BooleanConstructor;
42
+ zeroWidthTriggerStyle: {
43
+ type: ObjectConstructor;
43
44
  default: undefined;
44
45
  };
45
- defaultRail: {
46
+ hideTrigger: {
46
47
  type: BooleanConstructor;
47
48
  default: boolean;
48
49
  };
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
50
  width: {
63
51
  type: (StringConstructor | NumberConstructor)[];
64
52
  default: number;
65
53
  };
66
- height: {
67
- type: (StringConstructor | NumberConstructor)[];
68
- default: undefined;
69
- };
70
54
  collapsedWidth: {
71
- type: NumberConstructor;
55
+ type: (StringConstructor | NumberConstructor)[];
72
56
  default: number;
73
57
  };
74
- temporary: {
75
- type: BooleanConstructor;
76
- };
77
- permanent: {
78
- type: BooleanConstructor;
79
- };
80
- persistent: {
81
- type: BooleanConstructor;
58
+ breakpoint: {
59
+ type: PropType<SiderBreakpoint>;
60
+ default: undefined;
82
61
  };
83
- mask: {
84
- type: BooleanConstructor;
85
- default: boolean;
62
+ theme: {
63
+ type: () => "light" | "dark";
64
+ default: undefined;
86
65
  };
87
- maskClosable: {
88
- type: BooleanConstructor;
89
- default: boolean;
66
+ scrollbar: {
67
+ type: PropType<boolean | ScrollbarProps>;
68
+ default: undefined;
90
69
  };
91
- escToClose: {
70
+ temporary: {
92
71
  type: BooleanConstructor;
93
72
  default: boolean;
94
73
  };
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
- breakpoint: {
110
- type: PropType<"xxl" | "xl" | "lg" | "md" | "sm" | "xs">;
111
- };
112
- resizeDirections: {
113
- type: PropType<Array<"left" | "right" | "top" | "bottom">>;
74
+ drawerProps: {
75
+ type: PropType<SiderTemporaryDrawerProps>;
114
76
  default: undefined;
115
77
  };
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;
78
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
79
+ collapse: (collapsed: boolean, type: CollapseType) => any;
80
+ breakpoint: (broken: boolean) => any;
125
81
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
126
- theme: {
127
- type: PropType<"dark" | "light">;
128
- default: string;
129
- };
130
- modelValue: {
131
- type: BooleanConstructor;
132
- default: undefined;
133
- };
134
- defaultVisible: {
82
+ collapsible: {
135
83
  type: BooleanConstructor;
136
84
  default: boolean;
137
85
  };
@@ -143,121 +91,63 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
143
91
  type: BooleanConstructor;
144
92
  default: boolean;
145
93
  };
146
- collapsible: {
94
+ reverseArrow: {
147
95
  type: BooleanConstructor;
96
+ default: boolean;
148
97
  };
149
- rail: {
150
- type: BooleanConstructor;
98
+ zeroWidthTriggerStyle: {
99
+ type: ObjectConstructor;
151
100
  default: undefined;
152
101
  };
153
- defaultRail: {
102
+ hideTrigger: {
154
103
  type: BooleanConstructor;
155
104
  default: boolean;
156
105
  };
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
106
  width: {
171
107
  type: (StringConstructor | NumberConstructor)[];
172
108
  default: number;
173
109
  };
174
- height: {
175
- type: (StringConstructor | NumberConstructor)[];
176
- default: undefined;
177
- };
178
110
  collapsedWidth: {
179
- type: NumberConstructor;
111
+ type: (StringConstructor | NumberConstructor)[];
180
112
  default: number;
181
113
  };
182
- temporary: {
183
- type: BooleanConstructor;
184
- };
185
- permanent: {
186
- type: BooleanConstructor;
187
- };
188
- persistent: {
189
- type: BooleanConstructor;
114
+ breakpoint: {
115
+ type: PropType<SiderBreakpoint>;
116
+ default: undefined;
190
117
  };
191
- mask: {
192
- type: BooleanConstructor;
193
- default: boolean;
118
+ theme: {
119
+ type: () => "light" | "dark";
120
+ default: undefined;
194
121
  };
195
- maskClosable: {
196
- type: BooleanConstructor;
197
- default: boolean;
122
+ scrollbar: {
123
+ type: PropType<boolean | ScrollbarProps>;
124
+ default: undefined;
198
125
  };
199
- escToClose: {
126
+ temporary: {
200
127
  type: BooleanConstructor;
201
128
  default: boolean;
202
129
  };
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
- breakpoint: {
218
- type: PropType<"xxl" | "xl" | "lg" | "md" | "sm" | "xs">;
219
- };
220
- resizeDirections: {
221
- type: PropType<Array<"left" | "right" | "top" | "bottom">>;
130
+ drawerProps: {
131
+ type: PropType<SiderTemporaryDrawerProps>;
222
132
  default: undefined;
223
133
  };
224
- hideTrigger: {
225
- type: BooleanConstructor;
226
- };
227
134
  }>> & Readonly<{
228
- onCollapse?: ((_collapsed: boolean, _type: "responsive" | "clickTrigger") => any) | undefined;
229
- "onUpdate:modelValue"?: ((_value: boolean) => any) | undefined;
230
- onBreakpoint?: ((_collapsed: boolean) => any) | undefined;
231
- "onUpdate:rail"?: ((_value: boolean) => any) | undefined;
232
- "onUpdate:collapsed"?: ((_collapsed: boolean) => any) | undefined;
135
+ onCollapse?: ((collapsed: boolean, type: CollapseType) => any) | undefined;
136
+ onBreakpoint?: ((broken: boolean) => any) | undefined;
233
137
  }>, {
234
- mask: boolean;
235
- height: string | number;
236
- sticky: boolean;
237
- modelValue: boolean;
238
- defaultVisible: boolean;
138
+ scrollbar: boolean | ScrollbarProps;
239
139
  width: string | number;
240
140
  hideTrigger: boolean;
241
141
  collapsed: boolean;
242
- location: "top" | "bottom" | "left" | "right" | "end" | "start";
243
- maskClosable: boolean;
244
- escToClose: boolean;
245
142
  theme: "dark" | "light";
246
- floating: boolean;
247
- defaultCollapsed: boolean;
248
143
  collapsible: boolean;
249
- rail: boolean;
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;
144
+ defaultCollapsed: boolean;
259
145
  reverseArrow: boolean;
260
- resizeDirections: ("top" | "bottom" | "left" | "right")[];
146
+ zeroWidthTriggerStyle: Record<string, any>;
147
+ collapsedWidth: string | number;
148
+ breakpoint: SiderBreakpoint;
149
+ temporary: boolean;
150
+ drawerProps: SiderTemporaryDrawerProps;
261
151
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
262
152
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
263
153
  declare const _default: typeof __VLS_export;