build(#10336): subcomponents on sidebar
This commit is contained in:
@@ -107,7 +107,11 @@ function toStories(component: string): string {
|
||||
const base = basename(component);
|
||||
const dir = dirname(component);
|
||||
const literal = (
|
||||
<literal value={component.slice('src/'.length, -'.vue'.length)} />
|
||||
<literal
|
||||
value={component
|
||||
.slice('src/'.length, -'.vue'.length)
|
||||
.replace(/\./g, '/')}
|
||||
/>
|
||||
) as estree.Literal;
|
||||
const identifier = (
|
||||
<identifier
|
||||
|
Reference in New Issue
Block a user