Skip to content

Commit bebb961

Browse files
committed
fix: basic profile table row-key bind
1 parent 413a595 commit bebb961

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

src/components/PageLoading/index.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Spin } from 'ant-design-vue'
2+
3+
export default {
4+
name: 'PageLoading',
5+
render () {
6+
return (<div style={{ paddingTop: 100, textAlign: 'center' }}>
7+
<Spin size="large" />
8+
</div>)
9+
}
10+
}

src/components/global.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
@import './index.less';
22

3+
html {
4+
overflow: auto;
5+
}
6+
37
body {
48
// 打开滚动条固定显示
59
overflow-y: scroll;
610

711
&.colorWeak {
812
filter: invert(80%);
913
}
14+
&.userLayout {
15+
overflow: auto;
16+
}
1017
}
1118

1219
.layout.ant-layout {

src/views/profile/basic/Index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<div class="title">退货商品</div>
2121
<s-table
2222
style="margin-bottom: 24px"
23+
row-key="id"
2324
:columns="goodsColumns"
2425
:data="loadGoodsData">
2526

@@ -28,6 +29,7 @@
2829
<div class="title">退货进度</div>
2930
<s-table
3031
style="margin-bottom: 24px"
32+
row-key="key"
3133
:columns="scheduleColumns"
3234
:data="loadScheduleData">
3335

0 commit comments

Comments
 (0)