@@ -108,18 +108,22 @@ defineExpose({ collapse, expand, toggle });
108
108
<template >
109
109
<div
110
110
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
+ ]"
113
117
data-testid =" root"
114
118
@transitionend =" onTransitionEnd"
115
119
>
116
- <div class =" start" data-testid =" start" >
120
+ <div class =" sp-start " :class = " ui?. start" data-testid =" start" >
117
121
<slot name =" start" />
118
122
</div >
119
123
<div
120
124
ref =" divider"
121
- class =" divider"
122
- :class =" [{ disabled }, orientation]"
125
+ class =" sp- divider"
126
+ :class =" [{ 'sp- disabled': disabled }, `sp-${ orientation}`, ui?.divider ]"
123
127
:tabindex =" disabled ? undefined : 0"
124
128
role =" separator"
125
129
:aria-valuenow =" sizePercentage"
@@ -134,54 +138,54 @@ defineExpose({ collapse, expand, toggle });
134
138
<div />
135
139
</slot >
136
140
</div >
137
- <div class =" end" data-testid =" end" >
141
+ <div class =" sp-end " :class = " ui?. end" data-testid =" end" >
138
142
<slot name =" end" />
139
143
</div >
140
144
</div >
141
145
</template >
142
146
143
147
<style scoped>
144
- .split-panel {
148
+ .sp-root {
145
149
display : grid ;
146
150
147
- &.horizontal {
151
+ &.sp- horizontal {
148
152
transition-property : grid-template-columns;
149
153
grid-template-columns : v-bind(gridTemplate);
150
154
151
- &.dragging {
155
+ &.sp- dragging {
152
156
cursor : ew-resize ;
153
157
}
154
158
}
155
159
156
- &.vertical {
160
+ &.sp- vertical {
157
161
grid-template-rows : v-bind(gridTemplate);
158
162
transition-property : grid-template-rows;
159
163
160
- &.dragging {
164
+ &.sp- dragging {
161
165
cursor : ns-resize ;
162
166
}
163
167
}
164
168
165
- &.dragging {
169
+ &.sp- dragging {
166
170
user-select : none ;
167
171
}
168
172
169
- &.collapsing {
173
+ &.sp- collapsing {
170
174
transition-duration : v-bind(transitionDuration);
171
175
transition-timing-function : v-bind(transitionTimingFunctionCollapse);
172
176
}
173
177
174
- &.expanding {
178
+ &.sp- expanding {
175
179
transition-duration : v-bind(transitionDuration);
176
180
transition-timing-function : v-bind(transitionTimingFunctionExpand);
177
181
}
178
182
}
179
183
180
- .start , .end {
184
+ .sp- start , .sp- end {
181
185
overflow : hidden ;
182
186
}
183
187
184
- .divider {
188
+ .sp- divider {
185
189
position : relative ;
186
190
z-index : 1 ;
187
191
@@ -193,7 +197,7 @@ defineExpose({ collapse, expand, toggle });
193
197
}
194
198
}
195
199
196
- &.horizontal {
200
+ &.sp- horizontal {
197
201
block-size : 100% ;
198
202
inline-size : max-content ;
199
203
@@ -206,7 +210,7 @@ defineExpose({ collapse, expand, toggle });
206
210
}
207
211
}
208
212
209
- &.vertical {
213
+ &.sp- vertical {
210
214
inline-size : 100% ;
211
215
block-size : max-content ;
212
216
0 commit comments