ant-design-vue/components/vc-trigger/PopupInner.jsx
2019-01-12 12:46:29 +08:00

26 lines
633 B
Vue

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>
);
},
};