mirror of
https://github.com/siyuan-note/plugin-sample-vite-svelte.git
synced 2025-06-08 02:46:02 +00:00
setting-utils
This commit is contained in:
parent
deb065668f
commit
cdb5085f35
3 changed files with 255 additions and 22 deletions
20
src/libs/index.d.ts
vendored
Normal file
20
src/libs/index.d.ts
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue