Commit b04b6add by Sendya

fix: linkList type & CardList a-card actions

parent 1999c55b
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
default: null default: null
}, },
linkList: { linkList: {
type: String, type: Array,
default: null default: null
}, },
extraImage: { extraImage: {
......
<template>
<div :class="['detail-list', size === 'small' ? 'small' : 'large', layout === 'vertical' ? 'vertical': 'horizontal']">
<div v-if="title" class="title">{{ title }}</div>
<a-row>
<slot></slot>
</a-row>
</div>
</template>
<script>
export default {
name: "DetailList",
props: {
term: {
type: String,
default: null
}
},
inject: {
col: {
type: Number
}
},
methods: {
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
...@@ -172,7 +172,7 @@ export const asyncRouterMap = [ ...@@ -172,7 +172,7 @@ export const asyncRouterMap = [
{ {
path: '/profile/basic', path: '/profile/basic',
name: 'ProfileBasic', name: 'ProfileBasic',
component: () => import('../views/list/TableList'), component: () => import('../views/profile/basic/Index'),
meta: { title: '基础详情页' } meta: { title: '基础详情页' }
}, },
{ {
......
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
<a-avatar class="card-avatar" slot="avatar" :src="item.avatar" size="large"/> <a-avatar class="card-avatar" slot="avatar" :src="item.avatar" size="large"/>
<div class="meta-content" slot="description">{{ item.content }}</div> <div class="meta-content" slot="description">{{ item.content }}</div>
</a-card-meta> </a-card-meta>
<ul class="ant-card-actions" slot="actions"> <template class="ant-card-actions" slot="actions">
<li><a>操作一</a></li> <a>操作一</a>
<li><a>操作二</a></li> <a>操作二</a>
</ul> </template>
</a-card> </a-card>
</template> </template>
</a-list-item> </a-list-item>
......
<template>
<a-card :bordered="false">
basic
</a-card>
</template>
<script>
export default {}
</script>
<style scoped>
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment