Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
f59f8592
Commit
f59f8592
authored
Dec 07, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除多余代码
parent
7ce82819
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
53 deletions
+0
-53
UploadPicture.vue
src/views/Editor/CanvasTool/UploadPicture.vue
+0
-53
No files found.
src/views/Editor/CanvasTool/UploadPicture.vue
View file @
f59f8592
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment