@shaonq/vue 1.2.11 → 1.2.18

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/lib/index.d.ts CHANGED
@@ -42,6 +42,8 @@ declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
42
42
 
43
43
  declare type __VLS_NonUndefinedable_6<T> = T extends undefined ? never : T;
44
44
 
45
+ declare type __VLS_NonUndefinedable_7<T> = T extends undefined ? never : T;
46
+
45
47
  declare type __VLS_Prettify<T> = {
46
48
  [K in keyof T]: T[K];
47
49
  } & {};
@@ -66,6 +68,10 @@ declare type __VLS_Prettify_6<T> = {
66
68
  [K in keyof T]: T[K];
67
69
  } & {};
68
70
 
71
+ declare type __VLS_Prettify_7<T> = {
72
+ [K in keyof T]: T[K];
73
+ } & {};
74
+
69
75
  declare type __VLS_TypePropsToRuntimeProps<T> = {
70
76
  [K in keyof T]-?: {} extends Pick<T, K> ? {
71
77
  type: PropType<__VLS_NonUndefinedable<T[K]>>;
@@ -120,6 +126,15 @@ declare type __VLS_TypePropsToRuntimeProps_6<T> = {
120
126
  };
121
127
  };
122
128
 
129
+ declare type __VLS_TypePropsToRuntimeProps_7<T> = {
130
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
131
+ type: PropType<__VLS_NonUndefinedable_7<T[K]>>;
132
+ } : {
133
+ type: PropType<T[K]>;
134
+ required: true;
135
+ };
136
+ };
137
+
123
138
  declare type __VLS_WithDefaults<P, D> = {
124
139
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
125
140
  default: D[K];
@@ -156,6 +171,12 @@ declare type __VLS_WithDefaults_6<P, D> = {
156
171
  }> : P[K];
157
172
  };
158
173
 
