storybook [Bug]: dynamicTitle:true 不会改变

vd8tlhqk  于 3个月前  发布在  其他
关注(0)|答案(1)|浏览(32)

描述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"

其他上下文

  • 无响应*
olqngx59

olqngx591#

无法在7.0及更高版本上重现。标题正在更新。

相关问题