feat:webui-2

This commit is contained in:
手瓜一十雪 committed 2024-05-05 13:01:23 +08:00
1 parent 193b0ad0f0
commit 2f325cfe26
7 files changed
+128 -12

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
export const SettingItem = (
title: string,
subtitle?: string,
action?: string,
id?: string,
visible: boolean = true,
) => {
return `<setting-item ${id ? `id="${id}"` : ''} ${!visible ? 'is-hidden' : ''}>
<div>
<setting-text>${title}</setting-text>
${subtitle ? `<setting-text data-type="secondary">${subtitle}</setting-text>` : ''}
</div>
${action ? `<div>${action}</div>` : ''}
</setting-item>`
}