From db9c2913cfa4a83d1da637ae79dd8112c5cb5f5d Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 21 Nov 2018 05:36:55 +0900 Subject: [PATCH] Update index.vue --- src/client/app/test/views/index.vue | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/client/app/test/views/index.vue b/src/client/app/test/views/index.vue index b1947ffa4..be75f8ae8 100644 --- a/src/client/app/test/views/index.vue +++ b/src/client/app/test/views/index.vue @@ -11,6 +11,25 @@ + + +
Dialog Generator
+
+ + + + + + + Title + + + Text + + With cancel button + Show +
+
@@ -21,7 +40,22 @@ export default Vue.extend({ data() { return { mfm: '', + dialogType: 'success', + dialogTitle: '', + dialogText: 'Hello World!', + dialogShowCancelButton: false }; + }, + + methods: { + showDialog() { + this.$root.alert({ + type: this.dialogType, + title: this.dialogTitle, + text: this.dialogText, + showCancelButton: this.dialogShowCancelButton + }); + } } });