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

20 lines
395 B
Vue
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' } = this.$props
2018-01-20 06:33:42 +00:00
const classString = {
[`${prefixCls}-grid`]: true,
}
return (
<div {...{ on: this.$listeners }} class={classString}>{this.$slots.default}</div>
2018-01-20 06:33:42 +00:00
)
},
}
2018-03-19 02:16:27 +00:00