Browse Source

fix: remove form checkbox-group defaultValue warning#110

pull/165/head
tangjinzhou 6 years ago
parent
commit
237cb55f12
  1. 4
      components/checkbox/Group.jsx

4
components/checkbox/Group.jsx

@ -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: {

Loading…
Cancel
Save