add field types prop

This commit is contained in:
Pete Matsyburka
2024-01-10 23:18:30 +02:00
parent b6f43c9b23
commit f74ad050b4
5 changed files with 37 additions and 7 deletions
@@ -48,7 +48,7 @@
v-for="(icon, type) in fieldIcons"
:key="type"
>
<li v-if="(withPhone || type != 'phone') && (withPayment || type != 'payment')">
<li v-if="(fieldTypes.length === 0 || fieldTypes.includes(type)) && (withPhone || type != 'phone') && (withPayment || type != 'payment')">
<a
href="#"
class="text-sm py-1 px-2"
@@ -94,6 +94,11 @@ export default {
type: Object,
required: true
},
fieldTypes: {
type: Array,
required: false,
default: () => []
},
defaultFields: {
type: Array,
required: false,