mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 21:50:07 +08:00
25 lines
506 B
Vue
25 lines
506 B
Vue
import PropTypes from '../_util/vue-types';
|
|
|
|
export default {
|
|
name: 'Content',
|
|
props: {
|
|
prefixCls: PropTypes.string,
|
|
overlay: PropTypes.any,
|
|
trigger: PropTypes.any,
|
|
},
|
|
updated() {
|
|
const { trigger } = this;
|
|
if (trigger) {
|
|
trigger.forcePopupAlign();
|
|
}
|
|
},
|
|
render() {
|
|
const { overlay, prefixCls } = this;
|
|
return (
|
|
<div class={`${prefixCls}-inner`} role="tooltip">
|
|
{typeof overlay === 'function' ? overlay() : overlay}
|
|
</div>
|
|
);
|
|
},
|
|
};
|