Commit Graph

13 Commits

Author SHA1 Message Date
Zhiyuan Zheng
5a7a5d7ac6 docs(button): use Task.Delay instead Thread.Sleep (#439)
**Problem:**
According to the current implementation of Blazor(dotnet/aspnetcore#16213 (comment)), it runs in single-thread mode. Thus the call to `System.Threading.Thread.Sleep` will block the UI thread as well. It means when clicking the button, the UI freezes.
For example, in button component, the UI will freeze of 500ms. It's a relatively small time, however Chrome do give a warning to this:
*[Violation] 'setTimeout' handler took 500ms*
**Changes:**
Use `Task.Delay` which is a kind of built-in timer from dotnet. It won't block the UI thread.

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-07-31 01:12:54 +08:00
LI ZICHAO
71bac2e85d fix: children components dispose (#399)
* Children components using CascadingParameter add itself to parent component.However, when children components disposed, they are not remove from parent component. For example, when items in checkgroup have changed , it may causes Index was outside the bounds of the array at AntDesign.CheckboxGroup.OnCheckboxChange.To fix these bug, Adding remove function in dispose process is the solution of this commit.

* fix: some exception

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-07-21 23:48:43 +08:00
Brian Ding
0ab1859037 feat(module: carousel): scroll vertically for Left/Right DotPosition (#216) 2020-06-11 23:24:58 +08:00
Henry.zhang
73c405d70d refactor: add grid and carousel demo (#187)
* refactor: carousel demo

* fix: remove the ItemGroup from doc projects

* refactor: grid deom

* fix: remove itemgroup from project file antdesign.docs.csproject

* refactor: remove ant prefix

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-07 00:20:28 +08:00
ElderJames
97f920ab9a refactor: change namespcae to AntDesign 2020-05-29 00:33:49 +08:00
ElderJames
994aed2a7a docs: fix error in for silder demo pages 2020-05-13 13:45:49 +08:00
Brian Ding
afc1f2b7bf feat: add component carousel (#96)
* feat (module: carousel): add component carousel

* implmement acitvate carousel button

* update active slick

* feat(module: carousel): add DotPosition

* feat(module: carousel): add dot position demo

* feat(module: carousel): implement fade in effect

* feat(module: carousel): animation for autoplay from last to the first
2020-05-06 17:33:11 +08:00
James Yeung
374929d16d chore: sync ant-design v4.1.5 (#84) 2020-04-26 10:41:53 +08:00
James Yeung
d347e2028e chore: sync ant-design v4.0.4 (#35) 2020-03-23 13:51:37 +08:00
James Yeung
7e0a6ffc36 chore: sync ant-design v4.0.2 (#4) 2020-03-09 00:09:32 +08:00
James Yeung
84ca70e8b7 chore: sync ant-design v4.0.1 (#2)
fixed #1
2020-03-08 15:12:21 +08:00
ElderJames
47b2b86265 add gulp to complie less 2020-03-07 16:40:38 +08:00
ElderJames
7d15f20674 refactor: refactor the directory structure to match ant-design 2020-03-05 12:17:50 +08:00