VUE3 App.vue 引入nutui tabbar 开发环境组件无法被编译成正常div和class

VUE3 App.vue 引入nutui tabbar 开发环境组件无法被编译成正常div和class
1653223278(1).png

<!--App.vue-->
<template>
  <router-view></router-view>
  <Tabbar />
</template>

<script setup>
import Tabbar from '@/components/tabBar'
</script>
<!--tabBar.vue-->
<template>
   <nut-tabbar :bottom="true" :safeAreaInsetBottom="true">
    <nut-tabbar-item 
      :bottom="true" 
      :safeAreaInsetBottom="true"
      v-for="$item in NavBar"
      :tab-title="$item.title"
      :href="$item.href"
      :icon="$item.icon"
      />
  </nut-tabbar>
</template>

<script setup>
  const NavBar = [
    {
      title: '工单列表',
      icon: 'category',
      href: '/work_order_list'
    },
    {
      title: '区域库存',
      icon: 'dshop',
      href: '/reginal_inverntory_list'
    },
    {
      title: '调拨请求',
      icon: 'people',
      href: '/reginal_inverntory_allot_apply'
    }
  ]
</script>
阅读 1.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题