chore(Tabbar): rename root ref
This commit is contained in:
+3
-3
@@ -37,9 +37,9 @@ export default createComponent({
|
|||||||
emits: ['change', 'update:modelValue'],
|
emits: ['change', 'update:modelValue'],
|
||||||
|
|
||||||
setup(props, { emit, slots }) {
|
setup(props, { emit, slots }) {
|
||||||
const tabbarRef = ref();
|
const root = ref();
|
||||||
const children = reactive([]);
|
const children = reactive([]);
|
||||||
const renderPlaceholder = usePlaceholder(tabbarRef, bem);
|
const renderPlaceholder = usePlaceholder(root, bem);
|
||||||
|
|
||||||
const isUnfit = () => {
|
const isUnfit = () => {
|
||||||
if (isDef(props.safeAreaInsetBottom)) {
|
if (isDef(props.safeAreaInsetBottom)) {
|
||||||
@@ -54,7 +54,7 @@ export default createComponent({
|
|||||||
const unfit = isUnfit();
|
const unfit = isUnfit();
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={tabbarRef}
|
ref={root}
|
||||||
style={{ zIndex }}
|
style={{ zIndex }}
|
||||||
class={[bem({ unfit, fixed }), { [BORDER_TOP_BOTTOM]: border }]}
|
class={[bem({ unfit, fixed }), { [BORDER_TOP_BOTTOM]: border }]}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user