1234567891011121314151617181920212223242526272829 |
- import { FormStepperDefaultProps } from './props';
- import createComponent from '../createComponent';
- import fmtEvent from '../../_util/fmtEvent';
- createComponent({
- props: FormStepperDefaultProps,
- methods: {
- onChange: function (value, e) {
- this.emit('onChange', value);
- if (this.props.onChange) {
- this.props.onChange(value, fmtEvent(this.props, e));
- }
- },
- onBlur: function (e) {
- if (this.props.onBlur) {
- this.props.onBlur(fmtEvent(this.props, e));
- }
- },
- onFocus: function (e) {
- if (this.props.onChange) {
- this.props.onFocus(fmtEvent(this.props, e));
- }
- },
- onConfirm: function (value, e) {
- if (this.props.onConfirm) {
- this.props.onConfirm(value, fmtEvent(this.props, e));
- }
- },
- }
- });
|