feat (material): update validation with error label
This commit is contained in:
@@ -63,6 +63,10 @@ const items = [
|
|||||||
<Input v-model="data.stock" type="number" />
|
<Input v-model="data.stock" type="number" />
|
||||||
</Field>
|
</Field>
|
||||||
</FieldGroup>
|
</FieldGroup>
|
||||||
|
<FieldGroup v-if="!!props.errors.stock">
|
||||||
|
<Label></Label>
|
||||||
|
<span class="text-red-400 text-sm">{{ props.errors.stock }}</span>
|
||||||
|
</FieldGroup>
|
||||||
</Block>
|
</Block>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user