@openuverse/rdesign 0.0.0-stage → 1.1.7
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 +15 -2
- package/dist/_plugin-vue_export-helper-BA5b-u6G.cjs +13 -0
- package/dist/_plugin-vue_export-helper-Dm0LCMqW.js +1320 -0
- package/dist/font.woff2 +0 -0
- package/dist/http-live-player-C_ZWcEpn.cjs +54 -0
- package/dist/http-live-player-DyiocXCZ.js +18278 -0
- package/dist/icons.cjs.js +1 -0
- package/dist/icons.es.js +256521 -0
- package/dist/rdesign.cjs.js +2275 -0
- package/dist/rdesign.es.js +59054 -0
- package/dist/style.css +1 -0
- package/dist/types/icons.d.ts +2 -0
- package/dist/types/rdesign.d.ts +6 -0
- package/dist/types/src/App.vue.d.ts +4 -0
- package/dist/types/src/components/RAffix/index.d.ts +128 -0
- package/dist/types/src/components/RAlert/index.d.ts +171 -0
- package/dist/types/src/components/RAnchor/index.d.ts +298 -0
- package/dist/types/src/components/RAutoComplete/index.d.ts +431 -0
- package/dist/types/src/components/RAvatar/index.d.ts +260 -0
- package/dist/types/src/components/RBackTop/index.d.ts +215 -0
- package/dist/types/src/components/RBadge/index.d.ts +176 -0
- package/dist/types/src/components/RBreadcrumb/index.d.ts +324 -0
- package/dist/types/src/components/RButton/index.d.ts +295 -0
- package/dist/types/src/components/RCalendar/index.d.ts +291 -0
- package/dist/types/src/components/RCard/index.d.ts +351 -0
- package/dist/types/src/components/RCascader/index.d.ts +1433 -0
- package/dist/types/src/components/RCheckbox/index.d.ts +403 -0
- package/dist/types/src/components/RCollapse/index.d.ts +291 -0
- package/dist/types/src/components/RColorPicker/index.d.ts +577 -0
- package/dist/types/src/components/RComment/index.d.ts +104 -0
- package/dist/types/src/components/RConfigProvider/index.d.ts +19 -0
- package/dist/types/src/components/RDatePicker/index.d.ts +1720 -0
- package/dist/types/src/components/RDescriptions/index.d.ts +271 -0
- package/dist/types/src/components/RDialog/index.d.ts +906 -0
- package/dist/types/src/components/RDivider/index.d.ts +112 -0
- package/dist/types/src/components/RDrawer/index.d.ts +398 -0
- package/dist/types/src/components/RDropdown/index.d.ts +621 -0
- package/dist/types/src/components/REmpty/index.d.ts +129 -0
- package/dist/types/src/components/RForm/index.d.ts +569 -0
- package/dist/types/src/components/RGrid/index.d.ts +659 -0
- package/dist/types/src/components/RGuide/index.d.ts +266 -0
- package/dist/types/src/components/RIcon/index.d.ts +3 -0
- package/dist/types/src/components/RImage/index.d.ts +270 -0
- package/dist/types/src/components/RImageViewer/index.d.ts +357 -0
- package/dist/types/src/components/RInput/index.d.ts +555 -0
- package/dist/types/src/components/RInputAdornment/index.d.ts +44 -0
- package/dist/types/src/components/RInputNumber/RInputNumber.vue.d.ts +41 -0
- package/dist/types/src/components/RInputNumber/index.d.ts +53 -0
- package/dist/types/src/components/RLayout/index.d.ts +176 -0
- package/dist/types/src/components/RLink/index.d.ts +228 -0
- package/dist/types/src/components/RList/index.d.ts +513 -0
- package/dist/types/src/components/RLoading/index.d.ts +220 -0
- package/dist/types/src/components/RMenu/index.d.ts +1423 -0
- package/dist/types/src/components/RMessage/index.d.ts +140 -0
- package/dist/types/src/components/RNotification/index.d.ts +174 -0
- package/dist/types/src/components/RPagination/index.d.ts +529 -0
- package/dist/types/src/components/RPopconfirm/index.d.ts +262 -0
- package/dist/types/src/components/RPopup/index.d.ts +308 -0
- package/dist/types/src/components/RProgress/index.d.ts +169 -0
- package/dist/types/src/components/RQRCode/index.d.ts +238 -0
- package/dist/types/src/components/RRadio/index.d.ts +605 -0
- package/dist/types/src/components/RRangeInput/index.d.ts +538 -0
- package/dist/types/src/components/RRate/index.d.ts +230 -0
- package/dist/types/src/components/RScpiAutoComplete/RScpiAutoComplete.vue.d.ts +13 -0
- package/dist/types/src/components/RScpiAutoComplete/index.d.ts +15 -0
- package/dist/types/src/components/RScpiAutoComplete/scpiAutoCompleteEngine.d.ts +60 -0
- package/dist/types/src/components/RScpiAutoComplete/scpiSegmentMatch.d.ts +15 -0
- package/dist/types/src/components/RScpiAutoComplete/types.d.ts +8 -0
- package/dist/types/src/components/RScpiAutoComplete/useScpiAutoComplete.d.ts +31 -0
- package/dist/types/src/components/RScpiTree/RScpiTree.vue.d.ts +14 -0
- package/dist/types/src/components/RScpiTree/RScpiTreeNode.vue.d.ts +9 -0
- package/dist/types/src/components/RScpiTree/index.d.ts +17 -0
- package/dist/types/src/components/RScpiTree/scpiTreeContext.d.ts +3 -0
- package/dist/types/src/components/RScpiTree/types.d.ts +25 -0
- package/dist/types/src/components/RScroller/index.d.ts +95 -0
- package/dist/types/src/components/RSelect/index.d.ts +887 -0
- package/dist/types/src/components/RSelectInput/index.d.ts +497 -0
- package/dist/types/src/components/RSkeleton/index.d.ts +143 -0
- package/dist/types/src/components/RSlider/index.d.ts +404 -0
- package/dist/types/src/components/RSpace/index.d.ts +107 -0
- package/dist/types/src/components/RSplitView/RSplitView.vue.d.ts +196 -0
- package/dist/types/src/components/RSplitView/composables/defaultSizes.d.ts +3 -0
- package/dist/types/src/components/RSplitView/composables/useSplitLayoutStrategy.d.ts +28 -0
- package/dist/types/src/components/RSplitView/composables/useSplitPanes.d.ts +14 -0
- package/dist/types/src/components/RSplitView/composables/useSplitViewState.d.ts +66 -0
- package/dist/types/src/components/RSplitView/index.d.ts +147 -0
- package/dist/types/src/components/RSplitView/layouts/RSplitComplexLayout.vue.d.ts +53 -0
- package/dist/types/src/components/RSplitView/layouts/RSplitDoubleLayout.vue.d.ts +33 -0
- package/dist/types/src/components/RSplitView/layouts/RSplitQuadLayout.vue.d.ts +43 -0
- package/dist/types/src/components/RSplitView/layouts/RSplitSingleLayout.vue.d.ts +27 -0
- package/dist/types/src/components/RSplitView/splitViewContext.d.ts +13 -0
- package/dist/types/src/components/RSplitView/types.d.ts +53 -0
- package/dist/types/src/components/RStatistic/index.d.ts +222 -0
- package/dist/types/src/components/RSteps/index.d.ts +340 -0
- package/dist/types/src/components/RStickyTool/index.d.ts +363 -0
- package/dist/types/src/components/RSwiper/index.d.ts +676 -0
- package/dist/types/src/components/RSwitch/index.d.ts +175 -0
- package/dist/types/src/components/RTable/index.d.ts +4634 -0
- package/dist/types/src/components/RTabs/index.d.ts +357 -0
- package/dist/types/src/components/RTag/index.d.ts +517 -0
- package/dist/types/src/components/RTagInput/index.d.ts +464 -0
- package/dist/types/src/components/RTextarea/index.d.ts +278 -0
- package/dist/types/src/components/RTimePicker/index.d.ts +1007 -0
- package/dist/types/src/components/RTimeline/index.d.ts +238 -0
- package/dist/types/src/components/RTooltip/index.d.ts +352 -0
- package/dist/types/src/components/RTransfer/index.d.ts +383 -0
- package/dist/types/src/components/RTree/index.d.ts +738 -0
- package/dist/types/src/components/RTreeSelect/index.d.ts +563 -0
- package/dist/types/src/components/RUpload/index.d.ts +774 -0
- package/dist/types/src/components/RWatermark/index.d.ts +277 -0
- package/dist/types/src/components/RWebControl/RWebControl.vue.d.ts +7 -0
- package/dist/types/src/components/RWebControl/WebControlForAndroid.vue.d.ts +21 -0
- package/dist/types/src/components/RWebControl/WebControlForH5.vue.d.ts +14 -0
- package/dist/types/src/components/RWebControl/WebControlForLinux.vue.d.ts +15 -0
- package/dist/types/src/components/RWebControl/WebControlForRIGOLOS.vue.d.ts +16 -0
- package/dist/types/src/components/RWebControl/WebControlForRIGOLQT.vue.d.ts +15 -0
- package/dist/types/src/components/RWebControl/WebControlOverlay.vue.d.ts +17 -0
- package/dist/types/src/components/RWebControl/index.d.ts +10 -0
- package/dist/types/src/components/RWebControl/types.d.ts +9 -0
- package/dist/types/src/components/RWebControl/useWebControlLocale.d.ts +2 -0
- package/dist/types/src/components/scpi/types.d.ts +19 -0
- package/dist/types/src/components/webcontrol/cbor.d.ts +21 -0
- package/dist/types/src/components/webcontrol/loadWSAvcPlayer.d.ts +6 -0
- package/dist/types/src/components/webcontrol/locale.d.ts +8 -0
- package/dist/types/src/components/webcontrol/logger.d.ts +5 -0
- package/dist/types/src/components/webcontrol/types.d.ts +71 -0
- package/dist/types/src/components/webcontrol/webcontrolContext.d.ts +6 -0
- package/dist/types/src/core/common.d.ts +5 -0
- package/dist/types/src/core/component-list.d.ts +17 -0
- package/dist/types/src/core/components.d.ts +80 -0
- package/dist/types/src/core/index.d.ts +9 -0
- package/dist/types/src/core/styles.d.ts +0 -0
- package/dist/types/src/icons/index.d.ts +6 -0
- package/dist/types/src/index.d.ts +30 -0
- package/dist/types/src/locale/ar_KW.d.ts +242 -0
- package/dist/types/src/locale/de_DE.d.ts +265 -0
- package/dist/types/src/locale/en_US.d.ts +266 -0
- package/dist/types/src/locale/es_ES.d.ts +265 -0
- package/dist/types/src/locale/fr_FR.d.ts +265 -0
- package/dist/types/src/locale/id_ID.d.ts +265 -0
- package/dist/types/src/locale/index.d.ts +31 -0
- package/dist/types/src/locale/it_IT.d.ts +266 -0
- package/dist/types/src/locale/ja_JP.d.ts +266 -0
- package/dist/types/src/locale/ko_KR.d.ts +266 -0
- package/dist/types/src/locale/pl_PL.d.ts +265 -0
- package/dist/types/src/locale/pt_BR.d.ts +265 -0
- package/dist/types/src/locale/ru_RU.d.ts +266 -0
- package/dist/types/src/locale/th_TH.d.ts +265 -0
- package/dist/types/src/locale/zh_CN.d.ts +266 -0
- package/dist/types/src/locale/zh_TW.d.ts +266 -0
- package/dist/types/src/main.d.ts +0 -0
- package/dist/types/src/types/component.d.ts +38 -0
- package/dist/types/src/utils/index.d.ts +2 -0
- package/dist/types/src/webcontrol/index.d.ts +1 -0
- package/dist/types/vite.config.d.ts +7 -0
- package/dist/types/webcontrol.d.ts +2 -0
- package/dist/vite.svg +1 -0
- package/dist/webcontrol.cjs.js +4 -0
- package/dist/webcontrol.es.js +4617 -0
- package/package.json +118 -4
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { LayoutSizes, RSplitViewProps, SplitLayoutType, SplitPaneItem } from './types';
|
|
2
|
+
declare function resetSizes(): void;
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
empty?(_: {}): any;
|
|
7
|
+
pane?(_: {
|
|
8
|
+
item: SplitPaneItem;
|
|
9
|
+
index: number;
|
|
10
|
+
layout: string;
|
|
11
|
+
}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {
|
|
14
|
+
layoutRef: ({
|
|
15
|
+
$: import('vue').ComponentInternalInstance;
|
|
16
|
+
$data: {};
|
|
17
|
+
$props: {
|
|
18
|
+
readonly items: SplitPaneItem[];
|
|
19
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
20
|
+
$attrs: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
$refs: {
|
|
24
|
+
[x: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
$slots: Readonly<{
|
|
27
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
30
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
31
|
+
$host: Element | null;
|
|
32
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
33
|
+
$el: HTMLDivElement;
|
|
34
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./layouts/RSplitComplexLayout.vue').RSplitComplexLayoutProps> & Readonly<{}>, {
|
|
35
|
+
resetSizes: () => void;
|
|
36
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
37
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
38
|
+
created?: (() => void) | (() => void)[];
|
|
39
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
40
|
+
mounted?: (() => void) | (() => void)[];
|
|
41
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
42
|
+
updated?: (() => void) | (() => void)[];
|
|
43
|
+
activated?: (() => void) | (() => void)[];
|
|
44
|
+
deactivated?: (() => void) | (() => void)[];
|
|
45
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
46
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
47
|
+
destroyed?: (() => void) | (() => void)[];
|
|
48
|
+
unmounted?: (() => void) | (() => void)[];
|
|
49
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
50
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
51
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
52
|
+
};
|
|
53
|
+
$forceUpdate: () => void;
|
|
54
|
+
$nextTick: typeof import('vue').nextTick;
|
|
55
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
56
|
+
} & Readonly<{}> & Omit<Readonly<import('./layouts/RSplitComplexLayout.vue').RSplitComplexLayoutProps> & Readonly<{}>, "resetSizes"> & import('vue').ShallowUnwrapRef<{
|
|
57
|
+
resetSizes: () => void;
|
|
58
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
59
|
+
$slots: {
|
|
60
|
+
pane?(_: {
|
|
61
|
+
item: SplitPaneItem;
|
|
62
|
+
index: number;
|
|
63
|
+
layout: string;
|
|
64
|
+
}): any;
|
|
65
|
+
pane?(_: {
|
|
66
|
+
item: SplitPaneItem;
|
|
67
|
+
index: number;
|
|
68
|
+
layout: string;
|
|
69
|
+
}): any;
|
|
70
|
+
pane?(_: {
|
|
71
|
+
item: SplitPaneItem;
|
|
72
|
+
index: number;
|
|
73
|
+
layout: string;
|
|
74
|
+
}): any;
|
|
75
|
+
pane?(_: {
|
|
76
|
+
item: SplitPaneItem;
|
|
77
|
+
index: number;
|
|
78
|
+
layout: string;
|
|
79
|
+
}): any;
|
|
80
|
+
pane?(_: {
|
|
81
|
+
item: SplitPaneItem;
|
|
82
|
+
index: number;
|
|
83
|
+
layout: string;
|
|
84
|
+
}): any;
|
|
85
|
+
pane?(_: {
|
|
86
|
+
item: SplitPaneItem;
|
|
87
|
+
index: number;
|
|
88
|
+
layout: string;
|
|
89
|
+
}): any;
|
|
90
|
+
};
|
|
91
|
+
}) | null;
|
|
92
|
+
};
|
|
93
|
+
rootEl: HTMLDivElement;
|
|
94
|
+
};
|
|
95
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
96
|
+
declare const __VLS_component: import('vue').DefineComponent<RSplitViewProps, {
|
|
97
|
+
resetSizes: typeof resetSizes;
|
|
98
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
99
|
+
"update:layout": (layout: SplitLayoutType) => any;
|
|
100
|
+
"update:sizes": (sizes: LayoutSizes) => any;
|
|
101
|
+
"layout-change": (layout: SplitLayoutType) => any;
|
|
102
|
+
}, string, import('vue').PublicProps, Readonly<RSplitViewProps> & Readonly<{
|
|
103
|
+
"onUpdate:layout"?: ((layout: SplitLayoutType) => any) | undefined;
|
|
104
|
+
"onUpdate:sizes"?: ((sizes: LayoutSizes) => any) | undefined;
|
|
105
|
+
"onLayout-change"?: ((layout: SplitLayoutType) => any) | undefined;
|
|
106
|
+
}>, {
|
|
107
|
+
items: SplitPaneItem[];
|
|
108
|
+
minPaneSize: number;
|
|
109
|
+
autoLayout: boolean;
|
|
110
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
111
|
+
layoutRef: ({
|
|
112
|
+
$: import('vue').ComponentInternalInstance;
|
|
113
|
+
$data: {};
|
|
114
|
+
$props: {
|
|
115
|
+
readonly items: SplitPaneItem[];
|
|
116
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
117
|
+
$attrs: {
|
|
118
|
+
[x: string]: unknown;
|
|
119
|
+
};
|
|
120
|
+
$refs: {
|
|
121
|
+
[x: string]: unknown;
|
|
122
|
+
};
|
|
123
|
+
$slots: Readonly<{
|
|
124
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
127
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
128
|
+
$host: Element | null;
|
|
129
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
130
|
+
$el: HTMLDivElement;
|
|
131
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./layouts/RSplitComplexLayout.vue').RSplitComplexLayoutProps> & Readonly<{}>, {
|
|
132
|
+
resetSizes: () => void;
|
|
133
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
134
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
135
|
+
created?: (() => void) | (() => void)[];
|
|
136
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
137
|
+
mounted?: (() => void) | (() => void)[];
|
|
138
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
139
|
+
updated?: (() => void) | (() => void)[];
|
|
140
|
+
activated?: (() => void) | (() => void)[];
|
|
141
|
+
deactivated?: (() => void) | (() => void)[];
|
|
142
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
143
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
144
|
+
destroyed?: (() => void) | (() => void)[];
|
|
145
|
+
unmounted?: (() => void) | (() => void)[];
|
|
146
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
147
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
148
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
149
|
+
};
|
|
150
|
+
$forceUpdate: () => void;
|
|
151
|
+
$nextTick: typeof import('vue').nextTick;
|
|
152
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
153
|
+
} & Readonly<{}> & Omit<Readonly<import('./layouts/RSplitComplexLayout.vue').RSplitComplexLayoutProps> & Readonly<{}>, "resetSizes"> & import('vue').ShallowUnwrapRef<{
|
|
154
|
+
resetSizes: () => void;
|
|
155
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
156
|
+
$slots: {
|
|
157
|
+
pane?(_: {
|
|
158
|
+
item: SplitPaneItem;
|
|
159
|
+
index: number;
|
|
160
|
+
layout: string;
|
|
161
|
+
}): any;
|
|
162
|
+
pane?(_: {
|
|
163
|
+
item: SplitPaneItem;
|
|
164
|
+
index: number;
|
|
165
|
+
layout: string;
|
|
166
|
+
}): any;
|
|
167
|
+
pane?(_: {
|
|
168
|
+
item: SplitPaneItem;
|
|
169
|
+
index: number;
|
|
170
|
+
layout: string;
|
|
171
|
+
}): any;
|
|
172
|
+
pane?(_: {
|
|
173
|
+
item: SplitPaneItem;
|
|
174
|
+
index: number;
|
|
175
|
+
layout: string;
|
|
176
|
+
}): any;
|
|
177
|
+
pane?(_: {
|
|
178
|
+
item: SplitPaneItem;
|
|
179
|
+
index: number;
|
|
180
|
+
layout: string;
|
|
181
|
+
}): any;
|
|
182
|
+
pane?(_: {
|
|
183
|
+
item: SplitPaneItem;
|
|
184
|
+
index: number;
|
|
185
|
+
layout: string;
|
|
186
|
+
}): any;
|
|
187
|
+
};
|
|
188
|
+
}) | null;
|
|
189
|
+
}, HTMLDivElement>;
|
|
190
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
191
|
+
export default _default;
|
|
192
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
193
|
+
new (): {
|
|
194
|
+
$slots: S;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SplitLayoutType } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* 根据 pane 数量自动选择布局类型
|
|
4
|
+
*/
|
|
5
|
+
export declare function useSplitLayoutStrategy(): {
|
|
6
|
+
getAutoLayout: (paneCount: number) => SplitLayoutType;
|
|
7
|
+
getLayoutInfo: (layoutType: SplitLayoutType) => {
|
|
8
|
+
name: string;
|
|
9
|
+
minPanes: number;
|
|
10
|
+
maxPanes: number;
|
|
11
|
+
description: string;
|
|
12
|
+
} | {
|
|
13
|
+
name: string;
|
|
14
|
+
minPanes: number;
|
|
15
|
+
maxPanes: number;
|
|
16
|
+
description: string;
|
|
17
|
+
} | {
|
|
18
|
+
name: string;
|
|
19
|
+
minPanes: number;
|
|
20
|
+
maxPanes: number;
|
|
21
|
+
description: string;
|
|
22
|
+
} | {
|
|
23
|
+
name: string;
|
|
24
|
+
minPanes: number;
|
|
25
|
+
maxPanes: number;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SplitLayoutType } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* 双屏布局的 splitpanes 尺寸与重置(从 context 读取状态)
|
|
4
|
+
*/
|
|
5
|
+
export declare function useSplitPanes(layoutType: 'double'): {
|
|
6
|
+
sizes: import('vue').ComputedRef<import('..').DoubleSizes>;
|
|
7
|
+
handleResize: (panes: Array<{
|
|
8
|
+
min: number;
|
|
9
|
+
max: number;
|
|
10
|
+
size: number;
|
|
11
|
+
}>) => void;
|
|
12
|
+
resetSizes: () => void;
|
|
13
|
+
layoutType: SplitLayoutType;
|
|
14
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ComplexSizes, DoubleSizes, LayoutSizes, QuadSizes, SplitLayoutType } from '../types';
|
|
2
|
+
export interface UseSplitViewStateOptions {
|
|
3
|
+
initialLayout?: SplitLayoutType;
|
|
4
|
+
initialSizes?: LayoutSizes;
|
|
5
|
+
persistKey?: string;
|
|
6
|
+
onPersist?: (sizes: LayoutSizes) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useSplitViewState(options?: UseSplitViewStateOptions): {
|
|
9
|
+
currentLayout: import('vue').Ref<SplitLayoutType, SplitLayoutType>;
|
|
10
|
+
layoutSizes: import('vue').Ref<{
|
|
11
|
+
double: {
|
|
12
|
+
left: number;
|
|
13
|
+
right: number;
|
|
14
|
+
};
|
|
15
|
+
quad: {
|
|
16
|
+
topRow: number;
|
|
17
|
+
bottomRow: number;
|
|
18
|
+
topLeft: number;
|
|
19
|
+
topRight: number;
|
|
20
|
+
bottomLeft: number;
|
|
21
|
+
bottomRight: number;
|
|
22
|
+
};
|
|
23
|
+
complex: {
|
|
24
|
+
topSection: number;
|
|
25
|
+
bottomSection: number;
|
|
26
|
+
mainPane: number;
|
|
27
|
+
rightSection: number;
|
|
28
|
+
rightTop: number;
|
|
29
|
+
rightBottom: number;
|
|
30
|
+
bottomPane1: number;
|
|
31
|
+
bottomPane2: number;
|
|
32
|
+
bottomPane3: number;
|
|
33
|
+
};
|
|
34
|
+
}, LayoutSizes | {
|
|
35
|
+
double: {
|
|
36
|
+
left: number;
|
|
37
|
+
right: number;
|
|
38
|
+
};
|
|
39
|
+
quad: {
|
|
40
|
+
topRow: number;
|
|
41
|
+
bottomRow: number;
|
|
42
|
+
topLeft: number;
|
|
43
|
+
topRight: number;
|
|
44
|
+
bottomLeft: number;
|
|
45
|
+
bottomRight: number;
|
|
46
|
+
};
|
|
47
|
+
complex: {
|
|
48
|
+
topSection: number;
|
|
49
|
+
bottomSection: number;
|
|
50
|
+
mainPane: number;
|
|
51
|
+
rightSection: number;
|
|
52
|
+
rightTop: number;
|
|
53
|
+
rightBottom: number;
|
|
54
|
+
bottomPane1: number;
|
|
55
|
+
bottomPane2: number;
|
|
56
|
+
bottomPane3: number;
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
setLayout: (layout: SplitLayoutType) => void;
|
|
60
|
+
updateDoubleSizes: (partial: Partial<DoubleSizes>) => void;
|
|
61
|
+
updateQuadSizes: (partial: Partial<QuadSizes>) => void;
|
|
62
|
+
updateComplexSizes: (partial: Partial<ComplexSizes>) => void;
|
|
63
|
+
resetCurrentLayoutSizes: () => void;
|
|
64
|
+
resetAllLayoutSizes: () => void;
|
|
65
|
+
persistSizes: () => void;
|
|
66
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
declare const RSplitView: import('../../types/component').SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').RSplitViewProps> & Readonly<{
|
|
3
|
+
"onUpdate:layout"?: ((layout: import('./types').SplitLayoutType) => any) | undefined;
|
|
4
|
+
"onUpdate:sizes"?: ((sizes: import('./types').LayoutSizes) => any) | undefined;
|
|
5
|
+
"onLayout-change"?: ((layout: import('./types').SplitLayoutType) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
resetSizes: () => void;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:layout": (layout: import('./types').SplitLayoutType) => any;
|
|
10
|
+
"update:sizes": (sizes: import('./types').LayoutSizes) => any;
|
|
11
|
+
"layout-change": (layout: import('./types').SplitLayoutType) => any;
|
|
12
|
+
}, import('vue').PublicProps, {
|
|
13
|
+
items: import('./types').SplitPaneItem[];
|
|
14
|
+
minPaneSize: number;
|
|
15
|
+
autoLayout: boolean;
|
|
16
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
17
|
+
layoutRef: ({
|
|
18
|
+
$: import('vue').ComponentInternalInstance;
|
|
19
|
+
$data: {};
|
|
20
|
+
$props: {
|
|
21
|
+
readonly items: import('./types').SplitPaneItem[];
|
|
22
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
23
|
+
$attrs: {
|
|
24
|
+
[x: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
$refs: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
$slots: Readonly<{
|
|
30
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
33
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
34
|
+
$host: Element | null;
|
|
35
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
36
|
+
$el: HTMLDivElement;
|
|
37
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./layouts/RSplitComplexLayout.vue').RSplitComplexLayoutProps> & Readonly<{}>, {
|
|
38
|
+
resetSizes: () => void;
|
|
39
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
40
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
41
|
+
created?: (() => void) | (() => void)[];
|
|
42
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
43
|
+
mounted?: (() => void) | (() => void)[];
|
|
44
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
45
|
+
updated?: (() => void) | (() => void)[];
|
|
46
|
+
activated?: (() => void) | (() => void)[];
|
|
47
|
+
deactivated?: (() => void) | (() => void)[];
|
|
48
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
49
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
50
|
+
destroyed?: (() => void) | (() => void)[];
|
|
51
|
+
unmounted?: (() => void) | (() => void)[];
|
|
52
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
53
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
54
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
55
|
+
};
|
|
56
|
+
$forceUpdate: () => void;
|
|
57
|
+
$nextTick: typeof import('vue').nextTick;
|
|
58
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
59
|
+
} & Readonly<{}> & Omit<Readonly<import('./layouts/RSplitComplexLayout.vue').RSplitComplexLayoutProps> & Readonly<{}>, "resetSizes"> & import('vue').ShallowUnwrapRef<{
|
|
60
|
+
resetSizes: () => void;
|
|
61
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
62
|
+
$slots: {
|
|
63
|
+
pane?(_: {
|
|
64
|
+
item: import('./types').SplitPaneItem;
|
|
65
|
+
index: number;
|
|
66
|
+
layout: string;
|
|
67
|
+
}): any;
|
|
68
|
+
pane?(_: {
|
|
69
|
+
item: import('./types').SplitPaneItem;
|
|
70
|
+
index: number;
|
|
71
|
+
layout: string;
|
|
72
|
+
}): any;
|
|
73
|
+
pane?(_: {
|
|
74
|
+
item: import('./types').SplitPaneItem;
|
|
75
|
+
index: number;
|
|
76
|
+
layout: string;
|
|
77
|
+
}): any;
|
|
78
|
+
pane?(_: {
|
|
79
|
+
item: import('./types').SplitPaneItem;
|
|
80
|
+
index: number;
|
|
81
|
+
layout: string;
|
|
82
|
+
}): any;
|
|
83
|
+
pane?(_: {
|
|
84
|
+
item: import('./types').SplitPaneItem;
|
|
85
|
+
index: number;
|
|
86
|
+
layout: string;
|
|
87
|
+
}): any;
|
|
88
|
+
pane?(_: {
|
|
89
|
+
item: import('./types').SplitPaneItem;
|
|
90
|
+
index: number;
|
|
91
|
+
layout: string;
|
|
92
|
+
}): any;
|
|
93
|
+
};
|
|
94
|
+
}) | null;
|
|
95
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
96
|
+
P: {};
|
|
97
|
+
B: {};
|
|
98
|
+
D: {};
|
|
99
|
+
C: {};
|
|
100
|
+
M: {};
|
|
101
|
+
Defaults: {};
|
|
102
|
+
}, Readonly<import('./types').RSplitViewProps> & Readonly<{
|
|
103
|
+
"onUpdate:layout"?: ((layout: import('./types').SplitLayoutType) => any) | undefined;
|
|
104
|
+
"onUpdate:sizes"?: ((sizes: import('./types').LayoutSizes) => any) | undefined;
|
|
105
|
+
"onLayout-change"?: ((layout: import('./types').SplitLayoutType) => any) | undefined;
|
|
106
|
+
}>, {
|
|
107
|
+
resetSizes: () => void;
|
|
108
|
+
}, {}, {}, {}, {
|
|
109
|
+
items: import('./types').SplitPaneItem[];
|
|
110
|
+
minPaneSize: number;
|
|
111
|
+
autoLayout: boolean;
|
|
112
|
+
}>;
|
|
113
|
+
__isFragment?: never;
|
|
114
|
+
__isTeleport?: never;
|
|
115
|
+
__isSuspense?: never;
|
|
116
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').RSplitViewProps> & Readonly<{
|
|
117
|
+
"onUpdate:layout"?: ((layout: import('./types').SplitLayoutType) => any) | undefined;
|
|
118
|
+
"onUpdate:sizes"?: ((sizes: import('./types').LayoutSizes) => any) | undefined;
|
|
119
|
+
"onLayout-change"?: ((layout: import('./types').SplitLayoutType) => any) | undefined;
|
|
120
|
+
}>, {
|
|
121
|
+
resetSizes: () => void;
|
|
122
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
123
|
+
"update:layout": (layout: import('./types').SplitLayoutType) => any;
|
|
124
|
+
"update:sizes": (sizes: import('./types').LayoutSizes) => any;
|
|
125
|
+
"layout-change": (layout: import('./types').SplitLayoutType) => any;
|
|
126
|
+
}, string, {
|
|
127
|
+
items: import('./types').SplitPaneItem[];
|
|
128
|
+
minPaneSize: number;
|
|
129
|
+
autoLayout: boolean;
|
|
130
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
131
|
+
$slots: {
|
|
132
|
+
empty?(_: {}): any;
|
|
133
|
+
pane?(_: {
|
|
134
|
+
item: import('./types').SplitPaneItem;
|
|
135
|
+
index: number;
|
|
136
|
+
layout: string;
|
|
137
|
+
}): any;
|
|
138
|
+
};
|
|
139
|
+
})>;
|
|
140
|
+
export { RSplitView };
|
|
141
|
+
export type { SplitPaneItem, SplitLayoutType, SplitLayoutType as LayoutType, LayoutSizes, DoubleSizes, QuadSizes, ComplexSizes, ResizePaneEvent, RSplitViewProps, SplitPaneSlotProps } from './types';
|
|
142
|
+
export type { SplitViewContext } from './splitViewContext';
|
|
143
|
+
export { splitViewContextKey } from './splitViewContext';
|
|
144
|
+
export { useSplitLayoutStrategy } from './composables/useSplitLayoutStrategy';
|
|
145
|
+
export { useSplitViewState } from './composables/useSplitViewState';
|
|
146
|
+
export { DEFAULT_LAYOUT_SIZES, cloneDefaultLayoutSizes } from './composables/defaultSizes';
|
|
147
|
+
export default RSplitView;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { SplitPaneItem } from '../types';
|
|
2
|
+
export interface RSplitComplexLayoutProps {
|
|
3
|
+
items: SplitPaneItem[];
|
|
4
|
+
}
|
|
5
|
+
declare function resetSizes(): void;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
pane?(_: {
|
|
10
|
+
item: SplitPaneItem;
|
|
11
|
+
index: number;
|
|
12
|
+
layout: string;
|
|
13
|
+
}): any;
|
|
14
|
+
pane?(_: {
|
|
15
|
+
item: SplitPaneItem;
|
|
16
|
+
index: number;
|
|
17
|
+
layout: string;
|
|
18
|
+
}): any;
|
|
19
|
+
pane?(_: {
|
|
20
|
+
item: SplitPaneItem;
|
|
21
|
+
index: number;
|
|
22
|
+
layout: string;
|
|
23
|
+
}): any;
|
|
24
|
+
pane?(_: {
|
|
25
|
+
item: SplitPaneItem;
|
|
26
|
+
index: number;
|
|
27
|
+
layout: string;
|
|
28
|
+
}): any;
|
|
29
|
+
pane?(_: {
|
|
30
|
+
item: SplitPaneItem;
|
|
31
|
+
index: number;
|
|
32
|
+
layout: string;
|
|
33
|
+
}): any;
|
|
34
|
+
pane?(_: {
|
|
35
|
+
item: SplitPaneItem;
|
|
36
|
+
index: number;
|
|
37
|
+
layout: string;
|
|
38
|
+
}): any;
|
|
39
|
+
};
|
|
40
|
+
refs: {};
|
|
41
|
+
rootEl: HTMLDivElement;
|
|
42
|
+
};
|
|
43
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
44
|
+
declare const __VLS_component: import('vue').DefineComponent<RSplitComplexLayoutProps, {
|
|
45
|
+
resetSizes: typeof resetSizes;
|
|
46
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RSplitComplexLayoutProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SplitPaneItem } from '../types';
|
|
2
|
+
export interface RSplitDoubleLayoutProps {
|
|
3
|
+
items: SplitPaneItem[];
|
|
4
|
+
}
|
|
5
|
+
declare function resetSizes(): void;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
pane?(_: {
|
|
10
|
+
item: SplitPaneItem;
|
|
11
|
+
index: number;
|
|
12
|
+
layout: string;
|
|
13
|
+
}): any;
|
|
14
|
+
pane?(_: {
|
|
15
|
+
item: SplitPaneItem;
|
|
16
|
+
index: number;
|
|
17
|
+
layout: string;
|
|
18
|
+
}): any;
|
|
19
|
+
};
|
|
20
|
+
refs: {};
|
|
21
|
+
rootEl: HTMLDivElement;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<RSplitDoubleLayoutProps, {
|
|
25
|
+
resetSizes: typeof resetSizes;
|
|
26
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RSplitDoubleLayoutProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { SplitPaneItem } from '../types';
|
|
2
|
+
export interface RSplitQuadLayoutProps {
|
|
3
|
+
items: SplitPaneItem[];
|
|
4
|
+
}
|
|
5
|
+
declare function resetSizes(): void;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
pane?(_: {
|
|
10
|
+
item: SplitPaneItem;
|
|
11
|
+
index: number;
|
|
12
|
+
layout: string;
|
|
13
|
+
}): any;
|
|
14
|
+
pane?(_: {
|
|
15
|
+
item: SplitPaneItem;
|
|
16
|
+
index: number;
|
|
17
|
+
layout: string;
|
|
18
|
+
}): any;
|
|
19
|
+
pane?(_: {
|
|
20
|
+
item: SplitPaneItem;
|
|
21
|
+
index: number;
|
|
22
|
+
layout: string;
|
|
23
|
+
}): any;
|
|
24
|
+
pane?(_: {
|
|
25
|
+
item: SplitPaneItem;
|
|
26
|
+
index: number;
|
|
27
|
+
layout: string;
|
|
28
|
+
}): any;
|
|
29
|
+
};
|
|
30
|
+
refs: {};
|
|
31
|
+
rootEl: HTMLDivElement;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
|
+
declare const __VLS_component: import('vue').DefineComponent<RSplitQuadLayoutProps, {
|
|
35
|
+
resetSizes: typeof resetSizes;
|
|
36
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RSplitQuadLayoutProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SplitPaneItem } from '../types';
|
|
2
|
+
export interface RSplitSingleLayoutProps {
|
|
3
|
+
items: SplitPaneItem[];
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
pane?(_: {
|
|
9
|
+
item: SplitPaneItem;
|
|
10
|
+
index: number;
|
|
11
|
+
layout: string;
|
|
12
|
+
}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<RSplitSingleLayoutProps, {
|
|
19
|
+
resetSizes(): void;
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RSplitSingleLayoutProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { ComplexSizes, DoubleSizes, LayoutSizes, QuadSizes, SplitLayoutType } from './types';
|
|
3
|
+
export interface SplitViewContext {
|
|
4
|
+
sizes: Ref<LayoutSizes>;
|
|
5
|
+
minPaneSize: number;
|
|
6
|
+
layout: Ref<SplitLayoutType>;
|
|
7
|
+
updateDoubleSizes: (partial: Partial<DoubleSizes>) => void;
|
|
8
|
+
updateQuadSizes: (partial: Partial<QuadSizes>) => void;
|
|
9
|
+
updateComplexSizes: (partial: Partial<ComplexSizes>) => void;
|
|
10
|
+
notifySizesChanged: () => void;
|
|
11
|
+
resetCurrentLayoutSizes: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const splitViewContextKey: InjectionKey<SplitViewContext>;
|