Commit ea0f85b1 authored by 张媛's avatar 张媛

弹幕源码添加

parent d6c04d0d
...@@ -9,6 +9,8 @@ import { ...@@ -9,6 +9,8 @@ import {
PRIMARY_STORY, PRIMARY_STORY,
} from '@storybook/addon-docs'; } from '@storybook/addon-docs';
import { clearStage } from '../common/createStage'; import { clearStage } from '../common/createStage';
export default { export default {
component: GoldCoinCom, component: GoldCoinCom,
title: 'Canvas组件/金币动效', title: 'Canvas组件/金币动效',
...@@ -64,12 +66,12 @@ Primary.args = { ...@@ -64,12 +66,12 @@ Primary.args = {
primary: true, primary: true,
label: '金币动效', label: '金币动效',
start:[100, 200], start:[100, 200],
end:[516, 200], end:[600, 900],
imgUrl:"homeGoldIconImg.png", imgUrl:"homeGoldIconImg.png",
callBack: goldCoinReceiveAniCallback.bind(this), callBack: goldCoinReceiveAniCallback.bind(this),
isMinus:true, isMinus:true,
curvature:0.2, curvature:0.2,
goldNum:10, goldNum:10,
time:400 time:20
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment