generated from arvinxx/npm-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 补充 prefixCls 逻辑 (#10) * feat: 添加 easy-antd-modal cls 支持 antd CP 组件修改 * test: fix-test * fix: 修复 cls 处理逻辑 * feat: drawer 支持 antd CP prefixCls * feat: 添加处理class 前缀的逻辑 * feat: 支持 prefix 自定义 antd5 支持, 4 还是默认跟随 antd * chore: update examples * chore: 补充拖拽组件测试用例 * test: update test case * chore: 补充测试用例 * chore: 添加 antd4 依赖 * test: 补充测试用例 * test: add test case * chore(release): v1.4.0-beta.1 [skip ci] --------- Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
- Loading branch information
1 parent
25e2051
commit e88e9df
Showing
28 changed files
with
1,170 additions
and
46 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 |
---|---|---|
@@ -1,11 +1,26 @@ | ||
import { Button, Typography, version } from 'antd'; | ||
import Modal from 'easy-antd-modal'; | ||
import { DragModal, Drawer, Modal } from 'easy-antd-modal'; | ||
|
||
export default () => ( | ||
<> | ||
<Typography.Title level={2}>antd version: {version}</Typography.Title> | ||
<Modal title="easy-antd-modal" trigger={<Button type="primary">Click Me</Button>}> | ||
|
||
<Modal title="easy-antd-modal" trigger={<Button type="primary">Modal</Button>}> | ||
I ❤️ antd | ||
</Modal> | ||
|
||
<br /> | ||
<br /> | ||
|
||
<Drawer title="easy-antd-modal" trigger={<Button type="primary">Drawer</Button>}> | ||
I ❤️ antd | ||
</Drawer> | ||
|
||
<br /> | ||
<br /> | ||
|
||
<DragModal title="easy-antd-modal" trigger={<Button type="primary">DragModal</Button>}> | ||
I ❤️ antd | ||
</DragModal> | ||
</> | ||
); |
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,11 +1,26 @@ | ||
import { Button, Typography, version } from 'antd'; | ||
import Modal from 'easy-antd-modal'; | ||
import { DragModal, Drawer, Modal } from 'easy-antd-modal'; | ||
|
||
export default () => ( | ||
<> | ||
<Typography.Title level={2}>antd version: {version}</Typography.Title> | ||
<Modal title="easy-antd-modal" trigger={<Button type="primary">Click Me</Button>}> | ||
|
||
<Modal title="easy-antd-modal" trigger={<Button type="primary">Modal</Button>}> | ||
I ❤️ antd | ||
</Modal> | ||
|
||
<br /> | ||
<br /> | ||
|
||
<Drawer title="easy-antd-modal" trigger={<Button type="primary">Drawer</Button>}> | ||
I ❤️ antd | ||
</Drawer> | ||
|
||
<br /> | ||
<br /> | ||
|
||
<DragModal title="easy-antd-modal" trigger={<Button type="primary">DragModal</Button>}> | ||
I ❤️ antd | ||
</DragModal> | ||
</> | ||
); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.