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

设置ArraySetter之后,拿到的数据不应该是数组格式嘛? #3091

Open
elevenwangyang opened this issue Sep 3, 2024 · 3 comments

Comments

@elevenwangyang
Copy link

image

meta.ts

import type { IPublicTypeComponentMetadata, IPublicTypeSnippet } from "@alilc/lowcode-types";

const DemoTableMeta: IPublicTypeComponentMetadata = {
  "componentName": "DemoTable",
  "title": "DemoTable",
  "docUrl": "",
  "screenshot": "",
  "devMode": "proCode",
  "configure": {
    "props": [
      {
        "title": { "label": '表格列', "tip": '表格列的配置描述,具体项见下表' },
        "name": 'columns',
        "setter": {
          "componentName": 'ArraySetter',
          "props": {
            "itemSetter": {
              "componentName": 'ObjectSetter',
              "props": {
                "config": {
                  "items": [
                    {
                      "name": 'title',
                      "title": { "label": '列标题', "tip": 'title | 列标题' },
                      "setter": "StringSetter"
                    },
                    {
                      "name": 'dataIndex',
                      "title": { "label": '数据字段', "tip": 'dataIndex | 数据字段' },
                      "setter": 'StringSetter',
                      "isRequired": true,
                    },
                  ],
                },
              },
              "defaultValue": { "title": '标题' },
            },
          },
          "defaultValue": []
        },
      },
    ],
    "supports": {
      "style": true
    },
    "component": {}
  },
};
const snippets: IPublicTypeSnippet[] = [
  {
    "title": "DemoTable",
    "screenshot": "",
    "schema": {
      "componentName": "DemoTable",
      "props": {}
    }
  }
];

export default {
  ...DemoTableMeta,
  snippets
};

@Cyxwmm
Copy link

Cyxwmm commented Sep 9, 2024

可以看看这个2728

@elevenwangyang
Copy link
Author

可以看看这个2728

更新后好了,感谢

@alonesmall
Copy link

可以看看这个2728

我拉取了lowcode-engine-ext这个项目,发现run start后,并不能正常运行,请问我该如何调试这个项目呢?能麻烦提供一下指导吗?

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

3 participants