更新演示

This commit is contained in:
hooray
2022-08-10 20:07:24 +08:00
parent 1b9158f5b9
commit 820a62c0f9
@@ -49,12 +49,17 @@ function handleSuccess3(res, file, fileList) {
<template>
<div>
<page-header title="上传" content="ImageUpload / ImagesUpload / FileUpload" />
<page-header title="上传">
<template #content>
<p>ImageUpload / ImagesUpload / FileUpload</p>
<p style="margin-bottom: 0;">由于线上演示环境开启了 Mock ,会导致上传功能报错,请在本地运行并查看演示</p>
</template>
</page-header>
<page-main title="单图上传">
<image-upload v-model:url="image" action="http://scrm.1daas.com/api/upload/upload" name="image" :width="250" :height="150" :data="{'token':'TKE615916022101558'}" @on-success="handleSuccess1" />
<image-upload v-model:url="image" action="https://console-mock.apipost.cn/app/mock/project/1f50f1da-5189-4282-d3c7-c133a514c5a8/upload/image" name="image" :width="250" :height="150" @on-success="handleSuccess1" />
</page-main>
<page-main title="多图上传(默认最多3张)">
<images-upload v-model:url="images" action="http://scrm.1daas.com/api/upload/upload" name="image" :data="{'token':'TKE615916022101558'}" @on-success="handleSuccess2" />
<images-upload v-model:url="images" action="https://console-mock.apipost.cn/app/mock/project/1f50f1da-5189-4282-d3c7-c133a514c5a8/upload/image" name="image" @on-success="handleSuccess2" />
</page-main>
<page-main title="文件上传(默认最多3个)">
<file-upload :files="files" action="https://console-mock.apipost.cn/app/mock/project/1f50f1da-5189-4282-d3c7-c133a514c5a8/upload/file" @on-success="handleSuccess3" />