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)

GitHub 加速计划 / eleme / element
13
1
下载
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 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