docs(Dialog): use composition api

This commit is contained in:
chenjiahan
2020-12-09 17:52:31 +08:00
parent 8a7882b0c8
commit 488deefb30
3 changed files with 57 additions and 45 deletions
+5 -4
View File
@@ -144,11 +144,12 @@ export default {
```
```js
import { ref } from 'vue';
export default {
data() {
return {
show: false,
};
setup() {
const show = ref(false);
return { show };
},
};
```