liuzhuang 3 年之前
父节点
当前提交
4338c6bc3e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/controls/input/checkbox.js

+ 2 - 2
src/controls/input/checkbox.js

@@ -27,10 +27,10 @@ export default function () {
         },
 
         getValue() {
-            const {inputValue, uncheckedValue} = this
+            const {checkedValue, uncheckedValue} = this
             const ov = getValue.call(this)
             // const ov = this.getRawValue()
-            return (ov ? inputValue : uncheckedValue)
+            return (ov ? checkedValue : uncheckedValue)
         },