@kengic/vue 0.19.2-beta.7 → 0.19.2-beta.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +233 -249
- package/dist/src/components/KgForm/index.store.d.ts +47 -35
- package/package.json +2 -2
@@ -13,74 +13,86 @@ import { IKgTableRow } from '../KgTable';
|
|
13
13
|
export declare type IKgFormEvent = 'selectBeforeSetDatas' | 'selectChange' | 'lookupBeforeOpen' | 'lookupBeforeOk' | 'lookupOk';
|
14
14
|
/** 事件监听函数: selectBeforeSetDatas. */
|
15
15
|
export declare type IKgFormSelectBeforeSetDatasCbParam<T = any> = {
|
16
|
-
/** 变量名称. */
|
17
|
-
variableName: string;
|
18
|
-
isCreating: boolean | null;
|
19
|
-
isUpdating: boolean | null;
|
20
|
-
isCopying: boolean | null;
|
21
|
-
isDeleting: boolean | null;
|
22
16
|
/** 列表数据. */
|
23
17
|
datas: Ref<Array<T>>;
|
18
|
+
isCopying: boolean | null;
|
19
|
+
isCreating: boolean | null;
|
20
|
+
isDeleting: boolean | null;
|
21
|
+
isUpdating: boolean | null;
|
22
|
+
/** 变量名称. */
|
23
|
+
variableName: string;
|
24
24
|
};
|
25
25
|
export declare type IKgFormSelectBeforeSetDatasCb = ((param: IKgFormSelectBeforeSetDatasCbParam) => Promise<boolean>) & IKgEventCb;
|
26
26
|
/** 事件监听函数: selectChange. */
|
27
27
|
export declare type IKgFormSelectChangeCbParam = {
|
28
|
-
|
29
|
-
|
28
|
+
isCopying: boolean | null;
|
29
|
+
isCreating: boolean | null;
|
30
|
+
isDeleting: boolean | null;
|
30
31
|
/** 是否多选, 否则单选. */
|
31
32
|
isMultiple: boolean;
|
32
|
-
/** 选中的数据组成的数组, 如果是单选则数组中只有一个数据. */
|
33
|
-
values: Array<any>;
|
34
|
-
/** 选中的数据对象组成的数组, 如果是单选则数组中只有一个数据对象. */
|
35
|
-
rows: Array<any> | null;
|
36
|
-
isCreating: boolean | null;
|
37
33
|
isUpdating: boolean | null;
|
38
|
-
isCopying: boolean | null;
|
39
|
-
isDeleting: boolean | null;
|
40
34
|
/** 表单数据对象. */
|
41
35
|
model: Ref<Record<string, any>> | null;
|
36
|
+
/** 选中的数据对象组成的数组, 如果是单选则数组中只有一个数据对象. */
|
37
|
+
rows: Array<any> | null;
|
38
|
+
/** 选中的数据组成的数组, 如果是单选则数组中只有一个数据. */
|
39
|
+
values: Array<any>;
|
40
|
+
/** 变量. */
|
41
|
+
var_nam: string;
|
42
42
|
};
|
43
43
|
export declare type IKgFormSelectChangeCb = ((param: IKgFormSelectChangeCbParam) => Promise<boolean>) & IKgEventCb;
|
44
44
|
/** 事件监听函数: lookupBeforeOpen. */
|
45
45
|
export declare type IKgFormLookupBeforeOpenCbParam = {
|
46
|
-
/** 变量. */
|
47
|
-
var_nam: string;
|
48
46
|
/** 查找弹出的界面标识. */
|
49
47
|
lookupFormID: string;
|
48
|
+
/** 变量. */
|
49
|
+
var_nam: string;
|
50
50
|
};
|
51
51
|
export declare type IKgFormLookupBeforeOpenCb = ((param: IKgFormLookupBeforeOpenCbParam) => Promise<boolean>) & IKgEventCb;
|
52
52
|
/** 事件监听函数: lookupBeforeOk. */
|
53
53
|
export declare type IKgFormLookupBeforeOkCbParam = {
|
54
|
-
/** 变量. */
|
55
|
-
var_nam: string;
|
56
54
|
/** 是否多选, 否则单选. */
|
57
55
|
isMultiple: boolean;
|
58
|
-
/**
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
/** 单选时, 勾选的那一行. */
|
56
|
+
/**
|
57
|
+
* 单选时, 勾选的那一行.
|
58
|
+
* @deprecated 请直接使用属性 rows.
|
59
|
+
*/
|
63
60
|
row?: IKgTableRow | null;
|
64
|
-
/**
|
61
|
+
/** 勾选的所有行. */
|
65
62
|
rows?: Array<IKgTableRow> | null;
|
63
|
+
/**
|
64
|
+
* 单选时, 对应的一个值.
|
65
|
+
* @deprecated 请直接使用属性 values.
|
66
|
+
*/
|
67
|
+
value?: any | null;
|
68
|
+
/** 勾选的所有值. */
|
69
|
+
values?: Array<any> | null;
|
70
|
+
/** 变量. */
|
71
|
+
var_nam: string;
|
66
72
|
};
|
67
73
|
export declare type IKgFormLookupBeforeOkCb = ((param: IKgFormLookupBeforeOkCbParam) => Promise<boolean>) & IKgEventCb;
|
68
74
|
/** 事件监听函数: lookupOk. */
|
69
75
|
export declare type IKgFormLookupOkCbParam = {
|
70
|
-
/** 变量. */
|
71
|
-
var_nam: string;
|
72
|
-
/** 表单数据对象. */
|
73
|
-
model: ComputedRef<Record<string, any>>;
|
74
76
|
/** 是否多选, 否则单选. */
|
75
77
|
isMultiple: boolean;
|
76
|
-
/**
|
77
|
-
|
78
|
-
/**
|
79
|
-
|
80
|
-
|
78
|
+
/** 表单数据对象. */
|
79
|
+
model: ComputedRef<Record<string, any>>;
|
80
|
+
/**
|
81
|
+
* 单选时, 勾选的那一行.
|
82
|
+
* @deprecated 请直接使用属性 rows.
|
83
|
+
*/
|
81
84
|
row?: IKgTableRow | null;
|
82
|
-
/**
|
85
|
+
/** 勾选的所有行. */
|
83
86
|
rows?: Array<IKgTableRow> | null;
|
87
|
+
/**
|
88
|
+
* 单选时, 对应的一个值.
|
89
|
+
* @deprecated 请直接使用属性 values.
|
90
|
+
*/
|
91
|
+
value?: any | null;
|
92
|
+
/** 勾选的所有值. */
|
93
|
+
values?: Array<any> | null;
|
94
|
+
/** 变量. */
|
95
|
+
var_nam: string;
|
84
96
|
};
|
85
97
|
export declare type IKgFormLookupOkCb = ((param: IKgFormLookupOkCbParam) => Promise<boolean>) & IKgEventCb;
|
86
98
|
export declare type IKgFormCbParam = IKgFormSelectBeforeSetDatasCbParam | IKgFormSelectChangeCbParam | IKgFormLookupBeforeOpenCbParam | IKgFormLookupBeforeOkCbParam | IKgFormLookupOkCbParam;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.19.2-beta.
|
3
|
+
"version": "0.19.2-beta.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",
|
@@ -83,7 +83,7 @@
|
|
83
83
|
},
|
84
84
|
"prettier": {
|
85
85
|
"endOfLine": "auto",
|
86
|
-
"printWidth":
|
86
|
+
"printWidth": 160,
|
87
87
|
"semi": true,
|
88
88
|
"singleAttributePerLine": true,
|
89
89
|
"singleQuote": true,
|