Fix load apps

This commit is contained in:
2025-01-22 13:57:33 +08:00
parent d0ce7b8349
commit 6aba3fc065
10 changed files with 205 additions and 85 deletions

View File

@@ -4,17 +4,20 @@
<script setup lang="ts">
import type { KucDropdownItem } from '@/types/my-kintone';
import type { WhereCondition } from '@/types/model';
import { defineProps, defineEmits } from 'vue';
import { Dropdown } from 'kintone-ui-component/lib/dropdown';
import type { CachedData, CachedSelectedAppData, SavedData, WhereCondition } from '@/types/model';
import { defineProps, defineEmits, inject } from 'vue';
import { Combobox } from 'kintone-ui-component/lib/combobox';
const props = defineProps<{
modelValue: WhereCondition[];
disabled: boolean;
}>();
const savedData = inject<SavedData>('savedData') as SavedData;
const cachedData = inject<CachedData>('cachedData') as CachedData;
const selectedAppData = inject<CachedSelectedAppData>('selectedAppData') as CachedSelectedAppData;
const renderDropdown = (cellData: string) => {
const dropdown = new Dropdown({
const dropdown = new Combobox({
items: [
{ label: 'John Brown', value: 'john' },
{ label: 'Steven Gerard', value: 'steven' },
@@ -25,7 +28,7 @@ const renderDropdown = (cellData: string) => {
};
const renderCondition = (cellData: string) => {
const dropdown = new Dropdown({
const dropdown = new Combobox({
items: [
{ label: 'John Brown', value: 'john' },
{ label: 'Steven Gerard', value: 'steven' },
@@ -36,7 +39,7 @@ const renderCondition = (cellData: string) => {
};
const renderDynamicData = (cellData: string) => {
const dropdown = new Dropdown({
const dropdown = new Combobox({
items: [
{ label: 'John Brown', value: 'john' },
{ label: 'Steven Gerard', value: 'steven' },