基本国际化处理

This commit is contained in:
Gary Fu
2023-06-24 18:59:44 +08:00
parent 21945dc63c
commit fbe2af466e
11 changed files with 280 additions and 73 deletions

View File

@@ -2,9 +2,17 @@
import LeftMenu from '@/components/LeftMenu.vue'
import TopNav from '@/components/TopNav.vue'
import { ref } from 'vue'
import dayjs from 'dayjs'
const collapseLeft = ref(false)
const value1 = ref(new Date())
const color = ref('rgba(19, 206, 102, 0.8)')
const testDay = function () {
return dayjs.weekdays()
}
</script>
<template>
@@ -17,7 +25,17 @@ const collapseLeft = ref(false)
<top-nav v-model:collapse-left="collapseLeft" />
</el-header>
<el-main>
<router-view />
<el-date-picker
v-model="value1"
type="date"
placeholder="Pick a day"
/>
<el-color-picker
v-model="color"
show-alpha
/>
{{ testDay() }}
{{ $i18n.locale }}
</el-main>
</el-container>
</el-container>