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

16 lines
379 B
Vue
Raw Normal View History

2019-01-12 03:33:27 +00:00
import PropTypes from '../_util/vue-types';
2020-01-19 08:58:38 +00:00
import { getListeners } from '../_util/props-util';
2018-03-05 11:05:23 +00:00
const ILazyRenderBoxPropTypes = {
visible: PropTypes.bool,
hiddenClassName: PropTypes.string,
2019-12-09 14:23:40 +00:00
forceRender: PropTypes.bool,
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-01-19 08:58:38 +00:00
return <div {...{ on: getListeners(this) }}>{this.$slots.default}</div>;
2018-03-05 11:05:23 +00:00
},
2019-01-12 03:33:27 +00:00
};