uniapp uni_modules 组件a.vue 调用b.vue

悠讓
  • 216

uniapp uni_modules 组件a.vue 调用b.vue,h5没问题,微信小程序用不了。何解?
在线等。
a.vue

<template>
    <view class="treeSelect">
        <treeSelectOne @getChooseValue="getValue" :data="data"></treeSelectOne>
    </view>
</template>
import treeSelectOne from "./treeSelectOne.vue"
export default {
    name: "treeSelect",
    components: {
        treeSelectOne
    },

b.vue,treeSelectOne同时递归。

<template>
    <view>
        <treeSelectOne @getChooseValue="getValue" :data="item.children" v-if="item.children !== undefined"></treeSelectOne>
    </view>
</template>
import treeSelectOne from "./treeSelectOne.vue"
export default {
    name: "treeSelectOne",
    components: {
        'treeSelectOne':treeSelectOne
    },
回复
阅读 206
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
你知道吗?

宣传栏