Skip to content

Commit 2f6350b

Browse files
authored
feat(HandWritten): remove HandWritten component (#4592)
* doc: 更新手写组件文档 * chore: 移除 Handwritten 组件 * Revert "chore: 移除 Handwritten 组件" This reverts commit e434235. * Reapply "chore: 移除 Handwritten 组件" This reverts commit 51739f7. * doc: 更新文档
1 parent d302b88 commit 2f6350b

File tree

6 files changed

+8
-62
lines changed

6 files changed

+8
-62
lines changed

src/BootstrapBlazor.Server/Components/Samples/Handwrittens.razor

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55

66
<h4>@Localizer["SubTitle"]</h4>
77

8-
<DemoBlock Title="@Localizer["BaseUsageText"]" Introduction="@Localizer["IntroText1"]" Name="Normal">
9-
<Handwritten HandwrittenBase64="e => DrawBase64 = e" />
10-
<textarea type="text" class="form-control mt-3" readonly rows="5" @bind="DrawBase64" />
11-
</DemoBlock>
8+
<Tips>
9+
<div>@((MarkupString)Localizer["Tips"].Value)</div>
10+
</Tips>
1211

1312
<AttributeTable Items="@GetAttributes()" />

src/BootstrapBlazor.Server/Components/Samples/Handwrittens.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace BootstrapBlazor.Server.Components.Samples;
77

88
/// <summary>
9-
/// HandwrittenPage
9+
/// Handwritten 组件示例代码
1010
/// </summary>
1111
public sealed partial class Handwrittens
1212
{

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5730,6 +5730,7 @@
57305730
"BootstrapBlazor.Server.Components.Samples.Handwrittens": {
57315731
"Title": "Handwritten",
57325732
"SubTitle": "Used to save the mobile terminal signature as Base64 encoded string",
5733+
"Tips": "Deprecated, please use the <a href=\"signature-pad\">BootstrapBlazor.SignaturePad</a> component",
57335734
"BaseUsageText": "Basic usage",
57345735
"IntroText1": "Touch device handwritten signature as Base64.",
57355736
"IntroText2": "For desktop browser testing, please use F12 to simulate a touch device.",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5730,6 +5730,7 @@
57305730
"BootstrapBlazor.Server.Components.Samples.Handwrittens": {
57315731
"Title": "Handwritten 手写签名",
57325732
"SubTitle": "用于移动终端签名保存为 Base64 编码字符串",
5733+
"Tips": "已弃用,请使用 <a href=\"signature-pad\">BootstrapBlazor.SignaturePad</a> 组件,已知问题在弹窗中无法签名",
57335734
"BaseUsageText": "基础用法",
57345735
"IntroText1": "触摸设备直接手写签名保存为 Base64",
57355736
"IntroText2": "桌面浏览器测试请用F12模拟为触摸设备",

src/BootstrapBlazor/Components/Handwritten/Handwritten.razor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ namespace BootstrapBlazor.Components;
1010
/// <summary>
1111
/// Handwritten 手写签名
1212
/// </summary>
13+
[Obsolete("已弃用,请使用 BootstrapBlazor.SignaturePad 代替;Deprecated, use BootstrapBlazor.SignaturePad instead")]
14+
[ExcludeFromCodeCoverage]
1315
public partial class Handwritten
1416
{
1517
/// <summary>

test/UnitTest/Components/HandwrittenTest.cs

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)