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

executeSetControlValue无法对table中控件进行设置 #305

Closed
codepandy opened this issue Oct 27, 2023 · 2 comments
Closed

executeSetControlValue无法对table中控件进行设置 #305

codepandy opened this issue Oct 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@codepandy
Copy link

version

0.9.52

Link to minimal reproduction

No response

Steps to reproduce

在table中添加一个文本框,然后对其设置值,不管用
image
关键代码:
mock.ts中增加文本框

tdList: [
        {
          colspan: 1,
          rowspan: 2,
          value: [
            { value: `1`, size: 16 },
            { value: '.', size: 16 },
            {
              type: ElementType.CONTROL,
              value: '',
              control: {
                conceptId: 'username123',
                type: ControlType.TEXT,
                value: null,
                placeholder: '用户姓名',
                prefix: '{',
                postfix: '}'
              }
            }
          ]
        },

在onload的最后设置值

  setTimeout(() => {
    console.log('change value')
    instance.command.executeSetControlValue({
      conceptId: 'username123',
      value: '张无忌'
    })
  }, 3000)

What is expected?

可以正常设置值

What is actually happening?

没赋值成功。

System Info

No response

Any additional comments?

No response

@Hufe921 Hufe921 added the bug Something isn't working label Oct 27, 2023
@codepandy
Copy link
Author

@Hufe921 大佬,这个bug我看你前面提交记录修复了,但是我更新了代码,显示还是不管用,还是无法赋值

@Hufe921
Copy link
Owner

Hufe921 commented Nov 1, 2023

@Hufe921 大佬,这个bug我看你前面提交记录修复了,但是我更新了代码,显示还是不管用,还是无法赋值

提供一下编辑器数据,和修改方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants