diff --git a/src/action-sheet/index.js b/src/action-sheet/index.js index b859dfb3f..6073f467e 100644 --- a/src/action-sheet/index.js +++ b/src/action-sheet/index.js @@ -86,7 +86,7 @@ export default createComponent({ const onClick = () => { emit('select', item, index); if (props.closeOnClickAction) { - emit('update:show', false); + onUpdateShow(false); } }; diff --git a/src/contact-card/index.js b/src/contact-card/index.js index 73e77add5..43765181a 100644 --- a/src/contact-card/index.js +++ b/src/contact-card/index.js @@ -21,13 +21,13 @@ export default createComponent({ emits: ['click'], setup(props, { emit }) { - function onClick(event) { + const onClick = (event) => { if (props.editable) { emit('click', event); } - } + }; - function Content() { + const renderContent = () => { if (props.type === 'add') { return props.addText || t('addText'); } @@ -36,19 +36,19 @@ export default createComponent({