mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-06 03:58:00 +08:00
35 lines
673 B
Vue
35 lines
673 B
Vue
<template>
|
|
<div class="upload-container">
|
|
<el-divider content-position="left">演示环境可能无法模拟上传</el-divider>
|
|
<vab-upload
|
|
ref="vabUpload"
|
|
:limit="50"
|
|
name="file"
|
|
:size="2"
|
|
url="/upload"
|
|
/>
|
|
<el-button type="primary" @click="handleShow({ key: 'value' })">
|
|
模拟上传
|
|
</el-button>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import VabUpload from '@/components/VabUpload'
|
|
|
|
export default {
|
|
name: 'Upload',
|
|
components: {
|
|
VabUpload,
|
|
},
|
|
data() {
|
|
return {}
|
|
},
|
|
methods: {
|
|
handleShow(data) {
|
|
this.$refs['vabUpload'].handleShow(data)
|
|
},
|
|
},
|
|
}
|
|
</script>
|