iview/examples/routers/poptip.vue

30 lines
907 B
Vue
Raw Normal View History

<template>
2018-04-10 12:16:05 +08:00
<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">
<Button id="aaa">右边</Button>
</Poptip>
</div>
</TabPane>
<TabPane label="标签二" name="name2">标签二的内容</TabPane>
</Tabs>
</div>
</template>
<script>
export default {
2018-04-10 12:16:05 +08:00
data () {
return {
options: {
modifiers: {
preventOverflow: {
boundariesElement: 'body',
}
}
}
2017-08-15 10:07:15 +08:00
}
}
}
2016-10-28 17:24:52 +08:00
</script>