fixed #1482
This commit is contained in:
parent
9f5a643a16
commit
cd92d87821
2 changed files with 19 additions and 4 deletions
|
@ -1,15 +1,25 @@
|
|||
<template>
|
||||
<div>
|
||||
<Tooltip always placement="top" transfer content="Tooltip 文字提示" :delay="1000">
|
||||
<Tooltip always placement="top" transfer :content="text" :delay="1000">
|
||||
<Button @click="disabled = true">延时1秒显示</Button>
|
||||
</Tooltip>
|
||||
<Tooltip placement="top" transfer content="Tooltip 文字提示">
|
||||
<Button @click="disabled = true">延时1秒显示</Button>
|
||||
<Tooltip placement="top" transfer :content="text">
|
||||
<Button @click="handleChange">change</Button>
|
||||
</Tooltip>
|
||||
<Button @click="handleChange">change</Button>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data () {
|
||||
return {
|
||||
text: 'Tooltip 文字提示'
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
handleChange () {
|
||||
this.text = '提示'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -68,6 +68,11 @@
|
|||
prefixCls: prefixCls
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
content () {
|
||||
this.updatePopper();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleShowPopper() {
|
||||
if (this.timeout) clearTimeout(this.timeout);
|
||||
|
|
Loading…
Add table
Reference in a new issue