Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化radio、select和single-select的schema结构 #55

Closed
wibetter opened this issue Oct 1, 2024 · 0 comments
Closed

优化radio、select和single-select的schema结构 #55

wibetter opened this issue Oct 1, 2024 · 0 comments
Assignees

Comments

@wibetter
Copy link
Owner

wibetter commented Oct 1, 2024

旧版结构:

      {
          "type": "string",
          "title": "xx",
          "format": "radio",
          "items": {
            "type": "string",
            "enum": [
              "column",
              "row"
            ],
            "enumextra": [
              "竖排(默认)",
              "row"
            ]
          },
          "description": "xx",
          "isRequired": false,
          "readOnly": false,
          "default": "column"
        }

新版json结构:

      {
          "type": "string",
          "title": "xx",
          "format": "radio",
          "options": [
            {
               "label": "竖排(默认)",
              "value": "column"
            },
            {
               "label": "横排",
              "value": "row"
            },
          ],
          "description": "xx",
          "isRequired": false,
          "readOnly": false,
          "default": "column"
        }
@wibetter wibetter changed the title 优化radio 优化radio、select和single-select的schema结果 Oct 1, 2024
@wibetter wibetter changed the title 优化radio、select和single-select的schema结果 优化radio、select和single-select的schema结构 Oct 1, 2024
@wibetter wibetter self-assigned this Oct 3, 2024
@wibetter wibetter closed this as completed Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant