This commit is contained in:
Abhishek Kathuria 2022-07-07 16:53:20 +05:30
parent 8c28fdd6df
commit 51634bd32f
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@
<div v-else>
<div class="control-group" :class="[errors.has('value') ? 'has-error' : '']" v-if="matchedAttribute.type == 'text' || matchedAttribute.type == 'price' || matchedAttribute.type == 'decimal' || matchedAttribute.type == 'integer'">
<input v-validate="matchedAttribute.type == 'price'?'numeric':'' || matchedAttribute.type == 'decimal'?'decimal:2':'' || matchedAttribute.type == 'integer' ? 'numeric':'' || matchedAttribute.type == 'text'?'alpha':''" class="control" :name="['conditions[' + index + '][value]']" v-model="condition.value" name="value"/>
<input v-validate="matchedAttribute.type == 'price'?'decimal:2':'' || matchedAttribute.type == 'decimal'?'decimal:2':'' || matchedAttribute.type == 'integer' ? 'decimal:2':'' || matchedAttribute.type == 'text'?'alpha_num':''" class="control" :name="['conditions[' + index + '][value]']" v-model="condition.value" name="value"/>
<span class="control-error" v-if="errors.has('value')">@{{ errors.first('value') }}</span>
</div>