@baosight/er4j 0.0.31 → 0.0.33
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.
- package/er4j-dist/er4j.css +1 -1
- package/er4j-dist/er4j.es.js +8636 -8545
- package/er4j-dist/er4j.es.js.map +1 -1
- package/er4j-dist/er4j.umd.js +45 -45
- package/er4j-dist/er4j.umd.js.map +1 -1
- package/er4j-dist/types/type/er-type.d.ts +6 -0
- package/er4j-dist/types/utils/er.d.ts +11 -1
- package/package.json +1 -1
|
@@ -107,4 +107,10 @@ export interface DataTableOptions {
|
|
|
107
107
|
schema?: DataTableSchemaFields | undefined;
|
|
108
108
|
change?(e: DataTableChangeEvent): void;
|
|
109
109
|
}
|
|
110
|
+
export interface ButtonOptions {
|
|
111
|
+
name: string;
|
|
112
|
+
caption: string;
|
|
113
|
+
click: (params: any) => void;
|
|
114
|
+
visible?: (params: any) => boolean;
|
|
115
|
+
}
|
|
110
116
|
export type GetGridRowsType = 'current' | 'select' | 'checked' | 'checkedAfterFilter' | 'add' | 'modify' | 'delete' | 'all';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ResponseType } from 'axios';
|
|
2
|
-
import { DataTableOptions, DataTableSchemaFields, DataTableSchemaField, DialogResult, PopQueryReturnInfo, PopFreeReturnInfo, PopWindowReturnInfo, PopTreeReturnInfo, PopFormReturnInfo, LoadingOptions, GetGridRowsType } from '../type/er-type';
|
|
2
|
+
import { DataTableOptions, DataTableSchemaFields, DataTableSchemaField, DialogResult, PopQueryReturnInfo, PopFreeReturnInfo, PopWindowReturnInfo, PopTreeReturnInfo, PopFormReturnInfo, LoadingOptions, GetGridRowsType, ButtonOptions } from '../type/er-type';
|
|
3
3
|
import { EiInfo, EiBlock } from '@eplat/ei';
|
|
4
4
|
import { ColDef, ColumnApi, GridApi, RowPinnedType } from '@ag-grid-community/core';
|
|
5
5
|
import { Dayjs } from 'dayjs';
|
|
@@ -4610,6 +4610,16 @@ export declare namespace ER {
|
|
|
4610
4610
|
setFormOptions(options: {
|
|
4611
4611
|
[key: string]: any;
|
|
4612
4612
|
}): void;
|
|
4613
|
+
/**
|
|
4614
|
+
* 设置画面自定义按钮
|
|
4615
|
+
* @param buttons 按钮配置
|
|
4616
|
+
* @returns void
|
|
4617
|
+
*/
|
|
4618
|
+
setFormCustomButtons(buttons: {
|
|
4619
|
+
customButtons?: Array<ButtonOptions>;
|
|
4620
|
+
buttonsOnLeftByDefault?: Array<ButtonOptions>;
|
|
4621
|
+
buttonsOnRightByDefault?: Array<ButtonOptions>;
|
|
4622
|
+
}): void;
|
|
4613
4623
|
/**
|
|
4614
4624
|
* 获取画面属性信息
|
|
4615
4625
|
* @param options 属性信息
|