Element: Tree组件自定义节点内容功能无法使用

Created on 14 Mar 2017  ·  5Comments  ·  Source: ElemeFE/element

ElementUI version

1.2.4

OS/Browsers version

Firefox 52.0 & Chrome 53.0

Vue version

2.x

Reproduction Link

https://jsfiddle.net/api/post/library/pure/

Steps to reproduce

直接运行jsfiddle中的例子,例子来自官网文档中关于Tree组件使用的说明。

What is Expected?

实现自定义添加和删除Tree组件的节点

What is actually happening?

所有的label消失,renderContent函数貌似不起作用,未出现Append和Delete按钮。

PS:element很棒, 也可能是我哪里操作不对,还请指正~

All 5 comments

jsfiddle 不支持 jsx,所以这个例子会报错。同样一段代码在实际项目里是可以的。

多谢,自己写了个可以了~

在vue中写jsx么,怎么配置webpack的babel编译?

请问一下这个问题,最后是怎么解决的

Was this page helpful?
0 / 5 - 0 ratings