28 lines
332 B
Vue
28 lines
332 B
Vue
<template>
|
|
<nav class="one-toc">
|
|
<veui-anchor
|
|
:items="items"
|
|
sticky
|
|
/>
|
|
</nav>
|
|
</template>
|
|
|
|
<script>
|
|
import { Anchor } from 'veui'
|
|
|
|
export default {
|
|
name: 'one-toc',
|
|
components: {
|
|
'veui-anchor': Anchor
|
|
},
|
|
props: {
|
|
items: Array
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="stylus" scoped>
|
|
.one-toc
|
|
float right
|
|
</style>
|