You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
647 B
29 lines
647 B
<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, hiddenClassName } = this.$props
|
|
const { $listeners } = this
|
|
const divProps = {
|
|
on: $listeners,
|
|
}
|
|
|
|
return (
|
|
<div {...divProps} class={!visible ? hiddenClassName : ''}>
|
|
<LazyRenderBox class={`${prefixCls}-content`} visible={visible}>
|
|
{this.$slots.default}
|
|
</LazyRenderBox>
|
|
</div>
|
|
)
|
|
},
|
|
}
|
|
|
|
</script>
|