提交 7323ce78 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新

上级 041b612d
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
:file-list="files" :file-list="files"
:action="uploadUrl" :action="uploadUrl"
:limit="multiple ? limit: 1" :limit="multiple ? limit: 1"
:accept="accept"
:multiple="multiple" :multiple="multiple"
:headers="{}" :headers="{}"
:before-upload="beforeUpload" :before-upload="beforeUpload"
...@@ -21,7 +22,7 @@ ...@@ -21,7 +22,7 @@
:show-file-list="!rowPreview" :show-file-list="!rowPreview"
:on-exceed = "handleExceed" :on-exceed = "handleExceed"
> >
<el-button v-if="!isdrag" size='small' icon='el-icon-upload' :disabled="disabled">{{this.$t('app.fileUpload.caption')}}</el-button> <el-button v-if="!isdrag" size='small' icon='el-icon-upload' :disabled="disabled || !(multiple || files.length === 0)">{{this.$t('app.fileUpload.caption')}}</el-button>
<i v-if="isdrag" class="el-icon-upload"></i> <i v-if="isdrag" class="el-icon-upload"></i>
<div v-if="isdrag" class="el-upload__text" v-html="$t('components.appFileUpload.uploadText')"></div> <div v-if="isdrag" class="el-upload__text" v-html="$t('components.appFileUpload.uploadText')"></div>
</el-upload> </el-upload>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册