fix: switch not update in table(amaze issue) #3512
parent
1d1ed164a6
commit
6b474598e0
|
@ -28,7 +28,7 @@ const Switch = defineComponent({
|
||||||
onClick: PropTypes.func,
|
onClick: PropTypes.func,
|
||||||
'onUpdate:checked': PropTypes.func,
|
'onUpdate:checked': PropTypes.func,
|
||||||
},
|
},
|
||||||
emits: ['change', 'click', 'update:checked'],
|
// emits: ['change', 'click', 'update:checked'],
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
refSwitchNode: undefined,
|
refSwitchNode: undefined,
|
||||||
|
@ -61,7 +61,7 @@ const Switch = defineComponent({
|
||||||
const { getPrefixCls } = this.configProvider;
|
const { getPrefixCls } = this.configProvider;
|
||||||
const prefixCls = getPrefixCls('switch', customizePrefixCls);
|
const prefixCls = getPrefixCls('switch', customizePrefixCls);
|
||||||
const { $attrs } = this;
|
const { $attrs } = this;
|
||||||
|
console.log(restProps, $attrs)
|
||||||
const classes = {
|
const classes = {
|
||||||
[$attrs.class as string]: $attrs.class,
|
[$attrs.class as string]: $attrs.class,
|
||||||
[`${prefixCls}-small`]: size === 'small',
|
[`${prefixCls}-small`]: size === 'small',
|
||||||
|
|
Loading…
Reference in New Issue