7848635b55
* test: DateHelperTests was in the wrong dir (#1529) * fix(module: radio): add defaultChecked and defaultValue (#1494) * fix(module: radio): add defaultChecked and defaultValue * add tests * add test for radio group * feat: Added locale es-ES (#1534) * fix(module: locale): add missing 'filterOptions' node to german locale file (#1562) * docs(module: table): update ‘fork official sample’ demo (#1544) Co-authored-by: James Yeung <shunjiey@hotmail.com> * fix(module: npuNumber): include parser in value evaluation (#1567) * fix(module: input): fix & feat & docs & tests: Input general fixes (#1530) * docs(module:input): api correction & comments * fix(module:input): clear icon in sync with antD * fix(module:input): add parameter bordered * fix(module:textarea): add parameter ShowCounter * fix(module:input): Focus with behaviors * docs: add missing docs, rearrange order * fix(module:search): update to match new standard look doc(module:search): add API & demos * fix(module:inputgroup): override style to remove whitespace\ docs: same as react * fix(module:inputpassword): support custom icon docs: same as react * fix(module:input): add blur method docs: add blur method * fix(module:input): add readonly parameter * tests * fix * fix(module:input): sequence correction * Update components/core/Base/AntComponentBase.cs Co-authored-by: James Yeung <shunjiey@hotmail.com> * review fixes * fix: clean-up * tests: fix missing mock * fix: focus * fix(module:input): bind clear button to _inputValue * tests: clear button show/hide * tests: package update Co-authored-by: James Yeung <shunjiey@hotmail.com> * fix(module: drawer): OffsetX and offsetY do not work (#1435) (#1448) * fix(module: drawer): OffsetX and offsetY do not work (#1435) * docs: demo update * fix: Placement is switched to the relative direction, the animation appears * fix: the bug of closing animation missed * fix: incorrect animation * fix: different behaviors in WASM and Server side Co-authored-by: James Yeung <shunjiey@hotmail.com> * docs: Added essential step in get started procedure (#1579) * Added essential step in get started procedure The article is missing the dependency registration. If these dependencies are not registered, the library couldn't be used (at least in my case). * Update getting-started.en-US.md Co-authored-by: James Yeung <shunjiey@hotmail.com> * docs: document improvement (#1578) * fix the ordering of menu items * add ueditor link * fix icon document search style * fix affix width for side menu * add faq doc * feat(module: datepicker): Picker clear button event (#1586) * feat(module:datepicker): add OnClearClick eventcallback * docs(module:datepicker): format docs has same behavior as react docs * fix: adjust code to match net 3.1 * fix: eventcallback name fix * Update site/AntDesign.Docs/Demos/Components/DatePicker/doc/index.zh-CN.md Co-authored-by: James Yeung <shunjiey@hotmail.com> * fix(module: dropdown): align with react (#1588) * fix(module:dropdownbutton): align with react version * doc(module:dropdownbutton): align with react docs * fix(module: table): fix can not close filter by confirm button (#1602) * fix(module: table): fix filter icon wrong highlight, fix filter behavior when there is no input value (#1592) * fix(module:table): fix filter icon wrong highlight * Update Column.razor * fix(module:table): fix filter for no input * fix(module: table): fix filter not applied (#1594) * fix(module: InputNumber): fix error when blur (#1612) * fix(affix): remove wrong event listeners (#1616) * fix(module: table): fix wrong compare operator, remove input components for unary filter operators (#1596) * fix(module:table): fix wrong compare operator * remove whitespace * fix(module:table): remove input component for 'is null' and 'is not null' table filter * Update Column.razor * fix(module:table): allow remove first filter * remove whitespace * Update Column.razor * Update Column.razor Co-authored-by: James Yeung <shunjiey@hotmail.com> * fix(module: dropdown): dropdown button missing properties & docs fix for Dropdown & Button (#1609) * fix:fix(module:dropdownbutton): add regular button behaviors and properties * fix(module:button): add text type & docs * docs(module:dropdown): version correction * fix(module:overlay): re-add IsButton parameter * fix: add xml comment to public methods * fix(module:overlay): add xml documentation * fix(module:dropdown): chrome block button force * fix(module:button): remove Search parameter Co-authored-by: James Yeung <shunjiey@hotmail.com> * fix(module: datepicker): in form behavior (#1617) * i18n: Add missing elements to Dutch locales (#1624) * chore(ci): fix coverage report uploading (#1614) * chore(ci): fix coverage report uploading * continue when fail to upload * docs: update modal and drawer docs (#1625) * docs: update modal docs * docs: modify DropdownInDrawer * docs: update demo for DrawerService and ModalService * fix(module: modal): Modal dialogs not showing anymore (#1635) * Fix issue #1634 - Modal dialogs not showing anymore * Removed unnecessary Search from ButtonProps as part of #1634 fix - Modal dialogs not showing anymore * fix(module: table): fix selection clear (#1632) * fix(module:table): fix selection issues * allow SetSeletion(null) when there is not a Selection column * allow change selection by setting RowDate.Selected * fix(module: checkbox): fix checkbox group in-form behavior (#1637) * fix(module: image): fix the style property position (#1642) * fix(module: tag): Issue solved & align with react antd & tests (#1631) * fix(module:tag): close does not trigger onclick add custom color handling add animation handling add status tags * docs(module:tag): align with react antd * tests(module:tag): add basic tests * fix: style fixes * fix: remove default animation; add custom animation demo * fix: remove ExtraCls and use Class from base * Update components/tag/Tag.razor * clear the open animate after tag opened * translate demo docs Co-authored-by: James Yeung <shunjiey@hotmail.com> * changelog 0.8.2 (#1649) * add Visible back to Tag.razor.cs * Update SearchLoading.razor and idnex.en-US.md * Update index.zh-CN.md Co-authored-by: 笨木头 <musicvs@163.com> Co-authored-by: James Yeung <shunjiey@hotmail.com> Co-authored-by: Magehernan <magehernan@gmail.com> Co-authored-by: Andrzej Bakun <andrzej@neelyc.com.cy> Co-authored-by: zxyao <zxyao145@gmail.com> Co-authored-by: black-snake <black-snake@users.noreply.github.com> Co-authored-by: Gregory Loones <40325447+gregloones@users.noreply.github.com> Co-authored-by: Razvan Predescu <rzvdaniel@gmail.com> |
||
---|---|---|
.config | ||
.github | ||
.vscode | ||
components | ||
docs | ||
scripts | ||
site | ||
tests | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
AntDesign.sln | ||
CHANGELOG.en-US.md | ||
CHANGELOG.zh-CN.md | ||
CODE_OF_CONDUCT.md | ||
commitlint.config.js | ||
CONTRIBUTING.md | ||
Directory.Build.props | ||
LICENSE | ||
LICENSE-ant-design.txt | ||
logo.svg | ||
package.json | ||
README-zh_CN.md | ||
README.md |
Ant Design Blazor
English | 简体中文
✨ Features
- 🌈 Enterprise-class UI designed for web applications.
- 📦 A set of high-quality Blazor components out of the box.
- 💕 Supports WebAssembly-based client-side and SignalR-based server-side UI event interaction.
- 🎨 Supports Progressive Web Applications (PWA).
- 🛡 Build with C#, a multi-paradigm static language for an efficient development experience.
- ⚙️ .NET Standard 2.1/.NET 5 based, with direct reference to the rich .NET ecosystem.
- 🎁 Seamless integration with existing ASP.NET Core MVC and Razor Pages projects.
🌈 Online Examples
WebAssembly static hosting examples:
🖥 Environment Support
- .NET Core 3.1 / .NET 5
- Blazor WebAssembly 3.2/.NET 5 Release
- Supports two-way binding on the server side
- Supports WebAssembly static file deployment
- Support 4 major browsers engines, and Internet Explorer 11+ (Blazor Server only)
- Run directly on Electron and other Web standards-based environments
Edge / IE |
Firefox |
Chrome |
Safari |
Opera |
Electron |
---|---|---|---|---|---|
Edge 16 / IE 11† | 522 | 57 | 11 | 44 | Chromium 57 |
Due to WebAssembly restriction, Blazor WebAssembly doesn't support IE browser, but Blazor Server supports IE 11† with additional polyfills. See official documentation
💿 Current Version
🎨 Design Specification
Regularly synchronize with Official Ant Design specifications, you can check the sync logs online.
Therefore, you can use the custom theme styles of Ant Design directly.
📦 Installation Guide
- Install .NET Core SDK 3.1.300 or later, .NET 5 is even better.
Create a new project from the dotnet new template
We have provided the dotnet new
template to create a Boilerplate project out of the box:
-
Install the template
$ dotnet new --install AntDesign.Templates
-
Create the Boilerplate project with the template
$ dotnet new antdesign -o MyAntDesignApp
Options for the template:
Options | Description | Type | Default |
---|---|---|---|
-f | --full |
If specified, generates all pages of Ant Design Pro | bool | false |
-ho | --host |
Specify the hosting model | 'wasm' | 'server' | 'hosted' | 'wasm' |
--no-restore |
If specified, skips the automatic restore of the project on create | bool | false |
Import Ant Design Blazor into an existing project
-
Go to the project folder of the application and install the Nuget package reference
$ dotnet add package AntDesign
-
Register the services in
Program.cs
(WebAssembly)builder.Services.AddAntDesign();
or
Startup.cs
(Server)services.AddAntDesign();
-
Link the static files in
wwwroot/index.html
(WebAssembly) orPages/_Host.cshtml
(Server)<link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet" /> <script src="_content/AntDesign/js/ant-design-blazor.js"></script>
-
Add namespace in
_Imports.razor
@using AntDesign
-
To display the pop-up component dynamically, you need to add the
<AntContainer />
component inApp.razor
.<Router AppAssembly="@typeof(MainLayout).Assembly"> <Found Context="routeData"> <RouteView RouteData="routeData" DefaultLayout="@typeof(MainLayout)" /> </Found> <NotFound> <LayoutView Layout="@typeof(MainLayout)"> <Result Status="404" /> </LayoutView> </NotFound> </Router> <AntContainer /> <-- add this component ✨
-
Finally, it can be referenced in the `.razor' component!
<Button Type="primary">Hello World!</Button>
⌨️ Local Development
-
Install .NET Core SDK 5.0.100 or later.
-
Install Node.js (only for building style files and interoperable TypeScript files)
-
Clone to local development
$ git clone git@github.com:ant-design-blazor/ant-design-blazor.git $ cd ant-design-blazor $ npm install $ npm start
-
Visit https://localhost:5001 in your supported browser and check local development documentation for details.
Visual Studio 2019 is recommended for development.
🔗 Links
🗺 Roadmap
Check out this issue to learn about our development plans for 2020.
🤝 Contributing
If you would like to contribute, feel free to create a Pull Request, or give us Bug Report.
Contributors
This project exists thanks to all the people who contribute.
💕 Donation
This project is an MIT-licensed open source project. In order to achieve better and sustainable development of the project, we expect to gain more backers. We will use the proceeds for community operations and promotion. You can support us in any of the following ways:
We will put the detailed donation records on the backer list.
❓ Community Support
If you encounter any problems in the process, feel free to ask for help via following channels. We also encourage experienced users to help newcomers.
Code of Conduct
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.
☀️ License
.NET Foundation
This project is supported by the .NET Foundation.