Skip to content

Commit b04b6ad

Browse files
committed
fix: linkList type & CardList a-card actions
1 parent 1999c55 commit b04b6ad

File tree

5 files changed

+51
-6
lines changed

5 files changed

+51
-6
lines changed

β€Žsrc/components/layout/PageLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
default: null
5050
},
5151
linkList: {
52-
type: String,
52+
type: Array,
5353
default: null
5454
},
5555
extraImage: {
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<template>
2+
<div :class="['detail-list', size === 'small' ? 'small' : 'large', layout === 'vertical' ? 'vertical': 'horizontal']">
3+
<div v-if="title" class="title">{{ title }}</div>
4+
<a-row>
5+
<slot></slot>
6+
</a-row>
7+
</div>
8+
</template>
9+
10+
<script>
11+
export default {
12+
name: "DetailList",
13+
props: {
14+
term: {
15+
type: String,
16+
default: null
17+
}
18+
},
19+
inject: {
20+
col: {
21+
type: Number
22+
}
23+
},
24+
methods: {
25+
26+
}
27+
}
28+
</script>
29+
30+
<style scoped>
31+
32+
</style>

β€Žsrc/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export const asyncRouterMap = [
172172
{
173173
path: '/profile/basic',
174174
name: 'ProfileBasic',
175-
component: () => import('../views/list/TableList'),
175+
component: () => import('../views/profile/basic/Index'),
176176
meta: { title: 'εŸΊη‘€θ―¦ζƒ…ι‘΅' }
177177
},
178178
{

β€Žsrc/views/list/CardList.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
<a-avatar class="card-avatar" slot="avatar" :src="item.avatar" size="large"/>
1919
<div class="meta-content" slot="description">{{ item.content }}</div>
2020
</a-card-meta>
21-
<ul class="ant-card-actions" slot="actions">
22-
<li><a>ζ“δ½œδΈ€</a></li>
23-
<li><a>ζ“δ½œδΊŒ</a></li>
24-
</ul>
21+
<template class="ant-card-actions" slot="actions">
22+
<a>ζ“δ½œδΈ€</a>
23+
<a>ζ“δ½œδΊŒ</a>
24+
</template>
2525
</a-card>
2626
</template>
2727
</a-list-item>

β€Žsrc/views/profile/basic/Index.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<template>
2+
<a-card :bordered="false">
3+
basic
4+
</a-card>
5+
</template>
6+
7+
<script>
8+
export default {}
9+
</script>
10+
11+
<style scoped>
12+
13+
</style>

0 commit comments

Comments
Β (0)