@aks-dev/easyui 1.0.12 → 1.0.15

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.
@@ -138,7 +138,7 @@ export const alertViewRef = React.createRef<AlertViewCurrent>();
138
138
 
139
139
 
140
140
 
141
- export const ShowAlertModal = (props: Partial<Options>) => {
141
+ export const showAlertModal = (props: Partial<Options>) => {
142
142
  alertViewRef.current?.show(props)
143
143
  }
144
144
 
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-22 17:30:32
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-04-26 14:11:39
6
- * @FilePath: /@aks/easy/lib/Easy-Hud/AlertView/index.ts
5
+ * @LastEditTime: 2022-05-12 11:32:28
6
+ * @FilePath: /@aks/easyui/lib/Easy-Hud/AlertView/index.ts
7
7
  */
8
8
  import * as React from 'react'
9
9
 
@@ -26,7 +26,7 @@ export declare type Options = {
26
26
  }
27
27
 
28
28
 
29
- export declare const ShowAlertModal: (props: Partial<Options>) => void;
29
+ export declare const showAlertModal: (props: Partial<Options>) => void;
30
30
 
31
31
 
32
32
 
@@ -2,19 +2,19 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-24 14:10:04
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-10 09:15:52
5
+ * @LastEditTime: 2022-05-12 11:34:10
6
6
  * @FilePath: /@aks/easyui/lib/Easy-Hud/EasyHud.tsx
7
7
  */
8
8
  import * as React from 'react'
9
9
  // import { StyleSheet } from 'react-native'
10
10
  import {
11
- alertViewRef, default as AlertView, ShowAlertModal
11
+ alertViewRef, default as AlertView, showAlertModal
12
12
  } from './AlertView/AlertView'
13
13
  import {
14
- HideLoading, Loading, loadingRef, ShowLoading
14
+ hideLoading, Loading, loadingRef, showLoading
15
15
  } from './Loading/Loading'
16
16
  import {
17
- ShowToast, Toast, toastRef
17
+ showToast, Toast, toastRef
18
18
  } from './Toast/Toast'
19
19
 
20
20
 
@@ -41,8 +41,8 @@ export const EasyHud: React.FC<{}> = () => React.cloneElement(
41
41
 
42
42
 
43
43
  export {
44
- ShowAlertModal,
45
- ShowToast,
46
- ShowLoading,
47
- HideLoading
44
+ showAlertModal,
45
+ showToast,
46
+ showLoading,
47
+ hideLoading
48
48
  }
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-24 14:27:02
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-07 17:30:04
5
+ * @LastEditTime: 2022-05-12 11:33:21
6
6
  * @FilePath: /@aks/easyui/lib/Easy-Hud/Loading/Loading.tsx
7
7
  */
8
8
  import React, { useImperativeHandle, useState } from 'react';
@@ -20,11 +20,11 @@ export const Loading = React.forwardRef<LoadingCurrent, {}>((_, ref) => {
20
20
 
21
21
 
22
22
  useImperativeHandle<unknown, LoadingCurrent>(ref, () => ({
23
- ShowLoading: (content?: string) => {
23
+ showLoading: (content?: string) => {
24
24
  setShow(true);
25
25
  setTipText(content || '加载中')
26
26
  },
27
- HideLoading: () => {
27
+ hideLoading: () => {
28
28
  setShow(false);
29
29
  }
30
30
  }), [show])
@@ -44,8 +44,8 @@ export const Loading = React.forwardRef<LoadingCurrent, {}>((_, ref) => {
44
44
  })
45
45
 
46
46
  export const loadingRef = React.createRef<LoadingCurrent>();
47
- export const ShowLoading = (content?: string) => loadingRef.current?.ShowLoading(content)
48
- export const HideLoading = () => loadingRef.current?.HideLoading()
47
+ export const showLoading = (content?: string) => loadingRef.current?.showLoading(content)
48
+ export const hideLoading = () => loadingRef.current?.hideLoading()
49
49
 
50
50
 
51
51
 
@@ -3,7 +3,7 @@
3
3
  * @Author: shiguo
4
4
  * @Date: 2022-04-24 14:27:02
5
5
  * @LastEditors: shiguo
6
- * @LastEditTime: 2022-05-07 16:04:06
6
+ * @LastEditTime: 2022-05-12 11:32:41
7
7
  * @FilePath: /@aks/easyui/lib/Easy-Hud/Loading/index.ts
8
8
  */
9
9
  import * as React from 'react'
@@ -16,17 +16,17 @@ import * as React from 'react'
16
16
 
17
17
 
18
18
  export declare type LoadingCurrent = {
19
- ShowLoading: (content?: string) => void;
20
- HideLoading: () => void;
19
+ showLoading: (content?: string) => void;
20
+ hideLoading: () => void;
21
21
  }
22
22
 
23
23
 
24
24
 
25
25
 
26
- export declare const ShowLoading: (content?: string) => void;
26
+ export declare const showLoading: (content?: string) => void;
27
27
 
28
28
 
29
- export declare const HideLoading: () => void;
29
+ export declare const hideLoading: () => void;
30
30
 
31
31
 
32
32
  export declare const loadingRef: React.RefObject<LoadingCurrent>;
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2021-04-27 10:38:04
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-04-26 14:11:13
6
- * @FilePath: /@aks/easy/lib/Easy-Hud/Toast/Toast.tsx
5
+ * @LastEditTime: 2022-05-12 11:33:40
6
+ * @FilePath: /@aks/easyui/lib/Easy-Hud/Toast/Toast.tsx
7
7
  */
8
8
  import React, { useImperativeHandle, useState, useRef } from 'react';
9
9
  import { View, StyleSheet, Text, Dimensions, Animated, Easing } from 'react-native';
@@ -34,7 +34,7 @@ export const Toast = React.forwardRef<ToastCurrent, {}>((_, ref) => {
34
34
  ])
35
35
 
36
36
  useImperativeHandle<unknown, ToastCurrent>(ref, () => ({
37
- ShowToast: (content: string) => {
37
+ showToast: (content: string) => {
38
38
  setTipText(content || errorMsg)
39
39
  fadeAnimation.reset()
40
40
  fadeAnimation.start()
@@ -53,7 +53,7 @@ export const Toast = React.forwardRef<ToastCurrent, {}>((_, ref) => {
53
53
 
54
54
  export const toastRef = React.createRef<ToastCurrent>();
55
55
 
56
- export const ShowToast = (content: string) => toastRef.current?.ShowToast(content)
56
+ export const showToast = (content: string) => toastRef.current?.showToast(content)
57
57
 
58
58
 
59
59
 
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-18 19:18:03
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-04-26 14:11:06
6
- * @FilePath: /@aks/easy/lib/Easy-Hud/Toast/index.ts
5
+ * @LastEditTime: 2022-05-12 11:33:32
6
+ * @FilePath: /@aks/easyui/lib/Easy-Hud/Toast/index.ts
7
7
  */
8
8
  import * as React from 'react'
9
9
 
@@ -11,10 +11,10 @@ import * as React from 'react'
11
11
 
12
12
 
13
13
  export declare type ToastCurrent = {
14
- ShowToast: (content: string) => void;
14
+ showToast: (content: string) => void;
15
15
  }
16
16
 
17
- export declare const ShowToast: (content: string) => void;
17
+ export declare const showToast: (content: string) => void;
18
18
 
19
19
 
20
20
  export declare const toastRef: React.RefObject<ToastCurrent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.12",
3
+ "version": "1.0.15",
4
4
  "description": "爱科森开发工具包",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",
@@ -10,7 +10,8 @@
10
10
  "keywords": [
11
11
  "react",
12
12
  "react-native",
13
- "@aks-dev/easyui"
13
+ "@aks-dev",
14
+ "easyui"
14
15
  ],
15
16
  "files": [
16
17
  "/android",
@@ -26,10 +27,10 @@
26
27
  "!/tsconfig.json",
27
28
  "!/tsconfig.md"
28
29
  ],
29
- "homepage": "git+https://gitee.com/the_period_of_the_ten_kingdoms/aks-easy",
30
+ "homepage": "https://gitee.com/the_period_of_the_ten_kingdoms/aks-easyui",
30
31
  "repository": {
31
32
  "type": "git",
32
- "url": "git+https://gitee.com/the_period_of_the_ten_kingdoms/aks-easy.git"
33
+ "url": "https://gitee.com/the_period_of_the_ten_kingdoms/aks-easyui"
33
34
  },
34
35
  "author": "",
35
36
  "license": "MIT",
package/src/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * @Author: shiguo
4
4
  * @Date: 2022-04-13 12:47:34
5
5
  * @LastEditors: shiguo
6
- * @LastEditTime: 2022-05-05 17:29:57
6
+ * @LastEditTime: 2022-05-12 12:18:13
7
7
  * @FilePath: /@aks/easyui/src/index.ts
8
8
  */
9
9
 
@@ -16,7 +16,7 @@ export * from '../lib/Badge/Badge'
16
16
  export type { BadgeProps } from '../lib/Badge'
17
17
 
18
18
 
19
- export { EasyHud, ShowLoading, HideLoading, ShowToast, ShowAlertModal } from '../lib/Easy-Hud/EasyHud'
19
+ export { EasyHud, showLoading, hideLoading, showToast, showAlertModal } from '../lib/Easy-Hud/EasyHud'
20
20
 
21
21
  export * from '../lib/Modal/Modal'
22
22
 
package/utils/index.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-19 10:25:43
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-10 18:32:50
5
+ * @LastEditTime: 2022-05-12 12:27:10
6
6
  * @FilePath: /@aks/easyui/utils/index.ts
7
7
  */
8
8
 
@@ -49,7 +49,7 @@ export declare const randomcolor: () => string;
49
49
 
50
50
  export type SyncLoopCallBack = (item: any, index: number) => void;
51
51
  /**
52
- * @description: 同步遍历
52
+ * @description: 同步循环
53
53
  * @param {*} dataList:数据源
54
54
  * @return {*}
55
55
  */