2019-01-12 03:33:27 +00:00
|
|
|
import PropTypes from '../_util/vue-types';
|
|
|
|
import LazyRenderBox from './LazyRenderBox';
|
2017-12-22 10:43:28 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
hiddenClassName: PropTypes.string.def(''),
|
|
|
|
prefixCls: PropTypes.string,
|
2020-10-10 10:16:28 +00:00
|
|
|
visible: PropTypes.looseBool,
|
2017-12-22 10:43:28 +00:00
|
|
|
},
|
2019-01-12 03:33:27 +00:00
|
|
|
render() {
|
|
|
|
const { prefixCls, visible, hiddenClassName } = this.$props;
|
2018-01-15 09:33:34 +00:00
|
|
|
|
2017-12-22 10:43:28 +00:00
|
|
|
return (
|
2020-06-09 10:30:18 +00:00
|
|
|
<div class={!visible ? hiddenClassName : ''}>
|
2017-12-22 10:43:28 +00:00
|
|
|
<LazyRenderBox class={`${prefixCls}-content`} visible={visible}>
|
2020-10-24 12:36:57 +00:00
|
|
|
{this.$slots.default?.()}
|
2017-12-22 10:43:28 +00:00
|
|
|
</LazyRenderBox>
|
|
|
|
</div>
|
2019-01-12 03:33:27 +00:00
|
|
|
);
|
2017-12-22 10:43:28 +00:00
|
|
|
},
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|