by @leisure Skip to content

upload ​

文件上传

基础用法 ​

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

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

onMounted(() => {
  imgPath.value = [];
});
</script>

<style scoped></style>

模型接口 ​

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

属性 ​

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

插槽 ​

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

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