2020-08-13 11:47:56 +08:00
|
|
|
<template>
|
2021-10-28 17:03:43 +08:00
|
|
|
<article ref="article" class="content ${style}"><!-- if: ${toc} -->
|
|
|
|
<one-toc :items="toc"/><!-- /if -->
|
2021-10-22 18:51:49 +08:00
|
|
|
${content | raw}
|
2022-06-14 09:05:00 +08:00
|
|
|
|
2021-10-22 18:51:49 +08:00
|
|
|
</article>
|
2020-08-13 11:47:56 +08:00
|
|
|
</template><!-- if: ${boilerplate} -->
|
|
|
|
<script>
|
|
|
|
import { htmlAttrs } from '~/common/i18n'<!-- for: ${components} as ${component} -->
|
|
|
|
import ${component} from '~/components/${component}'<!-- /for --><!-- for: ${demos} as ${demo}, ${index} -->
|
|
|
|
import Demo${index} from '${demo.src}'<!-- /for --><!-- if: ${demos.length} -->
|
2021-10-22 18:51:49 +08:00
|
|
|
import OneDemo from '~/components/OneDemo'<!-- /if --><!-- if: ${path} -->
|
2021-10-25 20:19:04 +08:00
|
|
|
import OneEditLink from '~/components/OneEditLink'<!-- /if --><!-- if: ${toc} -->
|
|
|
|
import OneToc from '~/components/OneToc'<!-- /if --><!-- if: ${alert} -->
|
2021-08-25 17:00:13 +08:00
|
|
|
import { VeuiAlert } from 'veui'<!-- /if -->
|
2020-08-13 11:47:56 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
2021-10-25 20:19:04 +08:00
|
|
|
<!-- for: ${components} as ${component}, ${index} -->${component},
|
|
|
|
<!-- /for --><!-- for: ${demos} as ${demo}, ${index} -->'${demo.name}': Demo${index},
|
|
|
|
<!-- /for --><!-- if: ${demos.length} -->OneDemo,<!-- /if --><!-- if: ${alert} -->
|
|
|
|
VeuiAlert,<!-- /if --><!-- if: ${toc} -->
|
|
|
|
OneToc,<!-- /if --><!-- if: ${path} -->
|
|
|
|
OneEditLink,<!-- /if -->
|
2021-10-22 18:51:49 +08:00
|
|
|
},
|
2021-10-25 20:19:04 +08:00
|
|
|
mixins: [htmlAttrs]<!-- if: ${toc} -->,
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
toc: ${toc | raw}
|
|
|
|
}
|
|
|
|
}<!-- /if -->
|
2020-08-13 11:47:56 +08:00
|
|
|
}
|
|
|
|
</script><!-- else -->
|
|
|
|
<script>
|
|
|
|
import { htmlAttrs } from '~/common/i18n'
|
|
|
|
|
|
|
|
export default {<!-- if: ${layout} -->
|
|
|
|
layout: '${layout}',
|
|
|
|
<!-- /if -->
|
|
|
|
mixins: [htmlAttrs]
|
|
|
|
}
|
2021-09-25 15:17:57 +08:00
|
|
|
</script><!-- /else -->
|