fuc-new/doc/node_modules/@vuepress/plugin-git/lib/client/components/VPHeader.js
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

3 lines
209 B
JavaScript

import { h } from 'vue';
export const VPHeader = ({ level = 2, text, anchor, }) => h(`h${level || 2}`, { id: anchor, tabindex: '-1' }, h('a', { href: `#${anchor}`, class: 'header-anchor' }, h('span', text)));