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

FormItem name type definition error in dynamic form #4998

Closed
1 task done
CZDonald opened this issue Dec 8, 2021 · 1 comment
Closed
1 task done

FormItem name type definition error in dynamic form #4998

CZDonald opened this issue Dec 8, 2021 · 1 comment

Comments

@CZDonald
Copy link

CZDonald commented Dec 8, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.0.0-alpha.14

Environment

vue 3.2.20 Chrome 96.0.4664.45 windows 11

Reproduction link

https://p3-tt.byteimg.com/origin/user-profile/3aafd8ce147a6455819297c0475de879.png

Steps to reproduce

vscode 中 使用TSX map动态渲染表单 FormItm组件
<FormItem
name={['formData', index, 'input_value']}
label={item.name}
rules={{ required: item.required, message: item.describe }}

What is expected?

FormItem name类型检测通过

FormItem name类型定义是否应该是string | number | Array<number | string>

What is actually happening?

vscode 提示name参数 不能将类型“string”分配给类型“number”。

@github-actions github-actions bot changed the title 动态表单中FormItem name类型定义错误 FormItem name type definition error in dynamic form Dec 8, 2021
@tangjinzhou tangjinzhou added the bug label Dec 8, 2021
@github-actions
Copy link

github-actions bot commented Dec 9, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 9, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants