!1747 fix(#I46OBU): textarea element not fill the width in Dialog body

* chore: bump version to 5.7.2
* chore: 打包脚本与样式
* style: 微调 inline 模式下 textarea 组件宽度
* feat: 重构 Textarea 组件结构
This commit is contained in:
Argo 2021-08-22 03:34:36 +00:00
parent e58110fbbd
commit ec6218e8c1
7 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<Version>5.7.1</Version>
<Version>5.7.2</Version>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">

View File

@ -1,5 +1,5 @@
@namespace BootstrapBlazor.Components
@inherits TextareaBase
@inherits ValidateBase<string>
@if (IsShowLabel)
{

View File

@ -5,14 +5,14 @@
namespace BootstrapBlazor.Components
{
/// <summary>
/// Textarea 组件基类
///
/// </summary>
public abstract class TextareaBase : ValidateBase<string?>
public partial class Textarea
{
/// <summary>
/// 获得 class 样式集合
/// </summary>
protected string? ClassName => CssBuilder.Default("form-control")
private string? ClassName => CssBuilder.Default("form-control")
.AddClass(CssClass).AddClass(ValidCss)
.Build();
}

File diff suppressed because one or more lines are too long

View File

@ -812,7 +812,7 @@ input:disabled,
/*Textarea*/
@media (min-width: 576px) {
.row textarea {
.row.form-inline textarea.form-control {
width: calc(100% - 100px);
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long