ant-design-blazor的代码片段
Перейти к файлу
TimChen 69a2974897 调整插件配置文件 2020-10-24 21:30:32 +08:00
AntDesignBlazorSnippets 调整插件配置文件 2020-10-24 21:30:32 +08:00
.gitignore Initial commit 2020-10-17 20:52:03 +08:00
AntDesignBlazorSnippets.sln 初始化项目 2020-10-17 21:21:22 +08:00
LICENSE Initial commit 2020-10-17 20:52:03 +08:00
README.md Update README.md 2020-10-18 16:06:10 +08:00

README.md

说明

提供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>