@aks-dev/easyui 1.0.73 → 1.0.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,8 @@
2
2
  * @Author: OBKoro1
3
3
  * @Date: 2022-04-24 17:38:27
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-12 10:59:12
6
- * @FilePath: /@aks/easyui/lib/MutiPictureView/MutiPictureView.tsx
5
+ * @LastEditTime: 2022-07-08 16:52:06
6
+ * @FilePath: /@aks-dev/easyui/lib/MutiPictureView/MutiPictureView.tsx
7
7
  */
8
8
 
9
9
  import * as React from 'react'
@@ -139,8 +139,11 @@ const MutiPictureView: React.FC<MutiPictureViewProps> = (props) => {
139
139
  React.useEffect(() => {
140
140
  containerRef.current?.measure((...args) => {
141
141
  // console.log(args)
142
- let _sideLength = (args[2] - spacingHorizontal * 2 - spacingInner * 2) / 3
143
- setSideLength(_sideLength)
142
+ if(args.length > 3){
143
+ let _sideLength = (args[2] - spacingHorizontal * 2 - spacingInner * 2) / 3;
144
+ setSideLength(_sideLength)
145
+ }
146
+
144
147
  })
145
148
 
146
149
  }, [])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "移动端App开发工具包",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",