mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(Tabbar): rename root ref
This commit is contained in:
parent
1ef134822e
commit
7e86fb9e43
@ -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 }]}
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user