vue element-ui 修改el-tree节点的disabled状态
element
A Vue.js 2.0 UI Toolkit for Web
项目地址:https://gitcode.com/gh_mirrors/eleme/element

·
el-tree可以用show-checkbox来开启选择框。
在生成节点node的时候指定了disabled属性值,但后面需要修改这个节点的禁用状态。
此时如果直接 node.disabled=false,会报错:
Uncaught (in promise) TypeError: Cannot set property disabled of #<e> which has only a getter
可以用 $set 来修改值。
this.$set(node, “disabled”, false)




A Vue.js 2.0 UI Toolkit for Web
最近提交(Master分支:19 天前 )
c345bb45
1 年前
a07f3a59
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update table.md
* Update transition.md
* Update popover.md 1 年前
更多推荐
所有评论(0)