clean99
1239910f66
test: change act import from utils use act wrap timer and not wrap fireEvent ( #36921 )
...
Co-authored-by: ian.xufeng <ian.xufeng@shopee.com>
2022-08-08 13:31:55 +08:00
Wuxh
16ecdbb58d
fix(modal): Modal.xxx onCancel close argument is not a function ( #36600 )
...
* fix(modal): fix the error of `onCancel` parameter of modal returned by `useModal`
resolve: 36581
ref: https://github.com/ant-design/ant-design/issues/36581#issuecomment-1189396007
* test(confirm): 补充 modal 测试用例
* test(modal): 添加测试用例
* Revert "fix(modal): fix the error of `onCancel` parameter of modal returned by `useModal`"
This reverts commit e4fcb3e62add63193ec9081b2c21e657379bebfb.
* fix(modal): fix modal onOk/onCancel method is not a valid function when there is a close parameter
closed : #36581
* chore: cancel the introduction of `noop` from third-party library
2022-07-23 16:04:23 +08:00
二货机器人
2c2c631bfd
chore: prettier components ( #36171 )
2022-06-22 14:57:09 +08:00
二货机器人
a67c0d28d3
fix: react 18 test fixing ( #34787 )
...
* fix: try fix
* chore: ci
* test: recover
* test: more test case
* test: more and mote
* test: btn test
* fix: react 18 compitable
* chore: more test
* test: all confirm test
* chore: tmp
* chore: test lib
* chore: tmp
* chore: tmp
* test: back of part
* test: back of menu index test
* test: more test
* test: form test
* test: rm IE11 test case
* chore: fix compatible
* chore: clean up
* chore: back of all test case
* test: ignore 18 lines
* chore: remove render test of enzyme in upload
* test: back of IE11 test case to fit 100% coverage
* chore: fix pkg deps
2022-04-06 11:07:15 +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
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
二货机器人
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
二货机器人
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
偏右
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
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
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
偏右
2788140d1a
Merge pull request #27137 from ant-design/master
...
chore: merge master into feature
2020-10-14 16:35:29 +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
偏右
c53e8ac4c9
test: ✅ add test cases to increase coverage ( #26410 )
2020-08-26 16:42:47 +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
二货机器人
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
vagusX
871ab3da81
feat: add waring for icon props in Avatar, Button, Modal.method and Result ( #20226 )
2019-12-13 10:18:12 +08:00
zombiej
7a12b2b1ae
merge master
2019-10-30 16:28:28 +08:00
He Linming
7691047882
fix: Modal icon position while no title ( #19419 )
...
* 🐛 fix Modal icon position
close #19389
not render title when Modal title is undefined.
* ✅ (Modal): add test for modal without title
2019-10-26 10:31:58 +08:00
zombiej
ef66edd0c2
merge master
2019-07-19 11:54:08 +08:00
jljsj
b5632d6eef
fix react 15 test
2019-07-15 14:33:56 +08:00
zombieJ
4cdf37bedb
feat: New Form ( #17327 )
...
* init form
* first demo
* add normal login
* add style
* webit
* support nest errors
* beauti form errors
* use onReset
* modal demo
* add list demo
* match key of errors logic
* date demo
* customize component
* moving style
* add status style
* without form create
* add demos
* add inline style
* clean up legacy
* fix drawer demo
* mention
* fix edit-row
* editable table cell
* update mentions demo
* fix some test case
* fix upload test
* fix lint
* part of doc
* fix ts
* doc update
* rm react 15
* rm config
* enhance test coverage
* clean up
* fix FormItem context pass logic
* add more demo
* en to build
* update demo
* update demo & snapshot
* more doc
* update list doc
* update doc
* update demo to display condition render
* update snapshot
* add provider doc
* support configProvider
* more doc about validateMessages
* more description
* more and more doc
* fix typo
* en doc
* Form.List doc
* m v3 -> v4
* add skip
2019-07-03 20:14:39 +08:00
Jason
db5da92f0c
Fix: Print reject error when ActionButton catch promise rejects
2019-05-09 12:24:59 +08:00
偏右
ad99b4322d
test: ✅ Add eslint-plugin-jest ( #15825 )
2019-04-03 15:54:26 +08:00
zombieJ
c80136a9a7
New Component: Typography ( #14250 )
...
* text with prefix
* add edit style
* support editable
* enhance accessibility & type experience
* optimize IME case
* support copy
* add locale
* add secondary & disabled
* add ellipsis shadow text
* split to 3 components
* update snapshot
* update desc
* change lines also need update ellipsis
* skip aria when is in ellipsis
* add ResizeObserver in _util
* update snapshot
* move TestBase into test file
* update test case
* update doc
* fix typo
* important => level
* use rows
* update demo cols to 1
* fix cssText not work in firefox
* update doc
* add miss point
* support extendable
* update snapshot
* fix doc
* copyable support string
* update snapshot
* update doc
* update doc desc
* adjust style
* full test
* reset after test
* rename
* update snapshot
* fix compile
* adjust style
* update desc
* update prefixCls
* update margin
* adjust
* nest wrap of tag content
* adjust style
* update comment
* rm %
* one more thing
* tmp of measure
* merge string as children
* update snapshot
* update testcase
* remove comment
* use internal variable for configProvider passing
* update snapshot
* use expandable instead of extendable
* less variable it
* update demo
* update less
* adjust code & mark style
* remove mark padding
* update measure logic
* support nest element style
* use childNode.textContent to fix react 15 error
* update css
* popout Typography
* add link style
* adjust doc
* use ellipsis instead of rows & expandable
* update doc
* update doc
* update doc & style
* fix typo
* add css ellipsis support
* client render
* update snapshot
* enhance copyable
* support onExpand
* update test case
* add test of css ellipsis
* fix logic in react 15
* rename onChange -> onSave
* use tagName of article
* fix lint
2019-02-19 11:42:05 +08:00
郑旭
b3df86a74f
fix destroyFns not reduce when instance.destroy() ( #14600 )
...
* fix destroyFns not reduce when instance.destroy()
* Use object destructuring prefer-destructuring
2019-01-30 10:46:30 +08:00
诸岳
21f0419ace
feat: Add mask prop for Modal method, close #14177 ( #14197 )
2019-01-10 01:21:51 +08:00
ztplz
08ce714db2
update dep ( #14131 )
2019-01-07 09:40:55 +08:00
tom
00109a0698
change Modal.destroy to Modal.destroyAll
2018-12-20 17:31:12 +08:00
tom
d9e0b33dbe
Modal.destroy():destroy all cofirm modal dialogs
2018-12-20 17:31:12 +08:00
陈帅
8e11f0bdb9
merge support prettier
2018-12-07 20:02:01 +08:00
黄文鉴
df9b20209c
fix: change modal's default prefixCls to ant-modal and ant-modal-confirm ( #12548 )
2018-10-12 14:04:26 +08:00
C.J. Winslow
b9a86b2ea1
Pass the ok and cancel button props in the confirm API ( #12425 )
...
This PR adds the `okButtonProps` and `cancelButtonProps` API to the `Modal.confirm` and associated methods.
* [x] Make sure that you propose PR to right branch: bugfix for `master`, feature for branch `feature`.
* [x] Make sure that you follow antd's [code convention](https://github.com/ant-design/ant-design/wiki/Code-convention-for-antd ).
* [x] Run `npm run lint` and fix those errors before submitting in order to keep consistent code style.
* [x] Rebase before creating a PR to keep commit history clear.
* [x] Add some descriptions and refer relative issues for you PR.
Extra checklist:
*isNewFeature* **:**
* [x] Update API docs for the component.
* [x] Update/Add demo to demonstrate new feature.
* [x] Update TypeScript definition for the component.
* [x] Add unit tests for the feature.
2018-09-30 14:50:03 +08:00
afc163
9fdee487ce
Add test case for modal update
2018-08-25 22:57:24 +08:00
afc163
3a445f3e75
more test cases
2018-05-25 21:43:21 +08:00
Wei Zhu
45815d1148
Refactor confirm ( #8409 )
...
* Refactor confirm
* Add okCancel test
* Only test React 16
* Upgrade rc-dialog
2017-12-02 22:10:27 +08:00
Wei Zhu
55c85f77a1
Update dependendies ( #8150 )
...
* deps: upgrade rc-menu, and close : #2837
* test: update snapshots
* Update rc-calendar
* Update rc-cascader
* Update rc-dialog
* Update dropdown
* Update rc-select@7.1.0
* Update rc-slider
* Update rc-time-picker
* Update rc-tooltip
* Update rc-tree-select
* Mock rc-trigger and Portal
* Fix animation warning when inlineCollapsed changes
* fix: should use SubMenu[popupClassName]
* Fix typescript error
* Fix lint
* fix: style for menu
* Mock rc-trigger for React 15
* Remvoe allow_failures
2017-11-11 00:07:03 +08:00
afc163
475e4ff23d
upgrade eslint-config-airbnb
2017-10-09 13:27:35 +08:00
Alex Chao
3727ea2c33
feat: Modal.confirm supports zIndex prop #6722 ( #6880 )
...
* Modal.confirm supports zIndex prop #6722
* Fix filename
* Fix the zIndex missing in ModalFuncProps interface
2017-08-07 10:41:38 +08:00