docs(switch): update docs (#1028)

This commit is contained in:
Yugang Cao 2021-08-31 23:46:09 +08:00 committed by GitHub
parent 6959098fea
commit 170f6f9145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 8 deletions

View File

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

View File

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