docs(Overlay): use composition api

This commit is contained in:
chenjiahan
2020-12-09 17:54:17 +08:00
parent 488deefb30
commit 8a2495ee6b
3 changed files with 23 additions and 17 deletions
+7 -6
View File
@@ -20,13 +20,14 @@ app.use(Overlay);
```
```js
import { ref } from 'vue';
export default {
data() {
return {
show: false
}
}
},
setup() {
const show = ref(false);
return { show };
},
};
```
### Embedded Content