Coder Social home page Coder Social logo

一个formSchema中如果有两个category,那么使用array的类型就不能渲染,并且功能也实现不了 about vue-json-schema-form HOT 3 OPEN

llt-x avatar llt-x commented on June 4, 2024
一个formSchema中如果有两个category,那么使用array的类型就不能渲染,并且功能也实现不了

from vue-json-schema-form.

Comments (3)

lljj-x avatar lljj-x commented on June 4, 2024

贴下schema

from vue-json-schema-form.

llt-x avatar llt-x commented on June 4, 2024

贴下schema

type: 'object',
properties: {
tabDivideMode: {
type: 'string',
title: '分隔模式',
default: 'average',
enum: ['content', 'average'],
enumNames: ['内容适配', '均分'],
category: '基础属性'
},
tabList: {
type: 'array',
title: 'Tab列表',
'ui:options': {
showIndexNumber: true
},
default: [
{
title: '标签一',
img: 'https://yppphoto.1-xian.cn/yppphoto/e38265ae929c48528782a8727abce331.png'
},
{
title: '标签二',
img: '"https://yppphoto.1-xian.cn/yppphoto/7edde32a785d440681141407f643d5fa.png'
}
],
category: '别的属性',
items: {
type: 'object',
properties: {
title: {
type: 'string',
title: '标题'
},
img: {
type: 'string',
title: '图片'
// 'ui:widget': 'Upload'
}
}
}
}
}

from vue-json-schema-form.

lljj-x avatar lljj-x commented on June 4, 2024

JSONSchema 有category语法吗 ? 看着没问题 Demo

from vue-json-schema-form.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.