fix: 图标错误
parent
211a112e81
commit
9801195a77
|
@ -7,9 +7,11 @@
|
||||||
v-model="valueRef"
|
v-model="valueRef"
|
||||||
v-model:file-list="fileList"
|
v-model:file-list="fileList"
|
||||||
:show-file-list="true"
|
:show-file-list="true"
|
||||||
|
:auto-upload="autoUpload"
|
||||||
:action="updateUrl"
|
:action="updateUrl"
|
||||||
:headers="uploadHeaders"
|
:headers="uploadHeaders"
|
||||||
:limit="props.limit"
|
:limit="props.limit"
|
||||||
|
:drag="drag"
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
:on-exceed="handleExceed"
|
:on-exceed="handleExceed"
|
||||||
:on-success="handleFileSuccess"
|
:on-success="handleFileSuccess"
|
||||||
|
@ -47,6 +49,8 @@ const props = defineProps({
|
||||||
fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf']), // 文件类型, 例如['png', 'jpg', 'jpeg']
|
fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf']), // 文件类型, 例如['png', 'jpg', 'jpeg']
|
||||||
fileSize: propTypes.number.def(5), // 大小限制(MB)
|
fileSize: propTypes.number.def(5), // 大小限制(MB)
|
||||||
limit: propTypes.number.def(5), // 数量限制
|
limit: propTypes.number.def(5), // 数量限制
|
||||||
|
autoUpload: propTypes.bool.def(true), // 自动上传
|
||||||
|
drag: propTypes.bool.def(false), // 拖拽上传
|
||||||
isShowTip: propTypes.bool.def(true) // 是否显示提示
|
isShowTip: propTypes.bool.def(true) // 是否显示提示
|
||||||
})
|
})
|
||||||
// ========== 上传相关 ==========
|
// ========== 上传相关 ==========
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
<!-- 按钮:保存 -->
|
<!-- 按钮:保存 -->
|
||||||
<XButton
|
<XButton
|
||||||
type="primary"
|
type="primary"
|
||||||
prefix="ep:upload-filled"
|
preIcon="ep:upload-filled"
|
||||||
:title="t('action.save')"
|
:title="t('action.save')"
|
||||||
@click="submitFileForm()"
|
@click="submitFileForm()"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue