checkbox component

This commit is contained in:
cookfront
2017-03-01 11:17:21 +08:00
parent e0be5b962e
commit c2a46edeae
3 changed files with 15 additions and 1 deletions

View File

@@ -67,6 +67,9 @@ export default {
}
},
/**
* `checkbox`是否被选中
*/
isChecked() {
if ({}.toString.call(this.currentValue) === '[object Boolean]') {
return this.currentValue;