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.
ant-design-vue/components/vc-trigger/LazyRenderBox.jsx

23 lines
586 B

import PropTypes from '../_util/vue-types';
export default {
props: {
visible: PropTypes.bool,
hiddenClassName: PropTypes.string,
},
render() {
const { hiddenClassName, visible } = this.$props;
let children = null;
if (hiddenClassName || !this.$slots.default || this.$slots.default.length > 1) {
const cls = '';
if (!visible && hiddenClassName) {
// cls += ` ${hiddenClassName}`
}
children = <div class={cls}>{this.$slots.default}</div>;
} else {
children = this.$slots.default[0];
}
return children;
},
};