@aks-dev/easyui 1.0.107 → 1.0.109

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.
package/jsbridge/index.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-19 10:23:01
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-10-24 16:14:01
5
+ * @LastEditTime: 2022-10-24 16:38:59
6
6
  * @FilePath: /@aks-dev/easyui/jsbridge/index.ts
7
7
  */
8
8
 
@@ -16,6 +16,8 @@ export declare const getAppVersion: () => Promise<string>;
16
16
 
17
17
  /**
18
18
  * @description: 获取操作系统版本
19
+ *
20
+ react-native-device-info
19
21
  * @return {*}
20
22
  */
21
23
  export declare const getOSVersion: () => Promise<string>;
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-24 14:27:02
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-09-09 10:57:45
5
+ * @LastEditTime: 2022-10-28 12:10:20
6
6
  * @FilePath: /@aks-dev/easyui/lib/Hud/PopoverView/PopoverView.tsx
7
7
  */
8
8
  import React, { useImperativeHandle, useState } from 'react';
@@ -41,7 +41,7 @@ export const PopoverView = React.forwardRef<PopoverViewOptions.RefAttributes, {}
41
41
  return null;
42
42
 
43
43
  return (
44
- <TouchableOpacity activeOpacity={1} style={[styles.container, options?.style]} onPress={e => {
44
+ <TouchableOpacity activeOpacity={1} style={[styles.container, options?.style]} disabled={options?.disabled} onPress={e => {
45
45
  setVisible(false);
46
46
  setOptions(undefined)
47
47
  // e.stopPropagation()
@@ -3,8 +3,8 @@
3
3
  * @Author: shiguo
4
4
  * @Date: 2022-04-24 14:27:02
5
5
  * @LastEditors: shiguo
6
- * @LastEditTime: 2022-09-09 10:57:07
7
- * @FilePath: /@aks-dev/easyui/lib/Hud/PopoverView/index.ts
6
+ * @LastEditTime: 2022-10-28 12:09:52
7
+ * @FilePath: /@aks-dev/easyui/lib/Hud/PopoverView/index.d.ts
8
8
  */
9
9
  import * as React from 'react'
10
10
 
@@ -14,6 +14,7 @@ import {StyleProp,ViewStyle} from 'react-native'
14
14
  export type PopoverViewOptions = {
15
15
  content: React.ReactNode;
16
16
  style: StyleProp<ViewStyle>;
17
+ disabled:boolean;
17
18
  }
18
19
 
19
20
 
@@ -215,8 +215,10 @@ export default (props: MenuProps) => {
215
215
  }
216
216
 
217
217
  return (
218
- <TouchableOpacity ref={containerRef as any} onPress={e => show()} style={props.style} >
219
- {props.children}
220
- </TouchableOpacity>
218
+ <TouchableOpacity
219
+ ref={containerRef as any}
220
+ onPress={e => show()}
221
+ {...props}
222
+ />
221
223
  )
222
224
  }
@@ -2,11 +2,10 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-26 11:30:34
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-04-26 14:34:52
6
- * @FilePath: /@aks/easy/lib/Modal/Modal.tsx
5
+ * @LastEditTime: 2022-10-27 16:37:32
6
+ * @FilePath: /@aks-dev/easyui/lib/Modal/Modal.tsx
7
7
  */
8
8
 
9
9
 
10
10
 
11
-
12
- export { default as Modal, ModalProps } from 'react-native-modal'
11
+ export { default as Modal, ModalProps } from 'react-native-modal'
@@ -13,7 +13,7 @@ import { TableCellProps } from './index'
13
13
  export default (props: Partial<TableCellProps>) => {
14
14
  const { showNav = false, activeOpacity = .8 } = props
15
15
  return (
16
- <TouchableOpacity activeOpacity={activeOpacity}
16
+ <TouchableOpacity activeOpacity={props.onPress == undefined ? activeOpacity : 1}
17
17
  style={[styles.container, props.style]}
18
18
  disabled={props.onPress == undefined}
19
19
  onPress={() => props.onPress && props.onPress()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.107",
3
+ "version": "1.0.109",
4
4
  "description": "工具箱",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",