commit
694378a57c
2 changed files with 17 additions and 12 deletions
|
@ -2,10 +2,19 @@
|
|||
<div style="margin: 200px">
|
||||
<Tabs value="name1">
|
||||
<TabPane label="标签一" name="name1">
|
||||
<div style="overflow: auto;width: 200px;height:300px">
|
||||
<Poptip title="提示标题" content="标签一的内容" placement="right" transfer :options="options">
|
||||
<div style="width: 200px;height:300px">
|
||||
<Poptip title="提示标题" content="标签一的内容" placement="left" transfer >
|
||||
<Button id="aaa">左边</Button>
|
||||
</Poptip>
|
||||
<Poptip title="提示标题" content="标签一的内容" placement="right" transfer>
|
||||
<Button id="aaa">右边</Button>
|
||||
</Poptip>
|
||||
<Poptip title="提示标题" content="标签一的内容" placement="top" transfer>
|
||||
<Button id="aaa">上边</Button>
|
||||
</Poptip>
|
||||
<Poptip title="提示标题" content="标签一的内容" placement="bottom" transfer>
|
||||
<Button id="aaa">下边</Button>
|
||||
</Poptip>
|
||||
</div>
|
||||
</TabPane>
|
||||
<TabPane label="标签二" name="name2">标签二的内容</TabPane>
|
||||
|
@ -17,11 +26,7 @@
|
|||
data () {
|
||||
return {
|
||||
options: {
|
||||
modifiers: {
|
||||
preventOverflow: {
|
||||
boundariesElement: 'body',
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,9 @@ export default {
|
|||
modifiers: {
|
||||
computeStyle:{
|
||||
gpuAcceleration: false,
|
||||
},
|
||||
preventOverflow :{
|
||||
boundariesElement: 'body'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -83,11 +86,8 @@ export default {
|
|||
}
|
||||
|
||||
options.placement = this.placement;
|
||||
|
||||
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