Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@codernote/record-tree

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codernote/record-tree

记录软件左侧记录树组件, vue2 使用

npmnpm
Version
1.0.2
Version published
Weekly downloads
84
-73.33%
Maintainers
1
Weekly downloads
 
Created
Source

记录软件 - 记录树

记录软件左侧记录树组件, vue2 使用

安装

npm install @codernote/record-tree

使用

import { RecordTree } from "@codernote/record-tree";

<RecordTree
  :note="note"
  :tagConfig="tagConfig"
></RecordTree>

props

<RecordTree
  {/* 必需,要编辑的note笔记 */}
  :note="note"

  {/* 是否展示标签及切换标签功能, 默认true */}
  :showTag="true"

  {/* 标签配置项, showTag为true时启用 */}
  :tagConfig="tagConfig"

  {/* 是否移动端使用,默认false */}
  :isMobile="false"

  {/* 是否展示完成按钮,isMobile生效时才启用,默认false */}
  :showComplete="false"

  {/* 启用双击enter, 标题双击回车,会触发事件, 默认false */}
  :enableDbEnter="false"

  {/* 监测note内容变动的事件 */}
  @change="handleChange"

  {/* enableDbEnter=true时生效,标题双击回车时触发事件 */}
  @dbEnter="handleDbEnter"

  {/* showComplete=true 时生效,点击完成按钮触发事件 */}
  @complete="handleComplete"
></RecordTree>

发布

npm publish --access public

FAQs

Package last updated on 22 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts