Skip to content

Commit 92733d5

Browse files
committed
fix: upload: accept and label
1 parent 5563c22 commit 92733d5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

playground/src/locales/langs/en-US/examples.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
"api": "Api",
2121
"merge": "Merge Form",
2222
"upload-error": "Partial file upload failed",
23-
"upload-urls": "Urls after file upload"
23+
"upload-urls": "Urls after file upload",
24+
"file": "file",
25+
"upload-image": "Click to upload image"
2426
},
2527
"vxeTable": {
2628
"title": "Vxe Table",

playground/src/locales/langs/zh-CN/examples.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"api": "Api",
2424
"merge": "合并表单",
2525
"upload-error": "部分文件上传失败",
26-
"upload-urls": "文件上传后的网址"
26+
"upload-urls": "文件上传后的网址",
27+
"file": "文件",
28+
"upload-image": "点击上传图片"
2729
},
2830
"vxeTable": {
2931
"title": "Vxe 表格",

playground/src/views/examples/form/basic.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -333,18 +333,18 @@ const [BaseForm, baseFormApi] = useVbenForm({
333333
{
334334
component: 'Upload',
335335
componentProps: {
336-
accept: '.png,.jpg,jpeg',
336+
accept: '.png,.jpg,.jpeg',
337337
customRequest: upload_file,
338338
disabled: false,
339339
maxCount: 1,
340340
multiple: false,
341341
showUploadList: true,
342342
},
343343
fieldName: 'files',
344-
label: '文件',
344+
label: $t('examples.form.file'),
345345
renderComponentContent: () => {
346346
return {
347-
default: () => '点击上传图片',
347+
default: () => $t('examples.form.upload-image'),
348348
};
349349
},
350350
rules: 'required',

0 commit comments

Comments
 (0)