[improvement] props default value (#2183)

This commit is contained in:
neverland
2018-11-29 22:20:42 +08:00
committed by GitHub
parent ad5121286b
commit 916dbd9927
31 changed files with 83 additions and 167 deletions

View File

@@ -60,20 +60,14 @@ export default create({
},
props: {
list: Array,
disabledList: Array,
disabledText: String,
addButtonText: String,
value: [String, Number],
switchable: {
type: Boolean,
default: true
},
list: {
type: Array,
default: () => []
},
disabledList: {
type: Array,
default: () => []
}
}
});