@huolala-tech/react-json-view
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "@huolala-tech/react-json-view", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A react component for displaying JSON data", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
@@ -68,2 +68,4 @@ Engligh | [中文](./README_CN.md) | ||
maxTitleSize={100} | ||
copyable={true} | ||
expandable={true} | ||
/> | ||
@@ -80,2 +82,4 @@ ``` | ||
| `maxTitleSize` | `number` | `100` | The max length of abbreviated title in collapse. | | ||
| `copyable` | `boolean` | `true` | Indicate whether enable copy function. | | ||
| `expandable` | `boolean` | `true` | Indicate whether enable expand function. | | ||
@@ -82,0 +86,0 @@ ## License |
@@ -25,4 +25,4 @@ import React from 'react'; | ||
* `ReactJsonView` support load more property lazily. | ||
* The option indicated how many properties to show once, you | ||
* can pass "all" to show all. | ||
* The option indicated how many properties to show one time, you | ||
* can pass "all" to expand all. | ||
* @default 200 | ||
@@ -36,2 +36,12 @@ */ | ||
maxTitleSize?: number; | ||
/** | ||
* Whether copyable. | ||
* @default true | ||
*/ | ||
copyable?: boolean; | ||
/** | ||
* Whether expandable. | ||
* @default true | ||
*/ | ||
expandable?: boolean; | ||
} | ||
@@ -38,0 +48,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121598
3173
87