mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
cce1b5a252
* feat(upload): upload component * bump version * fix(upload): fix typo & doc \ Co-authored-by: Herrington Darkholme <2883231+HerringtonDarkholme@users.noreply.github.com>
18 lines
481 B
Vue
18 lines
481 B
Vue
<template>
|
|
<el-upload
|
|
class="upload-demo"
|
|
drag
|
|
action="https://jsonplaceholder.typicode.com/posts/"
|
|
:on-preview="handlePreview"
|
|
:on-remove="handleRemove"
|
|
:file-list="fileList"
|
|
multiple
|
|
>
|
|
<i class="el-icon-upload"></i>
|
|
<div class="el-upload__text">Drop file here or <em>click to upload</em></div>
|
|
<template #tip>
|
|
<div class="el-upload__tip">jpg/png files with a size less than 500kb</div>
|
|
</template>
|
|
</el-upload>
|
|
</template>
|