fix: remove form checkbox-group defaultValue warning#110

pull/165/head
tangjinzhou 2018-08-09 09:41:54 +08:00
parent 02860a1d24
commit 237cb55f12
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ export default {
type: String,
},
defaultValue: {
default: () => [],
default: undefined,
type: Array,
},
value: {
@ -33,7 +33,7 @@ export default {
data () {
const { value, defaultValue } = this
return {
sValue: value || defaultValue,
sValue: value || defaultValue || [],
}
},
methods: {