sfui-doc
vue组件库 doc文档先行框架
引入
; ;Vue;const router = ...; // 需要手机预览视图时,引入SyncPath同步路由
<template lang="pug">divapp sfui- router-view</template><script>; { return mobile: `mobile.html` // 需要手机预览视图时,传入页面地址 ; } computed: { return docConfig; } ;</script>
doc.config.js
: 导航菜单配置
const version = '0.0.1'; moduleexports = header: logo: image: '' title: '' version: version href: '#/' nav: '导航1': '/' nav: name: '文档' children: path: '/demo1' title: '文档1' name: '组件' groups: name: '分组示例' children: path: '/a' title: 'a' ;