-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(BarcodeGenerator): redesign BarcodeGenerator component (#4459)
* doc: 增加配置组件 * chore: 更新字典 * doc: 更新示例 * chore: 更新依赖包 * doc: 更新参数说明文档 * test: 更新单元测试
- Loading branch information
Showing
9 changed files
with
509 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,3 +105,4 @@ Validata | |
Validatable | ||
noselect | ||
Urls | ||
Pharmacode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
src/BootstrapBlazor.Server/Components/Components/BarcodeGenerateSettings.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.