@aks-dev/easyui 1.0.90 → 1.0.91

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
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
4
4
  "description": "移动端App开发工具包",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",
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-20 09:28:33
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 '.'
@@ -31,19 +31,17 @@ export const panHandlersCallback = (props: { GrantCallback: CallBack, MoveCallba
31
31
  }
32
32
 
33
33
 
34
-
35
34
  export const callTelephone = (phone: number | string) => {
36
35
 
37
36
  let tel = 'tel:' + phone
38
37
  Linking.canOpenURL(tel).then((supported) => {
39
- console.log({ supported, tel })
40
38
  if (supported) {
41
39
  Linking.openURL(tel)
42
40
  } else {
43
- console.warn('[sg:callTelephone 不支持]', { supported, tel }.toString())
41
+ console.warn('[sg:callTelephone 不支持]', { supported, tel })
44
42
  }
45
43
  }).catch(error => {
46
- console.warn('[sg:callTelephone catch]', { error, tel }.toString())
44
+ console.warn('[sg:callTelephone catch]', { error, tel })
47
45
  })
48
46
 
49
47
  }