mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-17 02:41:13 +01:00
Add IsDisabled prop to FormField component
This commit is contained in:
parent
23ddb3b054
commit
4a69bdb615
@ -2,7 +2,7 @@
|
|||||||
<div class="field" :class="{ 'with-offset' : hasOffset }">
|
<div class="field" :class="{ 'with-offset' : hasOffset }">
|
||||||
<label class="label" v-html="label"></label>
|
<label class="label" v-html="label"></label>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input :id="fieldName" :type="inputType" class="input" v-model="form[fieldName]" :placeholder="placeholder" v-bind="$attrs" />
|
<input :disabled="isDisabled" :id="fieldName" :type="inputType" class="input" v-model="form[fieldName]" :placeholder="placeholder" v-bind="$attrs" />
|
||||||
</div>
|
</div>
|
||||||
<field-error :form="form" :field="fieldName" />
|
<field-error :form="form" :field="fieldName" />
|
||||||
<p class="help" v-html="help" v-if="help"></p>
|
<p class="help" v-html="help" v-if="help"></p>
|
||||||
@ -55,6 +55,11 @@
|
|||||||
hasOffset: {
|
hasOffset: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
|
||||||
|
isDisabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user