by @leisure Skip to content

upload

文件上传

基础用法

拖拽到这里或者点击上传
<template>
  <adv-upload v-model="imgPath"></adv-upload>
  <div>{{ imgPath }}</div>
</template>

<script setup lang="ts">
import { onMounted, ref } from 'vue';
const imgPath = ref<any>('');

onMounted(() => {
  imgPath.value = [
    'fe4e6cbdca5d9be8dbd0fa612706c47d-IMG_5213.JPG',
    '52022dc0c82a16b5b67b2a5cd2617cf0-lx3.jpg',
  ];
});
</script>

<style scoped></style>

模型接口

ts
interface PropsI {
  text: string;
  fillColor?: string;
  strokeColor?: string;
}

属性

属性是否必填默认值说明
textstring''展示的文本
fillColorstring'#488acc'展示文本底色的填充色
strokeColorstringfalse展示文本的边框色

插槽

插槽名是否必填默认值说明

鄂ICP备2024065629号-1     📮联系邮箱:570337910@qq.com