New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lm-json-tree

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lm-json-tree

* 作者:David Feng * 邮箱:sublime3@163.com * 版本:**`0.1.4`**

latest
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

json-tree

  • 作者:David Feng
  • 邮箱:sublime3@163.com
  • 版本:0.1.4

介绍

json tree

安装

lm-* 组件使用 npm 进行管理,命名空间统一为 lm-,请使用以下命令进行组件安装。

npm i lm-json-tree --save
  • 如果你还没有安装 npm,可通过以下方式进行 安装
  • 安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org

使用

样例文档

使用

最少配置参数为:

  • 传入content增加内容
const data = {
    array: [1, 2, 3],
    bool: true,
    object: {
        foo: 'bar'
    }
};
<JSONTree data={data} />

配置参数

PropTypeDefaultDescription
dataObjectundefinedjson数据源
hideRootBoolfalse是否隐藏根节点
themeString、Objectundefined主题色调
invertThemeBoolfalse主题色调反转
invertThemeBoolfalse主题色调反转
nodeClickHandleFuncconsole.log(nodeType, keyPath, value)节点点击事件
isAnyUpdateBoolfalse是否强制每次数据变动都更新(有选中背景颜色时候使用)
getItemStringFunc{itemType} {itemString}key值后面的描述
labelRendererFunc{label}:label的再加工
valueRendererFuncvalue => valuevalue的再加工

注意事项

  • 组件注意事项

开发调试

进入项目目录后,使用 node 命令启动服务

npm run start

打包发布可通过 node 命令执行

npm run build
npm publish

相关资料

Changelog

0.1.0

  • init

Keywords

earth

FAQs

Package last updated on 11 Sep 2018

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