Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
npm
/
glsx-components
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 098df0d7
authored
Jul 26, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:添加按钮背景透明
1 parent
e85b3ab5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
src/packages/GLDialog/src/index.vue
src/theme/theme.scss
src/packages/GLDialog/src/index.vue
View file @
098df0d
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</span>
</span>
</
template
>
</
template
>
<!-- footer插槽 -->
<!-- footer插槽 -->
<slot
name=
"footer"
v-
else
></slot>
<slot
name=
"footer"
v-
if=
"$slots.footer"
></slot>
</template>
</template>
</el-dialog>
</el-dialog>
</div>
</div>
...
...
src/theme/theme.scss
View file @
098df0d
...
@@ -118,13 +118,14 @@ $lightColorDisabled: $color-primary-light04;
...
@@ -118,13 +118,14 @@ $lightColorDisabled: $color-primary-light04;
.el-button.is-plain
:focus
,
.el-button.is-plain
:focus
,
.el-button.is-plain
:hover
{
.el-button.is-plain
:hover
{
background
:
#fff
;
background
:
transparent
;
border-color
:
$lightColor
;
border-color
:
$lightColor
;
color
:
$lightColor
;
color
:
$lightColor
;
}
}
.el-button.is-plain
{
.el-button.is-plain
{
border-color
:
$defaultColor
;
border-color
:
$defaultColor
;
color
:
$defaultColor
;
color
:
$defaultColor
;
background
:
transparent
;
}
}
.el-button.is-plain
:active
{
.el-button.is-plain
:active
{
border-color
:
$dackColor
;
border-color
:
$dackColor
;
...
@@ -133,6 +134,7 @@ $lightColorDisabled: $color-primary-light04;
...
@@ -133,6 +134,7 @@ $lightColorDisabled: $color-primary-light04;
.el-button.is-disabled.is-plain
,
.el-button.is-disabled.is-plain
:focus
,
.el-button.is-disabled.is-plain
:hover
{
.el-button.is-disabled.is-plain
,
.el-button.is-disabled.is-plain
:focus
,
.el-button.is-disabled.is-plain
:hover
{
border-color
:
$lightColorDisabled
;
border-color
:
$lightColorDisabled
;
color
:
$lightColorDisabled
;
color
:
$lightColorDisabled
;
background-color
:transparent
;
}
}
// 三级按钮样式 以is-plain为基础
// 三级按钮样式 以is-plain为基础
.el-button.is-plain.btn-three
{
.el-button.is-plain.btn-three
{
...
...
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