Skip to content

Commit

Permalink
feat: 不同页面classname
Browse files Browse the repository at this point in the history
  • Loading branch information
kongjing committed May 19, 2023
1 parent aa83428 commit 42287c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/doc/src/components/pageLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 92,12 @@ export default function PageLayout() {
>
{/** @ts-ignore */}
<UrlConext.Provider value={[currentUrl, setCurrentUrl]}>
<div className={`${preCls}-container`}>
<div
className={`${preCls}-container ${preCls}-container-${currentUrl.replace(
/\//g,
'-',
)}`}
>
<Header
links={docsConfig?.headerLinks || []}
title={docsConfig?.title || ''}
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18415,6 18415,11 @@ svgo@^1.0.0:
unquote "~1.1.1"
util.promisify "~1.0.0"

swc-loader@^0.2.3:
version "0.2.3"
resolved "https://registry.npmjs.org/swc-loader/-/swc-loader-0.2.3.tgz#6792f1c2e4c9ae9bf9b933b3e010210e270c186d"
integrity sha512-D1p6XXURfSPleZZA/Lipb3A8pZ17fP4NObZvFCDjK/OKljroqDpPmsBdTraWhVBqUNpcWBQY1imWdoPScRlQ7A==

synckit@^0.8.5:
version "0.8.5"
resolved "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz#b7f4358f9bb586337f9f167eb6bc46b3c9818fa3"
Expand Down

0 comments on commit 42287c6

Please sign in to comment.