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>
|
||||
<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
|
||||
v-model="content"
|
||||
@update="$emit('input', content)"
|
||||
|
@ -9,7 +12,11 @@
|
|||
:type="type"
|
||||
:state="state"
|
||||
:required="required"
|
||||
|
||||
/>
|
||||
<template v-slot:description>
|
||||
<slot name="description" />
|
||||
</template>
|
||||
<b-form-invalid-feedback :id="id + '-feedback'" :state="state">
|
||||
{{ error }}
|
||||
</b-form-invalid-feedback>
|
||||
|
@ -28,7 +35,8 @@ export default {
|
|||
placeholder: { type: String, default: null },
|
||||
state: { type: null, default: null },
|
||||
error: { type: String, default: '' },
|
||||
required: { type: Boolean, default: true }
|
||||
required: { type: Boolean, default: true },
|
||||
description: { type: String, default: null }
|
||||
},
|
||||
|
||||
data () {
|
||||
|
|
Loading…
Add table
Reference in a new issue