mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
fix: evnt
This commit is contained in:
@@ -32,7 +32,12 @@ export default defineComponent({
|
|||||||
emits: ['edit', 'click', 'select'],
|
emits: ['edit', 'click', 'select'],
|
||||||
|
|
||||||
setup(props, { slots, emit }) {
|
setup(props, { slots, emit }) {
|
||||||
const onClick = () => emit(props.switchable ? 'select' : 'click');
|
const onClick = () => {
|
||||||
|
if (props.switchable) {
|
||||||
|
emit('select');
|
||||||
|
}
|
||||||
|
emit('click');
|
||||||
|
};
|
||||||
|
|
||||||
const renderRightIcon = () => (
|
const renderRightIcon = () => (
|
||||||
<Icon
|
<Icon
|
||||||
|
Reference in New Issue
Block a user