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

apitreeselect 组件出现bug #3209

Closed
gavin-james opened this issue Oct 30, 2023 · 1 comment
Closed

apitreeselect 组件出现bug #3209

gavin-james opened this issue Oct 30, 2023 · 1 comment

Comments

@gavin-james
Copy link

组件初始化代码

    {
      field: 'field33',
      component: 'ApiTreeSelect',
      label: '远程下拉树',
      helpMessage: ['ApiTreeSelect组件', '使用接口提供的数据生成选项'],
      required: true,
      // componentProps: {
      //   api: treeOptionsListApi,
      //   resultField: 'list',
      //   onChange: (e, v) => {
      //     console.log('ApiTreeSelect====>:', e, v);
      //   },
      // },
      componentProps: ({ formModel, formActionType: { updateSchema, setFieldsValue } }) => {
        return {
          api: treeOptionsListApi,
          resultField: 'list',
          onChange: (e, v) => {
            console.log('ApiTreeSelect====>:', e, v);
            updateSchema({
              field: 'province',
              componentProps: {
                options: provincesOptions,
              },
            });
          },
        };
      },
      colProps: {
        span: 8,
      },
    }

弹出报错无相关属性

image
@wangjue666
Copy link
Collaborator

@gavin-james 修复了

@github-actions github-actions bot locked and limited conversation to collaborators Aug 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants