日期选择器改为中文语言和深色风格
This commit is contained in:
parent
5bbabc01e9
commit
cb232e807e
@ -11,6 +11,8 @@
|
||||
:placeholder="'选择月份'"
|
||||
format="YYYY年MM月"
|
||||
valueFormat="YYYY-MM"
|
||||
:locale="locale"
|
||||
:popup-class-name="'dark-date-picker'"
|
||||
@change="handleMonthChange"
|
||||
class="month-picker"
|
||||
:allowClear="true"
|
||||
@ -524,8 +526,16 @@ import { message } from 'ant-design-vue'
|
||||
import * as echarts from 'echarts'
|
||||
import Icon from '@/components/Icon.vue'
|
||||
import dayjs, { Dayjs } from 'dayjs'
|
||||
import 'dayjs/locale/zh-cn'
|
||||
import zhCN from 'ant-design-vue/es/locale/zh_CN'
|
||||
import { fetchDepartmentOverview } from '@/api/department'
|
||||
|
||||
// 设置 dayjs 中文
|
||||
dayjs.locale('zh-cn')
|
||||
|
||||
// Ant Design 中文配置
|
||||
const locale = zhCN
|
||||
|
||||
const router = useRouter()
|
||||
const loading = ref(false)
|
||||
const selectedMonth = ref<string | null>(null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user