Commit Graph

8 Commits

Author SHA1 Message Date
zxyao
8301230bda fix(module: modal): auto focus the ok button and remove the focus of the trigger button (#1838)
* fix: second opening of focus in modal fails if DestroyOnClose is false

* fix: confirm cannot get focus element

* fix: set ConfirmAutoFocusButton is OK

* fix: module ImagePreview cannot close on second click

* fix: blur active element when comfirm focus element is disabled
2021-08-28 15:28:50 +00:00
zxyao
d07e3cb8fc fix(module: dialog): click dialog cause the mask click event triggered (#1727) 2021-07-12 23:27:09 +08:00
zxyao
5b6d72d741 fix(module: dialog): modify delay time to DOM_ MIN_ TIMEOUT_ VALUE (#1445)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-06 16:56:26 +08:00
zxyao
1a10f34029 fix(dialog): add Dispose lifecycle function to Dialog (#1379)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-18 15:14:54 +08:00
zxyao
31aac9f914 refactor: unified use of FeedbackComponent for modal comfirm and drawer (#1263)
* refactor: support to use the same template for confirm and modal

* refactor: support to use the same template for drawer

* refactor: separate interface IOkCancelRef

* chore: modify EventUtil class summary

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-04 15:40:54 +08:00
zxyao
234dcc93e7 feat(module: image): add animation for image preview (#1042)
* feat(module image): add animation for image preview

* feat(module image): add mask closeable

* fix(module dialog): cannot close dialog by clicking mask

if content is clicked, mask click cannot close dialog
2021-01-27 13:23:15 +08:00
笨木头
e59a2b2540 fix(module: overlay): select issue with multiple modals (#1012) 2021-01-21 19:07:21 +08:00
zxyao
ef4701b6ed refactor(module: modal): refactor the code of Modal, Confirm (#914)
* refactor(module: modal): refactor the code of Modal, Confirm and Dialog

refactor details:
- Add DialogWrapper compontent to control the logic of dialog removal from DOM
- Add the appropriate folders for Dialog, Modal, and Confirm
- Remove methods with the same logic but different names in ConfirmService
- Split Title into Title (string) and Titletemplate (renderfragment)
- Add comments to code
- Rename ConfirmDialog to Confirm
- Specification of method name in ConfirmService
- Adjust the time of throttle function for draggabe modal
- Extract the common part of ModalOptions, ConfirmOptions and DialogOptions as DialogOptionsBase

* refactor: move DefaultCloseIcon etc. static members to DialogOptionsBase

* docs(module: modal): update docs

* fix: dialog incorrect waiting

* fix: pickup missing pr/7
2020-12-26 21:39:04 +08:00