refactor: init

This commit is contained in:
手瓜一十雪 committed 2024-08-08 12:44:10 +08:00
1 parent 05b77b5042
commit 4e18ec5951
317 files changed
+1 -26000

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
export const SettingSwitch = (configKey?: string, isActive: boolean = false, extraData?: Record<string, string>) => {
return `<setting-switch
${configKey ? `data-config-key="${configKey}"` : ''}
${isActive ? 'is-active' : ''}
${extraData ? Object.keys(extraData).map((key) => `data-${key}="${extraData[key]}"`) : ''}
>
</setting-switch>`;
};