Skip to content

Conversation

@eviIIt
Copy link
Contributor

@eviIIt eviIIt commented Mar 17, 2020

Why

算得上是一种便捷行为,项目里使用组件数量少还好。
如果项目里使用组件多的话,一个个的找再添加 collapsable 还是比较痛苦的。

How

// 注册组件时
Vue.use(ElDataTree, {
  collapsable: true, // 变更默认折叠状态为 `true`
})

其他

如果有其他需要支持设置默认的就留言评论咯。

@auto-add-label auto-add-label bot added the enhancement New feature or request label Mar 17, 2020
@netlify
Copy link

netlify bot commented Mar 17, 2020

Deploy preview for el-data-tree ready!

Built with commit facd6f3

https://deploy-preview-64--el-data-tree.netlify.com

@eviIIt eviIIt force-pushed the feat/support-default-props-via-registration branch from b435a51 to facd6f3 Compare March 19, 2020 02:40
@levy9527 levy9527 merged commit 87e93c5 into FEMessage:dev Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants