-
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.
🐛 fix(antd-dayjs-webpack-plugin): ant-design/antd-dayjs-webpack-plugi…
- Loading branch information
Showing
6 changed files
with
90 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,64 @@ | ||
## Launch | ||
|
||
支持各种意图,类似android的Action | ||
支持各种意图,类似 android 的 Action | ||
|
||
### API | ||
|
||
#### LaunchQQ | ||
|
||
| 参数 | 说明 | 类型 | 必选 | 默认值 | | ||
|----------|------------------------------------------|-------------|-------|-------| | ||
| qq | QQ | string | true | - | | ||
| 参数 | 说明 | 类型 | 必选 | 默认值 | | ||
| ---- | ---- | ------ | ---- | ------ | | ||
| qq | QQ | string | true | - | | ||
|
||
#### LaunchUrl | ||
|
||
|
||
| 参数 | 说明 | 类型 | 必选 | 默认值 | | ||
|----------|------------------------------------------|-------------|-------|-------| | ||
| url | url | string | true | - | | ||
| open | 是否打开 | bool | false | false | | ||
| copy | 是否复制 | bool | false | false | | ||
|
||
| 参数 | 说明 | 类型 | 必选 | 默认值 | | ||
| ---- | -------- | ------ | ----- | ------ | | ||
| url | url | string | true | - | | ||
| open | 是否打开 | bool | false | false | | ||
| copy | 是否复制 | bool | false | false | | ||
|
||
#### LaunchImg | ||
|
||
|
||
| 参数 | 说明 | 类型 | 必选 | 默认值 | | ||
|----------|------------------------------------------|-------------|-------|-------| | ||
| src | 图片列表 | string[] | true | - | | ||
| icon | 图标 | React.ReactNode | false | `<PictureOutlined/>` | | ||
| 参数 | 说明 | 类型 | 必选 | 默认值 | | ||
| ---- | -------- | --------------- | ----- | -------------------- | | ||
| src | 图片列表 | string[] | true | - | | ||
| icon | 图标 | React.ReactNode | false | `<PictureOutlined/>` | | ||
|
||
#### LaunchMobile | ||
|
||
|
||
| 参数 | 说明 | 类型 | 必选 | 默认值 | | ||
|----------|------------------------------------------|-------------|-------|-------| | ||
| mobile | 手机号 | string | true | - | | ||
| icon | 图标 | React.ReactNode | false | `<PhoneOutlined/>` | | ||
|
||
| 参数 | 说明 | 类型 | 必选 | 默认值 | | ||
| ------ | ------ | --------------- | ----- | ------------------ | | ||
| mobile | 手机号 | string | true | - | | ||
| icon | 图标 | React.ReactNode | false | `<PhoneOutlined/>` | | ||
|
||
### 代码演示 | ||
|
||
```tsx | ||
import React from 'react'; | ||
import {LaunchQQ,LaunchUrl,LaunchImg,LaunchMobile} from './index' | ||
import { LaunchQQ, LaunchUrl, LaunchImg, LaunchMobile } from './index'; | ||
|
||
export default () =>{ | ||
|
||
export default () => { | ||
return ( | ||
<div> | ||
<div> | ||
<LaunchQQ qq={'597985317'}/> | ||
<LaunchQQ qq={'597985317'} /> | ||
</div> | ||
<div> | ||
<LaunchUrl url={"https://baidu.com"} open={true} copy={true} /> | ||
<LaunchUrl url={'https://baidu.com'} open={true} copy={true} /> | ||
</div> | ||
<div> | ||
<LaunchImg src={['https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png','https://preview.pro.ant.design/favicon.ico']} /> | ||
<LaunchImg | ||
src={[ | ||
'https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png', | ||
'https://preview.pro.ant.design/favicon.ico', | ||
]} | ||
/> | ||
</div> | ||
<div> | ||
<LaunchMobile mobile={'13000000000'} /> | ||
</div> | ||
</div> | ||
) | ||
); | ||
}; | ||
``` |
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