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