docs(tooltip): 完善文档中的用例 (#888)

This commit is contained in:
songjianet 2021-08-16 16:47:18 +08:00 committed by GitHub
parent ec8ccdee73
commit 93727df2d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 8 deletions

View File

@ -24,11 +24,13 @@
```
```js
export default {
data () {
import { defineComponent, ref } from 'vue'
export default defineComponent({
setup () {
return {
showPopover: false
showPopover: ref(false)
}
}
}
})
```

View File

@ -24,11 +24,13 @@
```
```js
export default {
data () {
import { defineComponent, ref } from 'vue'
export default defineComponent({
setup () {
return {
showPopover: false
showPopover: ref(false)
}
}
}
})
```