mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-15 09:21:25 +08:00
20 lines
401 B
Vue
20 lines
401 B
Vue
<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>
|