From 0ea7c461ecb5b859a893175b22a627d5567feb31 Mon Sep 17 00:00:00 2001 From: Alex Chow Date: Mon, 11 Apr 2022 02:44:23 +0200 Subject: [PATCH 01/11] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E5=B1=8F=E5=B9=95?= =?UTF-8?q?=E9=94=AE=E7=9B=98=E7=BB=84=E4=BB=B6=20OnScreenKeyboard=20,=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=BF=98=E6=B2=A1=E5=A4=84=E7=90=86=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootstrapBlazor.Shared.csproj | 1 + src/BootstrapBlazor.Shared/Locales/en.json | 13 +++- src/BootstrapBlazor.Shared/Locales/zh.json | 14 +++- src/BootstrapBlazor.Shared/Pages/Coms.razor | 1 + .../Samples/OnScreenKeyboards.razor | 73 ++++++++++++++++++ .../Samples/OnScreenKeyboards.razor.cs | 17 ++++ .../Shared/NavMenu.razor.cs | 5 ++ src/BootstrapBlazor.Shared/docs.json | 3 +- .../wwwroot/images/OnScreenKeyboard.png | Bin 0 -> 22408 bytes 9 files changed, 121 insertions(+), 6 deletions(-) create mode 100644 src/BootstrapBlazor.Shared/Samples/OnScreenKeyboards.razor create mode 100644 src/BootstrapBlazor.Shared/Samples/OnScreenKeyboards.razor.cs create mode 100644 src/BootstrapBlazor.Shared/wwwroot/images/OnScreenKeyboard.png diff --git a/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj b/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj index 78922b8c3..693e46c30 100644 --- a/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj +++ b/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj @@ -17,6 +17,7 @@ + diff --git a/src/BootstrapBlazor.Shared/Locales/en.json b/src/BootstrapBlazor.Shared/Locales/en.json index 5e71e22cb..41c43889d 100644 --- a/src/BootstrapBlazor.Shared/Locales/en.json +++ b/src/BootstrapBlazor.Shared/Locales/en.json @@ -423,7 +423,8 @@ "ChartDoughnutText": "Doughnut", "ChartBubbleText": "Bubble", "DispatchText": "Dispatch", - "GeolocationText": "Geolocation" + "GeolocationText": "Geolocation", + "OnScreenKeyboardText": "OnScreenKeyboard" }, "BootstrapBlazor.Shared.Samples.GlobalException": { "Title": "Global exception", @@ -2748,7 +2749,8 @@ "SpeechIntro": "Introduction", "Recognizer": "Recognizer", "Synthesizer": "Synthesizer", - "SpeechWave": "SpeechWave" + "SpeechWave": "SpeechWave", + "OnScreenKeyboard": "OnScreenKeyboard" }, "BootstrapBlazor.Shared.Samples.Table.TablesFooter": { "Left": "Left", @@ -2873,5 +2875,12 @@ "BaseUsageText": " bootstrapblazor uses font awesome 4.7.0 as the built-in icon library. All icons are as follows", "SwitchButtonTextOff": "Click to copy", "SwitchButtonTextOn": "Show Copy Dialog" + }, + "BootstrapBlazor.Shared.Samples.OnScreenKeyboards": { + "Title": "AutoComplete", + "H1": "The input box autocompletes the function", + "Block1Title": "Basic usage", + "Block1Intro": "By setting Items data collection when the user types information that is automatically displayed", + "P1": "In this example, type 123 strings to display the viewing effect, automatically give the component initialization to the auto-prompt dataset, and the dataset does not change" } } diff --git a/src/BootstrapBlazor.Shared/Locales/zh.json b/src/BootstrapBlazor.Shared/Locales/zh.json index f07668910..0f2cad7f5 100644 --- a/src/BootstrapBlazor.Shared/Locales/zh.json +++ b/src/BootstrapBlazor.Shared/Locales/zh.json @@ -424,7 +424,8 @@ "ChartBubbleText": "气泡图", "DispatchText": "消息分发 Dispatch", "GeolocationText": "地理定位组件 Geolocation", - "NotificationsText": "浏览器通知 Notification" + "NotificationsText": "浏览器通知 Notification", + "OnScreenKeyboardText": "屏幕键盘 OnScreenKeyboard" }, "BootstrapBlazor.Shared.Samples.GlobalException": { "Title": "全局异常", @@ -2760,8 +2761,8 @@ "SpeechIntro": "简介", "Recognizer": "语音识别 Recognizer", "Synthesizer": "语音合成 Synthesizer", - "SpeechWave": "语音波形图 SpeechWave" - + "SpeechWave": "语音波形图 SpeechWave", + "OnScreenKeyboard": "屏幕键盘 OnScreenKeyboard" }, "BootstrapBlazor.Shared.Samples.Table.TablesFooter": { "Left": "左对齐", @@ -2887,5 +2888,12 @@ "SwitchButtonText": "", "SwitchButtonTextOff": "点击拷贝", "SwitchButtonTextOn": "显示高级拷贝" + }, + "BootstrapBlazor.Shared.Samples.OnScreenKeyboards": { + "Title": "AutoComplete", + "H1": "The input box autocompletes the function", + "Block1Title": "Basic usage", + "Block1Intro": "By setting Items data collection when the user types information that is automatically displayed", + "P1": "In this example, type 123 strings to display the viewing effect, automatically give the component initialization to the auto-prompt dataset, and the dataset does not change" } } diff --git a/src/BootstrapBlazor.Shared/Pages/Coms.razor b/src/BootstrapBlazor.Shared/Pages/Coms.razor index 030dc0674..2386bf8df 100644 --- a/src/BootstrapBlazor.Shared/Pages/Coms.razor +++ b/src/BootstrapBlazor.Shared/Pages/Coms.razor @@ -58,6 +58,7 @@ + diff --git a/src/BootstrapBlazor.Shared/Samples/OnScreenKeyboards.razor b/src/BootstrapBlazor.Shared/Samples/OnScreenKeyboards.razor new file mode 100644 index 000000000..a31fcc4ea --- /dev/null +++ b/src/BootstrapBlazor.Shared/Samples/OnScreenKeyboards.razor @@ -0,0 +1,73 @@ +@page "/onscreenkeyboards" + + + + + + + + + + + + + + + + + + +

BootstrapBlazor组件

+
双绑 @BindValue
+ + +