iview/examples/routers/poptip.vue

35 lines
1.2 KiB
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">
2018-04-10 15:59:08 +08:00
<div style="width: 200px;height:300px">
<Poptip title="提示标题" content="标签一的内容" placement="left" transfer >
2018-04-10 12:50:19 +08:00
<Button id="aaa">左边</Button>
</Poptip>
2018-04-10 15:59:08 +08:00
<Poptip title="提示标题" content="标签一的内容" placement="right" transfer>
2018-04-10 12:16:05 +08:00
<Button id="aaa">右边</Button>
</Poptip>
2018-04-10 15:59:08 +08:00
<Poptip title="提示标题" content="标签一的内容" placement="top" transfer>
2018-04-10 12:50:19 +08:00
<Button id="aaa">上边</Button>
</Poptip>
2018-04-10 15:59:08 +08:00
<Poptip title="提示标题" content="标签一的内容" placement="bottom" transfer>
2018-04-10 12:50:19 +08:00
<Button id="aaa">下边</Button>
</Poptip>
2018-04-10 12:16:05 +08:00
</div>
</TabPane>
<TabPane label="标签二" name="name2">标签二的内容</TabPane>
</Tabs>
</div>
</template>
<script>
export default {
2018-04-10 12:16:05 +08:00
data () {
return {
options: {
2018-04-10 15:59:08 +08:00
2018-04-10 12:16:05 +08:00
}
2017-08-15 10:07:15 +08:00
}
}
}
2016-10-28 17:24:52 +08:00
</script>