<script lang="ts" setup>
import { ref, watch } from 'vue'
import { ElMessage, ElUpload } from 'element-plus'
import { Plus } from '@element-plus/icons-vue'
import type { UploadProps } from 'element-plus'
import { upload } from '@/api/upDate/obsUtil'
import { nextTick } from 'vue'
const imageUrl = ref('')
const upLoadRef = ref(ElUpload)
const dialogImageUrl = ref('')
const dialogVisible = ref(false)
const uploadFileList = ref<Array<any>>([])
const dragIndex = ref(0)
const enterIndex = ref(0)
const timeout = ref<any>(null)
const $emit = defineEmits(['uploadUrl', 'update:modelValue', 'uploadSuccessStatus'])
const props = withDefaults(
defineProps<{
title?: string // 是否必传
dependentTypes?: number | string // 是否必传
isPrivate?: boolean
fontSize?: numbe
前台-vue3.2 上传组件+拖拽
最新推荐文章于 2024-07-22 08:55:10 发布