【新增】新增一个卡片组件,为查询区域统一样式

This commit is contained in:
俞宝山 2021-03-16 21:06:44 +08:00 committed by 小诺
parent 9d573cca6d
commit 4bd84924be
2 changed files with 21 additions and 1 deletions

View File

@ -31,6 +31,9 @@ import ArticleListContent from '@/components/ArticleListContent'
import AntdEditor from '@/components/Editor/WangEditor'
import Dialog from '@/components/Dialog'
// xn components
import XCard from '@/components/xnComponents/XCard'
export {
AvatarList,
Bar,
@ -62,5 +65,6 @@ export {
StandardFormRow,
ArticleListContent,
AntdEditor,
Dialog
Dialog,
XCard
}

View File

@ -0,0 +1,16 @@
<template>
<a-card :bordered="false" :bodyStyle="tstyle">
<slot name="content"></slot>
</a-card>
</template>
<script>
export default {
name: 'XCard',
data() {
return {
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' }
}
}
}
</script>