描述bug
https://storybook.js.org/docs/react/essentials/toolbars-and-globals#global-types-and-the-toolbar-annotation
在配置中将 dynamicTitle
设置为 true 不会更新工具栏按钮中的标题。实际的全局值更改得很好。
重现步骤
preview.js
export const globalTypes = {
theme: {
name: 'theme',
description: 'Select to apply theme',
defaultValue: 'light',
toolbar: {
icon: 'globe',
items: ['light', 'dark'],
showName: true,
dynamicTitle: true,
},
},
};
系统信息
Tried with latest storybook 6.5.15 as well as
storybook/react": "6.5"
其他上下文
- 无响应*
1条答案
按热度按时间olqngx591#
无法在7.0及更高版本上重现。标题正在更新。