Skip to content

Commit

Permalink
chore: change document
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiQiangReal committed Jul 8, 2024
1 parent 392ee53 commit 61c2d42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/plus/lottie/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ import React from "react";
const jsonURL = "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/lottie_demo.json";

return <div>
<Lottie getAnimationInstance={(animation )=>{console.log(animation);}} params={{ path: jsonURL }} width={"300px"} />;
<Lottie getAnimationInstance={(animation )=>{console.log(animation);}} params={{ path: jsonURL }} width={"300px"} />
</div>
};
```
Expand All @@ -138,7 +138,7 @@ import React from "react";
console.log("lottie", Lottie.getLottie());

return <div>
<Lottie getLottie={lottie=>console.log("lottie", lottie)} params={{ path: jsonURL }} width={"300px"} />;
<Lottie getLottie={lottie=>console.log("lottie", lottie)} params={{ path: jsonURL }} width={"300px"} />
</div>
};

Expand Down

0 comments on commit 61c2d42

Please sign in to comment.