ant-design-vue/components/vc-trigger/PopupInner.jsx

22 lines
564 B
Vue
Raw Normal View History

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,
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-06-09 10:30:18 +00:00
{this.$slots.default && 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
};