调整dictvalue组件
This commit is contained in:
parent
3dd371161b
commit
61a9a453f4
|
|
@ -6,10 +6,15 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
const props = defineProps<{
|
const props = withDefaults(
|
||||||
options: any[]
|
defineProps<{
|
||||||
value: any
|
options: any[]
|
||||||
}>()
|
value: any
|
||||||
|
}>(),
|
||||||
|
{
|
||||||
|
options: () => []
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
const values = computed(() => {
|
const values = computed(() => {
|
||||||
if (props.value !== null && typeof props.value !== 'undefined') {
|
if (props.value !== null && typeof props.value !== 'undefined') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue