Browse Source

fix(tabbaritem): 增加组件依赖

eiinu 3 years ago
parent
commit
33fe28d123
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/packages/__VUE/tabbaritem/index.taro.vue

+ 4 - 0
src/packages/__VUE/tabbaritem/index.taro.vue

@@ -42,8 +42,12 @@ import {
   reactive,
   watch
 } from 'vue';
+import Badge from '../badge/index.taro.vue';
 const { create } = createComponent('tabbar-item');
 export default create({
+  components: {
+    [Badge.name]: Badge
+  },
   props: {
     tabTitle: {
       // 标签页的标题