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.
28 lines
629 B
28 lines
629 B
7 years ago
|
|
||
7 years ago
|
import PropTypes from '../_util/vue-types'
|
||
7 years ago
|
import LazyRenderBox from './LazyRenderBox'
|
||
|
|
||
|
export default {
|
||
|
props: {
|
||
|
hiddenClassName: PropTypes.string.def(''),
|
||
|
prefixCls: PropTypes.string,
|
||
7 years ago
|
visible: PropTypes.bool,
|
||
7 years ago
|
},
|
||
|
render () {
|
||
7 years ago
|
const { prefixCls, visible, hiddenClassName } = this.$props
|
||
7 years ago
|
const { $listeners } = this
|
||
|
const divProps = {
|
||
|
on: $listeners,
|
||
|
}
|
||
7 years ago
|
|
||
7 years ago
|
return (
|
||
7 years ago
|
<div {...divProps} class={!visible ? hiddenClassName : ''}>
|
||
7 years ago
|
<LazyRenderBox class={`${prefixCls}-content`} visible={visible}>
|
||
|
{this.$slots.default}
|
||
|
</LazyRenderBox>
|
||
|
</div>
|
||
|
)
|
||
|
},
|
||
|
}
|
||
|
|