@@ -108,18 +108,22 @@ defineExpose({ collapse, expand, toggle });
108108<template >
109109 <div
110110 ref =" split-panel"
111- class =" split-panel"
112- :class =" [orientation, collapseTransitionState, { collapsed, dragging: isDragging }]"
111+ class =" sp-root"
112+ :class =" [
113+ `sp-${orientation}`,
114+ `sp-${collapseTransitionState}`,
115+ { 'sp-collapsed': collapsed, 'sp-dragging': isDragging },
116+ ]"
113117 data-testid =" root"
114118 @transitionend =" onTransitionEnd"
115119 >
116- <div class =" start" data-testid =" start" >
120+ <div class =" sp-start " :class = " ui?. start" data-testid =" start" >
117121 <slot name =" start" />
118122 </div >
119123 <div
120124 ref =" divider"
121- class =" divider"
122- :class =" [{ disabled }, orientation]"
125+ class =" sp- divider"
126+ :class =" [{ 'sp- disabled': disabled }, `sp-${ orientation}`, ui?.divider ]"
123127 :tabindex =" disabled ? undefined : 0"
124128 role =" separator"
125129 :aria-valuenow =" sizePercentage"
@@ -134,54 +138,54 @@ defineExpose({ collapse, expand, toggle });
134138 <div />
135139 </slot >
136140 </div >
137- <div class =" end" data-testid =" end" >
141+ <div class =" sp-end " :class = " ui?. end" data-testid =" end" >
138142 <slot name =" end" />
139143 </div >
140144 </div >
141145</template >
142146
143147<style scoped>
144- .split-panel {
148+ .sp-root {
145149 display : grid ;
146150
147- &.horizontal {
151+ &.sp- horizontal {
148152 transition-property : grid-template-columns;
149153 grid-template-columns : v-bind(gridTemplate);
150154
151- &.dragging {
155+ &.sp- dragging {
152156 cursor : ew-resize ;
153157 }
154158 }
155159
156- &.vertical {
160+ &.sp- vertical {
157161 grid-template-rows : v-bind(gridTemplate);
158162 transition-property : grid-template-rows;
159163
160- &.dragging {
164+ &.sp- dragging {
161165 cursor : ns-resize ;
162166 }
163167 }
164168
165- &.dragging {
169+ &.sp- dragging {
166170 user-select : none ;
167171 }
168172
169- &.collapsing {
173+ &.sp- collapsing {
170174 transition-duration : v-bind(transitionDuration);
171175 transition-timing-function : v-bind(transitionTimingFunctionCollapse);
172176 }
173177
174- &.expanding {
178+ &.sp- expanding {
175179 transition-duration : v-bind(transitionDuration);
176180 transition-timing-function : v-bind(transitionTimingFunctionExpand);
177181 }
178182}
179183
180- .start , .end {
184+ .sp- start , .sp- end {
181185 overflow : hidden ;
182186}
183187
184- .divider {
188+ .sp- divider {
185189 position : relative ;
186190 z-index : 1 ;
187191
@@ -193,7 +197,7 @@ defineExpose({ collapse, expand, toggle });
193197 }
194198 }
195199
196- &.horizontal {
200+ &.sp- horizontal {
197201 block-size : 100% ;
198202 inline-size : max-content ;
199203
@@ -206,7 +210,7 @@ defineExpose({ collapse, expand, toggle });
206210 }
207211 }
208212
209- &.vertical {
213+ &.sp- vertical {
210214 inline-size : 100% ;
211215 block-size : max-content ;
212216
0 commit comments