@fcli/anchor-point-page
v1.0.0
Published
vue3 锚点,导航组件
Downloads
2
Readme
锚点导航组件
npm install @fcli/anchor-point-page --save-dev 来安装
在项目中使用
import AnchorPointPage from '@fcli/anchor-point-page';
const app=createApp(App)
app.use(AnchorPointPage);
示例请查看APP.vue
authorData需要id、label和children属性
slot
可自定义第三层的展示内容 例:
<template #slot-scope="{ data }">
<div class="li">{{ data.label }}</div>
</template>