174
+ declare type __VLS_WithDefaults_7<P, D> = {
175
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_7<P[K] & {
176
+ default: D[K];
177
+ }> : P[K];
178
+ };
179
+
159
180
  declare type __VLS_WithTemplateSlots<T, S> = T & {
160
181
  new (): {
161
182
  $slots: S;
@@ -222,14 +243,6 @@ declare const _default: {
222
243
  };
223
244
  export default _default;
224
245
 
225
- /**
226
- * @param name 下载名称
227
- * @param element HTMLElement
228
- * @param {Object} option html2canvas|jsPDF 详见对应插件文档
229
- * @param {string} option.letterRendering 打印方向 landscape 横向
230
- * @param {string} option.className 例 class = 'one-page-pdf' ,大量打印必填
231
- * @param {string} option.success successCallback worker:any => void
232
- */
233
246
  export declare function delay(ms: number): Promise<unknown>;
234
247
 
235
248
  export declare const download: (url: string, fileName?: string) => boolean;
@@ -248,7 +261,7 @@ export declare const download: (url: string, fileName?: string) => boolean;
248
261
  * @throws 如果未传入 element,则抛出错误
249
262
  *
250
263
  * 注意事项:
251
- * - 使用 snapdom或htmlToImage 将 HTML 渲染为 Canvas
264
+ * - 使用 snapdom(替换了htmlToImage) 将 HTML 渲染为 Canvas
252
265
  * - 使用 jsPDF 将 Canvas 添加到 PDF 文档
253
266
  * - 默认 A4 格式纵向,可自定义通过 `option.orientation`
254
267
  * - 当内容高度超过一页时会自动分页
@@ -311,6 +324,14 @@ export declare const getUniqueId: () => string;
311
324
 
312
325
  export { hiprint }
313
326
 
327
+ declare type I18nKeys = Record<keyof (typeof lang)['zh-CN'], string>;
328
+
329
+ declare type I18nKeys_2 = Record<keyof (typeof lang_2)['zh-CN'], string>;
330
+
331
+ declare type I18nType = keyof typeof lang | I18nKeys;
332
+
333
+ declare type I18nType_2 = keyof typeof lang_2 | I18nKeys_2;
334
+
314
335
  /** isArray */
315
336
  export declare function isArray(obj: any): obj is any[];
316
337
 
@@ -326,6 +347,69 @@ export declare function isNumber(obj: any): obj is number;
326
347
  /** isObject */
327
348
  export declare function isObject(value: unknown): value is Record<string, any>;
328
349
 
350
+ declare const lang: {
351
+ 'zh-CN': {
352
+ stripedTable: string;
353
+ refresh: string;
354
+ settings: string;
355
+ reset: string;
356
+ cancel: string;
357
+ confirm: string;
358
+ selection: string;
359
+ totalItems: string;
360
+ open: string;
361
+ close: string;
362
+ };
363
+ 'en-US': {
364
+ stripedTable: string;
365
+ refresh: string;
366
+ settings: string;
367
+ reset: string;
368
+ cancel: string;
369
+ confirm: string;
370
+ selection: string;
371
+ totalItems: string;
372
+ open: string;
373
+ close: string;
374
+ };
375
+ 'ja-JP': {
376
+ stripedTable: string;
377
+ refresh: string;
378
+ settings: string;
379
+ reset: string;
380
+ cancel: string;
381
+ confirm: string;
382
+ selection: string;
383
+ totalItems: string;
384
+ open: string;
385
+ close: string;
386
+ };
387
+ };
388
+
389
+ declare const lang_2: {
390
+ 'zh-CN': {
391
+ resetSearch: string;
392
+ fieldName: string;
393
+ add: string;
394
+ delete: string;
395
+ search: string;
396
+ };
397
+ 'en-US': {
398
+ resetSearch: string;
399
+ fieldName: string;
400
+ add: string;
401
+ delete: string;
402
+ search: string;
403
+ };
404
+ 'ja-JP': {
405
+ resetSearch: string;
406
+ fieldName: string;
407
+ add: string;
408
+ delete: string;
409
+ search: string;
410
+ };
411
+ };
412
+
329
413
  export declare const locale: {
330
414
  enUS: {
331
415
  fe: {
@@ -714,6 +798,7 @@ export declare const locale: {
714
798
  /** 日志 */
715
799
  export declare function log(...args: any[]): void;
716
800
 
801
+ /** 合并配置文件 */
717
802
  export declare function mergeConfig(defaults: RecordAny, overrides: RecordAny, isRoot?: boolean): RecordAny;
718
803
 
719
804
  declare type ModalInstance = InstanceType<typeof Modal>;
@@ -723,8 +808,6 @@ export declare function omitObject<T extends RecordAny>(obj: T, keys?: string |
723
808
 
724
809
  export declare function onConfirm(callback: () => void, options?: ModalConfig, type?: keyof ModalMethod): void;
725
810
 
726
- declare function onShow(): void;
727
-
728
811
  declare function onSubmit(): Promise<[boolean, any]>;
729
812
 
730
813
  declare function onSubmit_2(): Promise<void>;
@@ -770,7 +853,7 @@ export declare const OrcDesign: DefineComponent<ExtractPropTypes<{
770
853
  remoteFuncs: Record<string, any>;
771
854
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
772
855
 
773
- export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
856
+ export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<{
774
857
  config?: OrcFormItem[] | undefined;
775
858
  labelWidth?: string | undefined;
776
859
  labelAlign?: "left" | "right" | undefined;
@@ -805,7 +888,7 @@ export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<Extract
805
888
  error: (...args: any[]) => void;
806
889
  submit: (...args: any[]) => void;
807
890
  "update:modelValue": (...args: any[]) => void;
808
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
891
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<{
809
892
  config?: OrcFormItem[] | undefined;
810
893
  labelWidth?: string | undefined;
811
894
  labelAlign?: "left" | "right" | undefined;
@@ -859,13 +942,15 @@ export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<Extract
859
942
  } & Pick<OrcFormUtil, "onChange" | "onMounted">;
860
943
  componentAttr: RecordAny_3;
861
944
  }) => any>> & {
862
- row?(_: {}): any;
945
+ row?(_: {
946
+ onSubmit: typeof onSubmit;
947
+ }): any;
863
948
  default?(_: {
864
949
  onSubmit: typeof onSubmit;
865
950
  }): any;
866
951
  }>;
867
952
 
868
- export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<Props_3>, {
953
+ export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<Props_3>, {
869
954
  title: string;
870
955
  modelValue: undefined;
871
956
  gutter: number;
@@ -874,7 +959,7 @@ export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<E
874
959
  "update:modelValue": (data: RecordAny) => void;
875
960
  submit: (data: OrcFormSubmit) => void;
876
961
  error: (data: any) => void;
877
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<Props_3>, {
962
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<Props_3>, {
878
963
  title: string;
879
964
  modelValue: undefined;
880
965
  gutter: number;
@@ -885,16 +970,22 @@ export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<E
885
970
  "onUpdate:modelValue"?: ((data: RecordAny) => any) | undefined;
886
971
  }>, {
887
972
  title: string;
888
- size: "medium" | "small" | "mini" | "large";
973
+ size: "large" | "medium" | "small" | "mini";
889
974
  modelValue: RecordAny;
890
975
  gutter: number;
891
976
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
892
977
  icon?(_: {}): any;
893
978
  default?(_: {
894
979
  onSubmit: typeof onSubmit_2;
895
- onShow: typeof onShow;
980
+ onShow: () => void;
981
+ }): any;
982
+ row?(_: {
983
+ onShow: () => void;
984
+ }): any;
985
+ footer?(_: {
986
+ onShow: () => void;
987
+ onHide: () => void;
896
988
  }): any;
897
- row?(_: {}): any;
898
989
  }>;
899
990
 
900
991
  /**
@@ -1053,7 +1144,7 @@ export declare const OrcHiddenView: __VLS_WithTemplateSlots_2< DefineComponent<E
1053
1144
  default?(_: {}): any;
1054
1145
  }>;
1055
1146
 
1056
- export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<Props_4>, {
1147
+ export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_7<Props_4>, {
1057
1148
  template: undefined;
1058
1149
  fields: undefined;
1059
1150
  printData: undefined;
@@ -1064,7 +1155,7 @@ export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<Extr
1064
1155
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1065
1156
  onChange: (...args: any[]) => void;
1066
1157
  onSave: (...args: any[]) => void;
1067
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<Props_4>, {
1158
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_7<Props_4>, {
1068
1159
  template: undefined;
1069
1160
  fields: undefined;
1070
1161
  printData: undefined;
@@ -1337,7 +1428,7 @@ export declare const OrcQuill: DefineComponent<ExtractPropTypes<{
1337
1428
  default: string;
1338
1429
  };
1339
1430
  toolbar: {
1340
- type: (StringConstructor | ArrayConstructor)[];
1431
+ type: (ArrayConstructor | StringConstructor)[];
1341
1432
  default: string;
1342
1433
  };
1343
1434
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -1348,7 +1439,7 @@ export declare const OrcQuill: DefineComponent<ExtractPropTypes<{
1348
1439
  default: string;
1349
1440
  };
1350
1441
  toolbar: {
1351
- type: (StringConstructor | ArrayConstructor)[];
1442
+ type: (ArrayConstructor | StringConstructor)[];
1352
1443
  default: string;
1353
1444
  };
1354
1445
  }>> & Readonly<{
@@ -1358,65 +1449,50 @@ export declare const OrcQuill: DefineComponent<ExtractPropTypes<{
1358
1449
  toolbar: string | unknown[];
1359
1450
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1360
1451
 
1361
- export declare const OrcSearch: __VLS_WithTemplateSlots_4< DefineComponent<ExtractPropTypes<{
1362
- loading: BooleanConstructor;
1363
- readonly: BooleanConstructor;
1364
- options: {
1365
- type: PropType<OrcSearchItem[]>;
1366
- default(): never[];
1367
- };
1368
- modelValue: {
1369
- type: ObjectConstructor;
1370
- default(): {};
1371
- };
1372
- size: {
1373
- type: StringConstructor;
1374
- default: string;
1375
- };
1376
- labelWidth: {
1377
- type: StringConstructor;
1378
- default: string;
1379
- };
1380
- inputWidth: {
1381
- type: StringConstructor;
1382
- default: string;
1383
- };
1384
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1452
+ export declare const OrcSearch: __VLS_WithTemplateSlots_4< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
1453
+ loading?: boolean | undefined;
1454
+ readonly?: boolean | undefined;
1455
+ options?: OrcSearchItem[] | undefined;
1456
+ modelValue?: object | undefined;
1457
+ size?: string | undefined;
1458
+ labelWidth?: string | undefined;
1459
+ inputWidth?: string | undefined;
1460
+ locale?: I18nType_2 | undefined;
1461
+ }>, {
1462
+ options: () => never[];
1463
+ modelValue: () => {};
1464
+ size: string;
1465
+ labelWidth: string;
1466
+ inputWidth: string;
1467
+ locale: string;
1468
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1385
1469
  "update:modelValue": (...args: any[]) => void;
1386
1470
  onSearch: (...args: any[]) => void;
1387
- }, string, PublicProps, Readonly< ExtractPropTypes<{
1388
- loading: BooleanConstructor;
1389
- readonly: BooleanConstructor;
1390
- options: {
1391
- type: PropType<OrcSearchItem[]>;
1392
- default(): never[];
1393
- };
1394
- modelValue: {
1395
- type: ObjectConstructor;
1396
- default(): {};
1397
- };
1398
- size: {
1399
- type: StringConstructor;
1400
- default: string;
1401
- };
1402
- labelWidth: {
1403
- type: StringConstructor;
1404
- default: string;
1405
- };
1406
- inputWidth: {
1407
- type: StringConstructor;
1408
- default: string;
1409
- };
1410
- }>> & Readonly<{
1471
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
1472
+ loading?: boolean | undefined;
1473
+ readonly?: boolean | undefined;
1474
+ options?: OrcSearchItem[] | undefined;
1475
+ modelValue?: object | undefined;
1476
+ size?: string | undefined;
1477
+ labelWidth?: string | undefined;
1478
+ inputWidth?: string | undefined;
1479
+ locale?: I18nType_2 | undefined;
1480
+ }>, {
1481
+ options: () => never[];
1482
+ modelValue: () => {};
1483
+ size: string;
1484
+ labelWidth: string;
1485
+ inputWidth: string;
1486
+ locale: string;
1487
+ }>>> & Readonly<{
1411
1488
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1412
1489
  onOnSearch?: ((...args: any[]) => any) | undefined;
1413
1490
  }>, {
1414
- loading: boolean;
1415
1491
  size: string;
1416
- modelValue: Record<string, any>;
1492
+ locale: I18nType_2;
1493
+ modelValue: object;
1417
1494
  labelWidth: string;
1418
1495
  options: OrcSearchItem[];
1419
- readonly: boolean;
1420
1496
  inputWidth: string;
1421
1497
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
1422
1498
  head?(_: {}): any;
@@ -1464,10 +1540,11 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
1464
1540
  option: () => {
1465
1541
  columns: never[];
1466
1542
  };
1543
+ locale: string;
1467
1544
  }>>, {
1468
1545
  getRowKey(): string;
1469
1546
  getTableData(): RecordAny_2[];
1470
- getSelection(): RecordAny_2[];
1547
+ getSelection(): RecordAny_2[]; /** skip empty rows */
1471
1548
  getCheckboxKeySelection(keys?: string[] | undefined): RecordAny_2[];
1472
1549
  getReserveSelection(): RecordAny_2[];
1473
1550
  clearSelection(): void;
@@ -1488,10 +1565,10 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
1488
1565
  loadData(list: any[]): void;
1489
1566
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1490
1567
  "update:selectedKeys": (...args: any[]) => void;
1568
+ confirm: (...args: any[]) => void;
1491
1569
  change: (...args: any[]) => void;
1492
1570
  cellClick: (...args: any[]) => void;
1493
1571
  onReset: (...args: any[]) => void;
1494
- confirm: (...args: any[]) => void;
1495
1572
  cellDblclick: (...args: any[]) => void;
1496
1573
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
1497
1574
  isHover: boolean;
@@ -1501,17 +1578,19 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
1501
1578
  option: () => {
1502
1579
  columns: never[];
1503
1580
  };
1581
+ locale: string;
1504
1582
  }>>> & Readonly<{
1505
1583
  "onUpdate:selectedKeys"?: ((...args: any[]) => any) | undefined;
1584
+ onConfirm?: ((...args: any[]) => any) | undefined;
1506
1585
  onChange?: ((...args: any[]) => any) | undefined;
1507
1586
  onCellClick?: ((...args: any[]) => any) | undefined;
1508
1587
  onOnReset?: ((...args: any[]) => any) | undefined;
1509
- onConfirm?: ((...args: any[]) => any) | undefined;
1510
1588
  onCellDblclick?: ((...args: any[]) => any) | undefined;
1511
1589
  }>, {
1512
1590
  data: RecordAny_2[];
1513
1591
  option: OrcTableOption;
1514
- size: "medium" | "small" | "mini";
1592
+ size: "large" | "medium" | "small" | "mini";
1593
+ locale: I18nType;
1515
1594
  isHover: boolean;
1516
1595
  selectedKeys: string[];
1517
1596
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
@@ -1663,10 +1742,6 @@ export declare interface OrcTableOption extends RecordAny_2 {
1663
1742
  tableProps?: TableInstance['$props'];
1664
1743
  }
1665
1744
 
1666
- export declare function pAll<T>(tasks: (() => Promise<T>)[], { concurrency }?: {
1667
- concurrency?: number | undefined;
1668
- }): Promise<any[]>;
1669
-
1670
1745
  declare interface Props {
1671
1746
  useErrData?: <T = Record<string, any>>(config: Record<string, any>) => Promise<[boolean, T]>;
1672
1747
  }
@@ -1676,6 +1751,8 @@ declare type Props_2 = {
1676
1751
  title?: string;
1677
1752
  /** 高 */
1678
1753
  height?: number | string;
1754
+ /** 多语言 */
1755
+ locale?: I18nType;
1679
1756
  /** 是否隐藏工具栏 */
1680
1757
  hideToolbar?: boolean;
1681
1758
  /** 是否隐藏设置按钮 */
@@ -1685,7 +1762,7 @@ declare type Props_2 = {
1685
1762
  /** 是否启用悬停效果,默认值为 true */
1686
1763
  isHover?: boolean;
1687
1764
  /** 表格尺寸,可选值为 'medium' | 'small' | 'mini',默认值为 'mini' */
1688
- size?: 'medium' | 'small' | 'mini';
1765
+ size?: 'large' | 'medium' | 'small' | 'mini';
1689
1766
  /** 用户选择的列表,默认值为空数组 */
1690
1767
  selectedKeys?: string[];
1691
1768
  /** 数据源,默认值为空数组 */
@@ -1726,6 +1803,22 @@ declare type Props_4 = {
1726
1803
  printData?: Record<string, any>;
1727
1804
  };
1728
1805
 
1806
+ /**
1807
+ * 并发执行一组异步任务函数,并返回按顺序排列的结果数组。
1808
+ * 如果某个任务出错,则对应位置返回 `null`,不会中断其他任务。
1809
+ *
1810
+ * @description https://github.com/sindresorhus/p-queue
1811
+ * @template T - 每个任务成功时返回的数据类型
1812
+ * @param {(() => Promise<T>)[]} tasks - 要并发执行的一组无参异步任务函数数组
1813
+ * @param {number} [concurrency=5] - 最大并发数量,默认为 5
1814
+ * - 最小值:1
1815
+ * - 最大值:Infinity
1816
+ * @returns {Promise<(T | null)[]>} - 返回一个 Promise,解析为结果数组:
1817
+ * - 成功:T 类型的值
1818
+ * - 失败:null
1819
+ */
1820
+ export declare function queueMap<T>(tasks: (() => Promise<T>)[], concurrency?: number): Promise<(T | null)[]>;
1821
+
1729
1822
  export declare type RecordAny = Record<string, any>;
1730
1823
 
1731
1824
  declare type RecordAny_2 = Record<string, any>;
@@ -1814,7 +1907,7 @@ export declare function typeName(o: unknown): string;
1814
1907
  * { type: 'date', name: 'd2', label: '日期范围', multiple: true, defaultValue: '2024-07-01,2024-08-07' },
1815
1908
  * ```
1816
1909
  */
1817
- export declare function useOrcSearch(list: OrcSearchItem[]): readonly [ Ref<{
1910
+ export declare function useOrcSearch(initialList: OrcSearchItem[] | (() => OrcSearchItem[]), local?: Ref<string>): readonly [Ref<{
1818
1911
  [x: string]: any;
1819
1912
  type?: string | undefined;
1820
1913
  name: string;
@@ -1833,7 +1926,7 @@ export declare function useOrcSearch(list: OrcSearchItem[]): readonly [ Ref<{
1833
1926
  showTime?: boolean | undefined;
1834
1927
  required?: boolean | undefined;
1835
1928
  rules?: RecordAny | RecordAny[] | undefined;
1836
- }[], {
1929
+ }[], OrcSearchItem[] | {
1837
1930
  [x: string]: any;
1838
1931
  type?: string | undefined;
1839
1932
  name: string;
@@ -1852,7 +1945,7 @@ export declare function useOrcSearch(list: OrcSearchItem[]): readonly [ Ref<{
1852
1945
  showTime?: boolean | undefined;
1853
1946
  required?: boolean | undefined;
1854
1947
  rules?: RecordAny | RecordAny[] | undefined;
1855
- }[]>, Ref<RecordAny, RecordAny>];
1948
+ }[]>, Ref<Record<string, any>, Record<string, any>>];
1856
1949
 
1857
1950
  export declare const useOrcTable: (option: OrcTableOption) => {
1858
1951
  tableRef: Ref<{
@@ -1972,6 +2065,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
1972
2065
  updateData: () => Promise<void>;
1973
2066
  loadData: (data: any[]) => Promise<any>;
1974
2067
  reloadData: (data: any[]) => Promise<void>;
2068
+ setRow: (rows: any, record?: any) => Promise<void>;
1975
2069
  reloadRow: (rows: any, record?: any, field?: string | undefined) => Promise<void>;
1976
2070
  loadTreeChildren: (row: any, children: any[]) => Promise<any[]>;
1977
2071
  loadColumn: (columns: (VxeTableDefines.ColumnInfo<any> | VxeTableDefines.ColumnOptions<any>)[]) => Promise<any>;
@@ -2045,6 +2139,12 @@ export declare const useOrcTable: (option: OrcTableOption) => {
2045
2139
  fixed?: boolean | undefined;
2046
2140
  order?: boolean | undefined;
2047
2141
  } | undefined) => Promise<void>;
2142
+ resetCustom: (options?: boolean | {
2143
+ visible?: boolean | undefined;
2144
+ resizable?: boolean | undefined;
2145
+ fixed?: boolean | undefined;
2146
+ order?: boolean | undefined;
2147
+ } | undefined) => Promise<void>;
2048
2148
  refreshColumn: (resiveOrder?: boolean | undefined) => Promise<void>;
2049
2149
  refreshScroll: () => Promise<void>;
2050
2150
  recalculate: (refull?: boolean | undefined) => Promise<void>;
@@ -2147,6 +2247,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
2147
2247
  updateData: () => Promise<void>;
2148
2248
  loadData: (data: any[]) => Promise<any>;
2149
2249
  reloadData: (data: any[]) => Promise<void>;
2250
+ setRow: (rows: any, record?: any) => Promise<void>;
2150
2251
  reloadRow: (rows: any, record?: any, field?: string | undefined) => Promise<void>;
2151
2252
  loadTreeChildren: (row: any, children: any[]) => Promise<any[]>;
2152
2253
  loadColumn: (columns: (VxeTableDefines.ColumnInfo<any> | VxeTableDefines.ColumnOptions<any>)[]) => Promise<any>;
@@ -2220,6 +2321,12 @@ export declare const useOrcTable: (option: OrcTableOption) => {
2220
2321
  fixed?: boolean | undefined;
2221
2322
  order?: boolean | undefined;
2222
2323
  } | undefined) => Promise<void>;
2324
+ resetCustom: (options?: boolean | {
2325
+ visible?: boolean | undefined;
2326
+ resizable?: boolean | undefined;
2327
+ fixed?: boolean | undefined;
2328
+ order?: boolean | undefined;
2329
+ } | undefined) => Promise<void>;
2223
2330
  refreshColumn: (resiveOrder?: boolean | undefined) => Promise<void>;
2224
2331
  refreshScroll: () => Promise<void>;
2225
2332
  recalculate: (refull?: boolean | undefined) => Promise<void>;
@@ -2319,6 +2426,22 @@ export declare const useOrcTable: (option: OrcTableOption) => {
2319
2426
  selectedKeys: Ref<string[], string[]>;
2320
2427
  };
2321
2428
 
2429
+ /**
2430
+ * 自定义钩子函数,用于处理页脚样式和计算合计值。
2431
+ * fields?: string[]
2432
+ */
2433
+ export declare function useOrcTableFooter(fields?: string[], config?: {
2434
+ total?: string;
2435
+ affixIndex?: number;
2436
+ ignoreIndex?: number;
2437
+ }): {
2438
+ footerStyle: any;
2439
+ footerMethod({ columns, data }: {
2440
+ columns: RecordAny_2[];
2441
+ data: RecordAny_2[];
2442
+ }): string[][];
2443
+ };
2444
+
2322
2445
  export declare function useState<T extends Record<string, any>>(initValue?: T, formsRef?: Ref<{
2323
2446
  resetFields?: () => void;
2324
2447
  }>): [Ref<T>, (defValue?: Partial<T>) => void];