chore: Update project version and theme configuration

This commit is contained in:
wangxuefeng 2025-02-06 16:26:15 +08:00
parent 7205868368
commit e193238a54
2 changed files with 5 additions and 2 deletions

View File

@ -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": {

View File

@ -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]"