mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 13:01:14 +00:00
14 lines
540 B
TypeScript
14 lines
540 B
TypeScript
export const SettingList = (
|
|
items: string[],
|
|
title?: string,
|
|
isCollapsible: boolean = false,
|
|
direction: string = 'column',
|
|
) => {
|
|
return `<setting-section ${title && !isCollapsible ? `data-title="${title}"` : ''}>
|
|
<setting-panel>
|
|
<setting-list ${direction ? `data-direction="${direction}"` : ''} ${isCollapsible ? 'is-collapsible' : ''} ${title && isCollapsible ? `data-title="${title}"` : ''}>
|
|
${items.join('')}
|
|
</setting-list>
|
|
</setting-panel>
|
|
</setting-section>`
|
|
} |