update 0.4.2

This commit is contained in:
hufeixiong
2021-07-13 21:18:22 +08:00
parent 213b776886
commit 601ebbbc43
7 changed files with 74 additions and 14 deletions

View File

@@ -104,11 +104,10 @@ function Blocks(props: PropsWithChildren<BlockProps>) {
}, [props.data.animate]);
const animateCount = useMemo(() => {
const animate = props.data.animate;
if (Object.keys(animate).length > 0) {
return { animationIterationCount: animate.animationIterationCount };
}
return { animationIterationCount: 1 };
return { animationIterationCount: '' };
}, [props.data.animate]);
const render = useMemo(() => {
@@ -185,6 +184,7 @@ function Blocks(props: PropsWithChildren<BlockProps>) {
state,
props.context,
props.data,
props.config,
innerDragData,
animatecss,
animateCount,