调整日期、时间格式下拉框显示顺序

This commit is contained in:
fangxiang 2022-05-28 17:51:54 +08:00
parent f9b78b7674
commit 7d1ce84fcd
2 changed files with 10 additions and 8 deletions

View File

@ -26,6 +26,8 @@ Cookies.set("language", language, {
expires: 365, expires: 365,
}); });
(<any>window).currnet_use_language = language;
const i18n = createI18n({ const i18n = createI18n({
locale: language, locale: language,
messages, messages,

View File

@ -462,10 +462,6 @@ export default defineComponent({
const now = Date.now(); const now = Date.now();
const date_format_options = ref([ const date_format_options = ref([
{
label: DateHelper.formatDate(now, "YYYY年MM月DD日"),
value: "yyyy年MM月dd日",
},
{ {
label: DateHelper.formatDate(now, "YYYY/MM/DD"), label: DateHelper.formatDate(now, "YYYY/MM/DD"),
value: "yyyy/MM/dd", value: "yyyy/MM/dd",
@ -474,17 +470,21 @@ export default defineComponent({
label: DateHelper.formatDate(now, "YYYY-MM-DD"), label: DateHelper.formatDate(now, "YYYY-MM-DD"),
value: "yyyy-MM-dd", value: "yyyy-MM-dd",
}, },
{
label: DateHelper.formatDate(now, "YYYY年MM月DD日"),
value: "yyyy年MM月dd日",
},
]); ]);
const time_format_options = ref([ const time_format_options = ref([
{
label: DateHelper.formatDate(now, "HH时mm分ss秒"),
value: "hh时mm分ss秒",
},
{ {
label: DateHelper.formatDate(now, "HH:mm:ss"), label: DateHelper.formatDate(now, "HH:mm:ss"),
value: "hh:mm:ss", value: "hh:mm:ss",
}, },
{
label: DateHelper.formatDate(now, "HH时mm分ss秒"),
value: "hh时mm分ss秒",
},
]); ]);
let show_dialog = ref(false); let show_dialog = ref(false);