We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import React from 'react' import ReactDOM from 'react-dom' import { Button } from '@kdcloudjs/kdesign' import type { IButtonProps } from '@kdcloudjs/kdesign' const Demo: React.FC = () => { const demoButtonStyle:IButtonProps['style'] = { margin: '0px 8px 8px 0' } return ( <div> <Button type="primary" style={demoButtonStyle} block> 主要按钮 </Button> <Button style={demoButtonStyle} block> 次要按钮 </Button> <Button type="ghost" style={demoButtonStyle} block> 幽灵按钮 </Button> <Button type="text" style={demoButtonStyle} block> text </Button> </div> ) } ReactDOM.render(<Demo />, mountNode)
1.GroupButtonType报错 必须是second、primary,不能是其他值。 2.文档顺序排列不是按照首字母排序,类型与可选值冲突 3.无法获取到 button 的props定义, 未导出类型定义。希望导出的props的命名是 (I + 组件名 + Props) =》 IButtonProps 4.demo中的ts定义不完整 未引入IButtonProps
1.GroupButtonType必须是second、primary。 2.文档顺序排列按照首字母排序 3.导出类型定义。 4.demo中引入IButtonProps
组件库与浏览器均为最新版本
The text was updated successfully, but these errors were encountered:
fix: [button] 修复typescript类型报错 #953
1045843
hidden7123
No branches or pull requests
重现链接或代码
重现问题步骤
1.GroupButtonType报错 必须是second、primary,不能是其他值。
2.文档顺序排列不是按照首字母排序,类型与可选值冲突
3.无法获取到 button 的props定义, 未导出类型定义。希望导出的props的命名是 (I + 组件名 + Props) =》 IButtonProps
4.demo中的ts定义不完整 未引入IButtonProps
期望的结果是什么
1.GroupButtonType必须是second、primary。
2.文档顺序排列按照首字母排序
3.导出类型定义。
4.demo中引入IButtonProps
实际的结果是什么
组件库版本号、浏览器信息
组件库与浏览器均为最新版本
The text was updated successfully, but these errors were encountered: