4.7.99 • Published 7 days ago

@kollorg/corrupti-quas v4.7.99

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days ago

Build Status npm package GitHub license Sizes NPM downloads Issues

npm.io

English | 简体中文

Features

  • As a JSON Formatter.
  • Written in TypeScript, support d.ts.
  • Support get item data from JSON.
  • Support big data.
  • Support editable.

Environment Support

  • Modern browsers, Electron and Internet Explorer 11 (with polyfills)
  • Server-side Rendering
IE / EdgeFirefoxChromeSafariElectron
IE11, Edgelast 10 versionslast 10 versionslast 10 versionslast 2 versions

Using NPM or Yarn

$ npm install @kollorg/corrupti-quas --save
$ yarn add @kollorg/corrupti-quas

Use Vue2

$ npm install @kollorg/corrupti-quas@v1-latest --save

Usage

The CSS file is included separately and needs to be imported manually. You can either import CSS globally in your app (if supported by your framework) or directly from the component.

<template>
  <div>
    <@kollorg/corrupti-quas :data="{ key: 'value' }" />
  </div>
</template>

<script>
import VueJsonPretty from '@kollorg/corrupti-quas';
import '@kollorg/corrupti-quas/lib/styles.css';

export default {
  components: {
    VueJsonPretty,
  },
};
</script>

Use Nuxt.js

  1. In plugins/@kollorg/corrupti-quas.js
import Vue from 'vue'
import VueJsonPretty from '@kollorg/corrupti-quas'

Vue.component("@kollorg/corrupti-quas", VueJsonPretty)
  1. In nuxt.config.js
css: [
  '@kollorg/corrupti-quas/lib/styles.css'
],
plugins: [
  '@/plugins/@kollorg/corrupti-quas'
],

Props

PropertyDescriptionTypeDefault
data(v-model)JSON data, support v-model when use editableJSON object-
collapsedNodeLengthObjects or arrays which length is greater than this threshold will be collapsednumber-
deepPaths greater than this depth will be collapsednumber-
showLengthShow the length when collapsedbooleanfalse
showLineShow the linebooleantrue
showLineNumberShow the line numberbooleanfalse
showIconShow the iconbooleanfalse
showDoubleQuotesShow doublequotes on keybooleantrue
virtualUse virtual scrollbooleanfalse
heightThe height of list when using virtualnumber400
itemHeightThe height of node when using virtualnumber20
selectedValue(v-model)Selected data pathstring, array-
rootPathRoot data pathstringroot
nodeSelectableDefines whether a node supports selection(node) => boolean-
selectableTypeSupport path select, default nonemultiple | single-
showSelectControllerShow the select controllerbooleanfalse
selectOnClickNodeTrigger select when click nodebooleantrue
highlightSelectedNodeSupport highlighting selected nodesbooleantrue
collapsedOnClickBracketsSupport click brackets to collapsebooleantrue
renderNodeKeyrender node key, or use slot #renderNodeKey({ node, defaultKey }) => vNode-
renderNodeValuerender node value, or use slot #renderNodeValue({ node, defaultValue }) => vNode-
editableSupport editablebooleanfalse
editableTriggerTriggerclick | dblclickclick
themeSets the theme of the component. Options are 'light' or 'dark', with dark mode enhancing visibility on dark backgrounds'light' \| 'dark'light

Events

Event NameDescriptionParameters
nodeClicktriggers when click node(node: NodeData)
bracketsClicktriggers when click brackets(collapsed: boolean, node: NodeData)
iconClicktriggers when click icon(collapsed: boolean, node: NodeData)
selectedChangetriggers when the selected value changed(newVal, oldVal)

Slots

Slot NameDescriptionParameters
renderNodeKeyrender node key{ node, defaultKey }
renderNodeValuerender node value{ node, defaultValue }

Contributors

