@aks-dev/easyui 1.0.89 → 1.0.92
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.
|
@@ -17,6 +17,26 @@
|
|
|
17
17
|
</intent>
|
|
18
18
|
</queries>
|
|
19
19
|
|
|
20
|
+
<queries>
|
|
21
|
+
<intent>
|
|
22
|
+
<action android:name="android.intent.action.VIEW" />
|
|
23
|
+
<data android:scheme="tel"/>
|
|
24
|
+
</intent>
|
|
25
|
+
<intent>
|
|
26
|
+
<action android:name="android.intent.action.VIEW" />
|
|
27
|
+
<data android:scheme="https"/>
|
|
28
|
+
</intent>
|
|
29
|
+
<intent>
|
|
30
|
+
<action android:name="android.intent.action.VIEW" />
|
|
31
|
+
<data android:scheme="mailto"/>
|
|
32
|
+
</intent>
|
|
33
|
+
<intent>
|
|
34
|
+
<action android:name="android.intent.action.VIEW" />
|
|
35
|
+
<data android:scheme="sms"/>
|
|
36
|
+
</intent>
|
|
37
|
+
</queries>
|
|
38
|
+
|
|
39
|
+
|
|
20
40
|
<application
|
|
21
41
|
android:requestLegacyExternalStorage="true"
|
|
22
42
|
>
|
|
@@ -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-
|
|
5
|
+
* @LastEditTime: 2022-07-20 10:36:33
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/lib/MutiPictureView/MutiPictureView.tsx
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -84,7 +84,7 @@ const MutiPictureView: React.FC<MutiPictureViewProps> = (props) => {
|
|
|
84
84
|
|
|
85
85
|
const showPhoto = (index: number) => {
|
|
86
86
|
Keyboard.dismiss()
|
|
87
|
-
let imgs: any[] = viewModel.photos?.filter((it) => { return (typeof it === 'string' && it.indexOf('http') >= 0) || typeof it == 'object' }) || []
|
|
87
|
+
let imgs: any[] = (props.value || viewModel.photos )?.filter((it) => { return (typeof it === 'string' && it.indexOf('http') >= 0) || typeof it == 'object' }) || []
|
|
88
88
|
let images: any[] = []
|
|
89
89
|
// console.log('viewModel', viewModel, imgs)
|
|
90
90
|
imgs.forEach(it => {
|
|
@@ -138,7 +138,7 @@ const MutiPictureView: React.FC<MutiPictureViewProps> = (props) => {
|
|
|
138
138
|
|
|
139
139
|
React.useEffect(() => {
|
|
140
140
|
containerRef.current?.measure((...args) => {
|
|
141
|
-
|
|
141
|
+
console.log(args)
|
|
142
142
|
if (args.length > 3) {
|
|
143
143
|
let _sideLength = (args[2] - spacingHorizontal * 2 - spacingInner * 2) / 3;
|
|
144
144
|
setSideLength(_sideLength)
|
|
@@ -149,6 +149,8 @@ const MutiPictureView: React.FC<MutiPictureViewProps> = (props) => {
|
|
|
149
149
|
}, [])
|
|
150
150
|
|
|
151
151
|
|
|
152
|
+
console.log({props})
|
|
153
|
+
|
|
152
154
|
if (props.value && props.value?.length > 0) {
|
|
153
155
|
return (
|
|
154
156
|
<View style={[styles.container, props.style]} ref={containerRef as any}>
|
package/package.json
CHANGED
package/utils/mode.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-04-18 18:40:07
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-07-
|
|
5
|
+
* @LastEditTime: 2022-07-20 10:17:07
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/utils/mode.ts
|
|
7
7
|
*/
|
|
8
8
|
import type { CallBack } from '.'
|
|
@@ -35,14 +35,13 @@ export const callTelephone = (phone: number | string) => {
|
|
|
35
35
|
|
|
36
36
|
let tel = 'tel:' + phone
|
|
37
37
|
Linking.canOpenURL(tel).then((supported) => {
|
|
38
|
-
if (
|
|
39
|
-
console.warn('[sg:mode]', '模拟器不支持拨打电话')
|
|
40
|
-
} else {
|
|
38
|
+
if (supported) {
|
|
41
39
|
Linking.openURL(tel)
|
|
40
|
+
} else {
|
|
41
|
+
console.warn('[sg:callTelephone 不支持]', { supported, tel })
|
|
42
42
|
}
|
|
43
43
|
}).catch(error => {
|
|
44
|
-
|
|
45
|
-
console.warn('[sg:mode]', error.toString())
|
|
44
|
+
console.warn('[sg:callTelephone catch]', { error, tel })
|
|
46
45
|
})
|
|
47
46
|
|
|
48
47
|
}
|