form.jpg

    1. {
    2. "form": {
    3. "labelCol": 6,
    4. "wrapperCol": 12
    5. },
    6. "schema": {
    7. "type": "object",
    8. "properties": {
    9. "job": {
    10. "type": "void",
    11. "x-component": "Card",
    12. "x-component-props": {
    13. "title": "员工信息"
    14. },
    15. "x-designable-id": "m0dueq9kf8a",
    16. "x-index": 0,
    17. "name": "job",
    18. "properties": {
    19. "username": {
    20. "type": "string",
    21. "title": "姓名",
    22. "x-decorator": "FormItem",
    23. "x-component": "Input",
    24. "x-component-props": {
    25. "maxLength": 20,
    26. "showCount": true,
    27. "placeholder": "请输入姓名"
    28. },
    29. "x-validator": [],
    30. "x-decorator-props": {},
    31. "x-designable-id": "cwr3pezmfio",
    32. "x-index": 0,
    33. "name": "username",
    34. "x-reactions": {
    35. "dependencies": [
    36. {
    37. "property": "value",
    38. "type": "any"
    39. }
    40. ],
    41. "fulfill": {
    42. "state": {
    43. "decoratorProps": "{{{\n labelCol:6,\n offset: 4\n}}}"
    44. }
    45. }
    46. }
    47. },
    48. "level": {
    49. "title": "级别",
    50. "x-decorator": "FormItem",
    51. "x-component": "TreeSelect",
    52. "x-validator": [],
    53. "x-component-props": {},
    54. "x-decorator-props": {},
    55. "x-designable-id": "u60bf7e0eys",
    56. "x-index": 1,
    57. "name": "level",
    58. "enum": [
    59. {
    60. "label": "初级",
    61. "value": "1"
    62. },
    63. {
    64. "label": "高级",
    65. "value": "2"
    66. },
    67. {
    68. "label": "专家",
    69. "value": "3"
    70. }
    71. ]
    72. },
    73. "formSubmit": {
    74. "type": "void",
    75. "x-component": "FormButtonGroup.FormItem",
    76. "x-validator": [],
    77. "x-component-props": {},
    78. "x-designable-id": "formSubmit",
    79. "properties": {
    80. "submit": {
    81. "type": "void",
    82. "x-component": "Submit",
    83. "x-component-props": {
    84. "type": "primary",
    85. "children": "提交"
    86. },
    87. "x-validator": [],
    88. "x-designable-id": "submit",
    89. "x-index": 0
    90. },
    91. "reset": {
    92. "type": "void",
    93. "x-component": "Reset",
    94. "x-component-props": {
    95. "type": "default",
    96. "children": "重置",
    97. "className": "ml8"
    98. },
    99. "x-designable-id": "reset",
    100. "x-index": 1
    101. }
    102. },
    103. "x-index": 3
    104. }
    105. }
    106. }
    107. },
    108. "x-designable-id": "mdwzm7d2lq9"
    109. }
    110. }