소스 검색

feat: increase support for multiple time zones

zhongming4762 7 달 전
부모
커밋
e3e5755903
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      packages/effects/layouts/src/widgets/timezone/timezone-button.vue

+ 1 - 5
packages/effects/layouts/src/widgets/timezone/timezone-button.vue

@@ -22,12 +22,8 @@ interface Props {
   timezone?: string;
 }
 
-interface Listener {
-  change: (timezone: string) => void;
-}
-
 const props = defineProps<Props>();
-const emit = defineEmits<Listener>();
+const emit = defineEmits<{ change: [string] }>();
 
 const TimezoneIcon = createIconifyIcon('fluent-mdl2:world-clock');