tutor-pro-ui-vue 1.2.98-beta → 1.3.2-beta

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.
@@ -578,6 +578,7 @@ export declare const useInitTable: (props: CommonTableProps, table?: Ref<TableIn
578
578
  };
579
579
  getTableData: () => any[];
580
580
  treeOriginalData: Ref<any[], any[]>;
581
+ sortParams: Ref<any, any>;
581
582
  };
582
583
  /**
583
584
  * 当form表单值改变时,自动请求数据
@@ -1,3 +1,4 @@
1
+ import { TableColumnCtx } from 'element-plus';
1
2
  declare function __VLS_template(): {
2
3
  slots: {
3
4
  toolbar?(_: {}): any;
@@ -321,7 +322,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
321
322
  };
322
323
  };
323
324
  readonly expandConfig: {
324
- readonly type: import('vue').PropType<Partial<import('element-plus').TableColumnCtx<any>>>;
325
+ readonly type: import('vue').PropType<Partial<TableColumnCtx<any>>>;
325
326
  readonly default: () => undefined;
326
327
  };
327
328
  readonly selectData: {
@@ -344,6 +345,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
344
345
  readonly type: import('vue').PropType<import('../../types').CommonButtonProps>;
345
346
  readonly default: () => void;
346
347
  };
348
+ readonly onBeforeReset: {
349
+ readonly type: import('vue').PropType<import('./types').OnBeforeReset>;
350
+ readonly default: () => () => Promise<void>;
351
+ };
347
352
  readonly resetBtn: {
348
353
  readonly type: import('vue').PropType<import('../../types').CommonButtonProps>;
349
354
  readonly default: () => void;
@@ -419,7 +424,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
419
424
  };
420
425
  };
421
426
  readonly expandConfig: {
422
- readonly type: import('vue').PropType<Partial<import('element-plus').TableColumnCtx<any>>>;
427
+ readonly type: import('vue').PropType<Partial<TableColumnCtx<any>>>;
423
428
  readonly default: () => undefined;
424
429
  };
425
430
  readonly selectData: {
@@ -442,6 +447,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
442
447
  readonly type: import('vue').PropType<import('../../types').CommonButtonProps>;
443
448
  readonly default: () => void;
444
449
  };
450
+ readonly onBeforeReset: {
451
+ readonly type: import('vue').PropType<import('./types').OnBeforeReset>;
452
+ readonly default: () => () => Promise<void>;
453
+ };
445
454
  readonly resetBtn: {
446
455
  readonly type: import('vue').PropType<import('../../types').CommonButtonProps>;
447
456
  readonly default: () => void;
@@ -459,13 +468,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
459
468
  readonly formState: Record<string, any>;
460
469
  readonly showOverflowTooltip: boolean;
461
470
  readonly selectable: (row: any, index?: number) => boolean;
462
- readonly columns: Partial<import('element-plus').TableColumnCtx<any> & {
471
+ readonly columns: Partial<TableColumnCtx<any> & {
463
472
  isHidden: () => boolean;
464
473
  renderCell: ({ record }: {
465
474
  record: any;
466
475
  }) => import('vue').VNode | any;
467
476
  headerTooltip?: string | import('vue').VNode;
468
- columnChildren?: Partial<import('element-plus').TableColumnCtx<any> & any>[] | undefined;
477
+ columnChildren?: Partial<TableColumnCtx<any> & any>[] | undefined;
469
478
  }>[];
470
479
  readonly formConfig: Partial<import('../../CommonForm').CommonFormProps>;
471
480
  readonly indexConfig: {
@@ -479,7 +488,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
479
488
  key?: string;
480
489
  isAcrossPage?: boolean;
481
490
  };
482
- readonly expandConfig: Partial<import('element-plus').TableColumnCtx<any>>;
491
+ readonly expandConfig: Partial<TableColumnCtx<any>>;
483
492
  readonly selectData: any[];
484
493
  readonly tableData: any[];
485
494
  readonly rightBtns: boolean | import('../../CommonButtonGroup').GroupBtn[];
@@ -489,6 +498,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
489
498
  [x: number]: any;
490
499
  [x: symbol]: any;
491
500
  } & Omit<import('element-plus').ButtonProps, "icon">>;
501
+ readonly onBeforeReset: import('./types').OnBeforeReset;
492
502
  readonly resetBtn: Partial<{
493
503
  [x: string]: any;
494
504
  } & {
@@ -18,6 +18,7 @@ export type RequestData<T> = {
18
18
  list: T[];
19
19
  total: number;
20
20
  };
21
+ export type OnBeforeReset = () => Promise<void> | void;
21
22
  export declare const tableProps: {
22
23
  readonly formConfig: {
23
24
  readonly type: PropType<Partial<CommonFormProps>>;
@@ -97,6 +98,10 @@ export declare const tableProps: {
97
98
  readonly type: PropType<CommonButtonProps>;
98
99
  readonly default: () => void;
99
100
  };
101
+ readonly onBeforeReset: {
102
+ readonly type: PropType<OnBeforeReset>;
103
+ readonly default: () => () => Promise<void>;
104
+ };
100
105
  readonly resetBtn: {
101
106
  readonly type: PropType<CommonButtonProps>;
102
107
  readonly default: () => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tutor-pro-ui-vue",
3
3
  "private": false,
4
- "version": "1.2.98-beta",
4
+ "version": "1.3.2-beta",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",