N
N
NiceScript2019-02-07 02:47:13
Vue.js
NiceScript, 2019-02-07 02:47:13

How to insert your VUE component inside Element io TREE?

I am using Element IO Tree component in vue.js.

<el-tree
                  :data="TreeData"
                  node-key="_id"
                  :default-expand-all="true"
                  :expand-on-click-node="false"
                  id="engine_tree">
                  <span class="custom-tree-node" slot-scope="{ node, data}">
                    <span>
                      {{ node.label.name }}
                    </span>
                    <span>
                      <oConfirm></oConfirm> // Мой компонент, который не подгружается
                    </span>
                  </span>
             </el-tree>

I'm trying to use my component inside "el-tree" but it won't load.
I connect oConfirm like this:
export default {
name: ‘tree’,
components: {
oConfirm: () => import(’@/components/static/o-confirm’)
}, ....

If I insert oConfirm outside the el-tree, everything works.
How to implement?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question