Skip to content

Commit 41059be

Browse files
committed
refactor: 移除参数说明文档
1 parent af0cdfd commit 41059be

4 files changed

Lines changed: 2 additions & 68 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,3 @@
9999
Name="Base64">
100100
<CardUpload TValue="string" DefaultFileList="@Base64FormatFileList"></CardUpload>
101101
</DemoBlock>
102-
103-
<AttributeTable Items="@GetAttributes()"></AttributeTable>

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

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -116,56 +116,4 @@ public void Dispose()
116116
_token = null;
117117
GC.SuppressFinalize(this);
118118
}
119-
120-
private List<AttributeItem> GetAttributes() =>
121-
[
122-
new()
123-
{
124-
Name = "IsDirectory",
125-
Description = Localizer["UploadsIsDirectory"],
126-
Type = "bool",
127-
ValueList = "true|false",
128-
DefaultValue = "false"
129-
},
130-
new()
131-
{
132-
Name = "IsMultiple",
133-
Description = Localizer["UploadsIsMultiple"],
134-
Type = "bool",
135-
ValueList = "true|false",
136-
DefaultValue = "false"
137-
},
138-
new()
139-
{
140-
Name = "ShowProgress",
141-
Description = Localizer["UploadsShowProgress"],
142-
Type = "bool",
143-
ValueList = "true|false",
144-
DefaultValue = "false"
145-
},
146-
new()
147-
{
148-
Name = "ShowZoomButton",
149-
Description = Localizer["UploadsShowZoomButton"],
150-
Type = "bool",
151-
ValueList = "true|false",
152-
DefaultValue = "true"
153-
},
154-
new()
155-
{
156-
Name = "ShowDeletedButton",
157-
Description = Localizer["UploadsShowDeleteButton"],
158-
Type = "bool",
159-
ValueList = "true|false",
160-
DefaultValue = "true"
161-
},
162-
new()
163-
{
164-
Name = "ShowDownloadButton",
165-
Description = Localizer["UploadsShowDownloadButton"],
166-
Type = "bool",
167-
ValueList = "true|false",
168-
DefaultValue = "false"
169-
}
170-
];
171119
}

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3542,13 +3542,7 @@
35423542
"UploadFileIconTemplateTitle": "Custom file icon",
35433543
"UploadFileIconTemplateIntro": "By setting the <code>IconTemplate</code> parameter and using the <code>FileIcon</code> component, you can further customize the file icon <a href=\"/file-icon\">[FileIcon example]</a>",
35443544
"UploadBase64Title": "Base64 format",
3545-
"UploadBase64Intro": "By setting the <code>PrevUrl</code> parameter value of the <code>UploadFile</code> instance, use the image content string in the <code>data:image/xxx;base64,XXXXX</code> format as the preview file path",
3546-
"UploadsIsDirectory": "Whether to upload the entire directory",
3547-
"UploadsIsMultiple": "Whether to allow multiple file uploads",
3548-
"UploadsShowProgress": "Whether to display the upload progress",
3549-
"UploadsShowZoomButton": "Whether to display the Zoom button",
3550-
"UploadsShowDeleteButton": "Whether to display the Delete button",
3551-
"UploadsShowDownloadButton": "Whether to display the Download button"
3545+
"UploadBase64Intro": "By setting the <code>PrevUrl</code> parameter value of the <code>UploadFile</code> instance, use the image content string in the <code>data:image/xxx;base64,XXXXX</code> format as the preview file path"
35523546
},
35533547
"BootstrapBlazor.Server.Components.Samples.UploadDrops": {
35543548
"UploadsTitle": "CardDrop",

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3542,13 +3542,7 @@
35423542
"UploadFileIconTemplateTitle": "自定义文件图标",
35433543
"UploadFileIconTemplateIntro": "通过设置 <code>IconTemplate</code> 参数,使用 <code>FileIcon</code> 组件可以对文件图标进行进一步自定义 <a href=\"/file-icon\">[FileIcon 示例]</a>",
35443544
"UploadBase64Title": "Base64 格式文件",
3545-
"UploadBase64Intro": "通过设置 <code>UploadFile</code> 实例的 <code>PrevUrl</code> 参数值使用 <code>data:image/xxx;base64,XXXXX</code> 格式图片内容字符串作为预览文件路径",
3546-
"UploadsIsDirectory": "是否上传整个目录",
3547-
"UploadsIsMultiple": "是否允许多文件上传",
3548-
"UploadsShowProgress": "是否显示上传进度",
3549-
"UploadsShowZoomButton": "是否显示放大按钮",
3550-
"UploadsShowDeleteButton": "是否显示删除按钮",
3551-
"UploadsShowDownloadButton": "是否显示下载按钮"
3545+
"UploadBase64Intro": "通过设置 <code>UploadFile</code> 实例的 <code>PrevUrl</code> 参数值使用 <code>data:image/xxx;base64,XXXXX</code> 格式图片内容字符串作为预览文件路径"
35523546
},
35533547
"BootstrapBlazor.Server.Components.Samples.UploadDrops": {
35543548
"UploadsTitle": "CardDrop 拖拽上传组件",

0 commit comments

Comments
 (0)