diff --git a/src/views/dialog/DialogDemo.vue b/src/views/dialog/DialogDemo.vue
index 9dc97830c..7bcdf8ec5 100644
--- a/src/views/dialog/DialogDemo.vue
+++ b/src/views/dialog/DialogDemo.vue
@@ -8,15 +8,91 @@
-
-
@@ -31,15 +107,45 @@ import DialogDoc from './DialogDoc';
export default {
data() {
return {
- display: false
+ displayBasic: false,
+ displayBasic2: false,
+ displayModal: false,
+ displayMaximizable: false,
+ displayPosition: false,
+ position: 'center'
}
},
methods: {
- open() {
- this.display = true;
+ openBasic() {
+ this.displayBasic = true;
},
- close() {
- this.display = false;
+ closeBasic() {
+ this.displayBasic = false;
+ },
+ openBasic2() {
+ this.displayBasic2 = true;
+ },
+ closeBasic2() {
+ this.displayBasic2 = false;
+ },
+ openModal() {
+ this.displayModal = true;
+ },
+ closeModal() {
+ this.displayModal = false;
+ },
+ openMaximizable() {
+ this.displayMaximizable = true;
+ },
+ closeMaximizable() {
+ this.displayMaximizable = false;
+ },
+ openPosition(position) {
+ this.position = position;
+ this.displayPosition = true;
+ },
+ closePosition() {
+ this.displayPosition = false;
}
},
components: {
@@ -47,3 +153,22 @@ export default {
}
}
+