File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/component/component/datePicker/component Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import type {
7
7
import { computed , ref , watch } from " vue" ;
8
8
import dayjs , { type Dayjs } from " dayjs" ;
9
9
10
+ import { useI18n } from " ../../../language" ;
10
11
import { isFunction } from " ../../../utils" ;
11
12
12
13
import { useBaseDatePicker } from " ../hook/useBaseDatePicker" ;
@@ -28,6 +29,7 @@ const showDate = ref<Dayjs>(dayjs());
28
29
const currentType = ref ();
29
30
30
31
const { getDefaultValue } = useBaseDatePicker (props );
32
+ const { t } = useI18n ();
31
33
32
34
watch (
33
35
() => props .modelValue ,
@@ -209,7 +211,11 @@ const footerValue = () => {
209
211
:class =" { 'type-time': currentType === 'time' }"
210
212
@click =" handleToggleTimePanel"
211
213
>
212
- {{ currentType === "date" ? "选择时间" : "选择日期" }}
214
+ {{
215
+ currentType === "date"
216
+ ? t("datePicker.selectTime")
217
+ : t("datePicker.selectDate")
218
+ }}
213
219
</LayButton >
214
220
<template v-else >{{ footerValue() }}</template >
215
221
</slot >
You can’t perform that action at this time.
0 commit comments