Умолчания при создании паттерна

Closes #7, #9
This commit is contained in:
saber-nyan 2020-04-06 21:44:47 +03:00
parent c9732eb5b4
commit d45339e543
No known key found for this signature in database
GPG Key ID: 7B069E9C295E6B4A

View File

@ -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) {