1.0.1 • Published 4 years ago

@jdcfe/lottie-loading v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

安装 & 使用

yarn add @jdcfe/lottie-loading

React 版本要求

  • react^16.8.0

DEMO

const App: React.FC = () => <Loading renderer="canvas" />;

API

参数说明类型默认值必须
prefixCls组件 class 前缀stringYep-loadingfalse
style组件样式object{}false
className组件额外样式string-false
animationDatalottie 动画所需要的 json 文件(an Object with the exported animation data)json 文件京东 App 动画false
loop循环播放boolean/numbertruefalse
autoplay是否立即播放booleantruefalse
renderer'svg' 、 'canvas' 、 'html' to set the rendererstringsvgfalse

License

MIT