liuzhuang %!s(int64=3) %!d(string=hai) anos
pai
achega
4338c6bc3e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)
         },