-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from Pivot-Studio/feature-component-router
组件路由分离
- Loading branch information
Showing
22 changed files
with
442 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,9 @@ | |
"extensions": [".tsx", ".ts"] | ||
} | ||
} | ||
}, | ||
"rules": { | ||
"import/extensions": 0, | ||
"import/no-unresolved": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
margin: 0; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
color: inherit; | ||
} | ||
body, | ||
html, | ||
#root { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import { Button } from 'pivot-design'; | ||
import ButtonMdx from '@/components/Button/index.mdx'; | ||
import CodeBlock from '@/components/_CodeBlock/codeBlock'; | ||
import { list } from '@/components/Button/.catalog'; | ||
import { renderCatalog } from '@/utils'; | ||
|
||
const ButtonPage: React.FC = () => { | ||
return ( | ||
<> | ||
<ButtonMdx components={{ Button, CodeBlock }} /> | ||
<div className="demo-component-catalogue"> | ||
{renderCatalog(list)} | ||
{/* {select === 'Draggable' && renderCatalog(DraggableList)} | ||
{select === 'Button' && renderCatalog(ButtonList)} | ||
{select === 'Card' && renderCatalog(CardList)} | ||
{select === 'Skeleton' && renderCatalog(SkeletonList)} | ||
{select === 'Popover' && renderCatalog(PopoverList)} | ||
{select === 'Input' && renderCatalog(InputList)} | ||
{select === 'Icon' && renderCatalog(IconList)} | ||
{select === 'Transition' && renderCatalog(TransitionList)} */} | ||
</div> | ||
</> | ||
); | ||
}; | ||
export default ButtonPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import { Card } from 'pivot-design'; | ||
import CardMdx from '@/components/Card/index.mdx'; | ||
import CodeBlock from '@/components/_CodeBlock/codeBlock'; | ||
import { list } from '@/components/Card/.catalog'; | ||
import { renderCatalog } from '@/utils'; | ||
const CardPage: React.FC = () => { | ||
return ( | ||
<> | ||
<CardMdx components={{ Card, CodeBlock }} /> | ||
<div className="demo-component-catalogue">{renderCatalog(list)}</div> | ||
</> | ||
); | ||
}; | ||
export default CardPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import DraggableMdx from '@/components/Draggable/index.mdx'; | ||
import CodeBlock from '@/components/_CodeBlock/codeBlock'; | ||
import { list } from '@/components/Draggable/.catalog'; | ||
import { renderCatalog } from '@/utils'; | ||
const DraggablePage: React.FC = () => { | ||
return ( | ||
<> | ||
<DraggableMdx components={{ CodeBlock }} /> | ||
<div className="demo-component-catalogue">{renderCatalog(list)}</div> | ||
</> | ||
); | ||
}; | ||
export default DraggablePage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import { Icon } from 'pivot-design'; | ||
import IconMdx from '@/components/Icon/index.mdx'; | ||
import CodeBlock from '@/components/_CodeBlock/codeBlock'; | ||
import { list } from '@/components/Icon/.catalog'; | ||
import { renderCatalog } from '@/utils'; | ||
|
||
const IconPage: React.FC = () => { | ||
return ( | ||
<> | ||
<IconMdx components={{ Icon, CodeBlock }} /> | ||
<div className="demo-component-catalogue">{renderCatalog(list)}</div> | ||
</> | ||
); | ||
}; | ||
export default IconPage; |
Oops, something went wrong.