We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98c352e + 87e93c5 commit 9d55560Copy full SHA for 9d55560
src/el-data-tree.vue
@@ -409,7 +409,9 @@ export default {
409
*/
410
collapsable: {
411
type: Boolean,
412
- default: false
+ default() {
413
+ return _get(this, '$elDataTreeOptions.collapsable') || false
414
+ }
415
}
416
},
417
data() {
src/index.js
@@ -5,7 +5,8 @@ import Component from './el-data-tree.vue'
5
// the same plugin more than once,
6
// so calling it multiple times on the same plugin
7
// will install the plugin only once
8
-Component.install = Vue => {
+Component.install = (Vue, options = {}) => {
9
+ Vue.prototype.$elDataTreeOptions = options
10
Vue.component(Component.name, Component)
11
12
0 commit comments