A2UI Playground

JSON 调试工具
JSON Schema525 行
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
[
  {
    "id": "root",
    "component": "Card",
    "child": "main-column",
    "width": "lg"
  },
  {
    "id": "main-column",
    "component": "Column",
    "children": [
      "page-title",
      "section-divider-1",
      "text-variants-section",
      "section-divider-2",
      "card-widths-section",
      "section-divider-3",
      "form-fields-section",
      "section-divider-4",
      "choice-pickers-section",
      "section-divider-5",
      "buttons-section",
      "section-divider-6",
      "icons-section",
      "section-divider-7",
      "list-section",
      "action-buttons-row"
    ],
    "align": "stretch",
    "gap": 8
  },
  {
    "id": "page-title",
    "component": "Text",
    "text": "组件演示 - 所有场景",
    "variant": "h3"
  },
  {
    "id": "section-divider-1",
    "component": "Text",
    "text": "━━━ 文本变体展示 ━━━",
    "variant": "shortText"
  },
  {
    "id": "text-variants-section",
    "component": "Column",
    "children": [
      "text-h3-demo",
      "text-short-demo",
      "text-long-demo"
    ],
    "align": "stretch",
    "gap": 12
  },
  {
    "id": "text-h3-demo",
    "component": "Text",
    "text": "H3 标题样式",
    "variant": "h3"
  },
  {
    "id": "text-short-demo",
    "component": "Row",
    "children": ["text-short-label", "text-short-content"],
    "gap": 8,
    "align": "center"
  },
  {
    "id": "text-short-label",
    "component": "Text",
    "text": "短文本:",
    "variant": "shortText"
  },
  {
    "id": "text-short-content",
    "component": "Text",
    "text": "这是一段简短的描述文本",
    "variant": "shortText"
  },
  {
    "id": "text-long-demo",
    "component": "Text",
    "text": "长文本变体:支持多行文本展示,适用于详细说明、备注、条款等需要大量文字描述的场景。可以配合 variant: 'longText' 使用。",
    "variant": "longText"
  },
  {
    "id": "section-divider-2",
    "component": "Text",
    "text": "━━━ Card 宽度展示 ━━━",
    "variant": "shortText"
  },
  {
    "id": "card-widths-section",
    "component": "Row",
    "children": [
      "card-xs-info",
      "card-sm-info",
      "card-md-info",
      "card-lg-info"
    ],
    "gap": 12,
    "align": "stretch"
  },
  {
    "id": "card-xs-info",
    "component": "Text",
    "text": "xs=300px | sm=400px | md=560px | lg=720px | xl=960px | full=100%",
    "variant": "shortText"
  },
  {
    "id": "card-sm-info",
    "component": "Text",
    "text": "宽度规格适用于不同场景:xs适合侧边栏,md适合表单,xl适合复杂页面",
    "variant": "shortText"
  },
  {
    "id": "card-md-info",
    "component": "Text",
    "text": "默认宽度为 md (560px),这是最常用的中等宽度",
    "variant": "shortText"
  },
  {
    "id": "card-lg-info",
    "component": "Text",
    "text": "lg/xl 适合数据密集型页面或需要展示大量信息",
    "variant": "shortText"
  },
  {
    "id": "section-divider-3",
    "component": "Text",
    "text": "━━━ 表单组件展示 ━━━",
    "variant": "shortText"
  },
  {
    "id": "form-fields-section",
    "component": "Column",
    "children": [
      "form-row-1",
      "form-row-2",
      "form-row-3",
      "form-row-4"
    ],
    "align": "stretch",
    "gap": 16
  },
  {
    "id": "form-row-1",
    "component": "Row",
    "children": ["textfield-short", "textfield-required"],
    "gap": 16,
    "align": "stretch"
  },
  {
    "id": "textfield-short",
    "component": "TextField",
    "label": "短文本输入",
    "placeholder": "请输入",
    "variant": "shortText",
    "value": { "path": "/form/shortInput", "default": "默认值示例" }
  },
  {
    "id": "textfield-required",
    "component": "TextField",
    "label": "必填字段",
    "placeholder": "此项必填",
    "required": true,
    "value": { "path": "/form/requiredField" }
  },
  {
    "id": "form-row-2",
    "component": "Row",
    "children": ["textfield-long", "selectfield-demo"],
    "gap": 16,
    "align": "stretch"
  },
  {
    "id": "textfield-long",
    "component": "TextField",
    "label": "长文本输入",
    "placeholder": "请输入详细描述...",
    "variant": "longText",
    "rows": 3,
    "value": { "path": "/form/longInput", "default": "这是一段默认的长文本内容,用于展示多行输入的效果。" }
  },
  {
    "id": "selectfield-demo",
    "component": "SelectField",
    "label": "下拉选择",
    "placeholder": "请选择选项",
    "options": [
      { "label": "选项一", "value": "opt1" },
      { "label": "选项二", "value": "opt2" },
      { "label": "选项三", "value": "opt3" },
      { "label": "选项四", "value": "opt4", "disabled": true }
    ],
    "clearable": true,
    "required": true,
    "value": { "path": "/form/selectField", "default": "opt1" }
  },
  {
    "id": "form-row-3",
    "component": "Row",
    "children": ["datepicker-demo", "datetime-demo"],
    "gap": 16,
    "align": "stretch"
  },
  {
    "id": "datepicker-demo",
    "component": "DatePicker",
    "label": "日期选择",
    "placeholder": "选择日期",
    "value": { "path": "/form/datePicker", "default": "2026-04-29" }
  },
  {
    "id": "datetime-demo",
    "component": "DateTimeInput",
    "label": "日期时间",
    "placeholder": "选择日期时间",
    "enableDate": true,
    "enableTime": true,
    "value": { "path": "/form/dateTime", "default": "2026-04-29 14:30:00" }
  },
  {
    "id": "form-row-4",
    "component": "Row",
    "children": ["input-demo", "input-disabled"],
    "gap": 16,
    "align": "stretch"
  },
  {
    "id": "input-demo",
    "component": "Input",
    "label": "基础输入",
    "placeholder": "普通输入框",
    "value": { "path": "/form/basicInput", "default": "基础输入默认值" }
  },
  {
    "id": "input-disabled",
    "component": "Input",
    "label": "禁用状态",
    "placeholder": "不可编辑",
    "disabled": true,
    "value": { "path": "/form/disabledInput" }
  },
  {
    "id": "section-divider-4",
    "component": "Text",
    "text": "━━━ ChoicePicker 展示 ━━━",
    "variant": "shortText"
  },
  {
    "id": "choice-pickers-section",
    "component": "Column",
    "children": [
      "choice-single-label",
      "choice-single-picker",
      "choice-multi-label",
      "choice-multi-picker"
    ],
    "align": "stretch",
    "gap": 8
  },
  {
    "id": "choice-single-label",
    "component": "Text",
    "text": "单选模式 (mutuallyExclusive):",
    "variant": "shortText"
  },
  {
    "id": "choice-single-picker",
    "component": "ChoicePicker",
    "label": "",
    "variant": "mutuallyExclusive",
    "displayStyle": "chips",
    "required": true,
    "options": [
      { "label": "方案A", "value": "plan_a" },
      { "label": "方案B", "value": "plan_b" },
      { "label": "方案C", "value": "plan_c" },
      { "label": "自定义", "value": "custom" }
    ],
    "value": { "path": "/form/singleChoice", "default": "plan_a" }
  },
  {
    "id": "choice-multi-label",
    "component": "Text",
    "text": "多选模式 (默认):",
    "variant": "shortText"
  },
  {
    "id": "choice-multi-picker",
    "component": "ChoicePicker",
    "label": "",
    "variant": "default",
    "displayStyle": "chips",
    "options": [
      { "label": "功能1", "value": "feature_1", "description": "基础功能模块" },
      { "label": "功能2", "value": "feature_2", "description": "高级功能模块" },
      { "label": "功能3", "value": "feature_3", "description": "扩展功能模块" },
      { "label": "功能4", "value": "feature_4", "description": "可选功能模块" },
      { "label": "功能5", "value": "feature_5" },
      { "label": "功能6", "value": "feature_6", "disabled": true }
    ],
    "value": { "path": "/form/multiChoice", "default": ["feature_1", "feature_2"] }
  },
  {
    "id": "section-divider-5",
    "component": "Text",
    "text": "━━━ InfoField 信息展示 ━━━",
    "variant": "shortText"
  },
  {
    "id": "info-section",
    "component": "Column",
    "children": ["info-tag", "info-quote"],
    "align": "stretch",
    "gap": 12
  },
  {
    "id": "info-tag",
    "component": "InfoField",
    "label": "系统模块",
    "value": { "path": "/form/systemModule", "default": "订单管理" },
    "variant": "tag"
  },
  {
    "id": "info-quote",
    "component": "InfoField",
    "label": "问题描述",
    "value": { "path": "/form/issueDesc", "default": "系统提示订单状态异常,需要核实订单流转逻辑。" },
    "variant": "quote"
  },
  {
    "id": "section-divider-6",
    "component": "Text",
    "text": "━━━ 按钮类型展示 ━━━",
    "variant": "shortText"
  },
  {
    "id": "buttons-section",
    "component": "Row",
    "children": [
      "btn-primary-info",
      "btn-success-info",
      "btn-warning-info",
      "btn-danger-info",
      "btn-info-info",
      "btn-default-info"
    ],
    "gap": 12,
    "align": "center"
  },
  {
    "id": "btn-primary-info",
    "component": "Button",
    "text": "Primary",
    "type": "primary"
  },
  {
    "id": "btn-success-info",
    "component": "Button",
    "text": "Success",
    "type": "success"
  },
  {
    "id": "btn-warning-info",
    "component": "Button",
    "text": "Warning",
    "type": "warning"
  },
  {
    "id": "btn-danger-info",
    "component": "Button",
    "text": "Danger",
    "type": "danger"
  },
  {
    "id": "btn-info-info",
    "component": "Button",
    "text": "Info",
    "type": "info"
  },
  {
    "id": "btn-default-info",
    "component": "Button",
    "text": "Default",
    "type": "default"
  },
  {
    "id": "section-divider-7",
    "component": "Text",
    "text": "━━━ 图标展示 ━━━",
    "variant": "shortText"
  },
  {
    "id": "icons-section",
    "component": "Row",
    "children": [
      "icon-label",
      "icon-row"
    ],
    "gap": 16,
    "align": "center"
  },
  {
    "id": "icon-label",
    "component": "Text",
    "text": "Element Plus 图标:",
    "variant": "shortText"
  },
  {
    "id": "icon-row",
    "component": "Row",
    "children": [
      "icon-edit",
      "icon-delete",
      "icon-search",
      "icon-setting",
      "icon-user",
      "icon-folder"
    ],
    "gap": 12,
    "align": "center"
  },
  {
    "id": "icon-edit",
    "component": "Icon",
    "name": "Edit"
  },
  {
    "id": "icon-delete",
    "component": "Icon",
    "name": "Delete"
  },
  {
    "id": "icon-search",
    "component": "Icon",
    "name": "Search"
  },
  {
    "id": "icon-setting",
    "component": "Icon",
    "name": "Setting"
  },
  {
    "id": "icon-user",
    "component": "Icon",
    "name": "User"
  },
  {
    "id": "icon-folder",
    "component": "Icon",
    "name": "Folder"
  },
  {
    "id": "section-divider-8",
    "component": "Text",
    "text": "━━━ 列表展示 ━━━",
    "variant": "shortText"
  },
  {
    "id": "list-section",
    "component": "Column",
    "children": [
      "list-demo"
    ],
    "align": "stretch"
  },
  {
    "id": "list-demo",
    "component": "List",
    "items": [
      { "id": "item1", "label": "列表项一 - 基本信息" },
      { "id": "item2", "label": "列表项二 - 详细描述" },
      { "id": "item3", "label": "列表项三 - 扩展说明" },
      { "id": "item4", "label": "列表项四 - 补充内容" },
      "纯文本列表项"
    ],
    "value": { "path": "/form/listItems" }
  },
  {
    "id": "action-buttons-row",
    "component": "Row",
    "children": [
      "reset-btn",
      "cancel-btn",
      "submit-btn"
    ],
    "justify": "end",
    "gap": 12
  },
  {
    "id": "reset-btn-text",
    "component": "Text",
    "text": "重置"
  },
  {
    "id": "reset-btn",
    "component": "Button",
    "child": "reset-btn-text",
    "type": "warning"
  },
  {
    "id": "cancel-btn-text",
    "component": "Text",
    "text": "取消"
  },
  {
    "id": "cancel-btn",
    "component": "Button",
    "child": "cancel-btn-text",
    "type": "default"
  },
  {
    "id": "submit-btn-text",
    "component": "Text",
    "text": "提交"
  },
  {
    "id": "submit-btn",
    "component": "Button",
    "child": "submit-btn-text",
    "type": "primary"
  }
]
Form Data
123
{
  "form": {}
}
预览
无内容