Skip to content

Commit

Permalink
doc: 更新示例
Browse files Browse the repository at this point in the history
  • Loading branch information
ArgoZhang committed Jan 28, 2025
1 parent 6f26ac5 commit c3c7fb9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/BootstrapBlazor.Server/Components/Samples/Uploads.razor
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@

<Pre class="no-highlight">builder.Services.Configure&lt;HubOptions&gt;(option => option.MaximumReceiveMessageSize = null);</Pre>

<DemoBlock Title="@Localizer["DropUploadTitle"]" Introduction="@Localizer["DropUploadIntro"]" Name="DropUpload">
<DropUpload ShowFooter="true" FooterText="@Localizer["DropUploadFooterText"]"></DropUpload>
</DemoBlock>

<DemoBlock Title="@Localizer["UploadNormalTitle"]"
Introduction="@Localizer["UploadNormalIntro"]"
Name="Normal">
Expand Down Expand Up @@ -189,6 +185,10 @@
<CardUpload TValue="string" DefaultFileList="@Base64FormatFileList" IsSingle="true" />
</DemoBlock>

<DemoBlock Title="@Localizer["DropUploadTitle"]" Introduction="@Localizer["DropUploadIntro"]" Name="DropUpload">
<DropUpload OnChange="@OnCardUpload" ShowProgress="true" ShowFooter="true" FooterText="@Localizer["DropUploadFooterText"]"></DropUpload>
</DemoBlock>

<AttributeTable Items="@GetInputAttributes()" Title="InputUpload" />

<AttributeTable Items="@GetButtonAttributes()" Title="ButtonUpload/CardUpload" />
Expand Down
4 changes: 3 additions & 1 deletion src/BootstrapBlazor.Server/Locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -3442,7 +3442,9 @@
"UploadsSaveFileMsg": "The current mode is WebAssembly, call Webapi mode to save files to the server side or database",
"UploadsRemoveMsg": "The removal was successful",
"UploadsIconTemplate": "The template of file icon",
"DropUploadFooterText": "file size less than 500Kb"
"DropUploadTitle": "Drop to upload",
"DropUploadIntro": "Drag and drop files into the specified area to upload",
"DropUploadFooterText": "file size less than 5Mb"
},
"BootstrapBlazor.Server.Components.Samples.ValidateForms": {
"ChangeButtonText": "Change",
Expand Down
4 changes: 3 additions & 1 deletion src/BootstrapBlazor.Server/Locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -3442,7 +3442,9 @@
"UploadsSaveFileMsg": "当前模式为 WebAssembly 模式,请调用 Webapi 模式保存文件到服务器端或数据库中",
"UploadsRemoveMsg": "成功移除",
"UploadsIconTemplate": "文件图标模板",
"DropUploadFooterText": "文件大小不超过 500K"
"DropUploadTitle": "拖拽上传",
"DropUploadIntro": "将文件拖拽到特定区域以进行上传",
"DropUploadFooterText": "文件大小不超过 5Mb"
},
"BootstrapBlazor.Server.Components.Samples.ValidateForms": {
"ChangeButtonText": "更改组件",
Expand Down

0 comments on commit c3c7fb9

Please sign in to comment.