Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d19b4277
authored
2023-03-21 14:18:01 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/bdc/bdcjg-web
2 parents
824c8309
07b5b0be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
140 additions
and
34 deletions
src/components/Button.vue
src/styles/jgPublic.scss
src/styles/sbPublic.scss
src/components/Button.vue
View file @
d19b427
<
template
>
<button
class=
"button"
:class=
"nativeType"
@
click
.
prevent=
"handleClick"
:type=
"nativeType"
>
<
el-
button
class=
"button"
:class=
"nativeType"
@
click
.
prevent=
"handleClick"
:type=
"nativeType"
>
<slot></slot>
</button>
</
el-
button>
</
template
>
<
script
>
export
default
{
name
:
'Button'
,
props
:
{
nativeType
:
{
type
:
String
,
default
:
'cx'
export
default
{
name
:
'Button'
,
props
:
{
nativeType
:
{
type
:
String
,
default
:
'cx'
},
},
},
methods
:
{
handleClick
(
evt
)
{
this
.
$emit
(
'click'
,
evt
);
methods
:
{
handleClick
(
evt
)
{
this
.
$emit
(
'click'
,
evt
);
}
}
}
};
};
</
script
>
<
style
scoped
lang=
"scss"
>
.button
{
width
:
76px
;
height
:
32px
;
color
:
#ffffff
;
margin
:
0
5px
;
cursor
:
pointer
;
border
:
0
;
font-size
:
14px
;
}
.cx
{
background
:
url('../image/btn.png')
no-repeat
0
-34px
;
background-size
:
cover
;
}
.cz
{
background
:
url('../image/btn.png')
no-repeat
0
0
;
background-size
:
cover
;
}
</
style
>
...
...
src/styles/jgPublic.scss
View file @
d19b427
...
...
@@ -494,4 +494,61 @@
color
:
white
;
cursor
:
text
;
font-weight
:
normal
;
}
\ No newline at end of file
}
.button
{
width
:
76px
;
height
:
32px
;
color
:
#ffffff
;
cursor
:
pointer
;
border
:
0
;
font-size
:
12px
;
}
.button
:hover
{
// width: 76px;
// height: 32px;
// color: #ffffff;
// cursor: pointer;
// border: 0;
// font-size: 12px;
// background: none;
}
.cx
{
background
:
url("../image/btn.png")
no-repeat
0
-34px
;
background-size
:
cover
;
}
.cx
:hover
{
background
:
url("../image/btn.png")
no-repeat
0
-34px
;
background-size
:
cover
;
color
:
white
;
}
.cz
{
background
:
url("../image/btn.png")
no-repeat
0
0
;
background-size
:
cover
;
}
.cz
:hover
{
background
:
url("../image/btn.png")
no-repeat
0
0
;
background-size
:
cover
;
color
:
white
;
}
.el-button
:focus
{
background
:
none
;
}
.cx
:focus
{
background
:
url("../image/btn.png")
no-repeat
0
-34px
;
background-size
:
cover
;
color
:
white
;
}
.cz
:focus
{
background
:
url("../image/btn.png")
no-repeat
0
0
;
background-size
:
cover
;
color
:
white
;
}
...
...
src/styles/sbPublic.scss
View file @
d19b427
...
...
@@ -68,4 +68,71 @@
::-webkit-scrollbar-thumb:hover
{
background-color
:
rgb
(
162
,
164
,
167
);
}
\ No newline at end of file
}
// 搜索框按钮的位置
.btnColRight
{
box-sizing
:
border-box
;
text-align
:
right
;
}
// 按钮样式
.button
:hover
{
width
:
86px
;
height
:
32px
;
color
:
#ffffff
;
cursor
:
pointer
;
border
:
0
;
font-size
:
12px
;
background
:
none
;
}
.cx
{
width
:
86px
;
height
:
32px
;
background-color
:
#4162D8
;
color
:
white
;
border
:
none
;
}
.cx
:hover
{
width
:
86px
;
height
:
32px
;
background-color
:
#4162D8
;
color
:
white
;
border
:
none
;
}
.cz
{
width
:
86px
;
height
:
32px
;
background-color
:
white
;
color
:
#4162D8
;
border
:
1px
solid
rgba
(
65
,
98
,
216
,
0
.3
);
}
.cz
:hover
{
width
:
86px
;
height
:
32px
;
background-color
:
white
;
color
:
#4162D8
;
border
:
1px
solid
rgba
(
65
,
98
,
216
,
0
.3
);
}
.el-button
:focus
{
// background: none;
}
.cx
:focus
{
color
:
white
;
background-color
:
#4162D8
;
background-size
:
cover
;
}
.cz
:focus
{
color
:
#4162D8
;
background-color
:
white
;
;
background-size
:
cover
;
}
...
...
Please
register
or
sign in
to post a comment