koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
538 stars 154 forks source link

How to realize that different fields of the same object are distributed on different tab pages? #299

Open cheezone opened 2 years ago

cheezone commented 2 years ago
{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
     "x-display": "tabs",
    "x-props": {
        "grow": true
    },
    "allOf": [
        {
            "$ref": "#/definitions/aInfo"
        },
        {
            "$ref": "#/definitions/bInfo"
        }
    ],
    "definitions": {
        "aInfo": {
            "type": "object",
            "title": "A",
            "properties": {
                "ooo": {
                    "title": "A-Test",
                    "type": "object",
                    "properties": {
                        "a": { "title": "aaa", "type": "string" }
                    }
                }
            }
        },
        "bInfo": {
            "type": "object",
            "title": "B",
            "properties": {
                "ooo": {
                    "title": "B-Test",
                    "type": "object",
                    "properties": {
                        "b": { "title": "bbb", "type": "string" }
                    }
                }
            }
        }
    }
}

When both input 111, my expectation is to get:

"ooo": {
    "a": "111",
    "b": "111"
  }

But I got:

"ooo": {
    "b": "111"
  }