1234567891011121314151617 |
- import { Component, triggerEvent } from '../_util/simply';
- import { RadioDefaultProps } from './props';
- import mixinValue from '../mixins/value';
- Component(RadioDefaultProps, {
- onChange: function (e) {
- var value = e.detail.value;
- if (!this.isControlled()) {
- this.update(value);
- }
- triggerEvent(this, 'change', value, e);
- },
- }, null, [
- mixinValue({
- valueKey: 'checked',
- defaultValueKey: 'defaultChecked',
- }),
- ]);
|