Browse Source

Merge pull request #1 from abpframework/master

atualizando
pull/612/head
Marcelo Mohr Maciel 7 years ago
committed by GitHub
parent
commit
41e433f65c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/en/Tutorials/AspNetCore-Mvc/Part-I.md
  2. 3
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressBarTagHelperService.cs
  3. 1
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressTagHelperService.cs
  4. 3
      framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/Pages/Components/ProgressBars.cshtml

2
docs/en/Tutorials/AspNetCore-Mvc/Part-I.md

@ -292,7 +292,7 @@ Check the `books` table in the database to see the new book row. You can try `ge
It's time to create something visible and usable! Instead of classic MVC, we will use the new [Razor Pages UI](https://docs.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start) approach which is recommended by Microsoft.
Create a new `Books` folder under the `Pages` folder of the `Acme.BookStore.Web` project and add a new Razor Page named `Index.html`:
Create a new `Books` folder under the `Pages` folder of the `Acme.BookStore.Web` project and add a new Razor Page named `Index.cshtml`:
![bookstore-add-index-page](images/bookstore-add-index-page.png)

3
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressBarTagHelperService.cs

@ -14,6 +14,9 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.ProgressBar
SetStripClass(context,output);
SetTypeClass(context,output);
SetValues(context, output);
output.TagName = "div";
output.TagMode = TagMode.StartTagAndEndTag;
}
protected virtual void SetValues(TagHelperContext context, TagHelperOutput output)

1
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/ProgressBar/AbpProgressTagHelperService.cs

@ -8,6 +8,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.ProgressBar
public override void Process(TagHelperContext context, TagHelperOutput output)
{
output.Attributes.AddClass("progress");
output.TagName = "div";
}
}

3
framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/Pages/Components/ProgressBars.cshtml

@ -20,8 +20,7 @@
<div class="demo-area">
<abp-progress>
<abp-progress-bar value="70" />
<abp-progress-bar value="70"/>
</abp-progress>
<br />
<abp-progress>

Loading…
Cancel
Save