2.8.99 • Published 10 months ago

@erboladaiorg/ducimus-quae v2.8.99

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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 @erboladaiorg/ducimus-quae --save
$ yarn add @erboladaiorg/ducimus-quae

Use Vue2

$ npm install @erboladaiorg/ducimus-quae@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>
    <@erboladaiorg/ducimus-quae :data="{ key: 'value' }" />
  </div>
</template>

<script>
import VueJsonPretty from '@erboladaiorg/ducimus-quae';
import '@erboladaiorg/ducimus-quae/lib/styles.css';

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

Use Nuxt.js

  1. In plugins/@erboladaiorg/ducimus-quae.js
import Vue from 'vue'
import VueJsonPretty from '@erboladaiorg/ducimus-quae'

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

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

widthJSONbinaryequalityECMAScript 3chineseemittranspiledeepcopyposebeanstalkESnextresolvetacitObject.fromEntriesworkerpackagecloudformation@@toStringTagtoSortedsyntaxcolourArrayforkspeccallstringifiernativeredux-toolkitutilitiescommanderES8ECMAScript 2016shamregexpextrapatchatombabelprefixmergeconfigurableECMAScript 5guidec2fixed-widthproxyio-tsrmdirECMAScript 2023WebSocketseslintpluginawslocation.envfsreversebindcss-in-jsprotoSymbolgroupByreact-hookses-shim APIwhatwgStyleSheetSymbol.toStringTagprivateES3shrinkwrapparserInt16ArraydataViewfpsArray.prototype.flatMapreal-timesetterrangeerrorUint8Arraynopeeventsredactroute53toStringTagUnderscoremetadataObject.keyselasticachecontainsclass-validatorxmltransportnpmignoremonorepoObject.getPrototypeOfgenericsboundECMAScript 2022a11yinperformantpathentriestddcolumnelectronmkdirpenvironmentsieinstallcallboundinferenceECMAScript 7espreeSystem.globalpushreworkassertconcatMapastRegExp.prototype.flagssyntaxerrorsuperstructscheme-validationStreamAsyncIteratorrestpipereduxescircularroutingphoneObjects3loadbalancingcode pointsgetintrinsicises2015javascriptvestprotobufWeakSetasterisksarktyperegular-expressionprettysearchperformancemanagerparentObject.isgetoptspawninputstoragegatewaycliassigngesturestoolkitmatchIteratorajaxmomentUint8ClampedArrayrouterreadablestreamiamreact poseES6stylesfullwidthtyped arrayjsoncopyvpclocaloutputpopmotionInt8Arraysafeformattelephonecollection.es6mochapnpm9finddeepobjECMAScript 2015selfes2018positiveeventDispatcherkoreanrmdeep-clonel10ntraverseforEachcodescryptorapidsliceramdanamesdayjsdefinecurluuidrssnpmspinner-0efficientcreatechannelArray.prototype.flatoptionRFC-6455symbolspyyamlbyteframeworkcjkObject.valuessinatrapoint-freegetOwnPropertyDescriptorlogendpoint[[Prototype]]Object.assignbufferpicomatchreact-testing-librarydeleteECMAScript 2018jasminejshintlastobjectvisuales8avaECMAScript 2019dataviewutilitytc39prunetouchdynamodbdirectoryES5react-hook-formbddfunction.lengthimportcommandkeyglobal objectvarecmascriptcompilerdragsymbolargvxtermwalkingpostcss3dhttpECMAScript 2020chromiumPromiseworkspace:*structuredCloneeslintconfigargumentelbprocesshelpersString.prototype.trimfastnegative zeroECMAScript 2017requireinternal slottypedarraysfetchArray.prototype.includesimmutablezxES2022trimStarttaplinkformmodulestylei18nhtmldomweakmapvalidateinstallerfast-copyeffect-tskeysartconcatcore-jsfull-widthECMAScript 2021robustglobwebfindupharmonyredirecthasOwnPropertyfast-deep-clonewgetwaitruntimeasynccorepostcss-pluginhttpssqsides-abstractes5react animationES2016cachewafpromisepackagesttyprivate datacall-boundnegativereadablefilteramazonurlexpressJSON-SchemaES2015protocol-buffersfeedaccessibilitystyled-componentsrecursivereusesortlookwalkcloudfronttrimLefttypanioneslint-pluginunicodeanimationpropertytoReversed6to5testyupmakeponyfilldiffdependenciesvalidationexecmaprulesmapreduceECMAScriptsideistanbulescapeglobalThisansirgbdescriptorsWeakMaptypeerrorArray.prototype.findLastagentgetPrototypeOfhelpertrimcurriediteratorqueryutilparentsregularjapanesehigher-orderlanguageloadingArray.prototype.findLastIndexcolumnsarrayes2017schemafantasy-landfunctionalzerorm -frgraphqlsuperagentspringflatMapfile systemReactiveExtensionsdom-testing-librarymanipulationterminalUint16ArrayhooksURLSearchParamsbrowserlistarraybuffergdprlibphonenumbertestingbusymkdirString.prototype.matchAllcloudwatchupmake diridlefast-deep-copytypescriptes7reversedwarningdatedefinePropertyspeedTypedArraytoolsES2023tostringtag256ajvreducerbyteLengthzodcharacteroptimizerstreamdeterministicserializerchaijestconfiggitignorerandominspecteast-asian-widthbannerfast-clonedescriptorframercall-bindapiinstrumentationtrimRightconsumewritablemrutrimEndreducesortedmulti-packageprototypestreamsES2020symlinksmatchesdependency managerfunctionscoverageqsfigletoptimistdeepclonefnmatchform-validationFunction.prototype.namejsonschemanodeloggingenvTypeBoximportexportpropertiesinvariantkarmaes-shimsformspackage managerfindLastread
2.8.99

