load app and fields

This commit is contained in:
2025-01-21 17:41:15 +08:00
parent 8bd3c0a3a3
commit f37f15482e
12 changed files with 211 additions and 312 deletions

View File

@@ -1,16 +1,19 @@
<template>
<div class="kintoneplugin-input-container flex-row">
<plugin-label v-if="label" :label="label" />
<kuc-dropdown className="kuc-text-input" :items="items" :value="modelValue" @change="updateValue" />
<kuc-combobox className="kuc-text-input" :items="items" :value="modelValue" @change="updateValue" :disabled="disabled"/>
</div>
</template>
<script setup lang="ts">
import type { KucEvent } from '@/types/my-kintone';
import type { DropdownItem } from 'kintone-ui-component';
import { defineProps, defineEmits } from 'vue';
const props = defineProps<{
label: string;
items: kintone.fieldTypes.DropDown['Item'][];
disabled: boolean;
items: DropdownItem[];
modelValue: string;
}>();
@@ -18,7 +21,7 @@ const emit = defineEmits<{
(e: 'update:modelValue', value: string): void;
}>();
const updateValue = (event: kintone.Event) => {
const updateValue = (event: KucEvent) => {
emit('update:modelValue', event.detail.value);
};
</script>