@kengic/vue 0.26.3-beta.5 → 0.26.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +2528 -2447
- package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +2 -5
- package/dist/src/apis/WMS/models.d.ts +10 -0
- package/dist/src/components/KgButton/index.hooks.d.ts +1 -1
- package/dist/src/components/KgSubmit/index.hooks.d.ts +13 -1
- package/dist/src/components/KgTable/KgTable.service.d.ts +2 -0
- package/dist/src/components/KgTable/index.vm.d.ts +4 -4
- package/dist/src/components/KgVar/index.hooks.d.ts +1 -1
- package/dist/src/consts/index.vm.d.ts +10 -1
- package/package.json +1 -1
@@ -2,9 +2,6 @@ import { IRequestConfig, IRequestOptions } from '../../../../services';
|
|
2
2
|
import * as DEF from '../../../def';
|
3
3
|
/** 请求参数. */
|
4
4
|
export declare class GetAllQuery {
|
5
|
-
/** 界面标识(FormID). */
|
6
|
-
frm_id?: string | null;
|
7
|
-
constructor(obj?: GetAllQuery);
|
8
5
|
}
|
9
6
|
/**
|
10
7
|
* 查询所有变量配置.
|
@@ -12,8 +9,8 @@ export declare class GetAllQuery {
|
|
12
9
|
* @param config 请求配置.
|
13
10
|
* @param option 请求选项.
|
14
11
|
*/
|
15
|
-
export declare function GetAll(config?: IRequestConfig<GetAllQuery,
|
12
|
+
export declare function GetAll(config?: IRequestConfig<GetAllQuery, DEF.WMS.VarQuery>, option?: IRequestOptions): Promise<DEF.WMS.VarDTO>;
|
16
13
|
export declare namespace GetAll {
|
17
|
-
var method: "
|
14
|
+
var method: "POST";
|
18
15
|
var url: string;
|
19
16
|
}
|
@@ -299,6 +299,8 @@ export declare class UpdateVarGridMasterQuery {
|
|
299
299
|
frm_id?: string | null;
|
300
300
|
/** 视图变量名称(GridVariableName). */
|
301
301
|
grd_var_nam?: string | null;
|
302
|
+
/** 视图名称翻译. */
|
303
|
+
grd_var_nam_dsc?: string | null;
|
302
304
|
/** 分组(GroupName). */
|
303
305
|
grp_nam?: string | null;
|
304
306
|
/** 主键 */
|
@@ -717,6 +719,8 @@ export declare class VarGridMasterDTO {
|
|
717
719
|
id?: string | null;
|
718
720
|
/** 用户(UserID). */
|
719
721
|
usr_id?: string | null;
|
722
|
+
/** 用户姓名. */
|
723
|
+
usr_id_dsc?: string | null;
|
720
724
|
/** 表格视图明细列表. */
|
721
725
|
varGridDetails?: Array<VarGridDetail> | null;
|
722
726
|
constructor(obj?: VarGridMasterDTO);
|
@@ -803,6 +807,12 @@ export declare class VarProfileMasterDTO {
|
|
803
807
|
varProfileDetails?: Array<VarProfileDetail> | null;
|
804
808
|
constructor(obj?: VarProfileMasterDTO);
|
805
809
|
}
|
810
|
+
/** 变量配置查询参数. */
|
811
|
+
export declare class VarQuery {
|
812
|
+
/** 界面标识(FormID). */
|
813
|
+
frm_id?: string | null;
|
814
|
+
constructor(obj?: VarQuery);
|
815
|
+
}
|
806
816
|
/** 提交表单配置. */
|
807
817
|
export declare class VarSubmitConfig {
|
808
818
|
/** 所属按钮的变量名称. */
|
@@ -222,7 +222,19 @@ export interface IUseKgSubmit {
|
|
222
222
|
onOpen(listener: IKgSubmitOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
223
223
|
/**
|
224
224
|
* <p>修改某个「提交表单字段」的部分属性.</p>
|
225
|
-
*
|
225
|
+
*
|
226
|
+
* <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
|
227
|
+
* <ul>
|
228
|
+
* <li>
|
229
|
+
* <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonVarName} === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
|
230
|
+
* </li>
|
231
|
+
* <li>
|
232
|
+
* <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarButton.var_nam} 是否匹配来确认按钮.</p>
|
233
|
+
* </li>
|
234
|
+
* <li>
|
235
|
+
* <p>如果参数 {@link param.buttonType} !== <code>undefined</code> && {@link param.buttonType} !== <code>OTHER</code>, 根据 {@link param.buttonType} 和 {@link VarButton.typ} 是否匹配来确认按钮.</p>
|
236
|
+
* </li>
|
237
|
+
* </ul>
|
226
238
|
*
|
227
239
|
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
228
240
|
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
@@ -22,6 +22,8 @@ export declare function _useLoading(): {
|
|
22
22
|
isLoading: ComputedRef<boolean>;
|
23
23
|
};
|
24
24
|
export declare function _useResizeObserver(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): {};
|
25
|
+
export declare type ICacheScrollState = {};
|
26
|
+
export declare function _useCacheScrollState(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): ICacheScrollState;
|
25
27
|
export declare function _useDragColumn(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>, columns: ComputedRef<ColumnsType<IKgTableRow>>): {};
|
26
28
|
export declare function _useDatas(): {
|
27
29
|
transformDatas: (response: Ref<any>) => {
|
@@ -10,17 +10,17 @@ export declare type IKgTableRow = {
|
|
10
10
|
/** 查询方法参数. */
|
11
11
|
export interface IKgTableRequestParameter {
|
12
12
|
/**
|
13
|
-
*
|
13
|
+
* 重新查询之后, 是否保留行的勾选状态.
|
14
14
|
*
|
15
15
|
* @default false
|
16
16
|
*/
|
17
|
-
|
17
|
+
isPreserveSelectedRows?: boolean;
|
18
18
|
/**
|
19
|
-
*
|
19
|
+
* 是否查询首页, 否则会查询当前页.
|
20
20
|
*
|
21
21
|
* @default false
|
22
22
|
*/
|
23
|
-
|
23
|
+
isSearchFirstPage?: boolean;
|
24
24
|
}
|
25
25
|
/** 插槽参数. */
|
26
26
|
export interface IKgTableSlotParams<T = IKgTableRow> {
|
@@ -268,7 +268,9 @@ export declare const enum KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE {
|
|
268
268
|
/** 抽屉. */
|
269
269
|
DRAWER = "DRAWER",
|
270
270
|
/** 在表格内. */
|
271
|
-
TABLE = "TABLE"
|
271
|
+
TABLE = "TABLE",
|
272
|
+
/** 嵌入页面. */
|
273
|
+
INLINE = "INLINE"
|
272
274
|
}
|
273
275
|
/**
|
274
276
|
* 表单布局方式.
|
@@ -530,6 +532,13 @@ export interface IKgVarSubmitConfigProperties {
|
|
530
532
|
/** 确认按钮的文本, 实际是一个变量名, 根据变量进行翻译. */
|
531
533
|
textVarName?: string;
|
532
534
|
};
|
535
|
+
/** 显示方式. */
|
536
|
+
displayType?: {
|
537
|
+
[KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.INLINE]?: {
|
538
|
+
/** 要嵌入的页面位置, 是一个 CSS 选择器, 如: #submit-target-xxx. */
|
539
|
+
target?: string;
|
540
|
+
};
|
541
|
+
};
|
533
542
|
}
|
534
543
|
/**
|
535
544
|
* <p>表单控件的参数.</p>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.26.3
|
3
|
+
"version": "0.26.3",
|
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",
|