diff --git a/package.json b/package.json index a44ba3b73..92c1f9dda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@nutui/nutui-react-taro", - "version": "3.0.0-beta.10", + "name": "@dongdesign/components", + "version": "3.0.0-beta.0", "style": "dist/style.css", "main": "dist/nutui.react.umd.js", "module": "dist/es/packages/nutui.react.build.js", @@ -40,10 +40,7 @@ "LICENSE", "CHANGELOG.md" ], - "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.org/" - }, + "scripts": { "add": "node scripts/create-component-mode.js && npm run prepare", "add:taro:config": "node scripts/taro/generate-taro-route.js", diff --git a/src/packages/loading/demos/taro/demo1.tsx b/src/packages/loading/demos/taro/demo1.tsx index 191165dfd..d1306dcfb 100644 --- a/src/packages/loading/demos/taro/demo1.tsx +++ b/src/packages/loading/demos/taro/demo1.tsx @@ -25,7 +25,7 @@ const Demo1 = () => { type="lottie" jsonData={data} lottieProps={{ - autoplay: false, + autoPlay: false, loop: false, style: { width: 56, height: 56 }, }} diff --git a/src/packages/lottie/mp.taro.tsx b/src/packages/lottie/mp.taro.tsx index 57ef4d9aa..210929874 100644 --- a/src/packages/lottie/mp.taro.tsx +++ b/src/packages/lottie/mp.taro.tsx @@ -1,11 +1,11 @@ import React, { useImperativeHandle, useRef } from 'react' import { createSelectorQuery, + getEnv, getSystemInfoSync, useReady, useUnload, } from '@tarojs/taro' -import { Canvas } from '@tarojs/components' import lottie from 'lottie-miniprogram' import useUuid from '@/utils/use-uuid' import { LottieProps } from './types' @@ -82,7 +82,28 @@ export const Lottie = React.forwardRef((props: LottieProps, ref: any) => { animation.current.removeEventListener('complete', onComplete) animation.current && animation.current.destroy() }) - return + + return getEnv() === 'WEAPP' || getEnv() === 'JD' ? ( + + ) : ( + + ) }) Lottie.displayName = 'NutLottie' diff --git a/src/packages/pulltorefresh/pulltorefresh.taro.tsx b/src/packages/pulltorefresh/pulltorefresh.taro.tsx index c98e8b58f..10f96811d 100644 --- a/src/packages/pulltorefresh/pulltorefresh.taro.tsx +++ b/src/packages/pulltorefresh/pulltorefresh.taro.tsx @@ -176,6 +176,7 @@ export const PullToRefresh: FunctionComponent> = (