From d45339e543015650ade4efd1f7e4877b98701840 Mon Sep 17 00:00:00 2001 From: saber-nyan Date: Mon, 6 Apr 2020 21:44:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BC=D0=BE=D0=BB=D1=87=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BF=D1=80=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B8=20=D0=BF=D0=B0=D1=82=D1=82=D0=B5=D1=80?= =?UTF-8?q?=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #7, #9 --- src/views/AddPattern.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/views/AddPattern.vue b/src/views/AddPattern.vue index 7a510ff..f8ad008 100644 --- a/src/views/AddPattern.vue +++ b/src/views/AddPattern.vue @@ -63,11 +63,11 @@ data() { return { newPattern: { - name: String(), - value: String(), - color: String(), - searchType: String(), - directionType: String(), + name: '', + value: '', + color: '#FF7474', + searchType: 'SUBSTRING', + directionType: 'BOTH', }, }; }, @@ -77,7 +77,13 @@ }, reset() { - this.newPattern = {}; + this.newPattern = { + name: '', + value: '', + color: '#FF7474', + searchType: 'SUBSTRING', + directionType: 'BOTH', + }; }, addPattern(ev) {