Commit Graph

79 Commits

Author SHA1 Message Date
yykoypj
43d45330c5
feat: switch visible to open for Tooltip & Popover & Popconfirm (#36807)
* feat: switch visible to open for Tooltip

* feat: switch visible to open for Popover

* feat: switch visible to open for Popconfirm

* fix

* chore: resolve conflict

* test: fix test case

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-24 21:34:17 +08:00
二货机器人
f654b6cce0
feat: Popconfirm support PurePanel (#36538)
* refactor: move popconfirm content out

* fix: lint

* chore: use locale
2022-07-15 15:28:09 +08:00
zombiej
3ffd0d8a46 chore: next merge master 2022-07-15 11:23:50 +08:00
二货机器人
006c055cf8
refactor: move popconfirm content out (#36530)
* refactor: move popconfirm content out

* fix: lint
2022-07-15 11:11:50 +08:00
二货机器人
8a0764dd69
feat: Tooltip support pure render (#36512)
* chore: init

* feat: Pure Panel Tooltip

* test: snapshot

* chore: clean up
2022-07-13 23:06:28 +08:00
二货机器人
0ecddfdb0d
refactor: Popconfirm cssinjs (#35683)
* chore: init

* chore: part of

* fix: Buttons style

* chore: refactor dom structure

* test: Update snapshot

* test: more coverage
2022-05-23 20:34:20 +08:00
二货机器人
8a6874cba3
refactor: align with popover (#35676) 2022-05-23 15:41:59 +08:00
Tom Xu
1719748a29
chore: eslint add consistent-type-imports (#35419)
* chore: eslint add consistent-type-imports

* fix avatar

* Update Item.tsx
2022-05-07 14:31:54 +08:00
二货机器人
b51c900847
refactor: rm useDestroy hook (#34418) 2022-03-10 18:54:32 +08:00
MadCcc
3effa51572 refactor: refactor useMounted to useDestroyed 2021-12-29 17:10:16 +08:00
MadCcc
285e2bd9ea refactor: refactor useMountedRef to useMounted 2021-12-29 14:42:00 +08:00
MadCcc
6d098783fc test: add test for react memory leak warning in Popconfirm 2021-12-29 11:31:50 +08:00
MadCcc
19e4b578d9 chore: revert import order change 2021-12-28 17:23:43 +08:00
MadCcc
727e394d75 feat: add useMountedRef hook 2021-12-28 17:21:00 +08:00
MadCcc
1d738d1902 fix: not allow setState in Popconfirm if unmounted 2021-12-27 18:06:46 +08:00
WeijieChen
16bb5489e6
feat: add showCancel prop for popconfirm (#32620)
Co-authored-by: machixian <machixian@myweimai.com>
2021-10-26 19:12:08 +08:00
Wendell
5ddd9e6b97
feat(module:popconfirm): support closing based on promise (#30871)
* feat(module:popconfirm): support closing based on promise

fix: typos

fix: fix tests

fix: fix ActionButton for Popconfirm

* chore: cleanup

* test: add test
2021-06-09 12:18:52 +08:00
Ignatius Aggrey
e32c881cd0
fix: Change type of Popconfirm props: okButtonProps to ButtonProps (#29928)
* Change type of Popconfirm props: okButtonProps to ButtonProps

According to the Popconfirm API docs the type of the type of the props okButtonProps and cancelButtonProps is ButtonProps In the actual code however it is was typed as NativeButtonProps causing type errors when using ButtonProps like 'href'

* fix: Remove unused NativeButtonProps
2021-03-31 09:42:13 +08:00
二货机器人
53142ef237
refactor: rc-tooltip use motion config (#29555)
* refactor: internal add deadline & fix defaultVisible logic

* back of demo
2021-03-01 17:25:30 +08:00
afc163
99c2c2ff0b
refactor: use optional chaining instead of if (#29368)
* refactor: use optional chaining instead of if

* revert some code
2021-02-19 18:26:53 +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
偏右
bc950d9a24
fix: Tooltip/Popover children type (#26534)
close #26517
2020-09-02 15:35:49 +08:00
xrkffgg
309c8d4404
style: add @zindex-popoconfirm (#25693)
* style: adjust @zindex-popover

* add ant-popconfirm

* update snap
2020-07-20 13:39:28 +08:00
偏右
c93400d375
feat: ⌨️ Popconfirm can be closed by pressing ESC (#24420)
* feat: support ESC to close Popconfirm

close #15203

* add test case

* fix focus in other element inside inner-content

* no fit

* fix snapshot

* refactor it

* use util cloneElement

* fix test case
2020-05-25 17:43:59 +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
Tom Xu
48ee1a68c6
refactor(popconfirm): rewrite with hook (#23536)
* refactor(popconfirm): rewrite with hook

* fix lint
2020-04-26 22:24:13 +08:00
偏右
cff8c08286
🔨 simplify Popconfirm and Popover dom structure (#22052) 2020-03-10 15:17:23 +08:00
Gibson C
428f743b50
feat: Support render props for <Popover/> and <Popconfirm/> (#22034)
* feat: Support render props for <Popover/>

* feat: Support render props for <Popconfirm/>

* docs: Update Popconfirm docs
2020-03-10 13:57:02 +08:00
二货机器人
adb323cec2
chore: icons save bundle size without treeShaking (#21752)
* alert

* more icons

* another grouping

* all done
2020-03-02 12:09:38 +08:00
偏右
8501b708ea refactor: 📦 smaller bundlesize limit (#20356)
* 📦 samller bundlesize limit

* 🗑️ remove React static PropTypes

* 🗑️ remove react-lifecycles-compat

* 🗑️ remove matchMedia polyfill

* 🗑️ remove Transfer buggy lazy prop

* 🗑️ remove enquire.js dep

* 🗑️ remove Transfer lazy related code and fix ci

* 🗑️ remove used dom-closest

*  replace dom-scroll-into-view to scroll-into-view for bundle size

*  fix eslint

* 🆙 upgrade browserslist

*  fix test cases

* 🗑️ remove @ant-design/create-react-context

* 🆙 upgrade @ant-design/bisheng-plugin

* 🆙 upgrade rc-slider

*  fix ci

* 🆙 upgrade rc-tabs and rc-mentions

* 📦 scroll-into-view -> scroll-into-view-if-needed

* remove unused devDep

* docs: 📝 update instruction about IE9/10

* 📦 reduce css bundle size by drop IE9/10 support

* 🆙 upgrade rc-upload

* 🗑️ drop unused swing motion css

*  update upload snapshots

* 📦 lift css bundlesize limit to 55kb
2019-12-23 18:33:08 +08:00
vagusX
149729e524
use ant design icons 4.0 (#18217)
* feat: use @ant-design/icons@4.0

* feat: use createFromIconfontCN to make site works

* feat: update doc for Icon

* feat: use icon in component Alert

* feat: use icon in component Avatar

* feat: use icon in component Breadcrumb

* feat: use icon in component Button

* feat: use icon in component Cascader

* feat: use icon in component Collapse

* feat: use icon in component Datepicker

* feat: use icon in component Dropdown

* feat: use icon in component Form

* feat: use icon in component Input

* feat: use icon in component InputNumber

* feat: use icon in component Layout

* feat: use icon in component Mention

* feat: use icon in component Message

* feat: use icon in component Modal

* feat: use icon in component Notification

* feat: use icon in component PageHeader

* feat: use icon in component Pagination

* feat: use icon in component Popconfirm

* feat: use icon in component Progress

* feat: use icon in component Rate

* feat: use icon in component Result

* feat: use icon in component Select

* feat: use icon in component Step

* feat: use icon in component Switch

* feat: use icon in component Table

* feat: use icon in component Tab

* feat: use icon in component Tag

* feat: handle rest component which using Icon

* fix: remove unused vars

* feat: use latest alpha ant design icons

* fix: failed test in uploadlist.test.js

* test: update snapshot for icons

* doc: add Icon for site

* doc: use @ant-design/icons in site

* chore: use latest icons

* fix: tslint issue

* fix: test cases

* fix: types for react

* fix: lint rules for import orders

* fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render

* fix: eslint error in demo/**.md

* inject antd icons

* update snapshot

* fix site

* doc: update docs

* fix: code snippets icon in site

* feat: use latest @ant-design/icons

* fix: icon props in message
2019-08-13 14:07:17 +08:00
orzyyyy
63b33d4020 fix: unexpected changes of snapshots 2019-08-06 15:36:12 +08:00
zombieJ
81d8eb8afe
feat: ConfigProvider support locale (#17816)
* ConfigProvider support locale

* update docs

* update category

* clean up

* moving locale

* update check script

* update related code

* add test case

* demo link

* update doc

* hide one rule of md with eslint

* update error link
2019-07-24 10:34:55 +08:00
afc163
d3db99f882
resolve conflict and merge feature branch 2019-06-26 14:30:42 +08:00
Zzzen
f1ee189bd2 eliminate any type in exported interfaces.#14044 2019-06-16 20:51:47 +08:00
lhyt
10d4a9f955 feat(popconfirm): add disabled in popconfirm 2019-06-05 20:33:00 +08:00
zombiej
874ed98e31 merge master 2019-01-02 17:12:34 +08:00
Konrad Machlowski
18183ac2d5 Correct typings for change handlers 2018-12-28 16:10:36 +08:00
afc163
30fe9918d8
Merge branch 'master' into feature
* master:
  📝 Add bodyStyle and style of Drawer in documentation, #13850
  🐛 Fix Drawer style not working
  🐛 fix markStyle affset style
  Update Santa.jsx
  update changelog
  bump 3.11.6
  revert Christmas egg
  [type] make type of components compatible with ComponentType<P>
  bump 3.11.5
   site: make document side bar sticky
2018-12-25 16:28:50 +08:00
frezc
5f9b376456 [type] make type of components compatible with ComponentType<P> 2018-12-25 01:10:00 +08:00
陈帅
8e11f0bdb9 merge support prettier 2018-12-07 20:02:01 +08:00
陈帅
dca9715186 support prettier 2018-12-07 18:27:30 +08:00
zombieJ
1a0a06fca9
ConfigProvider support prefixCls (#13389)
Basic support prefixCls.
2018-12-05 19:12:18 +08:00
afc163
faa5eaef12 Fix Popconfirm defaultVisible
close #12733
2018-10-19 23:57:16 +08:00
黄文鉴
057c8a3e52 fix: prefixCls dosen't pass to Popconfirm's Button (#12677) 2018-10-19 11:13:29 +08:00
afc163
bdcf4342fe tweak icon size and design 2018-09-08 15:46:26 +08:00
afc163
02af08951a popconfirm onVisibleChange should call with click event
close #8614
2018-09-07 14:42:22 +08:00
张聪
8a9fbcb5e4 Migrate lifecycle method: Upload, CheckboxGroup, Layout.Sider, Tooltip, Popconfirm (#11682)
* Upload lifecycle method migrate

* CheckboxGroup lifecycle method migrate

* Layout.Sider lifecycle method migrate

* Tooltip lifecycle method migrate

* Popconfirm lifecycle method migrate

* test Spin as a controlled component
2018-08-10 17:04:40 +08:00
nuintun
8496e8f687 Popconfirm support customize icon 2018-07-16 15:34:24 +08:00
Wei Zhu
c4c3e74149 Fix implicit any error for Pagination PopConfirm Popover Progress 2017-11-21 15:37:39 +08:00