mirror of
https://github.com/youzan/vant.git
synced 2026-05-16 01:07:43 +08:00
chore: rename variables and comments
This commit is contained in:
@@ -51,10 +51,10 @@ export default createComponent({
|
||||
emits: ['select', 'cancel', 'update:show'],
|
||||
|
||||
setup(props, { slots, emit }) {
|
||||
const onUpdateShow = (show: boolean) => emit('update:show', show);
|
||||
const updateShow = (show: boolean) => emit('update:show', show);
|
||||
|
||||
const onCancel = () => {
|
||||
onUpdateShow(false);
|
||||
updateShow(false);
|
||||
emit('cancel');
|
||||
};
|
||||
|
||||
@@ -118,7 +118,7 @@ export default createComponent({
|
||||
emit('select', item, index);
|
||||
|
||||
if (props.closeOnClickAction) {
|
||||
onUpdateShow(false);
|
||||
updateShow(false);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -157,7 +157,7 @@ export default createComponent({
|
||||
safeAreaInsetBottom={props.safeAreaInsetBottom}
|
||||
{...{
|
||||
...pick(props, popupSharedPropKeys),
|
||||
'onUpdate:show': onUpdateShow,
|
||||
'onUpdate:show': updateShow,
|
||||
}}
|
||||
>
|
||||
{renderHeader()}
|
||||
|
||||
Reference in New Issue
Block a user