|
@@ -1,7 +1,16 @@
|
|
|
<template>
|
|
|
<div id="c-upload">
|
|
|
- <el-upload v-if="url" ref="upload" :action="url" :limit="limit" :accept="accept" :file-list="list"
|
|
|
- :list-type="listType" :on-exceed="outLimit" :on-preview="filePreview" :on-success="onSuccess"
|
|
|
+ <el-upload
|
|
|
+ v-if="url"
|
|
|
+ ref="upload"
|
|
|
+ :action="url"
|
|
|
+ :limit="limit"
|
|
|
+ :accept="accept"
|
|
|
+ :file-list="list"
|
|
|
+ :list-type="listType"
|
|
|
+ :on-exceed="outLimit"
|
|
|
+ :on-preview="filePreview"
|
|
|
+ :on-success="onSuccess"
|
|
|
:before-remove="onRemove">
|
|
|
<el-button type="primary">选择文件</el-button>
|
|
|
<template #tip v-if="tip">
|