@kengic/core.react 0.0.1-beta.29 → 0.0.1-beta.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/core.react",
3
- "version": "0.0.1-beta.29",
3
+ "version": "0.0.1-beta.32",
4
4
  "type": "module",
5
5
  "main": "./kengic-core.react.js",
6
6
  "module": "./kengic-core.react.js",
@@ -0,0 +1,25 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../service';
2
+ import * as DEF from '../../../def';
3
+ /** 请求参数. */
4
+ export declare class ListQuery {
5
+ /** 排序字段. */
6
+ column?: string | null;
7
+ /** 排序方式. */
8
+ order?: 'asc' | 'desc' | null;
9
+ /** 当前页数. */
10
+ pageNo?: number | null;
11
+ /** 每页条数. */
12
+ pageSize?: number | null;
13
+ constructor(obj?: ListQuery);
14
+ }
15
+ /**
16
+ * 工作站-分页列表查询.
17
+ *
18
+ * @param config 请求配置.
19
+ * @param option 请求选项.
20
+ */
21
+ export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WorkstationDTO>>;
22
+ export declare namespace List {
23
+ var method: "GET";
24
+ var url: string;
25
+ }
@@ -0,0 +1 @@
1
+ export { List, ListQuery } from './List';
@@ -0,0 +1 @@
1
+ export * as WorkstationController from './WorkstationController';
@@ -0,0 +1,2 @@
1
+ export * as WMSAPI from './Controllers';
2
+ export * as WMSDEF from './models';
@@ -0,0 +1,62 @@
1
+ export declare class IPage<T0> {
2
+ /** Current. */
3
+ current?: number | null;
4
+ /** Pages. */
5
+ pages?: number | null;
6
+ /** Records. */
7
+ records?: Array<T0> | null;
8
+ /** Size. */
9
+ size?: number | null;
10
+ /** Total. */
11
+ total?: number | null;
12
+ constructor(obj?: IPage<T0>);
13
+ }
14
+ /** 工作站区域数据传输对象. */
15
+ export declare class WorkstationAreaDTO {
16
+ /** 主键. */
17
+ id?: string | null;
18
+ /** 创建日期. */
19
+ insDt?: string | null;
20
+ /** 创建用户. */
21
+ insUsrId?: string | null;
22
+ /** 修改日期. */
23
+ modUsrId?: string | null;
24
+ /** 修改用户. */
25
+ moddte?: string | null;
26
+ /** 仓库. */
27
+ whId?: string | null;
28
+ /** 工作区. */
29
+ wrkare?: string | null;
30
+ /** 工作区描述. */
31
+ wrkareDsc?: string | null;
32
+ constructor(obj?: WorkstationAreaDTO);
33
+ }
34
+ /** 工作站数据传输对象. */
35
+ export declare class WorkstationDTO {
36
+ /** 工作站. */
37
+ devcod?: string | null;
38
+ /** 工作站描述. */
39
+ devcodDsc?: string | null;
40
+ /** 主工作区. */
41
+ hmewrkare?: string | null;
42
+ /** 主键. */
43
+ id?: string | null;
44
+ /** 创建日期. */
45
+ insDt?: string | null;
46
+ /** 创建用户. */
47
+ insUsrId?: string | null;
48
+ /** 修改日期. */
49
+ modUsrId?: string | null;
50
+ /** 修改用户. */
51
+ moddte?: string | null;
52
+ /** 仓库. */
53
+ whId?: string | null;
54
+ /** 工作站与工作区域关系. */
55
+ workstationAreas?: Array<WorkstationAreaDTO> | null;
56
+ constructor(obj?: WorkstationDTO);
57
+ }
58
+ /**
59
+ * 获取对象的属性名数组.
60
+ * @param obj 对象.
61
+ */
62
+ export declare function keys<C extends object>(obj: C): Array<keyof C>;
@@ -0,0 +1 @@
1
+ export { WMSAPI as WMS } from './WMS';
@@ -0,0 +1 @@
1
+ export { WMSDEF as WMS } from './WMS';
@@ -0,0 +1,2 @@
1
+ export * as API from './api';
2
+ export * as DEF from './def';
@@ -34,19 +34,19 @@ export interface KgModalProps extends ModalProps {
34
34
  /**
35
35
  * 最大高度.
36
36
  */
37
- kgMaxHeight?: boolean;
37
+ kgMaxHeight?: number;
38
38
  /**
39
39
  * 最大宽度.
40
40
  */
41
- kgMaxWidth?: boolean;
41
+ kgMaxWidth?: number;
42
42
  /**
43
43
  * 最小高度.
44
44
  */
45
- kgMinHeight?: boolean;
45
+ kgMinHeight?: number;
46
46
  /**
47
47
  * 最小宽度.
48
48
  */
49
- kgMinWidth?: boolean;
49
+ kgMinWidth?: number;
50
50
  /**
51
51
  * 是否显示取消按钮.
52
52
  *
@@ -0,0 +1,29 @@
1
+ import React, { MutableRefObject } from 'react';
2
+ import { KgModalProps } from '../KgModal';
3
+ /**
4
+ * 拖拽改变大小.
5
+ *
6
+ * @param param.props 组件参数.
7
+ * @param param.domRef 页面上的那个特殊元素对象, 专门用于获取其他元素对象.
8
+ * @param param.getProps 计算后的组件参数.
9
+ */
10
+ export declare function useDragToResize(param: {
11
+ domRef: MutableRefObject<HTMLDivElement | null>;
12
+ getProps: KgModalProps;
13
+ props: KgModalProps;
14
+ }): {
15
+ /**
16
+ * 鼠标按下事件.
17
+ *
18
+ * @param param.event 鼠标事件对象.
19
+ * @param param.handleType 拖拽位置.
20
+ */
21
+ onMouseDown: (param: {
22
+ event: React.MouseEvent<HTMLDivElement, MouseEvent>;
23
+ handleType: "left" | "top" | "top-left" | "top-right" | "right" | "bottom-right" | "bottom" | "bottom-left";
24
+ }) => void;
25
+ /**
26
+ * 弹窗宽度.
27
+ */
28
+ width: string | number;
29
+ };
package/src/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import './asset/index.css';
2
2
  import './iconify.init';
3
3
  export { doKgWorkStation, type IDoKgWorkStation } from './component';
4
+ export { setHttpClient } from './service';
4
5
  export interface IKgCoreReactOptions {
5
6
  /**
6
7
  * vue 中的 ref() 函数.
@@ -0,0 +1,32 @@
1
+ /**
2
+ * 设置 httpClient 实例.
3
+ */
4
+ declare function setHttpClient(httpClient: any | null): void;
5
+ /**
6
+ * 获取 httpClient 实例.
7
+ */
8
+ declare function httpClient(): any;
9
+ interface IRequestConfig<P = {}, D = {}> {
10
+ data?: D;
11
+ params?: P;
12
+ }
13
+ interface IRequestOptions {
14
+ apiUrl?: string;
15
+ dayjs?: any;
16
+ dynamicQueryFormID?: string;
17
+ dynamicQueryKgSearchFormID?: string;
18
+ dynamicQueryOperatorModel?: Record<string, string>;
19
+ errorMessageMode?: 'none' | 'modal' | 'message' | undefined;
20
+ formatDate?: boolean;
21
+ ignoreCancelToken?: boolean;
22
+ isReturnNativeResponse?: boolean;
23
+ isTransformResponse?: boolean;
24
+ joinParamsToUrl?: boolean;
25
+ joinPrefix?: boolean;
26
+ joinTime?: boolean;
27
+ mock?: any;
28
+ successMessageMode?: 'none' | 'success' | 'error' | undefined;
29
+ urlPrefix?: string;
30
+ withToken?: boolean;
31
+ }
32
+ export { setHttpClient, httpClient, type IRequestConfig, type IRequestOptions };
@@ -0,0 +1 @@
1
+ export * from './http-client';