From c6eb1d3b0347c5da03a3bc821e7b0ce1b48b679f Mon Sep 17 00:00:00 2001 From: undefined Date: Thu, 10 Jul 2025 15:20:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20QIANXING1-860=20=E4=BF=AE=E5=A4=8D=20div?= =?UTF-8?q?ider=20=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/config-provider/hooks/useTheme.ts | 4 +++- components/divider/style/index.ts | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/components/config-provider/hooks/useTheme.ts b/components/config-provider/hooks/useTheme.ts index 027a1a694..4ef985e88 100644 --- a/components/config-provider/hooks/useTheme.ts +++ b/components/config-provider/hooks/useTheme.ts @@ -3,7 +3,9 @@ import { defaultConfig } from '../../theme/internal'; import type { Ref } from 'vue'; import { computed } from 'vue'; import devWarning from '../../vc-util/warning'; -const themeKey = 'antdvtheme'; +import { cssVarPrefix } from '../../theme/util/themeTokenUtil'; + +const themeKey = cssVarPrefix; export default function useTheme(theme?: Ref, parentTheme?: Ref) { const themeConfig = computed(() => theme?.value || {}); const parentThemeConfig = computed(() => diff --git a/components/divider/style/index.ts b/components/divider/style/index.ts index 453414392..c96b840ee 100644 --- a/components/divider/style/index.ts +++ b/components/divider/style/index.ts @@ -108,7 +108,7 @@ const genSharedDividerStyle: GenerateStyle = (token): CSSObject => }, }, - [`&-horizontal${componentCls}-with-text-start`]: { + [`&-horizontal${componentCls}-with-text-left`]: { '&::before': { width: `calc(${orientationMargin} * 100%)`, }, @@ -117,7 +117,7 @@ const genSharedDividerStyle: GenerateStyle = (token): CSSObject => }, }, - [`&-horizontal${componentCls}-with-text-end`]: { + [`&-horizontal${componentCls}-with-text-right`]: { '&::before': { width: `calc(100% - ${orientationMargin} * 100%)`, }, @@ -178,7 +178,7 @@ const genSharedDividerStyle: GenerateStyle = (token): CSSObject => fontSize: token.fontSize, }, - [`&-horizontal${componentCls}-with-text-start${componentCls}-no-default-orientation-margin-start`]: + [`&-horizontal${componentCls}-with-text-left${componentCls}-no-default-orientation-margin-left`]: { '&::before': { width: 0, @@ -193,7 +193,7 @@ const genSharedDividerStyle: GenerateStyle = (token): CSSObject => }, }, - [`&-horizontal${componentCls}-with-text-end${componentCls}-no-default-orientation-margin-end`]: + [`&-horizontal${componentCls}-with-text-right${componentCls}-no-default-orientation-margin-right`]: { '&::before': { width: '100%',