ant-design-blazor/components
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
..
affix feat(docs): add affixed demo anchor (#366) 2020-07-16 13:59:56 +08:00
alert chore: sync ant-design v4.4.2 (#346) 2020-07-11 22:52:35 +08:00
anchor fix: children components dispose (#399) 2020-07-21 23:48:43 +08:00
auto-complete fix(module: auto-complete): select menu offset and binding issue 2020-07-16 13:00:23 +08:00
avatar fix(module: avatar): dead-loop rendering (#378) 2020-07-17 13:45:19 +08:00
back-top chore: sync ant-design v4.3.5 (#240) 2020-06-21 23:15:22 +08:00
badge feat: add Descriptions component (#224) 2020-06-15 22:23:08 +08:00
breadcrumb feat: add more demos (#197) 2020-06-07 19:41:00 +08:00
button docs(button): use Task.Delay instead Thread.Sleep (#439) 2020-07-31 01:12:54 +08:00
calendar feat: improve range picker (#306) 2020-07-05 00:06:34 +08:00
card chore: sync ant-design v4.4.2 (#346) 2020-07-11 22:52:35 +08:00
carousel docs(button): use Task.Delay instead Thread.Sleep (#439) 2020-07-31 01:12:54 +08:00
cascader fix(module: form): value not change when model change (#333) 2020-07-11 23:03:13 +08:00
checkbox fix(module: checkbox): default value binding (#437) 2020-07-30 23:54:31 +08:00
collapse chore: sync ant-design v4.4.0 (#277) 2020-07-01 21:38:23 +08:00
comment feat: add comment component (#80) 2020-06-30 15:25:21 +08:00
config-provider/style add gulp to complie less 2020-03-07 16:40:38 +08:00
core fix(module: checkbox): default value binding (#437) 2020-07-30 23:54:31 +08:00
date-picker fix(module: form): value not change when model change (#333) 2020-07-11 23:03:13 +08:00
descriptions refactor : replace system.tuple with value tuples (#412) 2020-07-24 20:20:29 +08:00
divider chore: sync ant-design v4.3.4 (#223) 2020-06-15 00:29:33 +08:00
drawer feat(module: modal): support template component (#345) 2020-07-12 23:19:55 +08:00
dropdown fix(module: dropdown): couldn't auto close menu (#394) 2020-07-23 22:51:02 +08:00
empty feat(module: table): add pagination and empty (#175) 2020-06-02 19:15:15 +08:00
form fix(module: checkbox): default value binding (#437) 2020-07-30 23:54:31 +08:00
grid fix(module: grid): fixed using size (xs, sm, etc) span with offset (#343) 2020-07-10 17:35:07 +08:00
icon fix: children components dispose (#399) 2020-07-21 23:48:43 +08:00
input fix(module: input): incorrect OnPressEnter (#435) 2020-07-30 09:06:56 +08:00
input-number fix: fix the form binding value bug (#324) 2020-07-07 19:13:34 +08:00
layout fix(module: layout): missing OnCollapse event (#363) 2020-07-15 13:26:40 +08:00
list feat: add list resposive (#258) 2020-06-28 12:44:43 +08:00
locale-provider/style add gulp to complie less 2020-03-07 16:40:38 +08:00
mentions fix: children components dispose (#399) 2020-07-21 23:48:43 +08:00
menu docs: add home page (#427) 2020-07-26 19:20:16 +08:00
message feat: add more demos (#197) 2020-06-07 19:41:00 +08:00
modal fix(module: modal): button text for confirm dialog (#389) 2020-07-20 22:49:53 +08:00
notification chore: sync ant-design v4.4.0 (#277) 2020-07-01 21:38:23 +08:00
page-header chore: sync ant-design v4.4.1 (#314) 2020-07-06 14:12:11 +08:00
pagination chore: sync ant-design v4.4.0 (#277) 2020-07-01 21:38:23 +08:00
popconfirm fix(module: dropdown): couldn't auto close menu (#394) 2020-07-23 22:51:02 +08:00
popover fix(module: dropdown): couldn't auto close menu (#394) 2020-07-23 22:51:02 +08:00
progress refactor: reduce dependence (#301) 2020-07-03 13:37:40 +08:00
radio fix: children components dispose (#399) 2020-07-21 23:48:43 +08:00
rate chore: sync ant-design v4.3.4 (#223) 2020-06-15 00:29:33 +08:00
result feat: add more demos (#197) 2020-06-07 19:41:00 +08:00
select fix(module: select): two-way binding #305 (#320) 2020-07-29 12:44:16 +08:00
skeleton chore: sync ant-design v4.4.1 (#314) 2020-07-06 14:12:11 +08:00
slider fix(module: slider): not working under wasm (#415) 2020-07-23 15:49:23 +08:00
space feat: add upload component (#276) 2020-07-01 06:49:51 +08:00
spin fix(module: spin): loading delay (#198) 2020-06-07 21:34:43 +08:00
statistic refactor(module: statistic): simplify format string for countdown (#309) 2020-07-05 00:08:33 +08:00
steps feat(module: step): support for template (#342) 2020-07-11 00:23:17 +08:00
style chore: sync ant-design v4.4.3 (#392) 2020-07-21 00:19:16 +08:00
switch fix(module: switch): two-way binding and loading (#358) 2020-07-14 17:07:50 +08:00
table fix: children components dispose (#399) 2020-07-21 23:48:43 +08:00
tabs feat(module: tabs): two-way binding for ActiveKey (#402) 2020-07-22 00:30:31 +08:00
tag feat: add overview (#425) 2020-07-28 11:15:41 +08:00
time-picker fix(module: form): value not change when model change (#333) 2020-07-11 23:03:13 +08:00
timeline fix(module: timeline): missing default constructor (#424) 2020-07-24 17:17:06 +08:00
tooltip Issue 406 (#420) 2020-07-24 23:05:38 +08:00
transfer refactor: reduce dependence (#301) 2020-07-03 13:37:40 +08:00
tree chore: sync ant-design v4.4.0 (#277) 2020-07-01 21:38:23 +08:00
tree-select/style chore: sync ant-design v4.2.5 (#149) 2020-05-25 12:38:07 +08:00
typography chore: sync ant-design v4.4.2 (#346) 2020-07-11 22:52:35 +08:00
upload feat(module: upload): support picture card (#438) 2020-07-31 00:46:46 +08:00
wwwroot/icons docs: fix model and drawer documentation errors (#355) 2020-07-14 13:46:53 +08:00
_Imports.razor refactor: refactor the directory structure to match ant-design 2020-03-05 12:17:50 +08:00
ant-design-blazor.less add gulp to complie less 2020-03-07 16:40:38 +08:00
AntBlazor.xml feat: add more demos (#197) 2020-06-07 19:41:00 +08:00
AntDesign.csproj feat(module: form): add complex form control (#349) 2020-07-13 12:26:09 +08:00
components.less feat: add mentions component (#286) 2020-07-11 01:46:35 +08:00
GlobalSuppressions.cs refactor: change namespcae to AntDesign 2020-05-29 00:33:49 +08:00
gulpfile.js feat: add gulp task for typescript 2020-03-10 15:25:45 +08:00
logo.png chore: Fix nuget icon (#50) 2020-03-26 13:09:53 +08:00
main.ts refactor: change namespcae to AntDesign 2020-05-29 00:33:49 +08:00
tsconfig.json feat: add gulp task for typescript 2020-03-10 15:25:45 +08:00