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
@@ -111,11 +111,12 @@ If you need to render vue components within a dialog, you can use dialog compone
```
```js
import { ref } from 'vue';
export default {
data() {
return {
show: false,
};
setup() {
const show = ref(false);
return { show };
},
};
```