mirror of
https://github.com/directus/directus.git
synced 2026-02-01 06:05:11 -05:00
Use dropdown for boolean default value
This commit is contained in:
@@ -52,7 +52,9 @@
|
||||
:disabled="item.disabled"
|
||||
@click="multiple ? null : $emit('input', item.value)"
|
||||
>
|
||||
<v-list-item-icon v-if="multiple === false && allowOther === false && itemIcon !== null && item.icon">
|
||||
<v-list-item-icon
|
||||
v-if="multiple === false && allowOther === false && itemIcon !== null && item.icon"
|
||||
>
|
||||
<v-icon :name="item.icon" />
|
||||
</v-list-item-icon>
|
||||
<v-list-item-content>
|
||||
@@ -119,8 +121,8 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, PropType, computed, toRefs, Ref } from '@vue/composition-api';
|
||||
import i18n from '@/lang';
|
||||
import { useCustomSelection, useCustomSelectionMultiple } from '@/composables/use-custom-selection';
|
||||
import i18n from '../../lang';
|
||||
import { useCustomSelection, useCustomSelectionMultiple } from '../../composables/use-custom-selection';
|
||||
|
||||
type Item = {
|
||||
text: string;
|
||||
@@ -150,7 +152,7 @@ export default defineComponent({
|
||||
default: null,
|
||||
},
|
||||
value: {
|
||||
type: [Array, String, Number] as PropType<InputValue>,
|
||||
type: [Array, String, Number, Boolean] as PropType<InputValue>,
|
||||
default: null,
|
||||
},
|
||||
multiple: {
|
||||
|
||||
Reference in New Issue
Block a user