Skip to content

Commit

Permalink
feat: ✨ 优化优化
Browse files Browse the repository at this point in the history
  • Loading branch information
dizuncainiao committed May 11, 2023
1 parent 1f70f4f commit 10aaec2
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,47 +146,47 @@ export default defineComponent({
})
</script>

<style lang="less">
.bi-chart-layout {
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 28px;
<!--<style lang="less">-->
<!--.bi-chart-layout {-->
<!-- box-sizing: border-box;-->
<!-- width: 100%;-->
<!-- height: 100%;-->
<!-- padding: 28px;-->

.bi-chart-header {
display: flex;
justify-content: space-between;
height: 40px;
margin-bottom: 20px;
<!-- .bi-chart-header {-->
<!-- display: flex;-->
<!-- justify-content: space-between;-->
<!-- height: 40px;-->
<!-- margin-bottom: 20px;-->

.l-box {
text-align: left;
<!-- .l-box {-->
<!-- text-align: left;-->

.title {
font-size: 16px;
font-weight: 600;
line-height: 16px;
color: #242934;
}
<!-- .title {-->
<!-- font-size: 16px;-->
<!-- font-weight: 600;-->
<!-- line-height: 16px;-->
<!-- color: #242934;-->
<!-- }-->

.info {
margin-top: 10px;
font-size: 14px;
font-weight: 400;
line-height: 14px;
color: #9ca6b9;
}
}
<!-- .info {-->
<!-- margin-top: 10px;-->
<!-- font-size: 14px;-->
<!-- font-weight: 400;-->
<!-- line-height: 14px;-->
<!-- color: #9ca6b9;-->
<!-- }-->
<!-- }-->

.r-box {
display: flex;
gap: 8px;
margin-top: -4px;
}
}
<!-- .r-box {-->
<!-- display: flex;-->
<!-- gap: 8px;-->
<!-- margin-top: -4px;-->
<!-- }-->
<!-- }-->

.bi-chart-content {
height: calc(100% - 60px);
}
}
</style>
<!-- .bi-chart-content {-->
<!-- height: calc(100% - 60px);-->
<!-- }-->
<!--}-->
<!--</style>-->
31 changes: 28 additions & 3 deletions packages/bi-chart/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,38 @@
padding: 28px;
}

.bi-chart-header {
.bi-chart-layout .bi-chart-header {
display: flex;
justify-content: space-between;
height: 40px;
margin-bottom: 20px;
}

.bi-chart-content {
height: calc(100% - 60px);
.bi-chart-layout .bi-chart-header .l-box {
text-align: left;
}

.bi-chart-layout .bi-chart-header .l-box .title {
font-size: 16px;
font-weight: 600;
line-height: 16px;
color: #242934;
}

.bi-chart-layout .bi-chart-header .l-box .info {
margin-top: 10px;
font-size: 14px;
font-weight: 400;
line-height: 14px;
color: #9ca6b9;
}

.bi-chart-layout .bi-chart-header .r-box {
display: flex;
gap: 8px;
margin-top: -4px;
}

.bi-chart-layout .bi-chart-content {
height: calc(40%);
}

0 comments on commit 10aaec2

Please sign in to comment.