1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| import fmtEvent from '../_util/fmtEvent';
| Component({
| props: {
| checked: false,
| disabled: false,
| onChange: function onChange() {},
| id: '',
| name: '',
| controlled: false
| },
| data: {
| checkedCls: ''
| },
| methods: {
| onChange: function onChange(e) {
| var event = fmtEvent(this.props, e);
| this.props.onChange(event);
| }
| }
| });
|
|