fix: evnt

This commit is contained in:
chenjiahan
2021-10-12 17:10:48 +08:00
parent 0d005786bb
commit fc5a28fc43

View File

@@ -32,7 +32,12 @@ export default defineComponent({
emits: ['edit', 'click', 'select'],
setup(props, { slots, emit }) {
const onClick = () => emit(props.switchable ? 'select' : 'click');
const onClick = () => {
if (props.switchable) {
emit('select');
}
emit('click');
};
const renderRightIcon = () => (
<Icon