调整日期、时间格式下拉框显示顺序
This commit is contained in:
parent
f9b78b7674
commit
7d1ce84fcd
|
@ -26,6 +26,8 @@ Cookies.set("language", language, {
|
|||
expires: 365,
|
||||
});
|
||||
|
||||
(<any>window).currnet_use_language = language;
|
||||
|
||||
const i18n = createI18n({
|
||||
locale: language,
|
||||
messages,
|
||||
|
|
|
@ -462,10 +462,6 @@ export default defineComponent({
|
|||
|
||||
const now = Date.now();
|
||||
const date_format_options = ref([
|
||||
{
|
||||
label: DateHelper.formatDate(now, "YYYY年MM月DD日"),
|
||||
value: "yyyy年MM月dd日",
|
||||
},
|
||||
{
|
||||
label: DateHelper.formatDate(now, "YYYY/MM/DD"),
|
||||
value: "yyyy/MM/dd",
|
||||
|
@ -474,17 +470,21 @@ export default defineComponent({
|
|||
label: DateHelper.formatDate(now, "YYYY-MM-DD"),
|
||||
value: "yyyy-MM-dd",
|
||||
},
|
||||
{
|
||||
label: DateHelper.formatDate(now, "YYYY年MM月DD日"),
|
||||
value: "yyyy年MM月dd日",
|
||||
},
|
||||
]);
|
||||
|
||||
const time_format_options = ref([
|
||||
{
|
||||
label: DateHelper.formatDate(now, "HH时mm分ss秒"),
|
||||
value: "hh时mm分ss秒",
|
||||
},
|
||||
{
|
||||
label: DateHelper.formatDate(now, "HH:mm:ss"),
|
||||
value: "hh:mm:ss",
|
||||
},
|
||||
{
|
||||
label: DateHelper.formatDate(now, "HH时mm分ss秒"),
|
||||
value: "hh时mm分ss秒",
|
||||
},
|
||||
]);
|
||||
|
||||
let show_dialog = ref(false);
|
||||
|
|
Loading…
Reference in New Issue