Fix signature input import

This commit is contained in:
Julien Nahum
2023-11-28 09:09:02 +01:00
parent 387a110820
commit 9b4ac38ae4
3 changed files with 18 additions and 34 deletions

View File

@@ -7,7 +7,8 @@
</template>
<VueSignaturePad ref="signaturePad"
:class="[theme.default.input,{ '!ring-red-500 !ring-2': hasValidation && form.errors.has(name), '!cursor-not-allowed !bg-gray-200':disabled }]" height="150px"
:class="[theme.default.input,{ '!ring-red-500 !ring-2': hasValidation && form.errors.has(name), '!cursor-not-allowed !bg-gray-200':disabled }]"
height="150px"
:name="name"
:options="{ onEnd }"
/>
@@ -30,14 +31,14 @@
<script>
import { inputProps, useFormInput } from './useFormInput.js'
import InputWrapper from './components/InputWrapper.vue'
import VueSignaturePad from 'vue-signature-pad'
import { VueSignaturePad } from 'vue-signature-pad'
export default {
name: 'SignatureInput',
components: {InputWrapper, VueSignaturePad},
components: { InputWrapper, VueSignaturePad },
props: {
...inputProps,
...inputProps
},
setup (props, context) {

View File

@@ -208,10 +208,10 @@
</v-checkbox>
<template v-if="field.type === 'phone_number' && !field.use_simple_text_input">
<select-input v-model="field.unavailable_countries" class="mt-4" wrapper-class="relative"
:options="allCountries" :multiple="true"
:searchable="true" :search-keys="['name']" :option-key="'code'" :emit-key="'code'"
label="Disabled countries" :placeholder="'Select a country'"
help="Remove countries from the phone input"
:options="allCountries" :multiple="true"
:searchable="true" :search-keys="['name']" :option-key="'code'" :emit-key="'code'"
label="Disabled countries" :placeholder="'Select a country'"
help="Remove countries from the phone input"
>
<template #selected="{option, selected}">
<div class="flex items-center space-x-2 justify-center overflow-hidden">
@@ -243,7 +243,7 @@
<!-- Pre-fill depends on type -->
<v-checkbox v-if="field.type=='checkbox'" v-model="field.prefill" class="mt-3"
:name="field.id+'_prefill'"
@update:model-value="field.prefill =$event"
@update:model-value="field.prefill = $event"
>
Pre-filled value
</v-checkbox>