mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
fix: evnt
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user