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

20 lines
389 B
React
Raw Normal View History

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