Skip to content

Commit 71512b1

Browse files
committed
refactor(SplitterPanel): tighten expose types to Readonly<Ref<T>>
PHILOSOPHY §4.2 — SplitterPanelExpose.size and .isCollapsed were typed Ref<T> but implemented as toRef (already readonly). Aligns the interface with the implementation. No runtime change.
1 parent d45f7f3 commit 71512b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/0/src/components/Splitter/SplitterPanel.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
export interface SplitterPanelExpose {
3838
collapse: () => void
3939
expand: () => void
40-
size: Ref<number>
41-
isCollapsed: Ref<boolean>
40+
size: Readonly<Ref<number>>
41+
isCollapsed: Readonly<Ref<boolean>>
4242
}
4343
4444
export interface SplitterPanelSlotProps {

0 commit comments

Comments
 (0)