Skip to content

Commit c8993af

Browse files
committed
feat: 更新 BubbleList 组件样式
1 parent 49d018d commit c8993af

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

packages/element-x-ui/src/components/BubbleList/main.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@
6262
@click="scrollToBottom"
6363
>
6464
<slot name="backToBottom">
65-
<i class="el-icon-edit el-x-bubble-list-back-to-bottom-icon">
66-
<loadingBg v-if="btnLoading" class="back-to-bottom-loading-svg-bg" />
65+
<i class="el-icon-bottom el-x-bubble-list-back-to-bottom-icon">
6766
</i>
67+
<loadingBg v-if="btnLoading" class="back-to-bottom-loading-svg-bg" />
68+
6869
</slot>
6970
</div>
7071
</div>

packages/element-x-ui/src/styles/BubbleList.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '../theme/var.scss';
2+
13
.el-x-bubble-list {
24
display: flex;
35
flex-direction: column;
@@ -104,6 +106,24 @@
104106
}
105107
}
106108
}
109+
.back-to-bottom-loading-svg-bg {
110+
position: absolute;
111+
font-size: calc(var(--el-x-bubble-list-btn-size) + 26px);
112+
animation: is-loading 1s infinite linear;
113+
width: 40px;
114+
height: 40px;
115+
color: $--el-x-color-primary;
116+
}
117+
118+
@keyframes is-loading {
119+
0% {
120+
transform: rotate(0deg);
121+
}
122+
100% {
123+
transform: rotate(360deg);
124+
}
125+
}
126+
107127
}
108128

109129
.el-x-bubble-list-back-to-bottom-solt {

packages/element-x-ui/src/theme/var.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@import "~element-ui/packages/theme-chalk/src/common/var";
2+
3+
$--el-x-color-primary: $--color-primary ;
24
// 字体大小
35
$--el-x-font-size-base: $--font-size-base;
46

0 commit comments

Comments
 (0)