Skip to content

Commit

Permalink
feat: 补充 prefixCls 逻辑 (#11)
Browse files Browse the repository at this point in the history
* 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
Wxh16144 and semantic-release-bot authored Aug 14, 2023
1 parent 25e2051 commit e88e9df
Show file tree
Hide file tree
Showing 28 changed files with 1,170 additions and 46 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# [1.4.0-beta.1](https://github.com/Wxh16144/easy-antd-modal/compare/v1.3.0...v1.4.0-beta.1) (2023-08-14)

### Features

- 补充 prefixCls 逻辑 ([#10](https://github.com/Wxh16144/easy-antd-modal/issues/10)) ([287bfde](https://github.com/Wxh16144/easy-antd-modal/commit/287bfdede391840b3b85d3987667724fa9d29e0f))

# [1.3.0](https://github.com/Wxh16144/easy-antd-modal/compare/v1.2.1...v1.3.0) (2023-08-11)

### Features
Expand Down
19 changes: 17 additions & 2 deletions examples/with-antd4/src/App.tsx
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>
</>
);
19 changes: 17 additions & 2 deletions examples/with-antd5/src/App.tsx
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>
</>
);
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "easy-antd-modal",
"version": "1.3.0",
"version": "1.4.0-beta.1",
"description": "二次开发, 简化 Ant Design Modal 的使用方式",
"keywords": [
"antd",
Expand Down Expand Up @@ -104,6 +104,7 @@
"@types/testing-library__jest-dom": "^5",
"@umijs/lint": "^4",
"@vitest/coverage-v8": "latest",
"antd4": "npm:antd@4",
"commitlint": "^17",
"concurrently": "^7",
"cross-env": "^7",
Expand Down
36 changes: 3 additions & 33 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e88e9df

Please sign in to comment.