From 6ec073535035b078e765ddcd528b412f97ff455d Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 5 Sep 2020 15:46:02 +0900 Subject: [PATCH] wip --- src/client/components/ui/input.vue | 256 +++++++++++++---------------- src/client/pages/test.vue | 7 +- 2 files changed, 117 insertions(+), 146 deletions(-) diff --git a/src/client/components/ui/input.vue b/src/client/components/ui/input.vue index f95582ff8b..4b45ff3abc 100644 --- a/src/client/components/ui/input.vue +++ b/src/client/components/ui/input.vue @@ -2,66 +2,51 @@
- + {{ $refs.input.validationMessage }} -
- - -
+
+ + + + +
@@ -69,7 +54,7 @@ diff --git a/src/client/pages/test.vue b/src/client/pages/test.vue index ed037654cd..6e8a615389 100644 --- a/src/client/pages/test.vue +++ b/src/client/pages/test.vue @@ -14,6 +14,9 @@ With cancel button + + With input field + Show
@@ -47,8 +50,9 @@ export default defineComponent({ return { dialogTitle: 'Hello', dialogBody: 'World!', - dialogResult: null, dialogCancel: false, + dialogInput: false, + dialogResult: null, faExclamationTriangle } }, @@ -59,6 +63,7 @@ export default defineComponent({ title: this.dialogTitle, text: this.dialogBody, showCancelButton: this.dialogCancel, + input: this.dialogInput ? {} : null }); } }