2020-08-13 11:47:56 +08:00
|
|
|
<template>
|
|
|
|
<article>
|
|
|
|
<section>
|
|
|
|
<h4>Normal size</h4>
|
|
|
|
<veui-uploader
|
|
|
|
v-model="images"
|
|
|
|
type="image"
|
|
|
|
action="https://app.fakejson.com/q/ELymQ7xh?token=AWFkjMICPSAB_bO_z-Lnog"
|
|
|
|
>
|
|
|
|
<template #desc>
|
|
|
|
Normal size
|
|
|
|
</template>
|
|
|
|
</veui-uploader>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<h4>Small size</h4>
|
|
|
|
<veui-uploader
|
|
|
|
v-model="images2"
|
|
|
|
type="image"
|
|
|
|
action="https://app.fakejson.com/q/ELymQ7xh?token=AWFkjMICPSAB_bO_z-Lnog"
|
|
|
|
ui="s"
|
|
|
|
>
|
|
|
|
<template #desc>
|
|
|
|
Small size
|
|
|
|
</template>
|
|
|
|
</veui-uploader>
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { Uploader } from 'veui'
|
|
|
|
import { cloneDeep } from 'lodash'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
'veui-uploader': Uploader
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
let images = [
|
|
|
|
{
|
2021-09-16 19:23:58 +08:00
|
|
|
src: '/images/development/uploader/demo-image1.jpg',
|
|
|
|
key: 0
|
2020-08-13 11:47:56 +08:00
|
|
|
},
|
|
|
|
{
|
2021-09-16 19:23:58 +08:00
|
|
|
src: '/images/development/uploader/demo-image2.jpg',
|
|
|
|
key: 1
|
2020-08-13 11:47:56 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
return {
|
|
|
|
images,
|
|
|
|
images2: cloneDeep(images)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|