elementui的el-cascader-panel在jsx里如何自定义label和props属性
render(){
return (
<el-cascader-panel
onChange={(val) => { this.handleFormatChange(val, 'format', 'dataColumns', indexInMap) }}
props={{ renderLabel: (params) => {
return (
<span>{params.data.groupInstanceName}</span>
)
},
props: { expandTrigger: 'click', value: 'id', label: 'groupInstanceName' }}}
options={this.formatListTree}>
</el-cascader-panel>
)
}