File tree 1 file changed +4
-4
lines changed
packages/app-frontend/src/features/ui/components
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ export default defineComponent({
76
76
setValue : (value ) => (model .value = value ),
77
77
})
78
78
79
- const rootEl = ref <null | HTMLElement >(null )
79
+ const root = ref <null | HTMLElement >(null )
80
80
81
81
const updateIndicator = async () => {
82
82
await nextTick ()
83
- const el = rootEl .value ?.querySelector (' .selected' ) as HTMLElement
83
+ const el = root .value ?.querySelector (' .selected' ) as HTMLElement
84
84
if (! el ) {
85
85
indicatorStyle .value = null
86
86
return
@@ -92,7 +92,7 @@ export default defineComponent({
92
92
height: el .offsetHeight ,
93
93
}
94
94
let parent = el .offsetParent as HTMLElement
95
- while (parent && parent !== rootEl .value ) {
95
+ while (parent && parent !== root .value ) {
96
96
offset .top += parent .offsetTop
97
97
offset .left += parent .offsetLeft
98
98
parent = parent .offsetParent as HTMLElement
@@ -122,7 +122,7 @@ export default defineComponent({
122
122
})
123
123
124
124
return {
125
- rootEl ,
125
+ root ,
126
126
indicatorStyle ,
127
127
updateIndicator ,
128
128
}
You can’t perform that action at this time.
0 commit comments