🔨 refactor(setting): 重构了Svelte设置的模板

- 将 SettingPanel 作为基本模板
- 更改了 settingitem 的类型定义
This commit is contained in:
frostime 2023-11-28 21:24:19 +08:00
parent f1fcf77500
commit b0d28e2513
6 changed files with 169 additions and 116 deletions

5
src/libs/index.d.ts vendored
View file

@ -5,13 +5,16 @@ interface ISettingItem {
type: TSettingItemType;
title: string;
description?: string;
text?: {
placeholder?: string;
};
slider?: {
min: number;
max: number;
step: number;
};
select?: {
options: {val: any; text: string}[];
options: { [key: string | number]: string };
};
button?: {
label: string;