Skip to content

Commit 5cc85f3

Browse files
authored
doc: fix theme editor bgcolor (#6358)
1 parent f3935eb commit 5cc85f3

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

site/src/components/antdv-token-previewer/ThemeEditor.tsx

-8
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,6 @@ const ThemeEditor = defineComponent({
151151
onInfoFollowPrimaryChange={onInfoFollowPrimaryChange}
152152
/>
153153
</div>
154-
{/* <ComponentDemoPro
155-
theme={theme.value}
156-
components={antdComponents}
157-
activeComponents={relatedComponents.value}
158-
selectedTokens={computedSelectedTokens.value}
159-
style={{ flex: 1, overflow: 'auto', height: '100%' }}
160-
componentDrawer
161-
/> */}
162154
<ComponentDemoPro
163155
theme={theme.value}
164156
components={antdComponents}

site/src/components/antdv-token-previewer/token-panel-pro/ComponentDemoPro.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const ComponentDemoPro = defineComponent({
6565
{...attrs}
6666
style={{
6767
...(attrs.style as CSSProperties),
68-
background: (token as any).colorBgLayout,
68+
background: token.value.colorBgLayout,
6969
paddingBottom: '24px',
7070
}}
7171
>

0 commit comments

Comments
 (0)