@kengic/vue 0.23.7 → 0.23.8

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.
@@ -12,3 +12,11 @@ export declare type IUseServices = {
12
12
  export declare function _useServices(): IUseServices;
13
13
  /** 监控表格列的下拉列表的尺寸变化, 从而调整位置, 防止遮盖. */
14
14
  export declare function _useObserveMenuItemColumns(isMenuItemColumnsVisible: Ref<boolean>): void;
15
+ /**
16
+ *
17
+ * @param param.columnsRef 宿主页面标识.
18
+ * @param param.varGridDetails 字段列表.
19
+ */
20
+ export declare function _useDragToSortRow(param: {
21
+ columnsRef: Ref<HTMLUListElement | null>;
22
+ }): {};
@@ -4,4 +4,4 @@ import { VarProfileDetail } from '../../../../apis/WMS/models';
4
4
  export declare const leftVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
5
5
  export declare const rightVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
6
6
  export declare type IUseDragRow = {};
7
- export declare function _useDragRow(hostFormID: string | null | undefined, varProfileDetails: Ref<UnwrapRef<Array<VarProfileDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarProfileDetail>>>): IUseDragRow;
7
+ export declare function _useDragToSortRow(hostFormID: string | null | undefined, varProfileDetails: Ref<UnwrapRef<Array<VarProfileDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarProfileDetail>>>): IUseDragRow;
@@ -20,4 +20,4 @@ export declare type IUseDragRow = {};
20
20
  * @param varGridDetails
21
21
  * @param transferRightRows
22
22
  */
23
- export declare function _useDragRow(hostFormID: string | null | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseDragRow;
23
+ export declare function _useDragToSortRow(hostFormID: string | null | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseDragRow;
@@ -76,7 +76,9 @@ export declare type IKgOption = {
76
76
  * 表格设置菜单.
77
77
  */
78
78
  Setting?: {
79
- /** 行高. */
79
+ /**
80
+ * 行高.
81
+ */
80
82
  rowHeight?: {
81
83
  /**
82
84
  * 是否启用功能.
@@ -84,6 +86,20 @@ export declare type IKgOption = {
84
86
  */
85
87
  on?: boolean;
86
88
  };
89
+ /**
90
+ * 字段.
91
+ */
92
+ columns?: {
93
+ /**
94
+ * 拖拽排序.
95
+ */
96
+ dragToSort?: {
97
+ /**
98
+ * @default false
99
+ */
100
+ isOn?: boolean;
101
+ };
102
+ };
87
103
  };
88
104
  /**
89
105
  * 表头.
@@ -6,26 +6,26 @@ export declare const getProps: () => {
6
6
  * @default false
7
7
  */
8
8
  kgVisible: PropType<boolean>;
9
- 'onUpdate:kgVisible': PropType<(value: boolean) => void>;
10
9
  onKgOk: PropType<() => void>;
10
+ 'onUpdate:kgVisible': PropType<(value: boolean) => void>;
11
11
  };
12
- export declare type IKgPageDdaCreateProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
+ export declare type KgPageDdaCreateProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
13
13
  declare const _default: import("vue").DefineComponent<{
14
14
  /**
15
15
  * 是否显示.
16
16
  * @default false
17
17
  */
18
18
  kgVisible: PropType<boolean>;
19
- 'onUpdate:kgVisible': PropType<(value: boolean) => void>;
20
19
  onKgOk: PropType<() => void>;
20
+ 'onUpdate:kgVisible': PropType<(value: boolean) => void>;
21
21
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgOk" | "update:kgVisible")[], "kgOk" | "update:kgVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
22
22
  /**
23
23
  * 是否显示.
24
24
  * @default false
25
25
  */
26
26
  kgVisible: PropType<boolean>;
27
- 'onUpdate:kgVisible': PropType<(value: boolean) => void>;
28
27
  onKgOk: PropType<() => void>;
28
+ 'onUpdate:kgVisible': PropType<(value: boolean) => void>;
29
29
  }>> & {
30
30
  onKgOk?: ((...args: any[]) => any) | undefined;
31
31
  "onUpdate:kgVisible"?: ((...args: any[]) => any) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.23.7",
3
+ "version": "0.23.8",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",