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.
24 lines
487 B
24 lines
487 B
import PropTypes from '../_util/vue-types';
|
|
|
|
export default {
|
|
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>
|
|
);
|
|
},
|
|
};
|