Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
field: progress, fix color
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmsig committed Aug 23, 2019
1 parent 6551817 commit d16479a
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions src/components/fields/progress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
res: {
props: {
percentage: "percentage",
status: "status"
status: "danger"
},
data: {
percentage: 60,
Expand All @@ -37,26 +37,24 @@ export default {
<style lang="scss" scoped>
.progress {
width: 100%;
}
.bar {
::v-deep {
.el-progress-bar__inner {
.danger & {
background-color: $danger;
}
.warning & {
background-color: $warning;
}
.info & {
background-color: $info;
}
.primary & {
background-color: $primary;
}
.success & {
background-color: $success;
}
}
::v-deep {
.el-progress-bar__inner {
.danger & {
background-color: $danger;
}
.warning & {
background-color: $warning;
}
.info & {
background-color: $info;
}
.primary & {
background-color: $primary;
}
.success & {
background-color: $success;
}
}
}
Expand Down

0 comments on commit d16479a

Please sign in to comment.