@shaonq/vue 1.2.11 → 1.3.0

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,6 +1540,7 @@ 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[];
@@ -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>, {
@@ -1524,7 +1603,7 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
1524
1603
  rowIndex: number;
1525
1604
  columnIndex: number;
1526
1605
  value: any;
1527
- updateValue: (value: any) => void;
1606
+ updateValue: (value: string | number | boolean | RecordAny_2 | null) => void;
1528
1607
  formatValue: any;
1529
1608
  }): any;
1530
1609
  footer?(_: {}): 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
  /** 数据源,默认值为空数组 */
@@ -1703,6 +1780,12 @@ declare type Props_2 = {
1703
1780
  };
1704
1781
  };
1705
1782
 
1783
+ /**
1784
+ * TODO:
1785
+ * 1 size 继承
1786
+ * 2 utils.resetFields()
1787
+ * 3 自动区分 请选择 请输入
1788
+ */
1706
1789
  declare interface Props_3 {
1707
1790
  isView?: boolean;
1708
1791
  disabled?: boolean;
@@ -1726,6 +1809,22 @@ declare type Props_4 = {
1726
1809
  printData?: Record<string, any>;
1727
1810
  };
1728
1811
 
1812
+ /**
1813
+ * 并发执行一组异步任务函数,并返回按顺序排列的结果数组。
1814
+ * 如果某个任务出错,则对应位置返回 `null`,不会中断其他任务。
1815
+ *
1816
+ * @description https://github.com/sindresorhus/p-queue
1817
+ * @template T - 每个任务成功时返回的数据类型
1818
+ * @param {(() => Promise<T>)[]} tasks - 要并发执行的一组无参异步任务函数数组
1819
+ * @param {number} [concurrency=5] - 最大并发数量,默认为 5
1820
+ * - 最小值:1
1821
+ * - 最大值:Infinity
1822
+ * @returns {Promise<(T | null)[]>} - 返回一个 Promise,解析为结果数组:
1823
+ * - 成功:T 类型的值
1824
+ * - 失败:null
1825
+ */
1826
+ export declare function queueMap<T>(tasks: (() => Promise<T>)[], concurrency?: number): Promise<(T | null)[]>;
1827
+
1729
1828
  export declare type RecordAny = Record<string, any>;
1730
1829
 
1731
1830
  declare type RecordAny_2 = Record<string, any>;
@@ -1814,7 +1913,7 @@ export declare function typeName(o: unknown): string;
1814
1913
  * { type: 'date', name: 'd2', label: '日期范围', multiple: true, defaultValue: '2024-07-01,2024-08-07' },
1815
1914
  * ```
1816
1915
  */
1817
- export declare function useOrcSearch(list: OrcSearchItem[]): readonly [ Ref<{
1916
+ export declare function useOrcSearch(initialList: OrcSearchItem[] | (() => OrcSearchItem[]), local?: Ref<string>): readonly [Ref<{
1818
1917
  [x: string]: any;
1819
1918
  type?: string | undefined;
1820
1919
  name: string;
@@ -1833,7 +1932,7 @@ export declare function useOrcSearch(list: OrcSearchItem[]): readonly [ Ref<{
1833
1932
  showTime?: boolean | undefined;
1834
1933
  required?: boolean | undefined;
1835
1934
  rules?: RecordAny | RecordAny[] | undefined;
1836
- }[], {
1935
+ }[], OrcSearchItem[] | {
1837
1936
  [x: string]: any;
1838
1937
  type?: string | undefined;
1839
1938
  name: string;
@@ -1852,7 +1951,7 @@ export declare function useOrcSearch(list: OrcSearchItem[]): readonly [ Ref<{
1852
1951
  showTime?: boolean | undefined;
1853
1952
  required?: boolean | undefined;
1854
1953
  rules?: RecordAny | RecordAny[] | undefined;
1855
- }[]>, Ref<RecordAny, RecordAny>];
1954
+ }[]>, Ref<Record<string, any>, Record<string, any>>];
1856
1955
 
1857
1956
  export declare const useOrcTable: (option: OrcTableOption) => {
1858
1957
  tableRef: Ref<{
@@ -1972,6 +2071,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
1972
2071
  updateData: () => Promise<void>;
1973
2072
  loadData: (data: any[]) => Promise<any>;
1974
2073
  reloadData: (data: any[]) => Promise<void>;
2074
+ setRow: (rows: any, record?: any) => Promise<void>;
1975
2075
  reloadRow: (rows: any, record?: any, field?: string | undefined) => Promise<void>;
1976
2076
  loadTreeChildren: (row: any, children: any[]) => Promise<any[]>;
1977
2077
  loadColumn: (columns: (VxeTableDefines.ColumnInfo<any> | VxeTableDefines.ColumnOptions<any>)[]) => Promise<any>;
@@ -2045,6 +2145,12 @@ export declare const useOrcTable: (option: OrcTableOption) => {
2045
2145
  fixed?: boolean | undefined;
2046
2146
  order?: boolean | undefined;
2047
2147
  } | undefined) => Promise<void>;
2148
+ resetCustom: (options?: boolean | {
2149
+ visible?: boolean | undefined;
2150
+ resizable?: boolean | undefined;
2151
+ fixed?: boolean | undefined;
2152
+ order?: boolean | undefined;
2153
+ } | undefined) => Promise<void>;
2048
2154
  refreshColumn: (resiveOrder?: boolean | undefined) => Promise<void>;
2049
2155
  refreshScroll: () => Promise<void>;
2050
2156
  recalculate: (refull?: boolean | undefined) => Promise<void>;
@@ -2147,6 +2253,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
2147
2253
  updateData: () => Promise<void>;
2148
2254
  loadData: (data: any[]) => Promise<any>;
2149
2255
  reloadData: (data: any[]) => Promise<void>;
2256
+ setRow: (rows: any, record?: any) => Promise<void>;
2150
2257
  reloadRow: (rows: any, record?: any, field?: string | undefined) => Promise<void>;
2151
2258
  loadTreeChildren: (row: any, children: any[]) => Promise<any[]>;
2152
2259
  loadColumn: (columns: (VxeTableDefines.ColumnInfo<any> | VxeTableDefines.ColumnOptions<any>)[]) => Promise<any>;
@@ -2220,6 +2327,12 @@ export declare const useOrcTable: (option: OrcTableOption) => {
2220
2327
  fixed?: boolean | undefined;
2221
2328
  order?: boolean | undefined;
2222
2329
  } | undefined) => Promise<void>;
2330
+ resetCustom: (options?: boolean | {
2331
+ visible?: boolean | undefined;
2332
+ resizable?: boolean | undefined;
2333
+ fixed?: boolean | undefined;
2334
+ order?: boolean | undefined;
2335
+ } | undefined) => Promise<void>;
2223
2336
  refreshColumn: (resiveOrder?: boolean | undefined) => Promise<void>;
2224
2337
  refreshScroll: () => Promise<void>;
2225
2338
  recalculate: (refull?: boolean | undefined) => Promise<void>;
@@ -2319,6 +2432,22 @@ export declare const useOrcTable: (option: OrcTableOption) => {
2319
2432
  selectedKeys: Ref<string[], string[]>;
2320
2433
  };
2321
2434
 
2435
+ /**
2436
+ * 自定义钩子函数,用于处理页脚样式和计算合计值。
2437
+ * fields?: string[]
2438
+ */
2439
+ export declare function useOrcTableFooter(fields?: string[], config?: {
2440
+ total?: string;
2441
+ affixIndex?: number;
2442
+ ignoreIndex?: number;
2443
+ }): {
2444
+ footerStyle: any;
2445
+ footerMethod({ columns, data }: {
2446
+ columns: RecordAny_2[];
2447
+ data: RecordAny_2[];
2448
+ }): string[][];
2449
+ };
2450
+
2322
2451
  export declare function useState<T extends Record<string, any>>(initValue?: T, formsRef?: Ref<{
2323
2452
  resetFields?: () => void;
2324
2453
  }>): [Ref<T>, (defValue?: Partial<T>) => void];