fix(components): [time-picker] fix end-time can't be callback (#9669)

* fix(components): [time-picker]

fix end-time can't be return callback

closed #9460

* fix(components): [time-picker]

fix end-time can't be return callback

BREAKING CHANGE :
no

closed #9460

* refactor(components): rewrite code

* refactor(components): reback test code
This commit is contained in:
mrcat 2022-09-08 15:15:59 +08:00 committed by GitHub
parent d38e8b8174
commit f6d4574238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@
</template>
<script lang="ts" setup>
import { computed, inject, nextTick, provide, ref, unref, watch } from 'vue'
import { isEqual } from 'lodash-unified'
import { isEqual, isNil } from 'lodash-unified'
import { onClickOutside } from '@vueuse/core'
import {
useFormItem,
@ -367,7 +367,7 @@ const handleFocusInput = (e?: FocusEvent) => {
) {
return
}
pickerVisible.value = true
pickerVisible.value = isNil(e?.relatedTarget)
emit('focus', e)
}