Commit Graph

111 Commits

Author SHA1 Message Date
二货机器人
31fb55adf3
chore: btn default provide default cls (#34013) 2022-02-11 15:02:59 +08:00
zombiej
6ed4d855b1 Merge remote-tracking branch 'origin/master' into feature-merge-master 2021-12-27 10:45:42 +08:00
二货机器人
2df11184f4
test: Demo check popup content (#33378)
* auto demo

* chore: update demo snapshot

* fix: trigger mock ref logic

* chore: try 2 test case

* chore: more snapshot

* chore: update snapshot

* chore: fix ts

* chore: split test

* test: Update test case

* chore: fix test order
2021-12-23 11:51:10 +08:00
zombiej
24ec3ba662 chore: merge master 2021-11-26 10:15:39 +08:00
benben
30844793a2
fix: Modal.method bodyStyle not working (#32934)
* fix: Modal.method bodyStyle失效

* test: Modal.method bodyStyle失效

* Apply suggestions from code review

Co-authored-by: 晋文涛 <jinwentao@zhaojiafang.com>
Co-authored-by: afc163 <afc163@gmail.com>
2021-11-18 18:29:29 +08:00
afc163
8cd4c24afc chore: fix modal demo in small screen 2021-09-13 19:27:31 +08:00
afc163
7085e22a96 merge feature into master 2021-08-31 13:35:13 +08:00
xrkffgg
c1a539b696
test: add modal hook content with direction (#31882) 2021-08-23 19:59:04 +08:00
afc163
8416e31821 chore: resolve conflict between master and feature 2021-08-23 17:48:23 +08:00
zhyupe
4097a6c7c6
fix: circular dependencies in Modal & Input (#31817)
* fix(input): fix circular dependencies

* fix(input): fix circular dependencies

* fix(modal): fix circular dependencies

* fix(modal): fix test
2021-08-17 16:22:42 +08:00
github-actions[bot]
442ef88a91
chore: auto merge branchs (#31308)
chore: sync master into feature
2021-07-08 05:42:19 +00:00
afc163
af1d176d70 test: update snapshot 2021-07-08 12:58:11 +08:00
二货机器人
eb70f00513
feat: ConfigProvider static function support iconPrefixCls (#30925)
* feat: Static iconPrefixCls

* feat: message & notification support iconPrefixCls

* docs: Update doc

* chore: Force update

* fix: ts def
2021-06-09 15:36:59 +08:00
二货机器人
992b99c011
fix: Modal hooks update & destroy (#29584)
* fix: Modal update before render

* test: Add test case

* test: More test
2021-03-02 18:52:47 +08:00
二货机器人
2e5c848799
fix: message with prefixCls should not break (#29574)
* fix: compitable for legacy usage

* chore: Add modal warning

* fix lint

* test: ConfigProvider.config
2021-03-02 11:53:12 +08:00
叶枫
10c326ee94
feat: 添加全局静态配置 (#29285)
* feat: 添加全局静态配置

* chore: change globalConfig

* chore: change globalPrefixCls

* chore: review

* feat: 恢复 message 静态 prefix

* feat: modal

* feat: notification

* fix: prefix

* fix: prefix

* fix: 添加 test

* chore: review

* docs: doc

* chore: en

* chore: test

* fix: notification config set empty

* chore: link

* chore: change name

* chore: doc

* chore: doc
2021-02-09 21:49:15 +08:00
叶枫
6e89866694
feat: 动画样式添加 prefix (#29268)
* feat: add prefix

* fix: 剩余

* fix: test

* fix: test

* fix: test

* fix: test

* fix: 传了 name 则使用传的

* fix: pop 添加 prefix

* fix: Ok OK ?

* fix: modal confirm

* fix: select

* fix: test
2021-02-08 17:09:13 +08:00
骗你是小猫咪
194699292a
chore: upgrade rc-dialog and rc-drawer (#28687)
* chore: upgrade rc-dialog and rc-drawer

* upgrade rc-util

* update snapshots

* upgrade rc-util

* upgrade rc-util

* update snapshots

* upgrade rc-dialog
2021-01-07 16:20:09 +08:00
偏右
1b24bbea90
test(): fix Modal coverage (#28402) 2020-12-17 17:59:16 +08:00
偏右
474dce90dc
Merge pull request #28273 from ant-design/master
chore: merge master into feature
2020-12-09 17:54:36 +08:00
dependabot[bot]
775d1800bb
chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0 (#28253)
* chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0

Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.15.0 to 7.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.15.0...v7.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix eslint style

* chore: prettier code style

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2020-12-09 17:12:32 +08:00
liuchao233
f3ff21eca6
feat: Modal.method support afterClose (#28053)
* Modal.method support afterClose

* Update index.en-US.md

* Update index.zh-CN.md

* docs(dropdown): improve demo (#28032)

* Modal.method support afterClose

* add afterClose test case

* resolve conflix

* Update index.en-US.md

Co-authored-by: 偏右 <afc163@gmail.com>
Co-authored-by: Tom Xu <ycxzhkx@gmail.com>
2020-12-07 13:44:06 +08:00
二货机器人
6fcebabd8b
Merge pull request #27738 from ant-design/feature
chore: merge feature into master
2020-11-30 16:17:12 +08:00
JuniorTour
e063a3a139
fix: hook modal not trigger onCancel (#28063) 2020-11-30 15:25:36 +08:00
He Linming
0ca5326176
feat: Support closeIcon of Modal.method (#27909)
* feat: Support closeIcon of Modal.method

close #27900

* style: update modal conform close style

* test: update unit test for close button of confirm modal

* docs: update api doc

* refactor: reuse modal close button

* test: update unit test

* feat: add closable api for ConfirmDialog

* chore: use default props

* Update default.less

Co-authored-by: 偏右 <afc163@gmail.com>
2020-11-21 21:13:28 +08:00
偏右
e7bed7cff7
perf(📦): upgrade @ant-design/colors and remove rc-trigger from deps (#27761)
* perf(📦): upgrade @ant-design/colors

* move rc-trigger to devDeps

* fix lint

* update snapshot

* update snapshot

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2020-11-14 00:43:12 +08:00
Tom Xu
7be4339806 Merge branch 'feature' into merge 2020-10-24 20:53:34 +08:00
Mongkii
ab4aeca60a
feat: modal.update() supports functional updating (#27162) (#27163)
* feat: modal.update() supports functional updating (#27162)

* docs: add version tip for modal.update() api
2020-10-24 14:35:00 +08:00
骗你是小猫咪
6fba4d1136
test: demo -> ui test (#24475)
* test: demo -> ui test

* improve comment image width

* use argos-ci

* use by cicleci

* fix circle run

* rebase master

* try pipeline var

* use another branch var

* fix commit id

* ignore image test file

* remove useless report

* fix test coverage
2020-10-23 18:50:46 +08:00
偏右
2788140d1a
Merge pull request #27137 from ant-design/master
chore: merge master into feature
2020-10-14 16:35:29 +08:00
偏右
c7e51aba13
test: fix modal test cases (#27143)
* test:  fix modal test cases

* 🆙 upgrade remark-lint
2020-10-14 14:52:26 +08:00
二货机器人
442c146e3c
refator: update rc-dialog to remove rc-animate (#26940)
* chore: bump rc-dialog

* fix 1 test case

* test case

* more test

* fix confirm test case

* clean up

* fix snapshot

* update local-provider snapshot

* update Modal snapshot

* fix test of dialog hook

* fix lint
2020-09-29 19:33:37 +08:00
二货机器人
b713f457f0
Merge pull request #26630 from ant-design/master
chore: merge master into feature
2020-09-07 23:10:36 +08:00
Tanmoy Bhowmik
6d2854264a
fix: Modal width out of screen (#25765)
* style(modal): add max-width

* chore(modal): add custom width demo

* test(modal): add custom width snapshot

* Update modal.less

* Update modal.less

* Update width.md

* Update demo.test.js.snap

Co-authored-by: 偏右 <afc163@gmail.com>
2020-09-03 16:29:40 +08:00
zhangj
0c521962e7
feat: Update rc-dialog to 8.3.0, support Modal drag and drop. (#26507)
* feat: 更新到rc-dialog@8.3.0 添加Modal组件对拖拽的支持。

* fix: test case

* Update components/drawer/index.en-US.md

Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>

* fix: 修复文档版本修改为4.7.0, 文档的order改为13最后一个,指针改为move

* fix: 修改API的顺序,按照字母顺序进行排列

* fix: 修复一些讨论的问题

* fix: test case

* fix: 修改Demo的Modal的Button的显示方式,进行竖着排列

* docs: 去掉多余的demo

Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
2020-09-03 12:36:06 +08:00
偏右
c53e8ac4c9
test: add test cases to increase coverage (#26410) 2020-08-26 16:42:47 +08:00
二货机器人
9fdad14dc0
fix: useModal missing prefix (#25967)
* fix: useModal hooks missing style

* add test case
2020-08-03 11:41:08 +08:00
afc163
508cecd0a7 merge feature into master-to-merge-feature 2020-07-21 16:23:13 +08:00
Amour1688
453f7d13f3
docs: optimize modal docs (#25724)
* docs: optimize modal docs

* docs: remove <br />
2020-07-21 12:26:56 +08:00
偏右
188b4c75d5
Merge pull request #25657 from ant-design/master
chore: merge master into feature
2020-07-16 14:39:37 +08:00
afc163
77ed923fba docs: 🎬 import Modal demo 2020-07-16 13:51:48 +08:00
偏右
cf42a16505
feat: Modal.config rootPrefixCls (#25613)
* feat: Modal.config rootPrefixCls

* fix tsd
2020-07-14 18:43:55 +08:00
偏右
f7ed77b52f
feat: support Modal.config for prefixCls (#25603)
* chore: refactor test cases

*  support Modal.config

* fix lint

* remove extra default prefixCls value

* fix tsd

* docs: fix api

* Update components/message/index.en-US.md

Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
Co-authored-by: xrk <xrkffgg@gmail.com>
2020-07-14 11:14:46 +08:00
Tom Xu
50fe770458
refactor(modal): rewrite with hook and support strict mode (#24238)
* refactor(modal): rewrite with hook and support strict mode

* Update ActionButton.tsx

* improve code
2020-05-19 20:15:51 +08:00
偏右
4dccbd8eab
style: add @modal-close-color (#24053)
* 🆕 Add @modal-close-color

close #24050

* update snapshot

* fix var name
2020-05-11 20:08:46 +08:00
二货机器人
dff19af744
chore: Update Popconfirm & Modal okType type (#23867)
* chore: Update Popconfirm & Modal okType type

* add test case

* update test case
2020-05-05 12:03:16 +08:00
二货机器人
1489903d9d
fix: Modal async (#23826)
* make async

* fix tesst
2020-05-03 00:53:32 +08:00
偏右
f4c489553f
fix: Modal.info onOk execute times (#23360)
* refactor: modal confirm onOk code

* fix: Modal.xxx onOk execute time when has close argument

close #23358

* Add test case

* fix lint
2020-04-18 01:09:14 +08:00
偏右
8dbaf66c2b
fix: confirm button should only trigger once (#22963)
close #22861
2020-04-06 21:57:51 +08:00
偏右
ed6e8760e5
fix snapshot (#22445) 2020-03-20 18:43:47 +08:00