Add condition part

This commit is contained in:
2025-01-22 23:37:31 +08:00
parent 4062d85ea0
commit 58ad3571cd
13 changed files with 186 additions and 92 deletions

View File

@@ -0,0 +1,29 @@
<template>
<kuc-combobox
:items="items"
:value="modelValue"
@change="updateValue"
:disabled="selectedAppData.loading == undefined ? false : selectedAppData.loading"
/>
</template>
<script setup lang="ts">
import type { CachedSelectedAppData } from '@/types/model';
import type { KucEvent } from '@/types/my-kintone';
import type { DropdownItem } from 'kintone-ui-component';
import { defineProps, defineEmits } from 'vue';
const props = defineProps<{
items: DropdownItem[];
modelValue: string;
selectedAppData: CachedSelectedAppData;
}>();
const emit = defineEmits<{
(e: 'update:modelValue', value: string): void;
}>();
const updateValue = (event: KucEvent) => {
emit('update:modelValue', event.detail.value);
};
</script>