Skip to content

FormilyArrayTable缺少数据类型描述 #59

@haloworld007

Description

@haloworld007

以下为可复现json schema

{
  "componentName": "Page",
  "id": "node_ocl6pvz1ch1",
  "props": {
    "ref": "outerView",
    "style": {
      "height": "100%",
      "overflow": "auto",
      "backgroundColor": "#fff"
    },
    "header": ""
  },
  "css": "body {\n  font-size: 12px;\n}\n\n.button {\n  width: 100px;\n  color: #ff00ff\n}",
  "title": "",
  "fileName": "/",
  "isLocked": false,
  "condition": true,
  "dataSource": {
    "list": []
  },
  "originCode": "class LowcodeComponent extends Component {\n  // 定义搭建所需要的 State\n  state = {\n    students: []\n  }\n\n  // 页面生命周期 - mount\n  componentDidMount() {\n    console.log('did mount');\n    \n  }\n\n  // 页面生命周期 - will unmount\n  componentWillUnmount() {\n    console.log('will unmount');\n  }\n\n}",
  "conditionGroup": "",
  "state": {
    "students": {
      "type": "JSExpression",
      "value": "[]"
    }
  },
  "methods": {},
  "lifeCycles": {
    "componentDidMount": {
      "type": "JSFunction",
      "value": "function componentDidMount() {\n  console.log('did mount');\n}"
    },
    "componentWillUnmount": {
      "type": "JSFunction",
      "value": "function componentWillUnmount() {\n  console.log('will unmount');\n}"
    }
  },
  "children": [
    {
      "componentName": "FormilyForm",
      "id": "node_ocll0o5ugd9",
      "props": {
        "componentProps": {
          "layout": "horizontal"
        },
        "__component_name": "FormilyForm",
        "ref": "formily_rdsnd4ql9h"
      },
      "title": "FormilyForm",
      "isLocked": false,
      "condition": true,
      "conditionGroup": "",
      "children": [
        {
          "componentName": "FormilyArrayTable",
          "id": "node_ocll0o5ugdn",
          "props": {
            "__component_name": "FormilyArrayTable",
            "fieldProps": {
              "x-validator": [],
              "name": "123"
            },
            "componentProps": {
              "x-component-props": {}
            },
            "decoratorProps": {
              "x-decorator-props": {}
            }
          },
          "title": "ArrayTable",
          "isLocked": false,
          "condition": true,
          "conditionGroup": "",
          "children": [
            {
              "componentName": "FormilyArrayTable.Addition",
              "id": "node_ocll0o5ugdo",
              "props": {
                "__component_name": "FormilyArrayTable.Addition"
              },
              "title": "",
              "isLocked": false,
              "condition": true,
              "conditionGroup": ""
            }
          ]
        }
      ]
    }
  ]
}
image 点击`+ addtion` 报错,原因是 FormilyArrayTable 的 fieldProps 缺少以下描述: image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions