sula icon indicating copy to clipboard operation
sula copied to clipboard

Question: TS 类型推断问题

Open evan-lin9 opened this issue 4 years ago • 4 comments

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 属性

evan-lin9 avatar Feb 24 '21 07:02 evan-lin9

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

jiyingzhi avatar Feb 26 '21 02:02 jiyingzhi

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

evan-lin9 avatar Mar 01 '21 08:03 evan-lin9

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

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

xz8la8 avatar Mar 11 '21 12:03 xz8la8

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

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

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

evan-lin9 avatar Mar 17 '21 04:03 evan-lin9