mirror of
https://github.com/zhigang1992/react.git
synced 2026-03-26 06:55:07 +08:00
docs(image): fix image types (#377)
* fix(image): image width & height types in docs. Fixed types of Image component's width & height in documentation. * fix: typo in contributing.md
This commit is contained in:
committed by
GitHub
parent
c2b5c75908
commit
b7cad18490
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
@@ -10,7 +10,7 @@ For basic operation of Git, you can refer to [GitHub's help documentation](https
|
||||
1. [Fork this repository](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) to your own account and then clone it.
|
||||
2. Create a new branch for your changes: `git checkout -b {BRANCH_NAME}`.
|
||||
3. Install [Yarn](https://classic.yarnpkg.com/en/docs/install#mac-stable) and then update project dependenices: `yarn`.
|
||||
4. Run `yarn dev` and view your changes on your local document site. (If you add a new document page, you need to run `yarn dev` agian)
|
||||
4. Run `yarn dev` and view your changes on your local document site. (If you add a new document page, you need to run `yarn dev` again)
|
||||
|
||||
At any time, you think it's ok, you can start the following steps to submit your amazing works:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Display image content.
|
||||
title="Basic"
|
||||
scope={{ Image }}
|
||||
code={`
|
||||
<Image width="540" height="160" src="/images/custom-domains.png" />
|
||||
<Image width={540} height={160} src="/images/custom-domains.png" />
|
||||
`}
|
||||
/>
|
||||
|
||||
@@ -23,7 +23,7 @@ Display image content.
|
||||
desc="`Image` will show skeleton animation after `width` and `height` props are set."
|
||||
scope={{ Image }}
|
||||
code={`
|
||||
<Image width="540" height="160"
|
||||
<Image width={540} height={160}
|
||||
src="http://www.deelay.me/2000/https://react.geist-ui.dev/images/custom-domains.png" />
|
||||
`}
|
||||
/>
|
||||
@@ -34,7 +34,7 @@ Display image content.
|
||||
scope={{ Image, Display, Code }}
|
||||
code={`
|
||||
<Image.Browser url="https://react.geist-ui.dev/en-us/guide/introduction" anchorProps={{ rel: 'nofollow' }}>
|
||||
<Image width="540" height="246" src="https://user-images.githubusercontent.com/11304944/76085431-fd036480-5fec-11ea-8412-9e581425344a.png" />
|
||||
<Image width={540} height={246} src="https://user-images.githubusercontent.com/11304944/76085431-fd036480-5fec-11ea-8412-9e581425344a.png" />
|
||||
</Image.Browser>
|
||||
`}
|
||||
/>
|
||||
@@ -44,7 +44,7 @@ Display image content.
|
||||
scope={{ Image, Display, Code }}
|
||||
code={`
|
||||
<Image.Browser url="https://react.geist-ui.dev/en-us/guide/introduction" invert>
|
||||
<Image width="540" height="246" src="https://user-images.githubusercontent.com/11304944/76085431-fd036480-5fec-11ea-8412-9e581425344a.png" />
|
||||
<Image width={540} height={246} src="https://user-images.githubusercontent.com/11304944/76085431-fd036480-5fec-11ea-8412-9e581425344a.png" />
|
||||
</Image.Browser>
|
||||
`}
|
||||
/>
|
||||
@@ -55,7 +55,7 @@ Display image content.
|
||||
scope={{ Image, Display, Code }}
|
||||
code={`
|
||||
<Display shadow caption={<p>Set the <Code>height</Code> to reduces the possibility of page rerender.</p>}>
|
||||
<Image width="540" height="246" src="/images/branch-domains.png" />
|
||||
<Image width={540} height={246} src="/images/branch-domains.png" />
|
||||
</Display>
|
||||
`}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user