【发布时间】:2019-04-15 17:49:57
【问题描述】:
我尝试在 Hyperstack 中使用 mobile-stepper 组件 (https://material-ui.com/demos/steppers/#mobile-stepper-progress) 但出现此错误:
Failed prop type: Invalid prop `nextButton` supplied to `MobileStepper`, expected a ReactNode.
in MobileStepper
它只呈现进度条,没有按钮。
尝试了各种方法,即:
Mui.MobileStepper( variant: "progress", steps: 6, position: "static",
nextButton: lambda { Mui.Button(size: "small") {'next'} },
backButton: lambda { Mui.Button(size: "small") {'back'} })
【问题讨论】:
标签: ruby reactjs material-ui hyperstack