<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'
前台-vue3.2 上传组件+拖拽
最新推荐文章于 2024-05-30 15:10:34 发布