Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-drainage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 59a2eb4a
authored
Aug 14, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
9a7b717c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
64 deletions
src/components/GLFull/index.vue
src/components/GLFull/index.vue
View file @
59a2eb4
<
template
>
<
template
>
<<<<<<
< HEAD
<div
class=
"full-container"
v-bind=
"$attrs"
>
=======
<div
class=
"full-container"
>
<div
class=
"full-container"
>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-tooltip
placement=
"top"
v-if=
"hoverStatus"
>
<el-tooltip
placement=
"top"
v-if=
"hoverStatus"
>
<div
slot=
"content"
>
<div
slot=
"content"
>
<template
v-if=
"$slots.default"
><slot></slot></
template
>
<template
v-if=
"$slots.default"
><slot></slot></
template
>
...
@@ -11,18 +7,6 @@
...
@@ -11,18 +7,6 @@
{{
label
}}
{{
label
}}
</
template
>
</
template
>
</div>
</div>
<<<<<<
< HEAD
<
div
:class=
"['full-text', identification]"
:style=
"{ 'max-width': labelWidth + 'px' }"
v-if=
"textType != 'text' && !haveClose"
>
<el-tag
type=
"info"
class=
"full-text"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
v-if=
"textType == 'user'"
></i>
<
template
v-if=
"$slots.default"
><slot></slot></
template
>
<
template
v-else
>
{{
label
}}
</
template
>
</el-tag>
</div>
<div
v-if=
"textType != 'text' && haveClose"
>
=======
<div
:class=
"['full-text', identification]"
:style=
"{ width: labelWidth + 'px' }"
@
mouseenter=
"hoverFun"
v-if=
"textType != 'text' && !haveClose"
>
<div
:class=
"['full-text', identification]"
:style=
"{ width: labelWidth + 'px' }"
@
mouseenter=
"hoverFun"
v-if=
"textType != 'text' && !haveClose"
>
<el-tag
type=
"info"
class=
"full-text"
:disable-transitions=
"false"
>
<el-tag
type=
"info"
class=
"full-text"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
v-if=
"textType == 'user'"
></i>
<i
class=
"el-icon-user-solid"
v-if=
"textType == 'user'"
></i>
...
@@ -30,17 +14,12 @@
...
@@ -30,17 +14,12 @@
</el-tag>
</el-tag>
</div>
</div>
<div
v-if=
"textType != 'text' && haveClose"
@
mouseenter=
"hoverFun"
>
<div
v-if=
"textType != 'text' && haveClose"
@
mouseenter=
"hoverFun"
>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-tag
class=
"tag-user-closable"
:style=
"{ 'max-width': labelWidth + 'px' }"
type=
"info"
:disable-transitions=
"false"
closable
@
close=
"handleRemove"
>
<el-tag
class=
"tag-user-closable"
:style=
"{ 'max-width': labelWidth + 'px' }"
type=
"info"
:disable-transitions=
"false"
closable
@
close=
"handleRemove"
>
<i
class=
"el-icon-user-solid"
v-if=
"textType == 'user'"
></i>
<i
class=
"el-icon-user-solid"
v-if=
"textType == 'user'"
></i>
<span
:class=
"['full-text-user', { 'user-icon-checked': textType == 'user' && haveClose }, identification]"
>
{{ label }}
</span>
<span
:class=
"['full-text-user', { 'user-icon-checked': textType == 'user' && haveClose }, identification]"
>
{{ label }}
</span>
</el-tag>
</el-tag>
</div>
</div>
<<<<<<
< HEAD
<
div
:class=
"[line ? 'full-text-line' : 'full-text', identification]"
:style=
"{ 'max-width': labelWidth + 'px', '-webkit-line-clamp': line }"
v-if=
"textType == 'text'"
>
=======
<div
:class=
"[line ? 'full-text-line' : 'full-text', identification]"
@
mouseenter=
"hoverFun"
:style=
"{ width: labelWidth + 'px', '-webkit-line-clamp': line }"
v-if=
"textType == 'text'"
>
<div
:class=
"[line ? 'full-text-line' : 'full-text', identification]"
@
mouseenter=
"hoverFun"
:style=
"{ width: labelWidth + 'px', '-webkit-line-clamp': line }"
v-if=
"textType == 'text'"
>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<
template
v-if=
"$slots.default"
><slot></slot></
template
>
<
template
v-if=
"$slots.default"
><slot></slot></
template
>
<
template
v-else
>
<
template
v-else
>
{{
label
}}
{{
label
}}
...
@@ -48,20 +27,10 @@
...
@@ -48,20 +27,10 @@
</div>
</div>
</el-tooltip>
</el-tooltip>
<
template
v-else
>
<
template
v-else
>
<<<<<<
< HEAD
<div
:class=
"['full-text', identification]"
@
mouseenter=
"hoverFun"
:style=
"
{ 'max-width': labelWidth + 'px' }" v-if="textType != 'text'
&&
!haveClose">
<el-tag
type=
"info"
class=
"full-text"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
v-if=
"textType == 'user'"
></i>
<template
v-if=
"$slots.default"
><slot></slot></
template
>
<
template
v-else
>
{{
label
}}
</
template
>
=======
<div
:class=
"['full-text', identification]"
@
mouseenter=
"hoverFun"
:style=
"
{ width: labelWidth + 'px' }" v-if="textType != 'text'
&&
!haveClose">
<div
:class=
"['full-text', identification]"
@
mouseenter=
"hoverFun"
:style=
"
{ width: labelWidth + 'px' }" v-if="textType != 'text'
&&
!haveClose">
<el-tag
type=
"info"
class=
"full-text"
:disable-transitions=
"false"
>
<el-tag
type=
"info"
class=
"full-text"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
v-if=
"textType == 'user'"
></i>
<i
class=
"el-icon-user-solid"
v-if=
"textType == 'user'"
></i>
{{
label
}}
{{
label
}}
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</el-tag>
</el-tag>
</div>
</div>
<div
@
mouseenter=
"hoverFun"
v-if=
"textType != 'text' && haveClose"
>
<div
@
mouseenter=
"hoverFun"
v-if=
"textType != 'text' && haveClose"
>
...
@@ -70,11 +39,7 @@
...
@@ -70,11 +39,7 @@
<span
:class=
"['full-text-user', identification]"
>
{{
label
}}
</span>
<span
:class=
"['full-text-user', identification]"
>
{{
label
}}
</span>
</el-tag>
</el-tag>
</div>
</div>
<<<<<<
< HEAD
<
div
:class=
"[line ? 'full-text-line' : 'full-text', identification]"
@
mouseenter=
"hoverFun"
:style=
"{ 'max-width': labelWidth + 'px', '-webkit-line-clamp': line }"
v-if=
"textType == 'text'"
>
=======
<div
:class=
"[line ? 'full-text-line' : 'full-text', identification]"
@
mouseenter=
"hoverFun"
:style=
"
{ width: labelWidth + 'px', '-webkit-line-clamp': line }" v-if="textType == 'text'">
<div
:class=
"[line ? 'full-text-line' : 'full-text', identification]"
@
mouseenter=
"hoverFun"
:style=
"
{ width: labelWidth + 'px', '-webkit-line-clamp': line }" v-if="textType == 'text'">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<template
v-if=
"$slots.default"
><slot></slot></
template
>
<template
v-if=
"$slots.default"
><slot></slot></
template
>
<
template
v-else
>
<
template
v-else
>
{{
label
}}
{{
label
}}
...
@@ -88,12 +53,7 @@ export default {
...
@@ -88,12 +53,7 @@ export default {
name
:
'GLFull'
,
name
:
'GLFull'
,
data
()
{
data
()
{
return
{
return
{
<<<<<<<
HEAD
hoverStatus
:
false
,
identification
:
'text_'
+
this
.
identi
=======
hoverStatus
:
false
hoverStatus
:
false
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
}
}
},
},
props
:
{
props
:
{
...
@@ -130,14 +90,6 @@ export default {
...
@@ -130,14 +90,6 @@ export default {
default
:
false
default
:
false
}
}
},
},
<<<<<<<
HEAD
methods
:
{
hoverFun
()
{
if
(
this
.
line
>
1
)
{
this
.
hoverStatus
=
document
.
querySelector
(
`.
${
this
.
identification
}
`
).
scrollHeight
-
10
>
document
.
querySelector
(
`.
${
this
.
identification
}
`
).
offsetHeight
return
}
=======
computed
:
{
computed
:
{
identification
()
{
identification
()
{
return
'text_'
+
this
.
identi
return
'text_'
+
this
.
identi
...
@@ -145,7 +97,6 @@ export default {
...
@@ -145,7 +97,6 @@ export default {
},
},
methods
:
{
methods
:
{
hoverFun
()
{
hoverFun
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
haveClose
)
{
if
(
this
.
haveClose
)
{
//this.hoverStatus = this.identi ? document.querySelector(`.${this.identification}`).scrollWidth > document.querySelector(`.${this.identification}`).offsetWidth : document.querySelector(`.full-text`).scrollWidth > this.labelWidth - 30
//this.hoverStatus = this.identi ? document.querySelector(`.${this.identification}`).scrollWidth > document.querySelector(`.${this.identification}`).offsetWidth : document.querySelector(`.full-text`).scrollWidth > this.labelWidth - 30
this
.
hoverStatus
=
document
.
querySelector
(
`.
${
this
.
identification
}
`
).
scrollWidth
>
document
.
querySelector
(
`.
${
this
.
identification
}
`
).
offsetWidth
this
.
hoverStatus
=
document
.
querySelector
(
`.
${
this
.
identification
}
`
).
scrollWidth
>
document
.
querySelector
(
`.
${
this
.
identification
}
`
).
offsetWidth
...
@@ -154,16 +105,10 @@ export default {
...
@@ -154,16 +105,10 @@ export default {
// this.hoverStatus = this.identi ? document.querySelector(`.${this.identification}`).scrollWidth - widthMuti > this.labelWidth : document.querySelector(`.full-text`).scrollWidth > this.labelWidth
// this.hoverStatus = this.identi ? document.querySelector(`.${this.identification}`).scrollWidth - widthMuti > this.labelWidth : document.querySelector(`.full-text`).scrollWidth > this.labelWidth
this
.
hoverStatus
=
document
.
querySelector
(
`.
${
this
.
identification
}
`
).
scrollWidth
-
widthMuti
>
this
.
labelWidth
this
.
hoverStatus
=
document
.
querySelector
(
`.
${
this
.
identification
}
`
).
scrollWidth
-
widthMuti
>
this
.
labelWidth
}
}
<<<<<<<
HEAD
},
handleRemove
()
{
this
.
$emit
(
'handleRemove'
,
this
.
$attrs
)
=======
console
.
log
(
this
.
hoverStatus
)
console
.
log
(
this
.
hoverStatus
)
},
},
handleRemove
()
{
handleRemove
()
{
this
.
$emit
(
'handleRemove'
)
this
.
$emit
(
'handleRemove'
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
}
}
}
}
}
}
...
@@ -171,19 +116,10 @@ export default {
...
@@ -171,19 +116,10 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.full-container
{
.full-container
{
display
:
inline-block
;
display
:
inline-block
;
<<<<<<<
HEAD
margin-right
:
4px
;
/deep/
{
.el-tag
{
//
margin-right
:
10px
;
line-height
:
26px
;
height
:
26px
;
=======
/deep/
{
/deep/
{
.el-tag
{
.el-tag
{
height
:
26px
;
height
:
26px
;
line-height
:
26px
;
line-height
:
26px
;
>>>>>>>
396e1482ded1b79e8dc9f700b1a584ff319bc981
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment