Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
mongo-ui
Commits
a06728fc
Commit
a06728fc
authored
Jul 27, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: modal按钮问题修改
parent
b30cc2de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
Modal.vue
src/components/Modal.vue
+5
-3
index.less
src/style/index.less
+10
-0
var.less
src/style/var.less
+2
-2
No files found.
src/components/Modal.vue
View file @
a06728fc
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
{{
content
}}
{{
content
}}
</slot>
</slot>
</div>
</div>
<div
class=
"panel-foot"
>
<div
class=
"panel-foot"
:class=
"
{ split: confirmBtn
&&
cancelBtn }"
>
<cr-button
size=
"large"
block
@
click=
"onConcel"
v-if=
"cancelBtn"
>
<cr-button
size=
"large"
block
@
click=
"onConcel"
v-if=
"cancelBtn"
>
{{
cancelBtn
}}
{{
cancelBtn
}}
</cr-button>
</cr-button>
...
@@ -130,8 +130,10 @@ export default {
...
@@ -130,8 +130,10 @@ export default {
justify-content: space-between;
justify-content: space-between;
align-items: center;
align-items: center;
padding: @padding-lg;
padding: @padding-lg;
.cr-button {
&.split {
width: 48%;
.cr-button {
width: 48%;
}
}
}
}
}
}
}
...
...
src/style/index.less
View file @
a06728fc
...
@@ -23,6 +23,16 @@ a {
...
@@ -23,6 +23,16 @@ a {
border: 1px solid @button-warning-border-color !important;
border: 1px solid @button-warning-border-color !important;
border-radius: @border-radius-md !important;
border-radius: @border-radius-md !important;
}
}
&--default {
color: @button-default-color !important;
background-color: @button-default-background-color !important;
border: 1px solid @button-default-border-color !important;
border-radius: @border-radius-md !important;
}
&--large {
height: @button-large-height !important;
line-height: @button-large-line-height !important;
}
}
}
.cr-tag {
.cr-tag {
...
...
src/style/var.less
View file @
a06728fc
...
@@ -80,8 +80,8 @@
...
@@ -80,8 +80,8 @@
@button-default-line-height: 36px;
@button-default-line-height: 36px;
@button-default-font-size: @font-size-12;
@button-default-font-size: @font-size-12;
@button-default-color: @text-color;
@button-default-color: @text-color;
@button-default-background-color: @
white
;
@button-default-background-color: @
gray-1
;
@button-default-border-color: @gray-
2
;
@button-default-border-color: @gray-
1
;
@button-primary-color: @blue;
@button-primary-color: @blue;
@button-primary-background-color: #f4f5ff;
@button-primary-background-color: #f4f5ff;
...
...
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