@aligov/preview-doc-center

文档中心-预览

Usage no npm install needed!

<script type="module">
  import aligovPreviewDocCenter from 'https://cdn.skypack.dev/@aligov/preview-doc-center';
</script>

README

文档中心-访问

@aligov/preview-doc-center

文档中心-预览

API

参数名 说明 必填 类型 默认值 备注
treeDataSource 用于生成目录树的数据 Array<树节点>
loadTreeNode 异步加载数据的方法 Function 返回值 Promise
onSelect 目录树节点选中回调 Function
file 右侧文档内容区域展示的内容 Object