章鱼
7fd093bd0a
docs: feat components TS demo ( #34742 )
* docs: add general components TS demo
* docs: add layout components TS demo
* docs: add navigation components TS demo
* docs: add data entry components TS demo
* chore(deps): add types for qs
* docs: add data display TS demo
* docs: add feedback components TS demo
* docs: add other components TS demo
* chore(deps): add types
* docs: unified demo code style
* docs: fix lint error
* docs: add demo TS type
* docs: fix demo TS type
* test: update snapshot
* docs: fix TS demo
* feat: update Rate character type
* docs: fix lint error
* feat: update Rate character type
* feat: update Rate character type
3 years ago
dingkang
e5b09aa879
docs: replace class component with hooks ( #35613 )
* docs(badge): replace class component with hooks
* docs(button): replace class component with hooks
* docs(calendar): replace class component with hooks
* docs(card): replace class component with hooks
* docs(button): replace class component with hooks
* chore(deps): remove webpack devDependencies
* docs(cascader): replace class component with hooks
* docs(checkbox): replace class component with hooks
* docs(collapse): replace class component with hooks
* docs(comment): replace class component with hooks
* docs(descriptions): replace class component with hooks
* docs(config-provider): replace class component with hooks
* docs(date-picker): replace class component with hooks
* docs(drawer): replace class component with hooks
* docs(dropdown): replace class component with hooks
* docs(dropdown): replace class component with hooks
* docs(empty): replace class component with hooks
* docs(grid): replace class component with hooks
* docs(input): replace class component with hooks
* docs(input-number): replace class component with hooks
* docs(demo): fix lint error
* docs(layout): replace class component with hooks
* docs(list): replace class component with hooks
* docs(mentions): replace class component with hooks
* docs: fix code review issue
* docs(modal): replace class component with hooks
3 years ago
afc163
0f0e2f9f43
docs: simplify demo code, #30853 ( #35050 )
3 years ago
MadCcc
6776bb8916
docs: demo support react18 ( #34843 )
* docs: update demo
* chore: add script
* test: fix demo test
* docs: convert demos
* chore: move script
* test: remove react-dom import
* chore: update deps
* docs: update riddle js
* test: fix image test
* docs: fix riddle demo
3 years ago
afc163
77ed923fba
docs: 🎬 import Modal demo
4 years ago
afc163
b780070351
💄 prittier all files
6 years ago
Aaron Cawte
1a0bac944b
Documentation - Modal Component
6 years ago
afc163
325bff5324
update modal demo button text
6 years ago
afc163
0981ef06a4
fix demo lint
7 years ago
Randy
a614a525c4
fix #10822 ( #10955 )
Add `okButtonProps` and `cancelButtonProps` props to ok button and cancel button
7 years ago
偏右
9053192ae9
Fix component style ( #7848 )
* fix components style
* fix snapshot
* update travis node version
* change upload action in ci
7 years ago
Benjy Cui
9ce3a1ea35
docs: update docs details for Modal, close : #6121
8 years ago
Benjy Cui
12a6060304
docs: fix code style
8 years ago
ddcat1115
e07cdf5387
add left out event parameters for Modal[onOk] Popconfirm[onConfirm] Popconfirm[onCancel] ( #5042 )
8 years ago
afc163
5e0f5e1902
rewrite Modal demos to es6 component, #4878
8 years ago
Benjy Cui
200b88246f
docs: update docs format
8 years ago
Benjy Cui
3e17551b7e
site: improve build speed
8 years ago
afc163
bbe6606dc3
fix demo
8 years ago
Gray Choi
5c2087311f
docs: translate modal ( #2634 )
8 years ago
Benjy Cui
2144349741
style: enable react/jsx-closing-bracket-location
9 years ago
Benjy Cui
ecaa6c56c3
style: enable comma-dangle
9 years ago
Benjy Cui
df3ba36720
docs: remove useless newline in documentation
9 years ago
Benjy Cui
03d09b66e8
docs: update demo format
9 years ago
afc163
6700dbba2a
Fix Modal onCancel argument, ref #980
9 years ago
Benjy Cui
aa5c4f9595
style: update code style to please lint
9 years ago
Benjy Cui
209170e813
style: update demo code style to please lint
9 years ago
afc163
91bd7f22c0
use mountNode replace the long getElementById
9 years ago
afc163
16abf46071
Fix markdown eslint errors, update .eslintrc
9 years ago
afc163
753c01ae18
ES6 syntax for demo code
fix antd.notification
9 years ago
afc163
e19186f783
confirmLoading is fully controlled by props now, fix #392
9 years ago
yiminghe
76b0f673ec
beta2
9 years ago
Benjy Cui
5b86a4be1d
refactor: replace `button` tag with `Button` component
9 years ago
afc163
176adab763
update modal basic demo
9 years ago
afc163
c5cab1d687
Add confirmLoading prop for Modal
You can use `confirmLoading` to cancel button loading status.
```
onOk() {
...
this.setState({
confirmLoading: false
});
}
```
Fix #322
9 years ago
afc163
0ac1f76553
Fix visible state bug in handleCancel
9 years ago
afc163
a63e2f8c0c
Remove console.log
9 years ago
afc163
75d710a1b8
Add some info type Modal, close #244
9 years ago
afc163
ee8335856c
Only listen mousemove once
初始化时监听, 共享同一个 mousePosition
9 years ago
afc163
56b06e168f
get mousePosition from mousemove listener for more elegant API
9 years ago
afc163
1c5e3485e7
Fix cancel button can not close modal
1. 关闭取消按钮的修复
2. 优化 loading 按钮的效果
9 years ago
yiminghe
867c4f2a85
support mousePosition
9 years ago
afc163
9d5e0a2e58
remove unused state visible
9 years ago
afc163
539ac64998
除了自定义页脚外,点击取消不需要手动设置关闭
9 years ago
afc163
12b26137ea
Add confirm button loading effect for modal
9 years ago
yiminghe
82913b8610
support promise for modal
10 years ago
afc163
74c30f4128
update modal style
10 years ago
afc163
22c48941e9
tweak code style
10 years ago
yiminghe
d5f760f9e7
remove ref
10 years ago
afc163
b5ae8925f2
update modal demos
10 years ago
afc163
2dc587269f
update modal demos
10 years ago