Skip to content

Commit

Permalink
feat(BarcodeGenerator): redesign BarcodeGenerator component (#4459)
Browse files Browse the repository at this point in the history
* doc: 增加配置组件

* chore: 更新字典

* doc: 更新示例

* chore: 更新依赖包

* doc: 更新参数说明文档

* test: 更新单元测试
  • Loading branch information
ArgoZhang authored Oct 14, 2024
1 parent 4254fab commit 53b2cec
Show file tree
Hide file tree
Showing 9 changed files with 509 additions and 272 deletions.
1 change: 1 addition & 0 deletions exclusion.dic
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ Validata
Validatable
noselect
Urls
Pharmacode
10 changes: 5 additions & 5 deletions src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
<ItemGroup>
<PackageReference Include="BootstrapBlazor.AntDesignIcon" Version="8.1.0" />
<PackageReference Include="BootstrapBlazor.AzureOpenAI" Version="8.1.0" />
<PackageReference Include="BootstrapBlazor.AzureTranslator" Version="8.1.0" />
<PackageReference Include="BootstrapBlazor.BaiduSpeech" Version="8.1.0" />
<PackageReference Include="BootstrapBlazor.AzureTranslator" Version="8.1.1" />
<PackageReference Include="BootstrapBlazor.BaiduSpeech" Version="8.1.1" />
<PackageReference Include="BootstrapBlazor.BaiduOcr" Version="8.1.1" />
<PackageReference Include="BootstrapBlazor.BarCode" Version="8.0.2" />
<PackageReference Include="BootstrapBlazor.BarcodeGenerator" Version="0.1.1" />
<PackageReference Include="BootstrapBlazor.BarcodeGenerator" Version="8.1.0" />
<PackageReference Include="BootstrapBlazor.Bluetooth" Version="8.0.2" />
<PackageReference Include="BootstrapBlazor.BootstrapIcon" Version="8.0.3" />
<PackageReference Include="BootstrapBlazor.BootstrapIcon.Extensions" Version="8.0.6" />
Expand All @@ -42,7 +42,7 @@
<PackageReference Include="BootstrapBlazor.FileViewer" Version="8.1.1" />
<PackageReference Include="BootstrapBlazor.FontAwesome" Version="8.0.6" />
<PackageReference Include="BootstrapBlazor.Gantt" Version="8.0.1" />
<PackageReference Include="BootstrapBlazor.Holiday" Version="8.0.1" />
<PackageReference Include="BootstrapBlazor.Holiday" Version="8.1.0" />
<PackageReference Include="BootstrapBlazor.Html2Pdf" Version="8.2.1" />
<PackageReference Include="BootstrapBlazor.IconPark" Version="8.0.4" />
<PackageReference Include="BootstrapBlazor.ImageCropper" Version="8.1.0" />
Expand All @@ -61,7 +61,7 @@
<PackageReference Include="BootstrapBlazor.Sortable" Version="8.0.6" />
<PackageReference Include="BootstrapBlazor.Splitting" Version="8.0.0" />
<PackageReference Include="BootstrapBlazor.SvgEditor" Version="8.1.0" />
<PackageReference Include="BootstrapBlazor.SummerNote" Version="8.0.4" />
<PackageReference Include="BootstrapBlazor.SummerNote" Version="8.1.0" />
<PackageReference Include="BootstrapBlazor.TableExport" Version="8.3.0" />
<PackageReference Include="BootstrapBlazor.TagHelper" Version="8.0.1" />
<PackageReference Include="BootstrapBlazor.Topology" Version="8.1.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
@inject IStringLocalizer<BarcodeGenerateSettings> Localizer

<GroupBox Title="@Localizer["BarcodeGeneratorGroupBoxText"]">
<div class="row form-inline g-3">
<div class="col-12 col-sm-6">
<BootstrapInput Value="Value" ShowLabel="true" UseInputEvent="true" OnValueChanged="OnValueChanged" />
</div>
<div class="col-12 col-sm-6">
<Select @bind-Value="Format" OnValueChanged="OnFormatChanged" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Slider @bind-Value="Width" Min="1" Max="6" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Slider @bind-Value="Height" Min="10" Max="300" Step="5" ShowLabel="true" />
</div>
<div class="col-12">
<Slider @bind-Value="Margin" Min="-30" Max="100" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Slider @bind-Value="MarginLeft" Min="-30" Max="100" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Slider @bind-Value="MarginTop" Min="-30" Max="100" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Slider @bind-Value="MarginRight" Min="-30" Max="100" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Slider @bind-Value="MarginBottom" Min="-30" Max="100" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<ColorPicker @bind-Value="Background" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<ColorPicker @bind-Value="LineColor" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Switch @bind-Value="DisplayValue" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<BootstrapInput @bind-Value="Text" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Select @bind-Value="TextAlign" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Select @bind-Value="TextPosition" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Select @bind-Value="Font" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Select @bind-Value="FontOptions" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Slider @bind-Value="FontSize" Min="8" Max="52" ShowLabel="true" />
</div>
<div class="col-12 col-sm-6">
<Slider @bind-Value="TextMargin" Min="-30" Max="100" ShowLabel="true" />
</div>
<div class="col-12">
<Textarea Value="@SvgString" DisplayText="Svg" ShowLabel="true" readonly />
</div>
</div>
</GroupBox>
Loading

0 comments on commit 53b2cec

Please sign in to comment.