描述bug
我想在一个组件的大部分故事中禁用一个参数,但是我无法在特定故事的元定义中覆盖该值。
重现方法
在元定义中设置:argTypes{ whatever: {control: false} }; 然后尝试在故事中设置 argTypes{ whatever: {control: "string"} }。该参数的控制将保持禁用("-")。
然而,如果你从元定义中的 control:"string" 更改为故事中的 control: "object",它将正确地覆盖它。
系统信息
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
Binaries:
Node: 20.11.1 - C:\Program Files\nodejs\node.EXE
npm: 10.5.2 - ~\Documents\GitHub\design-system\node_modules\.bin\npm.CMD <----- active
Browsers:
npmPackages:
@storybook/addon-a11y: ^8.0.10 => 8.0.10
@storybook/addon-essentials: ^8.0.10 => 8.0.10
@storybook/addon-interactions: ^8.0.10 => 8.0.10
@storybook/addon-themes: ^8.0.10 => 8.0.10
@storybook/blocks: ^8.0.0-rc.1 => 8.0.10
@storybook/preview-api: 8.0.10 => 8.0.10
@storybook/react: ^8.0.10 => 8.0.10
@storybook/react-vite: ^8.0.10 => 8.0.10
@storybook/theming: ^8.0.10 => 8.0.10
chromatic: 11.3.0 => 11.3.0
eslint-plugin-storybook: 0.8.0 => 0.8.0
storybook: ^8.0.10 => 8.0.10
其他相关信息
- 无响应*
1条答案
按热度按时间gt0wga4j1#
@DanielFlores-OG Assign it to me, l will work on it.