@baosight/er4j 0.0.30 → 0.0.32

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.
@@ -787,6 +787,7 @@ declare const _default: import('vue').DefineComponent<{
787
787
  };
788
788
  }>;
789
789
  columnConfig: any;
790
+ renderButton: any[];
790
791
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
791
792
  params?: any;
792
793
  }> & Readonly<{}>, {}, {}, {
@@ -1209,7 +1210,7 @@ declare const _default: import('vue').DefineComponent<{
1209
1210
  };
1210
1211
  align: {
1211
1212
  type: import('vue').PropType<import('ant-design-vue/es/vc-trigger/interface').AlignType>;
1212
- default: import('ant-design-vue/es/vc-trigger/interface').AlignType;
1213
+ /** @type { [typeof __VLS_components.ATooltip, typeof __VLS_components.aTooltip, typeof __VLS_components.ATooltip, typeof __VLS_components.aTooltip, ] } */ default: import('ant-design-vue/es/vc-trigger/interface').AlignType;
1213
1214
  };
1214
1215
  builtinPlacements: {
1215
1216
  type: import('vue').PropType<import('ant-design-vue/es/vc-trigger/interface').BuildInPlacements>;
@@ -1521,7 +1522,7 @@ declare const _default: import('vue').DefineComponent<{
1521
1522
  ghost?: boolean | undefined;
1522
1523
  }>;
1523
1524
  default: {
1524
- ghost?: boolean | undefined;
1525
+ /** @type { [typeof __VLS_components.ATooltip, typeof __VLS_components.aTooltip, typeof __VLS_components.ATooltip, typeof __VLS_components.aTooltip, ] } */ ghost?: boolean | undefined;
1525
1526
  };
1526
1527
  };
1527
1528
  componentSize: {
@@ -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.30",
3
+ "version": "0.0.32",
4
4
  "description": "er4j 辅助开发",
5
5
  "private": false,
6
6
  "type": "module",