From 5629f2755d5404db4975a9ef9063bd20a8c5c1ba Mon Sep 17 00:00:00 2001 From: hufeixiong Date: Wed, 26 Jan 2022 18:04:46 +0800 Subject: [PATCH] wip reset animate --- packages/dooringx-example/src/pages/index.tsx | 2 +- .../plugin/formComponents/actionButton.tsx | 8 +-- .../plugin/formComponents/animateControl.tsx | 13 +++-- .../src/plugin/formComponents/input.tsx | 2 +- .../src/plugin/formComponents/switch.tsx | 4 +- .../dooringx-example/src/plugin/index.tsx | 10 ++-- .../dooringx-lib/src/components/blocks.tsx | 15 +++++- .../dooringx-lib/src/components/preview.tsx | 6 +-- .../src/components/rightConfig.tsx | 12 +++-- .../src/components/timeLine/timeline.tsx | 50 +++++++++++++++++++ .../src/components/timeLine/timelineItem.tsx | 2 +- packages/dooringx-lib/src/config/index.tsx | 7 ++- .../src/core/components/createBlock.ts | 1 + .../dooringx-lib/src/core/store/storetype.ts | 1 + .../src/core/storeChanger/index.ts | 1 + 15 files changed, 105 insertions(+), 29 deletions(-) diff --git a/packages/dooringx-example/src/pages/index.tsx b/packages/dooringx-example/src/pages/index.tsx index 801babd..5da7bf4 100644 --- a/packages/dooringx-example/src/pages/index.tsx +++ b/packages/dooringx-example/src/pages/index.tsx @@ -15,7 +15,7 @@ import { Control, } from 'dooringx-lib'; import { InsertRowBelowOutlined, UploadOutlined } from '@ant-design/icons'; -import { useContext, useState } from 'react'; +import { useContext, useEffect, useState } from 'react'; import { configContext, LocaleContext } from '@/layouts'; import { useCallback } from 'react'; import { PREVIEWSTATE } from '@/constant'; diff --git a/packages/dooringx-example/src/plugin/formComponents/actionButton.tsx b/packages/dooringx-example/src/plugin/formComponents/actionButton.tsx index 93f4185..2705fdf 100644 --- a/packages/dooringx-example/src/plugin/formComponents/actionButton.tsx +++ b/packages/dooringx-example/src/plugin/formComponents/actionButton.tsx @@ -243,20 +243,22 @@ function ActionButton(props: ActionButtonProps) {
标识ID - {props.current.id} + + {props.current.id} + {currentOption.map((j, i) => { return ( = { let lastAnimate: AnimateItem[] = []; let isOmit = false; +const padding = 10; function AnimateControl(props: AnimateControlProps) { const store = props.config.getStore(); @@ -137,8 +138,8 @@ function AnimateControl(props: AnimateControlProps) { <> {animate.map((v, i) => { return ( -
- +
+ 动画名称: + {animate.length > 0 && (