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