diff --git a/packages/date-picker/src/date-picker.ts b/packages/date-picker/src/date-picker.ts index b45f13c168..8b54f86035 100644 --- a/packages/date-picker/src/date-picker.ts +++ b/packages/date-picker/src/date-picker.ts @@ -42,6 +42,7 @@ export default defineComponent({ default: 'date', }, }, + emits: ['update:modelValue'], setup(props, ctx) { const format = DEFAULT_FORMATS_DATEPICKER[props.type] || DEFAULT_FORMATS_DATE return () => h(CommonPicker, { diff --git a/packages/menu/__tests__/menu.spec.ts b/packages/menu/__tests__/menu.spec.ts index 1846c47a44..7d864a0c99 100644 --- a/packages/menu/__tests__/menu.spec.ts +++ b/packages/menu/__tests__/menu.spec.ts @@ -1,6 +1,5 @@ import { mount } from '@vue/test-utils' import { nextTick } from 'vue' -import { rAF } from '@element-plus/test-utils/tick' import { sleep } from '@element-plus/test-utils' import Menu from '../src/menu.vue' diff --git a/packages/time-picker/src/time-picker.ts b/packages/time-picker/src/time-picker.ts index 903c612bb7..a028c4efca 100644 --- a/packages/time-picker/src/time-picker.ts +++ b/packages/time-picker/src/time-picker.ts @@ -18,6 +18,7 @@ export default defineComponent({ default: false, }, }, + emits: ['update:modelValue'], setup(props, ctx) { const type = props.isRange ? 'timerange' : 'time' const panel = props.isRange ? TimeRangePanel : TimePickPanel diff --git a/packages/time-select/src/time-select.vue b/packages/time-select/src/time-select.vue index 79c996426f..04348dfc56 100644 --- a/packages/time-select/src/time-select.vue +++ b/packages/time-select/src/time-select.vue @@ -31,7 +31,7 @@