Ale*_*igh 8 javascript storybook
我设置了一个故事书实例,添加了一些自定义排序,以确保该docs部分显示在顶部并正确排序。然而,它现在正在按字母顺序排列所有故事及其变体。这很烦人,我似乎无法使用 来更改它storySort,这是不可能的还是我做错了什么?
在您到达故事之前,所有这些都很好Button,正如您所看到的,每个变体都是按字母顺序而不是它们在页面上的顺序添加的。这是我的storySort对象,我在这里做错了什么吗?
storySort: {
method: 'configure',
includeName: true,
order: [
'Docs',
[
'Introduction',
'Coding Guidelines',
['General'],
'*',
'Architectural Decisions',
['Introduction']
],
'Atoms',
'Molecules',
'Organisms',
'Pages'
]
}
Run Code Online (Sandbox Code Playgroud)
我也尝试过不添加method,includeName但这似乎没有什么区别。我还尝试['*', ['Default', 'Primary', 'Secondary', 'Tertiary', 'Alternate']],在每个Atoms,Molecules和Organisms条目下面添加,但这似乎没有什么区别。
| 归档时间: |
|
| 查看次数: |
875 次 |
| 最近记录: |