Browse Source

doc: fix theme editor bgcolor (#6358)

pull/6367/head
果冻橙 2 years ago committed by GitHub
parent
commit
5cc85f3cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      site/src/components/antdv-token-previewer/ThemeEditor.tsx
  2. 2
      site/src/components/antdv-token-previewer/token-panel-pro/ComponentDemoPro.tsx

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

@ -151,14 +151,6 @@ const ThemeEditor = defineComponent({
onInfoFollowPrimaryChange={onInfoFollowPrimaryChange}
/>
</div>
{/* <ComponentDemoPro
theme={theme.value}
components={antdComponents}
activeComponents={relatedComponents.value}
selectedTokens={computedSelectedTokens.value}
style={{ flex: 1, overflow: 'auto', height: '100%' }}
componentDrawer
/> */}
<ComponentDemoPro
theme={theme.value}
components={antdComponents}

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

@ -65,7 +65,7 @@ const ComponentDemoPro = defineComponent({
{...attrs}
style={{
...(attrs.style as CSSProperties),
background: (token as any).colorBgLayout,
background: token.value.colorBgLayout,
paddingBottom: '24px',
}}
>

Loading…
Cancel
Save