mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
style: lint fix
This commit is contained in:
parent
b8c1b68519
commit
f3b6d3c2f4
@ -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>`,
|
||||
|
||||
@ -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')}
|
||||
}
|
||||
})
|
||||
`,
|
||||
|
||||
@ -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()
|
||||
},`
|
||||
: ''}
|
||||
: ''}
|
||||
}
|
||||
`,
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user