fix: 修改 cropperImage 渲染问题

This commit is contained in:
NICE CODE BY DEV 2024-05-11 18:18:35 +08:00
parent defd87dfc7
commit b4d001475a
7 changed files with 28 additions and 4 deletions

View File

@ -1,5 +1,12 @@
# @zhst/biz # @zhst/biz
## 0.21.2
### Patch Changes
- Updated dependencies
- @zhst/meta@0.20.1
## 0.21.1 ## 0.21.1
### Patch Changes ### Patch Changes

View File

@ -1,6 +1,6 @@
{ {
"name": "@zhst/biz", "name": "@zhst/biz",
"version": "0.21.1", "version": "0.21.2",
"description": "业务库", "description": "业务库",
"keywords": [ "keywords": [
"business", "business",

View File

@ -1,5 +1,14 @@
# @zhst/material # @zhst/material
## 0.17.1
### Patch Changes
- fix: 修改 cropperImage 渲染问题
- Updated dependencies
- @zhst/meta@0.20.1
- @zhst/biz@0.21.2
## 0.17.0 ## 0.17.0
### Minor Changes ### Minor Changes

View File

@ -1,6 +1,6 @@
{ {
"name": "@zhst/material", "name": "@zhst/material",
"version": "0.17.0", "version": "0.17.1",
"description": "物料库", "description": "物料库",
"keywords": [ "keywords": [
"business", "business",

View File

@ -1,5 +1,13 @@
# @zhst/utils # @zhst/utils
## 0.20.1
### Patch Changes
- fix: 修改 cropperImage 渲染问题
- Updated dependencies
- @zhst/meta@0.20.1
## 0.20.0 ## 0.20.0
### Minor Changes ### Minor Changes

View File

@ -1,6 +1,6 @@
{ {
"name": "@zhst/meta", "name": "@zhst/meta",
"version": "0.20.0", "version": "0.20.1",
"description": "原子组件", "description": "原子组件",
"keywords": [ "keywords": [
"meta", "meta",

View File

@ -133,7 +133,7 @@ const CropperImage = forwardRef<CropperImageRefProps, CropperImageProps>((props,
viewerRef.current = null; viewerRef.current = null;
viewerRef.current?.clearShape?.(); viewerRef.current?.clearShape?.();
} }
}, []) }, [url])
const cropStartRef = useRef<any>(null) const cropStartRef = useRef<any>(null)
const cropEndRef = useRef<any>(null) const cropEndRef = useRef<any>(null)