@kengic/vue 0.6.2-beta.0 → 0.6.2
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.
@@ -0,0 +1,4 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
2
|
+
[key: string]: any;
|
3
|
+
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
4
|
+
export default _default;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ColumnType } from 'ant-design-vue/es/table/interface';
|
2
|
+
import { VarGridDetail } from '../../apis/WMS/models';
|
2
3
|
/** 表格的行对象. */
|
3
4
|
export declare type IKgTableRow<T = {}> = {
|
4
5
|
id?: string | null;
|
@@ -6,14 +7,21 @@ export declare type IKgTableRow<T = {}> = {
|
|
6
7
|
} & {
|
7
8
|
[K in keyof T]: T[K];
|
8
9
|
};
|
9
|
-
/**
|
10
|
-
export interface
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
/** 插槽参数. */
|
11
|
+
export interface IKgTableSlotParams<T = {}> {
|
12
|
+
bodyCell: {
|
13
|
+
row: IKgTableRow<T>;
|
14
|
+
index: number;
|
15
|
+
value: any | null;
|
16
|
+
column: ColumnType;
|
17
|
+
varGridDetail: VarGridDetail | null;
|
18
|
+
defaultRender: JSX.Element;
|
19
|
+
};
|
20
|
+
'summary.bodyCell': {
|
21
|
+
index: number;
|
22
|
+
column: ColumnType;
|
23
|
+
varGridDetail: VarGridDetail | null;
|
24
|
+
};
|
17
25
|
}
|
18
26
|
/**
|
19
27
|
* 对应于 {@link VarGridDetail.display_type_properties} 字段, 不同显示类型的额外参数.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { InjectionKey } from 'vue';
|
2
2
|
import { IKgFormItemSlotControlParam } from '../KgForm.Item/index.vm';
|
3
|
-
import { IKgTableRow } from '../KgTable';
|
3
|
+
import { IKgTableRow, IKgTableSlotParams } from '../KgTable';
|
4
4
|
export declare type IKgSlots = {
|
5
5
|
/** KgTable 下面. */
|
6
6
|
afterKgTable?: () => any;
|
@@ -14,13 +14,15 @@ export declare type IKgSlots = {
|
|
14
14
|
};
|
15
15
|
};
|
16
16
|
KgTable?: {
|
17
|
+
bodyCell?: (param: IKgTableSlotParams['bodyCell']) => any;
|
17
18
|
expandedRowRender?: (param: {
|
18
19
|
record: IKgTableRow;
|
19
20
|
index: number;
|
20
21
|
indent: number;
|
21
22
|
expanded: boolean;
|
22
23
|
}) => any;
|
24
|
+
'summary.bodyCell'?: (param: IKgTableSlotParams['summary.bodyCell']) => any;
|
23
25
|
};
|
24
26
|
};
|
25
27
|
/** 注入 kgSlots 参数. */
|
26
|
-
export declare const
|
28
|
+
export declare const DI_KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
|