bytel10npoint-freeown-0whichrdsspawnformathandlerbindreal-timetypesbyteOffsetintrinsicFloat32Arraycall-bindregexphookformES2020service__proto__appcensorshimECMAScript 2022tstestingdebuggerfast-clonepositivelogclonetranspilecjkec2validatei18nawstapkeysoutputgetintrinsicform-validationprettyfind-upeslintpluginnamesjQueryArray.prototype.flatparentswaitdiffObjectArrayBufferfetchmatchzeroramdaproxytrimEndttywgetgraphqlserializerreducertranspilernodearraybufferletisConcatSpreadableclass-validatorenumerableconcatMapchromiumcolumnsassignidlejsonschemaupchaitimereact-hookstyped arrayfolderES6inspectgetonceexecvalideslint-pluginUint16ArrayxmlhasOwncollection.es6waffast-deep-copyclassnamevesthelperexpressstartertrimStartvisualmomentMapmanagertakebuffersstructuredCloneprogressarraysObject.iscompilerjsdifftypedarrayswidthfindLastIndexfast-copyenderregular expressionsUint32ArrayrgbcloudtrailpinolocationHyBitrimRightuninstallspeedpureArray.prototype.findLastquerystringkeyArray.prototype.flattenproptostringtagbinposees2017ES2016Arraysource maptoobjecteveryconsumefunctionsmobilesyntaxexecfilevpcignoreformattingwarningpackagesiteratorreact poseimportexportes7utilitiespatchtoArrayjsdomworkspace:*redactcallboundaccessorfilterfnmatchregularcodeslintmulti-packageArray.prototype.containsforEacheast-asian-widthglobnpmtoStringTagsharedsameValueZeroAsyncIteratorWebSocketcheckwritehashStyleSheethelpersinvariantObject.fromEntrieschinesepicomatchESnextdebugString.prototype.trim6to5dotenvpromisejestfindLastagentexpressionSetpushTypeBoxdom-testing-libraryvariablessuperagentchannelspinnersURLhardlinksRegExp.prototype.flagsRFC-6455_.extendyupprefixjson-schema256dependency managercomparemetadataReflect.getPrototypeOfanimationjson-schema-validationfeedacornstylesJSON-SchemaeslintconfiglocaltoReversedbrowserlistrm -frStreamssetPrototypeOfiterateformspinnerhasOwnPropertycreatedragtransformnativeinstalltextequalpackage managertoolkitlook-upprocessStreamautoscalingsearchautoprefixerInt32ArraylibphonenumberphonejspluginObject.definePropertyArray.prototype.includesruntimeclassesmonorepoglobalio-tsdropawesomesaucehassomestoragegatewaysettingsprotoshrinkwrapglacierminimalajvdirwebcryptostringifyes5internalfile systemtouchredux-toolkitcommand[[Prototype]]restmkdirforkhooksmkdirsincludesdataviewtapetransportlistenerses8optimizerextenddeepcloneRxJSreduceponyfillsidesespostcss-pluginremoveescapehttpsentries3dECMAScript 5babelutilityvarsinternal slotpnpm9environments$.extendTypedArray@@toStringTagcloudwatchquotegetPrototypeOfrulesprivate datasetImmediatecolumnassertcacherfc4122ObservablesymlinksIteratorpathcssdeep-clonematchAllbusygesturesmoveBigUint64ArrayreactreadableguidclienteventEmitterdependenciesimmutablereuseFunction.prototype.namezxcurriedECMAScript 7slotloggerresolveframeworkeventsasciibundlerasterisksECMAScript 3performancefscharactersbannerfunctionalfastifyECMAScript 2017copyloggingarrayroutestyleECMAScript 2021rm -rfdescriptiondeleterapidstyled-componentsECMAScript 2018typeerrorrobusttestutil.inspectobjtypedarrayrestfulECMAScript 2019polyfilltypanionArray.prototype.flatMapArray.prototype.filterWeakMapoptimistargveffect-tsnameflagsgroupByeslintenvironmentfastcloneArrayBuffer#sliceBigInt64Arrayharmonyobjectes6ECMAScript 2023coerciblerandomemojithreebinariesfixed-widthkoreansuperstructReactiveExtensionscolorlinkmake diristanbuljsontslibvalidationtrimLeftgetOwnPropertyDescriptordeep-copyequalityPromisefantasy-landstringreduxArrayBuffer.prototype.sliceelasticacheSymbol.toStringTaginstallerwalkingregexcontainsfull-widthcode pointsdeepCSSStyleDeclarationtermqueueerrorapigetterwritableReactiveXrequestObject.getPrototypeOfObject.entriesebsJSONdataViewwhatwgserializationconfigtypedprototypeInt16ArrayYAMLes-abstractshellES2019valuesortmochaflattencallES2022user-streamsfigletmodulesreversedtoolscallbindRxfunctionidentifiersvartypesafepostcsssymbolyamlinstrumentationbrowserES7protocol-buffersiemakedayjsinputhigher-orderfullwidthqueueMicrotaskboundscheme-validationstreamprotobufstringifiercloudsearchemitpruneES2018extradirectoryglobalsjoitelephonejshintframeramazonmergecss-in-jsastapolloECMAScript 2016servergroupcolorsflattesterpropertiesfastbinarycollectionutilcoreECMAScript 6ES3performantlanguagespeccolour0fast-deep-cloneArray.prototype.findLastIndexefficientloadingnodejsprivatepipeUint8ArrayCSSairbnbgitignoreES2021sortedatomfullformsansifastcopyreverseregular expressiones-shim APIkinesissubprocessdateObject.assigncoveragees2018String.prototype.matchAllspringenvECMAScript 2015UnderscoreelectronECMAScript 2020s3slicejasmineasyncquerystreamslockfileWebSocketsworkflowconfigurablenopebddSymboltc39react animationWeakSetES2017react-hook-formendpointtypescriptES5descriptorspopmotionimportstablefputilsdefinePropertyroutercloudformationmatchesreworkcomputed-typesassertiontacitarktypepropertynumberbyteLengthvaluesschemadomweakmaplrupyyamlparsemkdirplookvalidatorexecutefunction.lengthbundlingnegativemodulecircularjavascriptreadablestreamparentunicodecommanderoptionObject.valueschromefindecmascriptgenericspackage.jsoniskarmaclidynamodbespreeback-endstyleguidejson-schema-validatormanipulationmapredirectcallbackTypeScripta11ymockingObject.keyses-shimsomitrmdirclassnamesfilecurlartsharedarraybuffercloudfrontgdprsetterrmObservablesRegExp#flagsassertsdefineemrnpmignoredeepcopyrecursiveindicatorurlcall-boundbabel-coreargsmrutypeflages2015snscharacterUint8ClampedArrayidstylingavaqsoffsetswfcore-jsfpsrssgetoptargumenttraverseroute53mockaccessibilityshebangloadbalancinges2016Pushbeanstalkiamsafehttpreact-testing-libraryparserroutingtoSortedtddviewwalksqspackagerequirerangeerrorsimpledbschemetypeofconsole.envestreeajaxnegative zerodataconcatbufferInt8ArrayES2015elbdescriptorxhrMicrosofthtmlreadimmerconstURLSearchParamsinferencepreprocessorxtermsymbolsbrowserslisthas-ownzodsinatraeschildfindupES2023eventDispatcherES8lengthjsxlastwaapimapreducesyntaxerrorserialize.gitignoreregular-expressionterminaljapaneseESweaksettrimshamset
4.7.99

