iview/examples/routers/poptip.vue
梁灏 fcf3cace8e Poptip & Tooltip add transfer prop
Using transfer prop, the dom will be transfered to body.
2017-07-18 17:46:41 +08:00

21 lines
655 B
Vue

<template>
<div>
<Poptip trigger="hover" transfer title="提示标题" content="提示内容">
<Button>hover 激活</Button>
</Poptip>
<Poptip title="提示标题" content="提示内容">
<Button>click 激活</Button>
</Poptip>
<Poptip trigger="focus" title="提示标题" content="提示内容">
<Button>focus 激活</Button>
</Poptip>
<Poptip trigger="focus" title="提示标题" content="提示内容">
<i-input placeholder="输入框的 focus"></i-input>
</Poptip>
</div>
</template>
<script>
export default {
}
</script>