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
@@ -65,10 +65,10 @@ export default createComponent({
emits: ['cancel', 'select', 'update:show'],
setup(props, { emit, slots }) {
const toggle = (value: boolean) => emit('update:show', value);
const updateShow = (value: boolean) => emit('update:show', value);
const onCancel = () => {
toggle(false);
updateShow(false);
emit('cancel');
};
@@ -143,7 +143,7 @@ export default createComponent({
position="bottom"
{...{
...pick(props, popupKeys),
'onUpdate:show': toggle,
'onUpdate:show': updateShow,
}}
>
{renderHeader()}