UNPKG

vuepress-theme-hope

Version:

A light vuepress theme with tons of features

22 lines 655 B
import { defineComponent, h } from "vue"; import { useMetaLocale } from "@theme-hope/modules/info/composables/index"; import "../styles/original-info.scss"; export default defineComponent({ name: "OriginalInfo", inheritAttrs: false, props: { /** * Whether the article is original * * 文章是否是原创 */ isOriginal: Boolean, }, setup(props) { const metaLocale = useMetaLocale(); return () => props.isOriginal ? h("span", { class: "page-original-info" }, metaLocale.value.origin) : null; }, }); //# sourceMappingURL=OriginalInfo.js.map