diff --git a/components/config-provider/demo/locale.vue b/components/config-provider/demo/locale.vue index 33e856474..f62319df4 100644 --- a/components/config-provider/demo/locale.vue +++ b/components/config-provider/demo/locale.vue @@ -16,7 +16,7 @@ Components which need localization support are listed here, you can toggle the l - diff --git a/components/config-provider/demo/theme.vue b/components/config-provider/demo/theme.vue index 99f795712..da33ab06e 100644 --- a/components/config-provider/demo/theme.vue +++ b/components/config-provider/demo/theme.vue @@ -3,569 +3,56 @@ order: 5 version: 3.0 title: - zh-CN: 全局样式 - en-US: Global Theme + zh-CN: 主题 + en-US: Theme --- ## zh-CN -通过 css variable 修改全局主题色(你可以切换到组件页面查看更详细的样式展示)。自动生成的变量可能会根据设计调整,请勿直接依赖。详细配置请[点击查看](/docs/vue/customize-theme-variable)。 +通过 theme 修改主题。 ## en-US -Modify global theme color by css variable. Css variable depends on the design, it may adjust so please do not directly use it. You can go to other components page for more detail style. [Check this](/docs/vue/customize-theme-variable) to view detail. +Modify theme by `theme` prop. + + diff --git a/components/theme/interface/seeds.ts b/components/theme/interface/seeds.ts index 22b07d81a..176cb5e26 100644 --- a/components/theme/interface/seeds.ts +++ b/components/theme/interface/seeds.ts @@ -4,6 +4,8 @@ import type { PresetColorType } from './presetColors'; // ====================================================================== // 🔥🔥🔥🔥🔥🔥🔥 DO NOT MODIFY THIS. PLEASE CONTACT DESIGNER. 🔥🔥🔥🔥🔥🔥🔥 +type BorderRadiusType = number | `${number}px` | `${number}%`; + export interface SeedToken extends PresetColorType { // ---------- Color ---------- // @@ -106,7 +108,7 @@ export interface SeedToken extends PresetColorType { * @descEN Border radius of base components * @desc 基础组件的圆角大小,例如按钮、输入框、卡片等 */ - borderRadius: number; + borderRadius: BorderRadiusType; // ---------- Size ---------- //