diff --git a/readme.md b/readme.md index 68ecea9..e24a7f2 100644 --- a/readme.md +++ b/readme.md @@ -146,7 +146,7 @@ cnpm run start ## 持续升级 -正在升级1.3版本,敬请期待... +正在升级1.5版本,敬请期待... ## 赞助 开源不易, 有了您的赞助, 我们会做的更好~ diff --git a/src/components/BasicShop/BasicComponents/List/index.tsx b/src/components/BasicShop/BasicComponents/List/index.tsx index d34c9ae..2b28120 100644 --- a/src/components/BasicShop/BasicComponents/List/index.tsx +++ b/src/components/BasicShop/BasicComponents/List/index.tsx @@ -39,7 +39,7 @@ const List = memo((props: IListConfig) => { alt={item.desc} style={{ width: parseFloat(imgSize), - height: imgSize, + height: imgSize + 'px', objectFit: 'cover', borderRadius: round, }} diff --git a/src/pages/editor/Container.tsx b/src/pages/editor/Container.tsx index d922e2a..2660185 100644 --- a/src/pages/editor/Container.tsx +++ b/src/pages/editor/Container.tsx @@ -103,6 +103,7 @@ const Container = (props: { const backSize = () => { setScale(1); + setDragState({ x: 0, y: 0 }); }; const CpIcon = { @@ -372,10 +373,6 @@ const Container = (props: { }; }, []); - const updateDrag = useCallback(() => { - setDragState({ x: 0, y: 0 }); - }, []); - const mousemovefn = useMemo(() => { return (e: React.MouseEvent) => { if (diffmove.move) { @@ -503,12 +500,7 @@ const Container = (props: { canvasId={canvasId} allType={allType} /> - + {renderRight}
{ }} ref={drop} > - -
- - {pointData.length > 0 ? ( ): void; - updateDrag(event: MouseEvent): void; } const CanvasControl = (props: CanvasControlProps) => { - const { scaleNum, handleSlider, backSize, updateDrag } = props; + const { scaleNum, handleSlider, backSize } = props; return (
{ - - -
); }; diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx index 6b96e2d..b8f3453 100644 --- a/src/pages/home/index.tsx +++ b/src/pages/home/index.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Tabs, message } from 'antd'; +import { Tabs, message, Button } from 'antd'; import { history } from 'umi'; import { MobileOutlined, @@ -95,11 +95,16 @@ const Home = () => {

- Welcome to H5-Dooring{' '} + Welcome to H5-Dooring 👋

+

+ +