@kengic/vue 0.10.11 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +329 -288
- package/dist/src/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -2
- package/dist/src/src/components/KgForm.Item/index.vm.d.ts +23 -0
- package/dist/src/src/components/KgSearch/index.hooks.d.ts +4 -6
- package/dist/src/src/components/KgSearch/index.store.d.ts +4 -8
- package/dist/src/src/components/KgTable/index.vm.d.ts +13 -23
- package/dist/src/src/utils/logger.util.d.ts +9 -1
- package/package.json +1 -1
@@ -13,7 +13,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
13
13
|
default: undefined;
|
14
14
|
};
|
15
15
|
kgSpan: import("vue").PropType<number>;
|
16
|
-
/** 获取下拉列表数据. */
|
17
16
|
kgPlaceholder: import("vue").PropType<string>;
|
18
17
|
kgMode: import("vue").PropType<"multiple" | "tags">;
|
19
18
|
kgShowLabel: {
|
@@ -54,7 +53,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
54
53
|
default: undefined;
|
55
54
|
};
|
56
55
|
kgSpan: import("vue").PropType<number>;
|
57
|
-
/** 获取下拉列表数据. */
|
58
56
|
kgPlaceholder: import("vue").PropType<string>;
|
59
57
|
kgMode: import("vue").PropType<"multiple" | "tags">;
|
60
58
|
kgShowLabel: {
|
@@ -89,5 +89,28 @@ export declare type IKgFormItemSlotControlParam = {
|
|
89
89
|
varProfileDetail: VarProfileDetail;
|
90
90
|
varSubmitField: VarSubmitField;
|
91
91
|
};
|
92
|
+
/**
|
93
|
+
* 对应于 {@link VarVariableConfig.ctrl_prop} 字段, 给不同类型的表单控件设置额外参数.
|
94
|
+
* @see VarVariableConfig.ctrl_prop
|
95
|
+
* @see KG_FORM_ITEM_TYPE
|
96
|
+
*/
|
97
|
+
export interface IKgFormItemTypeProperties {
|
98
|
+
CHECKBOX_GROUP: {
|
99
|
+
/**
|
100
|
+
* 数据项的宽度.
|
101
|
+
* @default 24
|
102
|
+
*/
|
103
|
+
span?: number;
|
104
|
+
/** 要排除哪些值. */
|
105
|
+
excludeValues?: Array<any>;
|
106
|
+
};
|
107
|
+
RADIO_GROUP: {
|
108
|
+
/**
|
109
|
+
* 数据项的宽度.
|
110
|
+
* @default 24
|
111
|
+
*/
|
112
|
+
span?: number;
|
113
|
+
};
|
114
|
+
}
|
92
115
|
/** 依赖注入 kgContext 参数. */
|
93
116
|
export declare const DI_KG_CONTEXT: InjectionKey<string>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ComputedRef } from 'vue';
|
2
2
|
import { IRemoveEventListenerHandler } from '../../consts';
|
3
|
+
import { IKgTableSearchParams } from '../KgTable';
|
3
4
|
import { IKgSearchReadyCb, IKgSearchResetCb, IKgSearchSearchCb, IKgSearchStore } from './index.store';
|
4
5
|
export declare type IUseKgSearch = {
|
5
6
|
formID: string;
|
@@ -11,12 +12,9 @@ export declare type IUseKgSearch = {
|
|
11
12
|
model: ComputedRef<ReturnType<IKgSearchStore['getModel']>>;
|
12
13
|
/** 高级查询的操作符表单数据对象. */
|
13
14
|
operatorModel: ComputedRef<ReturnType<IKgSearchStore['getOperatorModel']>>;
|
14
|
-
/**
|
15
|
-
|
16
|
-
|
17
|
-
*/
|
18
|
-
search(resetPageIndex?: boolean): void;
|
19
|
-
/** 执行重置. */
|
15
|
+
/** 查询. */
|
16
|
+
search(param?: boolean | IKgTableSearchParams): void;
|
17
|
+
/** 重置. */
|
20
18
|
reset(): void;
|
21
19
|
/**
|
22
20
|
* 监听事件: ready, 查询字段初始完成, 组件渲染完成.
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
2
|
import { IKgEventCb } from '../../consts';
|
3
|
+
import { IKgTableSearchParams } from '../KgTable';
|
3
4
|
/**
|
4
5
|
* 事件类型.
|
5
6
|
* 'ready': 就绪, 查询字段初始完成, 组件渲染完成
|
@@ -9,18 +10,13 @@ import { IKgEventCb } from '../../consts';
|
|
9
10
|
export declare type IKgSearchEvent = 'ready' | 'search' | 'reset';
|
10
11
|
/** 事件监听函数: ready. */
|
11
12
|
export declare type IKgSearchReadyCb = ((param: any) => Promise<boolean>) & IKgEventCb;
|
12
|
-
|
13
|
-
export declare type IKgSearchSearchCbParam = {
|
14
|
-
/** 是否从第一页开始查询. */
|
15
|
-
resetPageIndex?: boolean;
|
16
|
-
};
|
17
|
-
export declare type IKgSearchSearchCb = ((param: IKgSearchSearchCbParam) => Promise<boolean>) & IKgEventCb;
|
13
|
+
export declare type IKgSearchSearchCb = ((param: IKgTableSearchParams) => Promise<boolean>) & IKgEventCb;
|
18
14
|
/** 事件监听函数: reset. */
|
19
15
|
export declare type IKgSearchResetCb = ((param: any) => Promise<boolean>) & IKgEventCb;
|
20
|
-
export declare type IKgSearchCbParam =
|
16
|
+
export declare type IKgSearchCbParam = IKgTableSearchParams;
|
21
17
|
export declare type IKgSearchCb = IKgSearchReadyCb | IKgSearchSearchCb | IKgSearchResetCb;
|
22
18
|
/** 查询方法. */
|
23
|
-
export declare type IKgSearchSearchFn = (
|
19
|
+
export declare type IKgSearchSearchFn = (param?: IKgTableSearchParams) => void;
|
24
20
|
/** 重置方法. */
|
25
21
|
export declare type IKgSearchResetFn = () => void;
|
26
22
|
export interface IKgSearchState {
|
@@ -10,6 +10,19 @@ export declare type IKgTableRow<T = {}> = {
|
|
10
10
|
} & {
|
11
11
|
[K in keyof T]: T[K];
|
12
12
|
};
|
13
|
+
/** 查询方法参数. */
|
14
|
+
export interface IKgTableSearchParams {
|
15
|
+
/**
|
16
|
+
* 是否查询首页, 否则查询当页.
|
17
|
+
* @default false
|
18
|
+
*/
|
19
|
+
isSearchFirstPage?: boolean;
|
20
|
+
/**
|
21
|
+
* 是否保留行的勾选状态.
|
22
|
+
* @default false
|
23
|
+
*/
|
24
|
+
isPreserveSelectedRows?: boolean;
|
25
|
+
}
|
13
26
|
/** 插槽参数. */
|
14
27
|
export interface IKgTableSlotParams<T = {}> {
|
15
28
|
bodyCell: {
|
@@ -112,29 +125,6 @@ export interface IKgTableCellDisplayTypeProperties {
|
|
112
125
|
}>;
|
113
126
|
};
|
114
127
|
}
|
115
|
-
/**
|
116
|
-
* 对应于 {@link VarVariableConfig.ctrl_prop} 字段, 给不同类型的表单控件设置额外参数.
|
117
|
-
* @see VarVariableConfig.ctrl_prop
|
118
|
-
* @see KG_FORM_ITEM_TYPE
|
119
|
-
*/
|
120
|
-
export interface IKgFormItemTypeProperties {
|
121
|
-
CHECKBOX_GROUP: {
|
122
|
-
/**
|
123
|
-
* 数据项的宽度.
|
124
|
-
* @default 24
|
125
|
-
*/
|
126
|
-
span?: number;
|
127
|
-
/** 要排除哪些值. */
|
128
|
-
excludeValues?: Array<any>;
|
129
|
-
};
|
130
|
-
RADIO_GROUP: {
|
131
|
-
/**
|
132
|
-
* 数据项的宽度.
|
133
|
-
* @default 24
|
134
|
-
*/
|
135
|
-
span?: number;
|
136
|
-
};
|
137
|
-
}
|
138
128
|
/** 表格的单元格所处环境. */
|
139
129
|
export declare const enum KG_TABLE_CELL_CONTEXT {
|
140
130
|
/** 表格的单元格. */
|
@@ -2,6 +2,14 @@
|
|
2
2
|
* 日志服务.
|
3
3
|
*/
|
4
4
|
declare class KgLogger {
|
5
|
+
/**
|
6
|
+
* 打印弃用日志.
|
7
|
+
*
|
8
|
+
* @param message 提示消息.
|
9
|
+
* @param args 数据对象.
|
10
|
+
* @param collapsed 是否折叠.
|
11
|
+
*/
|
12
|
+
static deprecated(message: string, args?: Record<string, any>, collapsed?: boolean): void;
|
5
13
|
/**
|
6
14
|
* 打印错误日志.
|
7
15
|
*
|
@@ -27,7 +35,7 @@ declare class KgLogger {
|
|
27
35
|
* @param collapsed 是否折叠.
|
28
36
|
* @param style 提示消息样式.
|
29
37
|
*/
|
30
|
-
static log(level: "error" | "debug" | "info" | "warn" | undefined, message: string, args?: Record<string, any>, collapsed?: boolean, style?: string): void;
|
38
|
+
static log(level: "error" | "debug" | "info" | "warn" | "deprecated" | undefined, message: string, args?: Record<string, any>, collapsed?: boolean, style?: string): void;
|
31
39
|
/**
|
32
40
|
* 打印警告日志.
|
33
41
|
*
|