Skip to content

Commit da679b6

Browse files
committed
[List]功能修改:
1.加载时不显示Empty内容 2.loading区域背景色改为透明
1 parent f4f833b commit da679b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/list/src/list.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export default {
5555
this.$nextTick(() => {
5656
let loadingConfig = {
5757
target: this.$refs.loading,
58-
spinner: 'el-icon-loading'
58+
spinner: 'el-icon-loading',
59+
background: 'transparent'
5960
};
6061
if (this.loadingConfig) {
6162
loadingConfig = merge(loadingConfig, this.loadingConfig);
@@ -131,7 +132,7 @@ export default {
131132
) : listItemChildren.length > 0 ? (
132133
this._l(listItemChildren, node => node)
133134
) : (
134-
<div class="el-list__empty-text">
135+
<div class="el-list__empty-text" v-show={!this.loading}>
135136
{
136137
this.$slots.empty ? this.$slots.empty : (this.emptyText || this.t('el.list.emptyText'))
137138
}

0 commit comments

Comments
 (0)