デッキまわりをCompositon API / Setup Sugarに (#8410)

* universal.widgets.vue

* column.vue, antenna-column.vue

* direct-column.vue, list-column.vue

* main-column.vue

* wip

* ✌️

* fix

* ✌️

* ✌️
This commit is contained in:
tamaina
2022-03-21 03:11:14 +09:00
committed by GitHub
parent eb9e6d230f
commit 78736c70f7
15 changed files with 639 additions and 756 deletions

View File

@@ -293,23 +293,25 @@ export function inputDate(props: {
});
}
export function select(props: {
export function select<C extends any = any>(props: {
title?: string | null;
text?: string | null;
default?: string | null;
items?: {
value: string;
} & ({
items: {
value: C;
text: string;
}[];
groupedItems?: {
} | {
groupedItems: {
label: string;
items: {
value: string;
value: C;
text: string;
}[];
}[];
}): Promise<{ canceled: true; result: undefined; } | {
canceled: false; result: string;
})): Promise<{ canceled: true; result: undefined; } | {
canceled: false; result: C;
}> {
return new Promise((resolve, reject) => {
popup(import('@/components/dialog.vue'), {