10 months ago

2.8.98

10 months ago

2.8.97

10 months ago

2.8.96

10 months ago

2.7.96

11 months ago

2.7.95

11 months ago

2.7.94

11 months ago

2.7.93

11 months ago

2.7.92

11 months ago

2.6.92

11 months ago

2.6.91

11 months ago

2.6.90

11 months ago

2.6.89

11 months ago

2.6.88

11 months ago

2.6.87

11 months ago

2.6.86

11 months ago

2.6.85

11 months ago

2.6.84

11 months ago

2.6.83

11 months ago

2.6.82

11 months ago

1.6.82

11 months ago

1.6.81

11 months ago

1.6.80

11 months ago

1.6.79

11 months ago

1.6.78

11 months ago

1.6.77

11 months ago

1.6.76

11 months ago

1.6.75

11 months ago

1.6.74

11 months ago

1.6.73

11 months ago

1.6.72

11 months ago

1.6.71

11 months ago

1.6.70

11 months ago

1.6.69

11 months ago

1.6.68

12 months ago

1.6.67

12 months ago

1.6.66

12 months ago

1.6.65

12 months ago

1.6.64

12 months ago

1.6.63

12 months ago

1.6.62

12 months ago

1.6.61

12 months ago

1.6.60

12 months ago

1.6.59

12 months ago

1.6.58

12 months ago

1.6.57

12 months ago

1.5.57

12 months ago

1.4.57

12 months ago

1.4.56

12 months ago

1.4.55

12 months ago

1.4.54

12 months ago

1.4.53

12 months ago

1.4.52

12 months ago

1.4.51

12 months ago

1.4.50

1 year ago

1.4.49

1 year ago

1.4.48

1 year ago

1.4.47

1 year ago

1.4.46

1 year ago

1.3.46

1 year ago

1.3.45

1 year ago

1.3.44

1 year ago

1.3.43

1 year ago

1.3.42

1 year ago

1.2.42

1 year ago

1.2.41

1 year ago

1.2.40

1 year ago

1.2.39

1 year ago

1.2.38

1 year ago

1.2.37

1 year ago

1.2.36

1 year ago

1.2.35

1 year ago

1.2.34

1 year ago

1.2.33

1 year ago

1.2.32

1 year ago

1.2.31

1 year ago

1.2.30

1 year ago

1.2.29

1 year ago

1.2.28

1 year ago

1.2.27

1 year ago

1.2.26

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago