Commit b04b6add by Sendya

fix: linkList type & CardList a-card actions

parent 1999c55b
......@@ -49,7 +49,7 @@
default: null
},
linkList: {
type: String,
type: Array,
default: null
},
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 = [
{
path: '/profile/basic',
name: 'ProfileBasic',
component: () => import('../views/list/TableList'),
component: () => import('../views/profile/basic/Index'),
meta: { title: '基础详情页' }
},
{
......
......@@ -18,10 +18,10 @@
<a-avatar class="card-avatar" slot="avatar" :src="item.avatar" size="large"/>
<div class="meta-content" slot="description">{{ item.content }}</div>
</a-card-meta>
<ul class="ant-card-actions" slot="actions">
<li><a>操作一</a></li>
<li><a>操作二</a></li>
</ul>
<template class="ant-card-actions" slot="actions">
<a>操作一</a>
<a>操作二</a>
</template>
</a-card>
</template>
</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