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

Question: TS 类型推断问题 #95

Open
3 tasks
evan-lin9 opened this issue Feb 24, 2021 · 4 comments
Open
3 tasks

Question: TS 类型推断问题 #95

evan-lin9 opened this issue Feb 24, 2021 · 4 comments

Comments

@evan-lin9
Copy link
Contributor

Version Info

"sula": "^1.2.0-beta.10",
"umi-plugin-sula": "^1.0.0-beta.1",

Question Description

  • Icon.iconRegister({}) 无法正确推到出类型
  • QueryTableProps 无法正确表示 QueryTable 组件所需要的类型,主要问题在于 columns 无法正确推断
  • RenderPlugin 类型缺少 tooltip、confirm、visible 属性
@jiyingzhi
Copy link
Contributor

Field 源码里这个 FieldSource 类型没有定义
image

@evan-lin9
Copy link
Contributor Author

  • FormProps 无法正确推导出submitButtonProps 和 backButtonProps 属性
    image

Sorry, something went wrong.

@xz8la8
Copy link
Member

xz8la8 commented Mar 11, 2021

  • FormProps 无法正确推导出submitButtonProps 和 backButtonProps 属性
    image

image
自测无问题,请检查是否安装antd,否则无法引用到antd的类型文件

Sorry, something went wrong.

@evan-lin9
Copy link
Contributor Author

  • FormProps 无法正确推导出submitButtonProps 和 backButtonProps 属性
    image

image
自测无问题,请检查是否安装antd,否则无法引用到antd的类型文件

sorr�y,引入错了类型,改为 CreateFormProps 就好了。但是 FormProps 根据官网提供的例子,action 无法类型有误
image

Sorry, something went wrong.

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