Skip to content

Commit 53b2cec

Browse files
authored
feat(BarcodeGenerator): redesign BarcodeGenerator component (#4459)
* doc: 增加配置组件 * chore: 更新字典 * doc: 更新示例 * chore: 更新依赖包 * doc: 更新参数说明文档 * test: 更新单元测试
1 parent 4254fab commit 53b2cec

File tree

9 files changed

+509
-272
lines changed

9 files changed

+509
-272
lines changed

exclusion.dic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,4 @@ Validata
105105
Validatable
106106
noselect
107107
Urls
108+
Pharmacode

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
<ItemGroup>
2525
<PackageReference Include="BootstrapBlazor.AntDesignIcon" Version="8.1.0" />
2626
<PackageReference Include="BootstrapBlazor.AzureOpenAI" Version="8.1.0" />
27-
<PackageReference Include="BootstrapBlazor.AzureTranslator" Version="8.1.0" />
28-
<PackageReference Include="BootstrapBlazor.BaiduSpeech" Version="8.1.0" />
27+
<PackageReference Include="BootstrapBlazor.AzureTranslator" Version="8.1.1" />
28+
<PackageReference Include="BootstrapBlazor.BaiduSpeech" Version="8.1.1" />
2929
<PackageReference Include="BootstrapBlazor.BaiduOcr" Version="8.1.1" />
3030
<PackageReference Include="BootstrapBlazor.BarCode" Version="8.0.2" />
31-
<PackageReference Include="BootstrapBlazor.BarcodeGenerator" Version="0.1.1" />
31+
<PackageReference Include="BootstrapBlazor.BarcodeGenerator" Version="8.1.0" />
3232
<PackageReference Include="BootstrapBlazor.Bluetooth" Version="8.0.2" />
3333
<PackageReference Include="BootstrapBlazor.BootstrapIcon" Version="8.0.3" />
3434
<PackageReference Include="BootstrapBlazor.BootstrapIcon.Extensions" Version="8.0.6" />
@@ -42,7 +42,7 @@
4242
<PackageReference Include="BootstrapBlazor.FileViewer" Version="8.1.1" />
4343
<PackageReference Include="BootstrapBlazor.FontAwesome" Version="8.0.6" />
4444
<PackageReference Include="BootstrapBlazor.Gantt" Version="8.0.1" />
45-
<PackageReference Include="BootstrapBlazor.Holiday" Version="8.0.1" />
45+
<PackageReference Include="BootstrapBlazor.Holiday" Version="8.1.0" />
4646
<PackageReference Include="BootstrapBlazor.Html2Pdf" Version="8.2.1" />
4747
<PackageReference Include="BootstrapBlazor.IconPark" Version="8.0.4" />
4848
<PackageReference Include="BootstrapBlazor.ImageCropper" Version="8.1.0" />
@@ -61,7 +61,7 @@
6161
<PackageReference Include="BootstrapBlazor.Sortable" Version="8.0.6" />
6262
<PackageReference Include="BootstrapBlazor.Splitting" Version="8.0.0" />
6363
<PackageReference Include="BootstrapBlazor.SvgEditor" Version="8.1.0" />
64-
<PackageReference Include="BootstrapBlazor.SummerNote" Version="8.0.4" />
64+
<PackageReference Include="BootstrapBlazor.SummerNote" Version="8.1.0" />
6565
<PackageReference Include="BootstrapBlazor.TableExport" Version="8.3.0" />
6666
<PackageReference Include="BootstrapBlazor.TagHelper" Version="8.0.1" />
6767
<PackageReference Include="BootstrapBlazor.Topology" Version="8.1.0" />
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
@inject IStringLocalizer<BarcodeGenerateSettings> Localizer
2+
3+
<GroupBox Title="@Localizer["BarcodeGeneratorGroupBoxText"]">
4+
<div class="row form-inline g-3">
5+
<div class="col-12 col-sm-6">
6+
<BootstrapInput Value="Value" ShowLabel="true" UseInputEvent="true" OnValueChanged="OnValueChanged" />
7+
</div>
8+
<div class="col-12 col-sm-6">
9+
<Select @bind-Value="Format" OnValueChanged="OnFormatChanged" ShowLabel="true" />
10+
</div>
11+
<div class="col-12 col-sm-6">
12+
<Slider @bind-Value="Width" Min="1" Max="6" ShowLabel="true" />
13+
</div>
14+
<div class="col-12 col-sm-6">
15+
<Slider @bind-Value="Height" Min="10" Max="300" Step="5" ShowLabel="true" />
16+
</div>
17+
<div class="col-12">
18+
<Slider @bind-Value="Margin" Min="-30" Max="100" ShowLabel="true" />
19+
</div>
20+
<div class="col-12 col-sm-6">
21+
<Slider @bind-Value="MarginLeft" Min="-30" Max="100" ShowLabel="true" />
22+
</div>
23+
<div class="col-12 col-sm-6">
24+
<Slider @bind-Value="MarginTop" Min="-30" Max="100" ShowLabel="true" />
25+
</div>
26+
<div class="col-12 col-sm-6">
27+
<Slider @bind-Value="MarginRight" Min="-30" Max="100" ShowLabel="true" />
28+
</div>
29+
<div class="col-12 col-sm-6">
30+
<Slider @bind-Value="MarginBottom" Min="-30" Max="100" ShowLabel="true" />
31+
</div>
32+
<div class="col-12 col-sm-6">
33+
<ColorPicker @bind-Value="Background" ShowLabel="true" />
34+
</div>
35+
<div class="col-12 col-sm-6">
36+
<ColorPicker @bind-Value="LineColor" ShowLabel="true" />
37+
</div>
38+
<div class="col-12 col-sm-6">
39+
<Switch @bind-Value="DisplayValue" ShowLabel="true" />
40+
</div>
41+
<div class="col-12 col-sm-6">
42+
<BootstrapInput @bind-Value="Text" ShowLabel="true" />
43+
</div>
44+
<div class="col-12 col-sm-6">
45+
<Select @bind-Value="TextAlign" ShowLabel="true" />
46+
</div>
47+
<div class="col-12 col-sm-6">
48+
<Select @bind-Value="TextPosition" ShowLabel="true" />
49+
</div>
50+
<div class="col-12 col-sm-6">
51+
<Select @bind-Value="Font" ShowLabel="true" />
52+
</div>
53+
<div class="col-12 col-sm-6">
54+
<Select @bind-Value="FontOptions" ShowLabel="true" />
55+
</div>
56+
<div class="col-12 col-sm-6">
57+
<Slider @bind-Value="FontSize" Min="8" Max="52" ShowLabel="true" />
58+
</div>
59+
<div class="col-12 col-sm-6">
60+
<Slider @bind-Value="TextMargin" Min="-30" Max="100" ShowLabel="true" />
61+
</div>
62+
<div class="col-12">
63+
<Textarea Value="@SvgString" DisplayText="Svg" ShowLabel="true" readonly />
64+
</div>
65+
</div>
66+
</GroupBox>

0 commit comments

Comments
 (0)