Skip to content

ant-design-blazor/ant-design-blazor-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

说明

提供Balzor以及AntDesignBlazor中常用的代码片段

安装

https://marketplace.visualstudio.com/items?itemName=TimChen44.AntDesignBlazorSnippets

支持的代码片段

Blazor

C#

快捷方式 代码示例
cprop [CascadingParameter] public int MyProperty { get; set; }
eprop [Parameter] public EventCallback<int> MyProperty { get; set; }
iprop [Inject] public int MyProperty { get; set; }
pprop [Parameter] public int MyProperty { get; set; }
ihttp [Inject] public HttpClient Http { get; set; }

AntDesign

C#

快捷方式 代码示例
iconfirm [Inject] public ConfirmService ConfirmSrv { get; set; }
idrawer [Inject] public DrawerService DrawerSrv { get; set; }
imessage [Inject] public MessageService MsgSrv { get; set; }
imodal [Inject] public ModalService ModalSrv { get; set; }

Html

快捷方式 代码示例
abtn <Button OnClick="OnClick">按钮</Button>
abtn-primary <Button OnClick="OnClick" Type="primary">按钮</Button>
abtn-dashed <Button OnClick="OnClick" Type="dashed">按钮</Button>
abtn-link <Button OnClick="OnClick" Type="link">按钮</Button>

About

ant-design-blazor的代码片段

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published