v-jsoneditor

WebJar for v-jsoneditor

Лицензия

Лицензия

MIT
Категории

Категории

JSON Данные
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

v-jsoneditor
Последняя версия

Последняя версия

1.2.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

v-jsoneditor
WebJar for v-jsoneditor
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/yansenlei/VJsoneditor

Скачать v-jsoneditor

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/v-jsoneditor/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>v-jsoneditor</artifactId>
    <version>1.2.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/v-jsoneditor/
implementation 'org.webjars.npm:v-jsoneditor:1.2.3'
// https://jarcasting.com/artifacts/org.webjars.npm/v-jsoneditor/
implementation ("org.webjars.npm:v-jsoneditor:1.2.3")
'org.webjars.npm:v-jsoneditor:jar:1.2.3'
<dependency org="org.webjars.npm" name="v-jsoneditor" rev="1.2.3">
  <artifact name="v-jsoneditor" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='v-jsoneditor', version='1.2.3')
)
libraryDependencies += "org.webjars.npm" % "v-jsoneditor" % "1.2.3"
[org.webjars.npm/v-jsoneditor "1.2.3"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : jsoneditor jar [7.0.5,8)

Модули Проекта

Данный проект не имеет модулей.

npm version Build Status license license

v-jsoneditor

Vue JSONEditor

Try the demo

https://yansenlei.github.io/VJsoneditor/

demo

Installation

npm install v-jsoneditor

Using

Import globally

import Vue from 'vue'
import VJsoneditor from 'v-jsoneditor'

Vue.use(VJsoneditor)

Import

import VJsoneditor from 'v-jsoneditor'

export default {
    name: 'app',
    components: {
        VJsoneditor
    },
    data() {
        return {
            json: {
                "hello": "vue"
            }
        }
    },
    methods: {
        onError() {
            console.log('error')
        }
    }
}

Browser

<script src='https://unpkg.com/vue@latest'></script>
<script src="./dist/v-jsoneditor.min.js"></script>

Use in template

<v-jsoneditor v-model="json" :options="options" :plus="false" height="400px" @error="onError">

Options

Name Description type default
options Jsoneditor params, You can look at the detailed configuration Object { mode: 'code' }
value(v-model) Object value Object { }
plus Whether full screen switching is added Boolean true
height Default height String -

Events

Name Description
error Error callback

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

Версии библиотеки

Версия
1.2.3