@aks-dev/easyui 1.0.93 → 1.0.96

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.
@@ -215,7 +215,7 @@ export default (props: MenuProps) => {
215
215
  }
216
216
 
217
217
  return (
218
- <TouchableOpacity ref={containerRef as any} onPress={e => show()} >
218
+ <TouchableOpacity ref={containerRef as any} onPress={e => show()} style={props.style} >
219
219
  {props.children}
220
220
  </TouchableOpacity>
221
221
  )
@@ -2,24 +2,25 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-07-14 18:09:02
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-07-15 12:39:20
5
+ * @LastEditTime: 2022-07-21 16:08:43
6
6
  * @FilePath: /@aks-dev/easyui/lib/MenuView/index.ts
7
7
  */
8
8
 
9
9
  import React from "react";
10
- import { ImageSourcePropType } from 'react-native';
10
+ import { ImageSourcePropType, StyleProp, ViewStyle } from 'react-native';
11
11
 
12
12
 
13
13
 
14
14
  export type MenuItem = {
15
15
  text: string;
16
16
  icon?: ImageSourcePropType;
17
- extra?:any
17
+ extra?: any
18
18
  }
19
19
 
20
20
  export type MenuProps = {
21
+ style?: StyleProp<ViewStyle> | undefined;
21
22
  data?: MenuItem[];
22
- onItemClick?: (index: number,extra?:any) => void;
23
+ onItemClick?: (index: number, extra?: any) => void;
23
24
  } & Readonly<{ children?: React.ReactNode | undefined }>
24
25
 
25
26
 
@@ -2,7 +2,7 @@
2
2
  * @Author: OBKoro1
3
3
  * @Date: 2022-04-24 17:38:27
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-07-20 15:55:23
5
+ * @LastEditTime: 2022-07-20 16:59:12
6
6
  * @FilePath: /@aks-dev/easyui/lib/MutiPictureView/MutiPictureView.tsx
7
7
  */
8
8
 
@@ -138,14 +138,14 @@ const MutiPictureView: React.FC<MutiPictureViewProps> = (props) => {
138
138
 
139
139
  React.useEffect(() => {
140
140
  containerRef.current?.measure((...args) => {
141
- console.log('measure', args[2])
141
+ // console.log('measure', args[2])
142
142
  if (args.length > 3) {
143
143
  let _sideLength = +((args[2] - spacingHorizontal * 2 - spacingInner * 2) / 3).toFixed(1);
144
- setSideLength(_sideLength - 0.01)
144
+ setSideLength(_sideLength - 0.1)
145
145
  }
146
146
 
147
147
  })
148
- }, [])
148
+ })
149
149
 
150
150
 
151
151
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.93",
3
+ "version": "1.0.96",
4
4
  "description": "移动端App开发工具包",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",