docs(spin): Update vue2 API to vue3 (#897)

This commit is contained in:
songjianet 2021-08-17 11:15:50 +08:00 committed by GitHub
parent 24b06a8aab
commit 194c4e77e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 8 deletions

View File

@ -14,11 +14,13 @@ You can wrap a component inside spin.
```
```js
export default {
data () {
import { defineComponent, ref } from 'vue'
export default defineComponent({
setup () {
return {
show: false
show: ref(false)
}
}
}
})
```

View File

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