Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
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
marketing-web
marketing
Commits
f97eb03a
Commit
f97eb03a
authored
Apr 01, 2021
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updaate: 弹窗计划调整
parent
4146342d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletions
+22
-1
form.vue
src/views/pop/form.vue
+22
-1
No files found.
src/views/pop/form.vue
View file @
f97eb03a
...
...
@@ -39,7 +39,12 @@
<div
class=
"file-list-item"
>
<el-image
style=
"width: 70px; height: 70px"
:src=
"fileData.imageUrl"
fit=
"cover"
></el-image>
<p
class=
"info"
>
{{
fileData
.
name
}}
<span
class=
"file-size"
>
(
{{
fileData
.
size
|
fileSize
}}
kb)
</span>
<el-tooltip
v-if=
"showFileNameTip(fileData.name)"
placement=
"top"
>
<div
style=
"max-width: 260px"
slot=
"content"
>
{{
fileData
.
name
}}
</div>
<span
class=
"file-name"
>
{{
fileData
.
name
}}
</span>
</el-tooltip>
<span
v-else
>
{{
fileData
.
name
}}
</span>
<span
class=
"file-size"
>
(
{{
fileData
.
size
|
fileSize
}}
kb)
</span>
</p>
</div>
</
template
>
...
...
@@ -543,6 +548,14 @@ export default {
return
pop
.
id
==
popId
;
});
},
showFileNameTip
(
text
)
{
const
span
=
document
.
createElement
(
'span'
);
span
.
innerHTML
=
text
;
document
.
body
.
appendChild
(
span
);
const
width
=
span
.
offsetWidth
;
document
.
body
.
removeChild
(
span
);
return
width
>
278
;
},
// 投放内容-图片 删除
handleRemove
(
index
,
elIndex
)
{
this
.
group
.
popupList
[
elIndex
].
fileList
=
[];
...
...
@@ -751,6 +764,14 @@ export default {
color
:
#606266
;
line-height
:
1
;
cursor
:
default
;
.file-name
{
display
:
inline-block
;
width
:
278px
;
max-width
:
278px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.file-size
{
margin-left
:
4px
;
color
:
#909399
;
...
...
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