@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.
@@ -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 属性信息
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baosight/er4j",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "er4j 辅助开发",
5
5
  "private": false,
6
6
  "type": "module",