Add intro for dropdown
This commit is contained in:
parent
3907395506
commit
3848b79d08
|
@ -1,5 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<v-dropdown v-model="inner" :label="field.name" :id="innerId" :name="innerId" :options="innerOptions" :required="field.required" :hint="field.hint" :allowcustom="field.allowcustom"></v-dropdown>
|
<v-dropdown
|
||||||
|
v-model="inner"
|
||||||
|
:label="field.name"
|
||||||
|
:id="innerId"
|
||||||
|
:name="innerId"
|
||||||
|
:options="innerOptions"
|
||||||
|
:required="field.required"
|
||||||
|
:hint="field.hint"
|
||||||
|
:allowcustom="field.allowcustom"
|
||||||
|
:intro="field.intro"
|
||||||
|
></v-dropdown>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
|
<div>
|
||||||
|
<div class="text-sm text-gray-600 pb-3" v-text="intro" v-if="intro"></div>
|
||||||
<label class="w-full border border-solid border-gray-500 focus-within:border-primary rounded-lg relative flex" :for="id">
|
<label class="w-full border border-solid border-gray-500 focus-within:border-primary rounded-lg relative flex" :for="id">
|
||||||
<select
|
<select
|
||||||
v-if="!allowcustom"
|
v-if="!allowcustom"
|
||||||
|
@ -25,6 +27,7 @@
|
||||||
</div>
|
</div>
|
||||||
<field-label :name="label" class="group-[.info]:bg-blue-200" :required="required"></field-label>
|
<field-label :name="label" class="group-[.info]:bg-blue-200" :required="required"></field-label>
|
||||||
</label>
|
</label>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
@ -68,6 +71,10 @@ const props = defineProps({
|
||||||
required: true,
|
required: true,
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
},
|
},
|
||||||
|
intro: {
|
||||||
|
required: false,
|
||||||
|
default: () => '',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const inner = computed({
|
const inner = computed({
|
||||||
|
|
Loading…
Reference in New Issue