diff --git a/src/js/components/form/KLCheck/index.js b/src/js/components/form/KLCheck/index.js index 3b7975b8..66e12a2c 100644 --- a/src/js/components/form/KLCheck/index.js +++ b/src/js/components/form/KLCheck/index.js @@ -32,8 +32,7 @@ const KLCheck = Component.extend({ this.supr(); this.$watch('checked', function (newValue, oldValue) { - if (oldValue === undefined) return; - + if (oldValue === undefined || newValue === undefined) return; /** * @event KLCheck#change 选中状态改变时触发 * @property {object} sender 事件发送对象 diff --git a/src/js/components/layout/KLTable/THElements/templates/check.html b/src/js/components/layout/KLTable/THElements/templates/check.html index 4a6adc97..aa43b718 100644 --- a/src/js/components/layout/KLTable/THElements/templates/check.html +++ b/src/js/components/layout/KLTable/THElements/templates/check.html @@ -1,4 +1,4 @@ \ No newline at end of file + on-change={this._onItemCheckChange(item, $event)}/>