style: lint fix

This commit is contained in:
pengzhanbo 2024-10-12 16:01:53 +08:00
parent b8c1b68519
commit f3b6d3c2f4
3 changed files with 8 additions and 8 deletions

View File

@ -17,8 +17,8 @@ export const tabs: PluginSimple = (md) => {
return `<Tabs id="${index}" :data='${stringifyProp(tabsData)}'${active === -1 ? '' : ` :active="${active}"`}${meta.id ? ` tab-id="${meta.id as string}"` : ''}>
${titles.map((title, titleIndex) =>
`<template #title${titleIndex}="{ value, isActive }">${title}</template>`,
).join('')}`
`<template #title${titleIndex}="{ value, isActive }">${title}</template>`,
).join('')}`
},
tabsCloseRenderer: () => `</Tabs>`,

View File

@ -74,8 +74,8 @@ ${Array.from(imports.values()).join('\n')}
export default defineClientConfig({
enhance({ router, app }) {
${Array.from(enhances.values())
.map(item => ` ${item}`)
.join('\n')}
.map(item => ` ${item}`)
.join('\n')}
}
})
`,

View File

@ -21,19 +21,19 @@ import { useCollapsedLines } from '${CLIENT_FOLDER}composables/collapsed-lines.j
export default {
${twoslash
? `enhance({ app }) {
? `enhance({ app }) {
enhanceTwoslash(app)
},`
: ''}
: ''}
${copyCode
? `setup() {
? `setup() {
useCopyCode({
selector: __CC_SELECTOR__,
duration: __CC_DURATION__,
})
useCollapsedLines()
},`
: ''}
: ''}
}
`,
)