|
|
|
@ -125,7 +125,8 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span class="flex items-center transition-all duration-75 group-hover:border border-base-content/20 border-dashed w-6 h-6 flex justify-center items-center rounded">
|
|
|
|
<span class="flex items-center transition-all duration-75 group-hover:border border-base-content/20 border-dashed w-6 h-6 flex justify-center items-center rounded">
|
|
|
|
<IconPlus
|
|
|
|
<component
|
|
|
|
|
|
|
|
:is="editable ? 'IconPlus' : 'IconChevronDown'"
|
|
|
|
width="18"
|
|
|
|
width="18"
|
|
|
|
height="18"
|
|
|
|
height="18"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
@ -188,7 +189,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li v-if="submitters.length < 10 && editable">
|
|
|
|
<li v-if="submitters.length < 10 && editable && allowAddNew">
|
|
|
|
<a
|
|
|
|
<a
|
|
|
|
href="#"
|
|
|
|
href="#"
|
|
|
|
class="flex px-2"
|
|
|
|
class="flex px-2"
|
|
|
|
@ -208,7 +209,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { IconUserPlus, IconTrashX, IconPlus, IconChevronUp } from '@tabler/icons-vue'
|
|
|
|
import { IconUserPlus, IconTrashX, IconPlus, IconChevronUp, IconChevronDown } from '@tabler/icons-vue'
|
|
|
|
import Contenteditable from './contenteditable'
|
|
|
|
import Contenteditable from './contenteditable'
|
|
|
|
import { v4 } from 'uuid'
|
|
|
|
import { v4 } from 'uuid'
|
|
|
|
|
|
|
|
|
|
|
|
@ -216,6 +217,7 @@ export default {
|
|
|
|
name: 'FieldSubmitter',
|
|
|
|
name: 'FieldSubmitter',
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
IconUserPlus,
|
|
|
|
IconUserPlus,
|
|
|
|
|
|
|
|
IconChevronDown,
|
|
|
|
Contenteditable,
|
|
|
|
Contenteditable,
|
|
|
|
IconPlus,
|
|
|
|
IconPlus,
|
|
|
|
IconTrashX,
|
|
|
|
IconTrashX,
|
|
|
|
@ -242,6 +244,11 @@ export default {
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|
default: false
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
allowAddNew: {
|
|
|
|
|
|
|
|
type: Boolean,
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
default: true
|
|
|
|
|
|
|
|
},
|
|
|
|
modelValue: {
|
|
|
|
modelValue: {
|
|
|
|
type: String,
|
|
|
|
type: String,
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
|