ant-design-vue/components/card/Grid.jsx
2018-04-08 21:17:20 +08:00

20 lines
389 B
JavaScript

import PropTypes from '../_util/vue-types'
export default {
name: 'ACardGrid',
props: {
prefixCls: PropTypes.string.def('ant-card'),
},
render () {
const { prefixCls = 'ant-card', ...others } = this.$props
const classString = {
[`${prefixCls}-grid`]: true,
}
return (
<div {...others} class={classString}>{this.$slots.default}</div>
)
},
}