Files
workspace/code/fms/fms-vue/src/App.vue
T
2026-08-05 22:05:06 +08:00

79 lines
1.6 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup>
import zhCN from "antdv-next/locale/zh_CN";
const themeConfig = {
// token: {
// controlHeight: 26,
// },
// components: {
// Splitter: {
// splitBarSize: 1,
// },
// Button: {
// contentFontSize: 12,
// paddingInline: 10,
// },
// Form: {
// labelFontSize: 12,
// verticalLabelMargin: "0 0 2px",
// itemMarginBottom: 8,
// },
// Collapse: {
// headerBg: "#ffffff",
// contentBg: "#ffffff",
// borderlessContentBg: "#ffffff",
// },
// },
};
const timePickerLocale = {
...zhCN.TimePicker,
placeholder: "",
rangePlaceholder: ["", ""],
};
const datePickerLocale = {
...zhCN.DatePicker,
lang: {
...zhCN.DatePicker.lang,
placeholder: "",
yearPlaceholder: "",
quarterPlaceholder: "",
monthPlaceholder: "",
weekPlaceholder: "",
rangePlaceholder: ["", ""],
rangeYearPlaceholder: ["", ""],
rangeQuarterPlaceholder: ["", ""],
rangeMonthPlaceholder: ["", ""],
rangeWeekPlaceholder: ["", ""],
},
timePickerLocale,
};
const locale = {
...zhCN,
global: {
...zhCN.global,
placeholder: "",
},
DatePicker: datePickerLocale,
Calendar: datePickerLocale,
TimePicker: timePickerLocale,
};
</script>
<template>
<a-config-provider :theme="themeConfig" :locale="locale">
<a-app>
<div class="theme-root">
<router-view />
</div>
</a-app>
</a-config-provider>
</template>
<style>
/* 全局:按钮内图标跟随 contentFontSize(13px),覆盖 Lucide 的固定 size */
.ant-btn svg {
width: 1em !important;
height: 1em !important;
}
</style>