chore: rename variables and comments

This commit is contained in:
chenjiahan
2021-03-02 17:55:22 +08:00
parent a0addef294
commit 6e5329cbe0
50 changed files with 85 additions and 82 deletions
+4 -4
View File
@@ -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()}