Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
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
刘怀志
pet-business-web
Commits
c2b119eb
Commit
c2b119eb
authored
Aug 23, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
5c1e20ac
fc36e3dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
2 deletions
+58
-2
btn.scss
src/assets/styles/btn.scss
+2
-2
InputTips.vue
src/components/InputTips/InputTips.vue
+56
-0
No files found.
src/assets/styles/btn.scss
View file @
c2b119eb
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
border
:
1px
solid
#5BB647
!
important
;
border
:
1px
solid
#5BB647
!
important
;
color
:
#FFFFFF
!
important
;
color
:
#FFFFFF
!
important
;
}
}
&
.is-disabled
,
&
.is-disabled
:hover
,
&
.is-disabled
:focus
,
&
.permi-disabled
,
&
.permi-disabled
:hover
,
&
.permi-disabled
:focus
{
&
.is-disabled
.el-button.el-button--default
,
&
.is-disabled.el-button.el-button--default
:hover
,
&
.is-disabled.el-button.el-button--default
:focus
,
&
.permi-disabled.el-button.el-button--default
,
&
.permi-disabled.el-button.el-button--default
:hover
,
&
.permi-disabled.el-button.el-button--default
:focus
{
background
:
#83C374
!
important
;
background
:
#83C374
!
important
;
color
:
#FFFFFF
!
important
;
color
:
#FFFFFF
!
important
;
border
:
1px
solid
#83C374
!
important
;
border
:
1px
solid
#83C374
!
important
;
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
color
:
#FFFFFF
!
important
;
color
:
#FFFFFF
!
important
;
border
:
1px
solid
#55A343
!
important
;
border
:
1px
solid
#55A343
!
important
;
}
}
&
.is-disabled
,
&
.is-disabled
:hover
,
&
.is-disabled
:focus
,
&
.permi-disabled
,
&
.permi-disabled
:hover
,
&
.permi-disabled
:focus
{
&
.is-disabled
.el-button.el-button--default
,
&
.is-disabled.el-button.el-button--default
:hover
,
&
.is-disabled.el-button.el-button--default
:focus
,
&
.permi-disabled.el-button.el-button--default
,
&
.permi-disabled.el-button.el-button--default
:hover
,
&
.permi-disabled.el-button.el-button--default
:focus
{
background
:
#83C374
!
important
;
background
:
#83C374
!
important
;
color
:
#FFFFFF
!
important
;
color
:
#FFFFFF
!
important
;
border
:
1px
solid
#83C374
!
important
;
border
:
1px
solid
#83C374
!
important
;
...
...
src/components/InputTips/InputTips.vue
0 → 100644
View file @
c2b119eb
<
template
>
<el-tooltip
:content=
"text"
placement=
"top-start"
:disabled=
"tipDisabled"
>
<el-input
v-model=
"text"
readonly=
"true"
disabled=
"true"
:style=
"
{width: width}"
@mouseover.native="inputOnMouseOver($event)"
/>
</el-tooltip>
</
template
>
<
script
>
export
default
{
name
:
'InputTips'
,
props
:
{
// 输入框内容
text
:
{
type
:
String
,
default
:
null
},
// 输入框宽度
width
:
{
type
:
String
,
default
:
'100%'
}
},
data
()
{
return
{
tipContent
:
null
,
tipDisabled
:
false
}
},
watch
:
{},
created
()
{
},
methods
:
{
inputOnMouseOver
(
event
)
{
const
target
=
event
.
target
// 判断是否开启tooltip功能
if
(
target
.
offsetWidth
<
target
.
scrollWidth
)
{
this
.
tipDisabled
=
false
}
else
{
this
.
tipDisabled
=
true
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
::v-deep
.el-input__inner
{
text-overflow
:
ellipsis
}
</
style
>
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