官方文档:https://www.iviewui.com/components/tree
针对案例四:
1、想要button不显示图标,显示文字
h('Button', {
props: Object.assign({},
this.buttonProps,
{ icon: 'ios-add' }),//取消
style: { marginRight: '8px' },
on: { click: () => { this.append(data) } }
},'显示的文本' ),
2、添加mouseover事件
h('Button', {
props: Object.assign({},
this.buttonProps),
style: { marginRight: '8px' },
on: { click: () => { this.append(data) } }
},
nativeOn: { mouseover: () => { this.append(data) } }
},
'显示的文本' ),