16 lines
315 B
JavaScript
16 lines
315 B
JavaScript
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);
|
|
}
|
|
}
|
|
}); |