mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-20 08:15:49 +02:00
refactor(frontend): MkRadiosの指定をpropsから行うように (#16597)
* refactor(frontend): MkRadiosの指定をpropsから行うように * spdx * fix lint * fix: mkradiosを動的slotsに対応させる * fix: remove comment [ci skip] * fix lint * fix lint * migrate * rename * fix * fix * fix types * remove unused imports * fix * wip --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import * as Misskey from 'misskey-js';
|
||||
import type { OptionValue } from '@/components/MkSelect.vue';
|
||||
import type { OptionValue } from '@/types/option-value.js';
|
||||
|
||||
export type EnumItem = string | {
|
||||
label: string;
|
||||
@@ -45,18 +45,18 @@ export interface BooleanFormItem extends FormItemBase {
|
||||
|
||||
export interface EnumFormItem extends FormItemBase {
|
||||
type: 'enum';
|
||||
default?: string | null;
|
||||
default?: OptionValue | null;
|
||||
required?: boolean;
|
||||
enum: EnumItem[];
|
||||
}
|
||||
|
||||
export interface RadioFormItem extends FormItemBase {
|
||||
type: 'radio';
|
||||
default?: unknown | null;
|
||||
default?: OptionValue | null;
|
||||
required?: boolean;
|
||||
options: {
|
||||
label: string;
|
||||
value: unknown;
|
||||
value: OptionValue;
|
||||
}[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user