@juzhenfe/page-model 3.15.1 → 3.16.1

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.
@@ -115,6 +115,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
115
115
  value: FilterMatchModeEnum;
116
116
  }[];
117
117
  };
118
+ readonly noValueOptions: FilterMatchModeEnum[];
118
119
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "screen")[], "closed" | "screen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
119
120
  manager: {
120
121
  type: any;
@@ -1,4 +1,4 @@
1
- import { FilterItemTypeEnum, FilterMatchModeEnum } from "./utils";
1
+ import { FilterItemTypeEnum } from "./utils";
2
2
  declare const _sfc_main: import("vue").DefineComponent<{
3
3
  tableManager: {
4
4
  type: ObjectConstructor;
@@ -27,7 +27,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
27
27
  label: string;
28
28
  value: string | number | boolean;
29
29
  }[];
30
- condition?: FilterMatchModeEnum;
30
+ condition?: import("./utils").FilterMatchModeEnum;
31
31
  value?: any;
32
32
  }[]>;
33
33
  multSelectDatas: import("vue").ComputedRef<{
@@ -57,17 +57,18 @@ declare const _sfc_main: import("vue").DefineComponent<{
57
57
  readonly compareOptions: {
58
58
  string: {
59
59
  label: string;
60
- value: FilterMatchModeEnum;
60
+ value: import("./utils").FilterMatchModeEnum;
61
61
  }[];
62
62
  number: {
63
63
  label: string;
64
- value: FilterMatchModeEnum;
64
+ value: import("./utils").FilterMatchModeEnum;
65
65
  }[];
66
66
  date: {
67
67
  label: string;
68
- value: FilterMatchModeEnum;
68
+ value: import("./utils").FilterMatchModeEnum;
69
69
  }[];
70
70
  };
71
+ readonly noValueOptions: import("./utils").FilterMatchModeEnum[];
71
72
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "screen"[], "screen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
72
73
  tableManager: {
73
74
  type: ObjectConstructor;
@@ -25,9 +25,18 @@ export declare enum FilterMatchModeEnum {
25
25
  大于 = "gt",
26
26
  小于 = "lt",
27
27
  大于等于 = "ge",
28
- 小于等于 = "le"
28
+ 小于等于 = "le",
29
+ 是null值 = "isNull",
30
+ 不是null值 = "isNotNull",
31
+ 是空字符串 = "isEmptyString",
32
+ 不是空字符串 = "isNotEmptyString",
33
+ 是空值 = "isEmpty",
34
+ 不是空值 = "isNotEmpty"
29
35
  }
30
- export declare const compareOptions: {
36
+ /**
37
+ * 比较选项
38
+ */
39
+ export declare let compareOptions: {
31
40
  string: {
32
41
  label: string;
33
42
  value: FilterMatchModeEnum;
@@ -41,3 +50,20 @@ export declare const compareOptions: {
41
50
  value: FilterMatchModeEnum;
42
51
  }[];
43
52
  };
53
+ /**
54
+ * 修改比较选项
55
+ */
56
+ export declare const updateCompareOptions: (_compareOptions: {
57
+ [key: string]: {
58
+ label: string;
59
+ value: any;
60
+ }[];
61
+ }) => void;
62
+ /**
63
+ * 不需要值的选项
64
+ */
65
+ export declare let noValueOptions: FilterMatchModeEnum[];
66
+ /**
67
+ * 修改不需要值的选项
68
+ */
69
+ export declare const updateCompareNoValueOptions: (_noValueOptions: string[]) => void;
@@ -280,6 +280,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
280
280
  value: import("./components/filter-zone/utils").FilterMatchModeEnum;
281
281
  }[];
282
282
  };
283
+ readonly noValueOptions: import("./components/filter-zone/utils").FilterMatchModeEnum[];
283
284
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "screen"[], "screen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
284
285
  tableManager: {
285
286
  type: ObjectConstructor;
@@ -71,6 +71,14 @@ export default class TableManager extends IManager {
71
71
  init(): void;
72
72
  updateTableRef(tableRef: typeof ElTable): void;
73
73
  updateLoading(loading: boolean): void;
74
+ /**
75
+ * 获取pageIndex的key
76
+ */
77
+ get pageIndexKey(): string;
78
+ /**
79
+ * 获取pageSize的key
80
+ */
81
+ get pageSizeKey(): string;
74
82
  /**
75
83
  * 获取表格的搜索参数
76
84
  * @returns
@@ -248,7 +256,36 @@ export default class TableManager extends IManager {
248
256
  _syncRadioData(): void;
249
257
  loadExcelDependence(): Promise<boolean | HTMLScriptElement>;
250
258
  getTableCellText(el: any, rowData: AnyObject): any;
259
+ /**
260
+ * 获取excelData的表头
261
+ */
262
+ getExcelDataHeader(columns: any[]): {
263
+ exportEls: any[];
264
+ excelData: any[][];
265
+ cols: any[];
266
+ };
267
+ /**
268
+ * exceldata插入数据
269
+ */
270
+ insertExcelData(excelData: any[][], exportEls: any[], insertData: any[]): void;
271
+ /**
272
+ * 将树形数据扁平化
273
+ * 合并到主数据中
274
+ */
275
+ patchChildrenData(data: any[], childrenKey: string): any;
276
+ /**
277
+ * 导出数据到excel
278
+ * @param opts
279
+ * @returns
280
+ */
251
281
  exportDataToExcel(opts: PageModel.TableDataExportModel): Promise<boolean>;
282
+ /**
283
+ * 基于excel数据生成excel文件进行下载
284
+ */
285
+ exportDataToExcelByExcelData(filename: string, excelData: any[][], cols: any[], mergeOpt?: {
286
+ exportData: any[];
287
+ exportEls: any[];
288
+ }): boolean;
252
289
  /**
253
290
  * 当前表格元素
254
291
  */
@@ -228,6 +228,22 @@ declare global {
228
228
  showStaticFilter?: boolean
229
229
  // 保存筛选到本地
230
230
  saveStaticFilter?: boolean
231
+
232
+ /**
233
+ * pageIndex key
234
+ */
235
+ pageIndexKey?: string
236
+
237
+ /**
238
+ * pageSize key
239
+ */
240
+ pageSizeKey?: string
241
+
242
+ /**
243
+ * api请求导出每次请求页数
244
+ */
245
+ exportPageSize?: number
246
+
231
247
  // xlsx配置
232
248
  xlsx?: {
233
249
  // 单元格合并规则