mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
28 lines
589 B
Vue
28 lines
589 B
Vue
<script>
|
|
import PropTypes from '../_util/vue-types'
|
|
import LazyRenderBox from './LazyRenderBox'
|
|
|
|
export default {
|
|
props: {
|
|
hiddenClassName: PropTypes.string.def(''),
|
|
prefixCls: PropTypes.string,
|
|
visible: PropTypes.bool,
|
|
},
|
|
render () {
|
|
const { prefixCls, visible } = this.$props
|
|
const { $listeners } = this
|
|
const divProps = {
|
|
on: $listeners,
|
|
}
|
|
return (
|
|
<div {...divProps}>
|
|
<LazyRenderBox class={`${prefixCls}-content`} visible={visible}>
|
|
{this.$slots.default}
|
|
</LazyRenderBox>
|
|
</div>
|
|
)
|
|
},
|
|
}
|
|
|
|
</script>
|