摘要:
子组件如何调用父组件方法? 1 在父组件中: 通过注册标签 @绑定好方法 2 子组件中:通过this.$emit来调用 如下。。。。 父组件 <template> <div> <child @fatherMethod="fatherMethod"></child> </div> </template 阅读全文
摘要:
<el-tree :data="tieLinedata" :props="defaultProps" @node-click="handleNodeClick"> <span class="span-ellipsis" slot-scope="{ node, data }"> <span :titl 阅读全文