1.npm install --save @riophae/vue-treeselect
2.import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
3.components: { Treeselect }
运行时页面会提示错误 exports is not defined
代码示例:
<script>
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
export default {
components: { Treeselect },
}
</script>
5 个回复
段逸尘
楼主解决了吗
2***@qq.com - uniapp开发者
这是什么原因呢 ?求解答
2***@qq.com - uniapp开发者
uni-app 引入
2***@qq.com - uniapp开发者
重新 写了个 组件 => 利用 element-ui 的 tree https://ask.dcloud.net.cn/question/145839?item_id=199912&rf=false
2***@qq.com
解决方案:https://ask.dcloud.net.cn/question/145839?item_id=199997&rf=false
2022-05-28 09:42
小王瘦瘦
解决了吗?