ant-design-vue/components/vc-dialog/LazyRenderBox.jsx

16 lines
346 B
Vue
Raw Normal View History

2019-01-12 03:33:27 +00:00
import PropTypes from '../_util/vue-types';
2020-06-15 10:55:12 +00:00
import { getSlot } from '../_util/props-util';
2018-03-05 11:05:23 +00:00
const ILazyRenderBoxPropTypes = {
visible: PropTypes.looseBool,
2018-03-05 11:05:23 +00:00
hiddenClassName: PropTypes.string,
forceRender: PropTypes.looseBool,
2019-01-12 03:33:27 +00:00
};
2018-03-05 11:05:23 +00:00
export default {
props: ILazyRenderBoxPropTypes,
2019-01-12 03:33:27 +00:00
render() {
2020-06-15 10:55:12 +00:00
return <div>{getSlot(this)}</div>;
2018-03-05 11:05:23 +00:00
},
2019-01-12 03:33:27 +00:00
};