Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wangjin-front-end
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
张媛
wangjin-front-end
Commits
85436ef5
Commit
85436ef5
authored
Jul 01, 2021
by
张媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持ts
parent
e6edf48e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
config.js
.storybook/config.js
+1
-1
index.tsx
src/stories/index.tsx
+0
-0
No files found.
.storybook/config.js
View file @
85436ef5
import
{
configure
}
from
'@storybook/react'
;
import
{
configure
}
from
'@storybook/react'
;
function
loadStories
()
{
function
loadStories
()
{
require
(
'../src/stories/index.
js
'
);
// 指定 story 的位置
require
(
'../src/stories/index.
tsx
'
);
// 指定 story 的位置
// 可以是任意目录,根据自己需要写路径
// 可以是任意目录,根据自己需要写路径
}
}
configure
(
loadStories
,
module
);
configure
(
loadStories
,
module
);
src/stories/index.
js
→
src/stories/index.
tsx
View file @
85436ef5
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment