ant-design-vue/components/card/Grid.vue

20 lines
401 B
Vue
Raw Normal View History

2018-01-20 06:33:42 +00:00
<script>
import PropTypes from '../_util/vue-types'
export default {
name: 'Grid',
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>
)
},
}
</script>