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

20 lines
389 B
React
Raw Normal View History

2018-03-19 10:16:27 +08:00
2018-01-20 14:33:42 +08:00
import PropTypes from '../_util/vue-types'
export default {
2018-04-08 21:17:20 +08:00
name: 'ACardGrid',
2018-01-20 14:33:42 +08:00
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>
)
},
}
2018-03-19 10:16:27 +08:00