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