We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uniapp平台app端报错如下: 测试demo:
<template> <div> <canvas id="test-canvas" canvas-id="test-canvas"></canvas> </div> </template> <script> import Anim from "../../assets/data.json" import lottie from "lottie-web"; export default { onLoad() { let that = this; const canvasContext = uni.createCanvasContext("test-canvas"); // 指定canvas大小 canvasContext.canvas = { width: 100, height: 100, }; lottie.loadAnimation({ container: uni.createSelectorQuery().select("#test-canvas"), renderer: "canvas", loop: true, autoplay: true, animationData: Anim, rendererSettings: { context: canvasContext, scaleMode: 'noScale', clearCanvas: false, }, }); }, } </script>
The text was updated successfully, but these errors were encountered:
➡️ #20 (comment)
Sorry, something went wrong.
并没有什么用
我也有同樣的問題
No branches or pull requests
uniapp平台app端报错如下:
测试demo:
The text was updated successfully, but these errors were encountered: