mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
add description prop to InputHelper
This commit is contained in:
parent
8f8b1cc8df
commit
ad25c7373e
1 changed files with 10 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<b-form-group label-cols="auto" :label="label" :label-for="'input-' + id">
|
<b-form-group
|
||||||
|
label-cols="auto" :label="label" :label-for="'input-' + id"
|
||||||
|
:description="description"
|
||||||
|
>
|
||||||
<b-input
|
<b-input
|
||||||
v-model="content"
|
v-model="content"
|
||||||
@update="$emit('input', content)"
|
@update="$emit('input', content)"
|
||||||
|
@ -9,7 +12,11 @@
|
||||||
:type="type"
|
:type="type"
|
||||||
:state="state"
|
:state="state"
|
||||||
:required="required"
|
:required="required"
|
||||||
|
|
||||||
/>
|
/>
|
||||||
|
<template v-slot:description>
|
||||||
|
<slot name="description" />
|
||||||
|
</template>
|
||||||
<b-form-invalid-feedback :id="id + '-feedback'" :state="state">
|
<b-form-invalid-feedback :id="id + '-feedback'" :state="state">
|
||||||
{{ error }}
|
{{ error }}
|
||||||
</b-form-invalid-feedback>
|
</b-form-invalid-feedback>
|
||||||
|
@ -28,7 +35,8 @@ export default {
|
||||||
placeholder: { type: String, default: null },
|
placeholder: { type: String, default: null },
|
||||||
state: { type: null, default: null },
|
state: { type: null, default: null },
|
||||||
error: { type: String, default: '' },
|
error: { type: String, default: '' },
|
||||||
required: { type: Boolean, default: true }
|
required: { type: Boolean, default: true },
|
||||||
|
description: { type: String, default: null }
|
||||||
},
|
},
|
||||||
|
|
||||||
data () {
|
data () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue