update popper
This commit is contained in:
parent
586bf3fc1b
commit
e8139eac58
2 changed files with 17 additions and 2 deletions
|
@ -3,9 +3,18 @@
|
|||
<Tabs value="name1">
|
||||
<TabPane label="标签一" name="name1">
|
||||
<div style="overflow: auto;width: 200px;height:300px">
|
||||
<Poptip title="提示标题" content="标签一的内容" placement="left" transfer :options="options">
|
||||
<Button id="aaa">左边</Button>
|
||||
</Poptip>
|
||||
<Poptip title="提示标题" content="标签一的内容" placement="right" transfer :options="options">
|
||||
<Button id="aaa">右边</Button>
|
||||
</Poptip>
|
||||
<Poptip title="提示标题" content="标签一的内容" placement="top" transfer :options="options">
|
||||
<Button id="aaa">上边</Button>
|
||||
</Poptip>
|
||||
<Poptip title="提示标题" content="标签一的内容" placement="bottom" transfer :options="options">
|
||||
<Button id="aaa">下边</Button>
|
||||
</Poptip>
|
||||
</div>
|
||||
</TabPane>
|
||||
<TabPane label="标签二" name="name2">标签二的内容</TabPane>
|
||||
|
|
|
@ -33,6 +33,12 @@ export default {
|
|||
computeStyle:{
|
||||
gpuAcceleration: false,
|
||||
}
|
||||
},
|
||||
preventOverflow :{
|
||||
boundariesElement: 'body',
|
||||
},
|
||||
flip :{
|
||||
boundariesElement: 'body',
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -84,10 +90,10 @@ export default {
|
|||
|
||||
options.placement = this.placement;
|
||||
|
||||
if (options.modifiers) {
|
||||
if (!options.modifiers) {
|
||||
options.modifiers = {};
|
||||
}
|
||||
if (options.modifiers.offset) {
|
||||
if (!options.modifiers.offset) {
|
||||
options.modifiers.offset = {};
|
||||
}
|
||||
options.modifiers.offset = this.offset;
|
||||
|
|
Loading…
Add table
Reference in a new issue