7 days ago

4.7.97

9 days ago

4.7.98

8 days ago

4.7.96

10 days ago

4.7.94

12 days ago

4.7.95

11 days ago

4.6.94

13 days ago

4.6.93

14 days ago

4.6.92

15 days ago

4.6.91

16 days ago

4.6.90

17 days ago

4.6.89

18 days ago

4.6.88

19 days ago

4.6.87

20 days ago

4.6.86

21 days ago

3.6.86

22 days ago

3.6.85

23 days ago

3.6.84

24 days ago

3.5.84

25 days ago

3.5.83

26 days ago

3.5.82

27 days ago

3.5.81

28 days ago

3.5.80

29 days ago

3.5.79

30 days ago

3.5.78

1 month ago

3.5.77

1 month ago

3.5.76

1 month ago

3.5.75

1 month ago

3.5.74

1 month ago

3.5.73

1 month ago

3.5.72

1 month ago

3.5.71

1 month ago

3.5.70

1 month ago

3.5.69

1 month ago

3.5.68

1 month ago

3.5.67

1 month ago

3.5.66

1 month ago

3.5.65

1 month ago

3.5.64

1 month ago

2.5.64

2 months ago

2.5.63

2 months ago

2.5.62

2 months ago

2.5.61

2 months ago

2.5.60

2 months ago

2.5.59

2 months ago

2.5.58

2 months ago

2.5.57

2 months ago

2.5.56

2 months ago

2.5.55

2 months ago

2.5.54

2 months ago

2.4.54

2 months ago

2.4.53

2 months ago

2.4.52

2 months ago

2.4.51

2 months ago

2.3.51

2 months ago

2.2.51

2 months ago

2.2.50

2 months ago

2.2.49

2 months ago

2.2.48

2 months ago

2.2.47

2 months ago

2.2.46

2 months ago

2.1.46

2 months ago

2.1.45

2 months ago

2.1.44

2 months ago

2.1.43

2 months ago

2.1.42

2 months ago

2.1.41

2 months ago

2.1.40

2 months ago

2.1.39

2 months ago

2.1.38

3 months ago

2.1.37

3 months ago

2.1.36

3 months ago

2.1.35

3 months ago

2.1.34

3 months ago

2.1.33

3 months ago

2.1.32

3 months ago

2.1.31

3 months ago

2.1.30

3 months ago

2.1.29

3 months ago

2.1.28

3 months ago

2.1.27

3 months ago

1.1.27

3 months ago

1.1.26

3 months ago

1.1.25

3 months ago

1.1.24

3 months ago

1.1.23

3 months ago

1.1.22

3 months ago

1.1.21

3 months ago

1.0.21

3 months ago

1.0.20

3 months ago

1.0.19

3 months ago

1.0.18

3 months ago

1.0.17

3 months ago

1.0.16

3 months ago

1.0.15

3 months ago

1.0.14

3 months ago

1.0.13

3 months ago

1.0.12

3 months ago

1.0.11

3 months ago

1.0.10

4 months ago

1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago