|
|
|
@ -1,12 +1,12 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { dateZhCN, zhCN } from 'naive-ui'
|
|
|
|
|
import { computed } from 'vue'
|
|
|
|
|
import { AppProvider } from '@/components/Application'
|
|
|
|
|
import { lighten } from '@/utils/index'
|
|
|
|
|
import { dateZhCN, zhCN } from "naive-ui";
|
|
|
|
|
import { computed, onMounted, nextTick } from "vue";
|
|
|
|
|
import { AppProvider } from "@/components/Application";
|
|
|
|
|
import { lighten } from "@/utils/index";
|
|
|
|
|
|
|
|
|
|
const getThemeOverrides = computed(() => {
|
|
|
|
|
const theme = '#1980FF'
|
|
|
|
|
const lightenStr = lighten(theme, 6)
|
|
|
|
|
const theme = "#1980FF";
|
|
|
|
|
const lightenStr = lighten(theme, 6);
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
common: {
|
|
|
|
@ -16,38 +16,53 @@ const getThemeOverrides = computed(() => {
|
|
|
|
|
primaryColorSuppl: theme,
|
|
|
|
|
},
|
|
|
|
|
Switch: {
|
|
|
|
|
railColorActive: '#07C984',
|
|
|
|
|
railColorActive: "#07C984",
|
|
|
|
|
},
|
|
|
|
|
Input: {
|
|
|
|
|
borderHover: '0px',
|
|
|
|
|
borderFocus: '0px',
|
|
|
|
|
boxShadowFocus: '#ff0000',
|
|
|
|
|
borderHover: "0px",
|
|
|
|
|
borderFocus: "0px",
|
|
|
|
|
boxShadowFocus: "#ff0000",
|
|
|
|
|
},
|
|
|
|
|
Tag: {
|
|
|
|
|
colorCheckedHover: '#507afd',
|
|
|
|
|
colorCheckedPressed: '#507afd',
|
|
|
|
|
colorCheckedHover: "#507afd",
|
|
|
|
|
colorCheckedPressed: "#507afd",
|
|
|
|
|
},
|
|
|
|
|
Slider: {
|
|
|
|
|
fillColor: '#1980FF',
|
|
|
|
|
dotBorderActive: '#1980FF',
|
|
|
|
|
fillColorHover: '#1980FF',
|
|
|
|
|
fillColor: "#1980FF",
|
|
|
|
|
dotBorderActive: "#1980FF",
|
|
|
|
|
fillColorHover: "#1980FF",
|
|
|
|
|
},
|
|
|
|
|
Card: {
|
|
|
|
|
padding: '0px',
|
|
|
|
|
padding: "0px",
|
|
|
|
|
},
|
|
|
|
|
Dropdown: {
|
|
|
|
|
optionColorHover: '#e8f2ff',
|
|
|
|
|
optionColorHover: "#e8f2ff",
|
|
|
|
|
},
|
|
|
|
|
Upload: {
|
|
|
|
|
draggerBorder: '1px dashed #1980FF',
|
|
|
|
|
draggerBorderHover: '1px dashed #1980FF',
|
|
|
|
|
draggerBorder: "1px dashed #1980FF",
|
|
|
|
|
draggerBorderHover: "1px dashed #1980FF",
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
window.addEventListener("resize", () => {
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
const designWidth = 1440;
|
|
|
|
|
const rempPx = 16;
|
|
|
|
|
const scale = window.innerWidth / designWidth;
|
|
|
|
|
document.documentElement.style.fontSize = scale * rempPx + "px";
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<NConfigProvider :locale="zhCN" :date-locale="dateZhCN" :theme-overrides="getThemeOverrides">
|
|
|
|
|
<NConfigProvider
|
|
|
|
|
:locale="zhCN"
|
|
|
|
|
:date-locale="dateZhCN"
|
|
|
|
|
:theme-overrides="getThemeOverrides"
|
|
|
|
|
>
|
|
|
|
|
<AppProvider>
|
|
|
|
|
<RouterView />
|
|
|
|
|
</AppProvider>
|
|
|
|
@ -55,15 +70,15 @@ const getThemeOverrides = computed(() => {
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
|
.n-checkbox .n-checkbox__label{
|
|
|
|
|
.n-checkbox .n-checkbox__label {
|
|
|
|
|
color: #666666 !important;
|
|
|
|
|
font-size: 14px !important;
|
|
|
|
|
}
|
|
|
|
|
.n-checkbox.n-checkbox--disabled .n-checkbox__label{
|
|
|
|
|
.n-checkbox.n-checkbox--disabled .n-checkbox__label {
|
|
|
|
|
color: #c9c9c9 !important;
|
|
|
|
|
font-size: 14px !important;
|
|
|
|
|
}
|
|
|
|
|
.draggable-ul .draggable-li{
|
|
|
|
|
.draggable-ul .draggable-li {
|
|
|
|
|
color: #666666 !important;
|
|
|
|
|
font-size: 14px !important;
|
|
|
|
|
}
|
|
|
|
|