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
73f2ee1d
Commit
73f2ee1d
authored
Jul 05, 2021
by
张媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ss
parent
bc2e268c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
polygonAxiosSystem.stories.tsx
src/canvasStories/polygonAxiosSystem.stories.tsx
+2
-2
No files found.
src/canvasStories/polygonAxiosSystem.stories.tsx
View file @
73f2ee1d
import
React
from
'react'
;
import
React
from
'react'
;
import
{
PolygonSystemCom
}
from
'../canvasCom/canvasTestCom/PolygonSystemCom.tsx'
;
import
{
PolygonSystemCom
}
from
'../canvasCom/canvasTestCom/PolygonSystemCom.tsx'
;
export
default
{
export
default
{
component
:
CanvasTest
Com
,
component
:
PolygonSystem
Com
,
title
:
'Canvas组件/Button'
,
title
:
'Canvas组件/Button'
,
//👇 Creates specific argTypes
//👇 Creates specific argTypes
argTypes
:
{
argTypes
:
{
...
@@ -14,7 +14,7 @@ export default {
...
@@ -14,7 +14,7 @@ export default {
};
};
//👇 We create a “template” of how args map to rendering
//👇 We create a “template” of how args map to rendering
const
Template
=
(
args
)
=>
<
CanvasTest
Com
{
...
args
}
/>;
const
Template
=
(
args
)
=>
<
PolygonSystem
Com
{
...
args
}
/>;
//👇 Each story then reuses that template
//👇 Each story then reuses that template
export
const
Primary
=
Template
.
bind
({});
export
const
Primary
=
Template
.
bind
({});
...
...
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