prevent field sizes from getting purged
This commit is contained in:
parent
19a3b9c1ee
commit
4a31d3349a
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<label class="field-wrap" :for="id" :class="`field-wrap-${size}`">
|
<label class="field-wrap field-wrap-sm" :for="id" :class="sizes[size].wrap">
|
||||||
<span v-if="label" class="field-label">
|
<span v-if="label" class="field-label">
|
||||||
{{ label }}
|
{{ label }}
|
||||||
<span v-show="required" class="text-red-800"> *</span>
|
<span v-show="required" class="text-red-800"> *</span>
|
||||||
</span>
|
</span>
|
||||||
<div class="real-field-wrap" :class="`size-${size}`">
|
<div class="real-field-wrap size-sm" :class="sizes[size].field">
|
||||||
<input
|
<input
|
||||||
@keypress="$emit('keypress', $event)"
|
@keypress="$emit('keypress', $event)"
|
||||||
:name="name"
|
:name="name"
|
||||||
|
@ -245,6 +245,20 @@ export default {
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
focus: false,
|
focus: false,
|
||||||
|
sizes: {
|
||||||
|
sm: {
|
||||||
|
wrap: 'field-wrap-sm',
|
||||||
|
field: 'size-sm',
|
||||||
|
},
|
||||||
|
base: {
|
||||||
|
wrap: 'field-wrap-base',
|
||||||
|
field: 'size-base',
|
||||||
|
},
|
||||||
|
lg: {
|
||||||
|
wrap: 'field-wrap-lg',
|
||||||
|
field: 'size-lg',
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|
Loading…
Reference in New Issue