Benjy Cui
bd7e9f00c0
style: update code style
8 years ago
马金花儿
3d187d00a1
feat: 为Modal组件的confirm、success、error、warning、info 子组件增加快捷键,模仿原生体验。 ( #3061 )
* Add hotkey for Modal.confirm
* Optimize
* 重构快捷键逻辑
* 根据CR 进一步优化逻辑
* timeoutId 改为非强制
* Update confirm.tsx
* 使用 onCancel 回调代替 onClose,并修改 onCancel 注释。
* 修改注释
8 years ago
feng zhi hao
cad2d19be2
fix: complete loss declaration ( #3068 )
* complete loss declaration
* fix error in ts-lint
* fix Icon name error
8 years ago
ddcat1115
3bdd8212ec
refactor: Ts rewrite patination notification modal menu ( #2699 )
8 years ago
偏右
de359d2cf7
fix tslint problems ( #2360 )
8 years ago
yiminghe
94706f1d2c
fix ts
9 years ago
yiminghe
9a0d751f94
refactor to typescript
9 years ago
afc163
90c2d7ee12
downgrade rc-util
9 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
afc163
71ee13a2a8
Fix Modal animation
9 years ago
Bruce Mitchener
0acce38f08
Convert more createClass over to extending Component.
9 years ago
Bruce Mitchener
11c0a6a203
Name classes without Ant* prefix.
Where necessary, prefix the classes imported from react-component
with 'Rc' rather than prefixing the Ant classes with 'Ant'.
The prefixing of Ant classes wasn't consistent and isn't necessary
in many cases.
9 years ago
afc163
80d6ae30a8
Add propTypes and prop align in Modal docs
9 years ago
afc163
95c1ead55b
fix text
9 years ago
afc163
2482140d2f
Change context locale name
9 years ago
afc163
99b58e67ec
Add other component for locale
9 years ago
afc163
6700dbba2a
Fix Modal onCancel argument, ref #980
9 years ago
afc163
66b7ee81ad
fix eslint problems, eslint-config-airbnb@4.x
9 years ago
afc163
cfc141b1c7
capture mousePosition event register in document
9 years ago
Benjy Cui
7ae966873a
fix: cyclic reference in Modal
9 years ago
Benjy Cui
b72d18fd44
style: update code style to please the fucking lint
9 years ago
Benjy Cui
711d2d7413
style: update code style to please lint
9 years ago
Benjy Cui
a7b2c2e348
feat: expose `closable` for Modal
9 years ago
Benjy Cui
fdd9ef7d18
feat: Modal should support internationalization
9 years ago
yiminghe
dc1650486d
fix button
9 years ago
afc163
e19186f783
confirmLoading is fully controlled by props now, fix #392
9 years ago
afc163
5a50df6b78
use ghost button to match primary button
9 years ago
afc163
cad3fdff45
lg => large, sm => small
9 years ago
afc163
aed7eae2bc
Fix confirmLoading
9 years ago
Benjy Cui
5b86a4be1d
refactor: replace `button` tag with `Button` component
9 years ago
elrrrrrrr
244c3a78a5
chore: 迁移 modal iconfont
- api 接口有变
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
a1d5030174
rollback blur mask
9 years ago
jljsj
9d5bc12db0
add modal bg blur, remove motion blur
9 years ago
afc163
0ac1f76553
Fix visible state bug in handleCancel
9 years ago
afc163
75d710a1b8
Add some info type Modal, close #244
9 years ago
afc163
e6d92e37b1
update modal default props
9 years ago
afc163
94c9081c83
default modal width change to 520px
9 years ago
afc163
281dd27e96
short delay for detecting mousePosition
9 years ago
afc163
c3294dfc64
use arrow function
9 years ago
afc163
e95e557077
detect mousePosition in click event
9 years ago
afc163
77651c0621
update code style
9 years ago
afc163
192f150bc2
use rc-util addEventListener
9 years ago
afc163
c0c9b4a8d5
remove this.onDocumentMousemove
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