记录软件 - 记录树
记录软件左侧记录树组件, vue3
安装
npm install --save @codernote/record-tree
使用
import { RecordTree } from "@codernote/record-tree";
<RecordTree
:note="note"
:tags="tags"
></RecordTree>
数据结构
note.content
interface Nodes Array<{
uuid: string;
type?: "image" | "video" | "audio" | "file";
text?: string;
content?: string;
size?: number;
name?: string;
children?: Nodes;
}>;
props
<RecordTree
{}
:note="note"
{}
:readOnly="false"
{}
{}
:tags="tags"
{}
:bar="false"
{}
:showTitle="true"
{}
:responsive="false"
{}
:enableDbEnter="false"
{}
@change="handleChange"
{}
@dbEnter="handleDbEnter"
></RecordTree>
发布
npm publish