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
+3 -3
View File
@@ -64,10 +64,10 @@ export default createComponent({
cancel: false,
});
const onUpdateShow = (value: boolean) => emit('update:show', value);
const updateShow = (value: boolean) => emit('update:show', value);
const close = (action: DialogAction) => {
onUpdateShow(false);
updateShow(false);
if (props.callback) {
props.callback(action);
}
@@ -212,7 +212,7 @@ export default createComponent({
aria-labelledby={title || message}
{...{
...pick(props, popupKeys),
'onUpdate:show': onUpdateShow,
'onUpdate:show': updateShow,
}}
>
{renderTitle()}