chore: Update project version and theme configuration
This commit is contained in:
parent
7205868368
commit
e193238a54
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "y-code",
|
"name": "y-code",
|
||||||
"version": "0.0.0",
|
"version": "2.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -4,6 +4,9 @@ import { legacyLogicalPropertiesTransformer, StyleProvider, ConfigProvider, them
|
|||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import 'dayjs/locale/zh-cn';
|
import 'dayjs/locale/zh-cn';
|
||||||
|
|
||||||
|
const { compactAlgorithm } = theme;
|
||||||
|
|
||||||
|
|
||||||
dayjs.locale('zh-cn');
|
dayjs.locale('zh-cn');
|
||||||
|
|
||||||
ConfigProvider.config({
|
ConfigProvider.config({
|
||||||
@ -14,7 +17,7 @@ ConfigProvider.config({
|
|||||||
<template>
|
<template>
|
||||||
<a-config-provider
|
<a-config-provider
|
||||||
:theme="{
|
:theme="{
|
||||||
algorithm: theme.compactAlgorithm,
|
algorithm: [ compactAlgorithm],
|
||||||
}"
|
}"
|
||||||
:locale="zhCN"
|
:locale="zhCN"
|
||||||
:transformers="[legacyLogicalPropertiesTransformer]"
|
:transformers="[legacyLogicalPropertiesTransformer]"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user