Skip to content

Commit

Permalink
修复Radio组件change时间回调参数
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchaofan committed Mar 13, 2018
1 parent b1ac937 commit 4c1c32c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "san-mui",
"version": "1.0.12",
"version": "1.0.13",
"description": "A Set of SAN Components that Implement Google's Material Design",
"author": "ecomfe",
"main": "./lib/index.js",
Expand Down
7 changes: 3 additions & 4 deletions src/Radio/Radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default san.defineComponent({
disabled="{{disabled}}"
name="{{name}}"
value="{{value}}"
on-change="handleChange"
on-change="handleChange($event)"
checked="{= checked =}">
<div class="sm-radio-wrapper">
<div class="sm-radio-label {{labelClass}}" san-if="label && labelLeft">{{label}}</div>
Expand Down Expand Up @@ -92,9 +92,8 @@ export default san.defineComponent({
},
handleTouchEnd() {
},
handleChange() {
let checked = this.data.get('checked');
this.fire('change', checked);
handleChange(e) {
this.fire('change', e);
},
attached() {
this.watch('checked', val => {
Expand Down

0 comments on commit 4c1c32c

Please sign in to comment.