mirror of
https://github.com/siyuan-note/plugin-sample-vite-svelte.git
synced 2025-08-01 00:03:31 +00:00
19 lines
485 B
TypeScript
19 lines
485 B
TypeScript
type TSettingItemType = "checkbox" | "select" | "textinput" | "textarea" | "number" | "slider" | "button" | "hint";
|
|
interface ISettingItem {
|
|
key: string;
|
|
value: any;
|
|
type: TSettingItemType;
|
|
title: string;
|
|
description?: string;
|
|
placeholder?: string;
|
|
slider?: {
|
|
min: number;
|
|
max: number;
|
|
step: number;
|
|
};
|
|
options?: { [key: string | number]: string };
|
|
button?: {
|
|
label: string;
|
|
callback: () => void;
|
|
}
|
|
}
|