-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(storybook): fix storybook and bugs (#1502)
Co-authored-by: zhujiahong <zhujiahong@growingio.com>
- Loading branch information
Showing
37 changed files
with
351 additions
and
169 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
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
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
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,37 @@ | ||
import React from 'react'; | ||
import { Canvas, Title, Heading, Story, Subheading, ArgsTable } from '@storybook/addon-docs'; | ||
import { useIntl } from 'react-intl'; | ||
import Cascader from '../index'; | ||
|
||
export default function CardPage() { | ||
const { formatMessage } = useIntl(); | ||
|
||
return ( | ||
<> | ||
<Title>{formatMessage({ defaultMessage: 'Cascader 级联选择器' })}</Title> | ||
<p> | ||
{formatMessage({ | ||
defaultMessage: '递进式选择器', | ||
})} | ||
</p> | ||
<p>Upgrading Guide</p> | ||
<ul> | ||
<li>null</li> | ||
</ul> | ||
<Heading>{formatMessage({ defaultMessage: '代码演示' })}</Heading> | ||
<Subheading>{formatMessage({ defaultMessage: '样例' })}</Subheading> | ||
|
||
<Canvas> | ||
<Story id="upgraded-cascader--demo" /> | ||
</Canvas> | ||
<Subheading>{formatMessage({ defaultMessage: '简单结构' })}</Subheading> | ||
|
||
<Canvas> | ||
<Story id="upgraded-cascader--default" /> | ||
</Canvas> | ||
|
||
<Heading>{formatMessage({ defaultMessage: '参数说明' })}</Heading> | ||
<ArgsTable of={Cascader} /> | ||
</> | ||
); | ||
} |
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
Oops, something went wrong.
104a427
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: