Commit f59f8592 authored by zhengke's avatar zhengke

删除多余代码

parent 7ce82819
......@@ -54,34 +54,6 @@
</div>
</div>
</FileInput>
<!--
<div>
<el-upload
v-loading="isUpload"
ref="upload"
class="upload-drop-box"
:on-change="handleChange"
action=""
drag
:limit="1"
:on-exceed="handleExceed"
:auto-upload="false"
accept=".png,.jpg"
:show-file-list="false"
>
<el-icon v-if="!imgPath" class="el-icon--upload">
<upload-filled />
</el-icon>
<div v-if="!imgPath" class="el-upload__text">
<template>
拖动文件到这里释放或<em>点击上传</em>
</template>
</div>
<template #tip>
</template>
</el-upload>
</div> -->
</el-tab-pane>
<el-tab-pane label="图片地址" name="3">
<div class="row wrap q-mt-md">
......@@ -120,7 +92,6 @@ const imgPoolVisibleStore = useScreenStore()
const imgReplaceVisibleStore = useScreenStore()
const imageFile = ref({})
const isUpload = ref(false)
const imgOnline = ref('')
const imgPath = ref('')
const imgUrl = ref('')
......@@ -170,7 +141,6 @@ const insertImageElement = (files: FileList) => {
getImageDataURL(imageFile).then(dataURL => {
imgPath.value = dataURL,
propsDatas.value = { src: dataURL }
// createImageElement(dataURL)
})
}
......@@ -257,11 +227,6 @@ const handleClick = (tab: TabsPaneContext, event: Event) => {
}
const close = () =>{
// imgOnline.value = ''
// datas.imgList.forEach(x=>{x.show=false})
// imgPath.value = ''
// imageFile.value = {}
// imgUrl.value = ''
showVisible.value = false
imgPoolVisibleStore.setImgPoolVisible(false)
imgReplaceVisibleStore.setImgReplaceVisible(false)
......@@ -291,22 +256,6 @@ const getImgList = async () =>{
}
}
const handleChange: UploadProps['onChange'] = (uploadFile, uploadFiles) => {
isUpload.value=true
console.log(uploadFile,'---------')
if(uploadFile){
imageFile.value = uploadFile
imgPath.value = URL.createObjectURL(uploadFile?.raw)
isUpload.value=false
}
}
const handleExceed: UploadProps['onExceed'] = (files) => {
console.log('执行clear')
upload.value!.clearFiles()
const file = files[0] as UploadRawFile
upload.value!.handleStart(file)
}
getImgList()
</script>
......@@ -326,7 +275,6 @@ getImgList()
}
.UploadPicture-list{
width: 150px;
/* height: 150px; */
margin: 5px;
}
.UploadPicture-listBox{
......@@ -350,7 +298,6 @@ getImgList()
right: 0;
bottom: 0;
background: rgba(23,23,23,0.5);
/* opacity: 0; */
display: none;
transition: opacity 0.5s ease;
display: flex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment