chore(Tabbar): rename root ref

This commit is contained in:
chenjiahan 2020-09-21 16:09:11 +08:00
parent 1ef134822e
commit 7e86fb9e43

View File

@ -37,9 +37,9 @@ export default createComponent({
emits: ['change', 'update:modelValue'],
setup(props, { emit, slots }) {
const tabbarRef = ref();
const root = ref();
const children = reactive([]);
const renderPlaceholder = usePlaceholder(tabbarRef, bem);
const renderPlaceholder = usePlaceholder(root, bem);
const isUnfit = () => {
if (isDef(props.safeAreaInsetBottom)) {
@ -54,7 +54,7 @@ export default createComponent({
const unfit = isUnfit();
return (
<div
ref={tabbarRef}
ref={root}
style={{ zIndex }}
class={[bem({ unfit, fixed }), { [BORDER_TOP_BOTTOM]: border }]}
>