zyqwst / json-schema-editor-vue Goto Github PK
View Code? Open in Web Editor NEWA json-schema editor of high efficient and easy-to-use, base on Vue
Home Page: http://json-schema.sviip.com
License: Apache License 2.0
A json-schema editor of high efficient and easy-to-use, base on Vue
Home Page: http://json-schema.sviip.com
License: Apache License 2.0
输入title后左边好像没有及时显示,, import json完数据之后再点击title
应该是2.1.1版本就不行了
<a-input :value="pickValue.title" class="ant-col-title" :placeholder="local['title']" @blur="e => pickValue.title=e.target.value"/>
好像是这么写法影响到了
文本框
可以增加选项 不使用 root 作为key 包一层吗
{
"data": {
"c": [{
"Expires": "2019-08-03 14:46:24",
"Path": "/"
}]
}
}
就这个json保存不了,
能指定在某个属性前后添加节点吗
It would be great to have the ability to enable nullable type.
For example, the nullable object should look like this:
{
"properties": {},
"type":["object", "null"]
}
Thanks!
json如何用插件直接转为jsonschme,有暴露接口吗
引入css时报错Module build failed: BrowserslistError: Unknown browser query dead
版本2.0.0
vue版本2.6.11
请问可以帮忙支持下Vue3吗?
为什么添加数组的时候只有一个item项目,不能添加多项呢
环境:
@vue/cli 4.4.1
node 16.17
npm 8.15
{
"name": "vue-admin-template",
"version": "4.4.0",
"description": "A vue admin template with Element UI & axios & iconfont & permission control & lint",
"author": "Pan [email protected]",
"scripts": {
"local": "vue-cli-service serve --mode local",
"dev": "vue-cli-service serve",
"build:prod": "vue-cli-service build",
"build:dev": "vue-cli-service build --mode development",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
"lint": "eslint --ext .js,.vue src",
"test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit"
},
"dependencies": {
"axios": "0.18.1",
"clipboard": "^2.0.11",
"core-js": "3.6.5",
"echarts": "4.2.1",
"element-ui": "2.13.2",
"js-cookie": "2.2.0",
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",
"qs": "^6.10.3",
"vue": "2.6.10",
"vue-count-to": "^1.0.13",
"vue-router": "3.0.6",
"vuex": "3.1.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "4.4.4",
"@vue/cli-plugin-eslint": "4.4.4",
"@vue/cli-plugin-unit-jest": "4.4.4",
"@vue/cli-service": "4.4.4",
"@vue/test-utils": "1.0.0-beta.29",
"autoprefixer": "9.5.1",
"babel-eslint": "10.1.0",
"babel-jest": "23.6.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"chalk": "2.4.2",
"connect": "3.6.6",
"eslint": "6.7.2",
"eslint-plugin-vue": "6.2.2",
"html-webpack-plugin": "3.2.0",
"json-schema-editor-vue": "^2.0.4",
"mockjs": "1.0.1-beta3",
"runjs": "4.3.2",
"sass": "1.26.8",
"sass-loader": "8.0.2",
"script-ext-html-webpack-plugin": "2.1.3",
"serve-static": "1.13.2",
"svg-sprite-loader": "4.1.3",
"svgo": "1.2.2",
"vue-template-compiler": "2.6.10"
},
"browserslist": [
"> 1%",
"last 2 versions"
],
"engines": {
"node": ">=8.9",
"npm": ">= 3.0.0"
},
"license": "MIT"
}
name字段 无法修改
作者你好,我想请问vue3版本,不论删除对象的哪一条,都是最后一个值被删除,请问这个有解决方案吗
现在的number、string、array...可以支持大部分场景
现在我想将这一套配置转换成真实的表单,如果可以定义一些更加精确的类型,配置起来就更为方便
比如下拉框,我想加一个selected类型,多选框加一个checkbox类型,单选框加一个radio类型... 然后每个类型里面的高级配置也可以自定义,这样的拓展性可以满足嘛大佬~
不增加类型,只是单纯的支持自定义高级配置里面的基础配置也是可以滴
试用了下,发现应该还没支持到v7的逻辑判断吧,
外部导入json schema时,不能解析“$ref”。目前项目中有这种场景,请问作者有解决方案吗?如果有空的话麻烦解答下,谢谢!
请教一下 例子中的 根节点 "root" 是必须要填写的吗? 例子中 不是标准的json schema语句?
添加完子节点,输入标题,保存数据提交给后端,编辑的时候,在点添加一个子节点,之前节点的标题被清空了
参数多了情况输入文本框很卡 一秒一个字,急救为啥 ,客户不满意
如题,网上找了各种版本,都解决不了这个问题
比如
{ "root": { "description": "", "required": [ "CustomerCode" ], "type": "object", "properties": { "CustomerCode": { "description": "code", "type": "string" }, "TypeItem": { "description": "type", "uniqueItems": false, "type": "array", "items": { "format": "int32", "enum": [ 1, 2, 3, 4 ],** "type": "integer" } } } } }
目前通过自定义属性也无法添加enum
Do you plan to generate a javascript bundle distribution file to embed without the need to compile it? Thanks, cool project.
runtime-core.esm-bundler.js:38 [Vue warn]: Failed to resolve component: json-schema-editor
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
能通过root直接读取到自定义属性
似乎是当 Modal 弹出的时候都会触发这个报错
我的本地开发环境没有装antvue
表单不能设置默认值吗?
我的json schema类似这种,children里面嵌套children的结构
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"node": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/node"
}
}
},
"required": ["name"]
}
},
"type": "object",
"properties": {
"root": {
"$ref": "#/definitions/node"
}
},
"required": ["root"]
}
请问在页面可以默认新增一个「默认值」的属性吗?现在只能是在高级设置里面通过自定义属性增加 default 属性了
RT,这个很常用
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.