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
38b86410
Commit
38b86410
authored
Jul 05, 2021
by
张媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
金币动效
parent
02502499
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
goldCoinCom.tsx
src/canvasCom/goldCoinCom/goldCoinCom.tsx
+2
-2
goldCoin.stories.tsx
src/canvasStories/goldCoin.stories.tsx
+0
-0
polygonSystem.stories.tsx
src/canvasStories/polygonSystem.stories.tsx
+1
-1
No files found.
src/canvasCom/goldCoinCom/goldCoinCom.tsx
View file @
38b86410
import
React
from
'react'
;
import
"./canvasTestCom.less"
;
import
{
GoldCoinAni
}
from
"./goldCoinAni"
;
interface
TestProps
{
/**设置主题色 */
...
...
@@ -11,7 +10,8 @@ const goldCoinReceiveAniCallback =(goldCode)=>{
console
.
log
(
goldCode
);
}
export
const
GoldCoinCom
=
(
pros
:
TestProps
)
=>
{
const
goldCoinAni
=
new
GoldCoinAni
([
150
,
200
],
[
516
,
200
],
"../../asserts/homeGoldIconImg.png"
,
goldCoinReceiveAniCallback
.
bind
(
this
),
true
,
0.2
,
10
,
400
);
stage
.
removeAllChildren
();
const
goldCoinAni
=
new
GoldCoinAni
([
100
,
200
],
[
516
,
200
],
"//yun.duiba.com.cn/spark/assets/b0709b25a9c0357c8d832e661345ee59c04b7aca.png"
,
goldCoinReceiveAniCallback
.
bind
(
this
),
true
,
0.2
,
10
,
400
);
stage
.
addChild
(
goldCoinAni
);
goldCoinAni
.
triggerAni
();
return
(
...
...
src/canvasStories/goldCoin.stories
1
.tsx
→
src/canvasStories/goldCoin.stories.tsx
View file @
38b86410
File moved
src/canvasStories/polygonSystem.stories.tsx
View file @
38b86410
...
...
@@ -2,7 +2,7 @@ import React from 'react';
import
{
PolygonSystemCom
}
from
'../canvasCom/polygonSystemCom/PolygonSystemCom.tsx'
;
export
default
{
component
:
PolygonSystemCom
,
title
:
'Canvas组件/
Button
'
,
title
:
'Canvas组件/
polygonSystem
'
,
//👇 Creates specific argTypes
argTypes
:
{
backgroundColor
:
{
control
:
'color'
},
...
...
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