2020-08-13 11:47:56 +08:00
|
|
|
<template>
|
|
|
|
<article class="content ${style}">
|
2021-10-22 18:51:49 +08:00
|
|
|
${content | raw}
|
|
|
|
<section class="meta">
|
|
|
|
<one-edit-link path="${path}"/>
|
|
|
|
</section>
|
|
|
|
</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} -->
|
|
|
|
import OneEditLink from '~/components/OneEditLink'<!-- /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: {
|
|
|
|
<!-- for: ${components} as ${component}, ${index} -->${component}<!-- if: (${index} < ${component.length} - 1) && ${demos.length} -->,
|
|
|
|
<!-- /if--><!-- /for --><!-- for: ${demos} as ${demo}, ${index} -->'${demo.name}': Demo${index},
|
2021-08-25 17:00:13 +08:00
|
|
|
<!-- /for --><!-- if: ${demos.length} -->OneDemo<!-- /if --><!-- if: (${components.length} || ${demos.length}) && ${alert} -->,<!-- /if --><!-- if: ${alert} -->
|
2021-10-22 18:51:49 +08:00
|
|
|
VeuiAlert<!-- /if --><!-- if: (${components.length} || ${demos.length}) || ${alert} && ${path} -->,<!-- /if --><!-- if: ${path} -->
|
|
|
|
OneEditLink<!-- /if -->
|
|
|
|
},
|
|
|
|
mixins: [htmlAttrs]
|
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 -->
|