我的button导出后,没有出现controls

来源:8-4 storybook 中的 args 的概念

慕o啦啦啦

2025-02-28

export const Button: FC = (props) => {
const {
btnType = ‘default’,
className,
disabled = false,
size,
children,
href,
…restProps
} = props

写回答

1回答

慕o啦啦啦

提问者

2025-02-28

其他的都有,就Button没有

0
2
慕o啦啦啦
解决了,这里用BaseButtonProps就好了 export const DefaultButton: Story =(args:BaseButtonProps)=>( )
2025-02-28
共2条回复

React18+TS高仿AntD从零到一打造组件库

设计,开发,测试,发布再到 CI/CD,从0到1造轮子

2124 学习 · 959 问题

查看课程