@gx-design-vue/pro-table 0.1.9 → 0.1.11

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.
@@ -188,7 +188,12 @@ declare const GProTable: import("vue").DefineComponent<{
188
188
  };
189
189
  expandedRowRender: {
190
190
  type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").ExpandedRowRender<any>>;
191
- default: any;
191
+ default: any; /**
192
+ * @Author gx12358
193
+ * @DateTime 2022/1/21
194
+ * @lastTime 2022/1/21
195
+ * @description Tabel-loading hooks 方法
196
+ */
192
197
  };
193
198
  expandRowByClick: {
194
199
  type: import("vue").PropType<boolean>;
@@ -217,7 +222,12 @@ declare const GProTable: import("vue").DefineComponent<{
217
222
  indentSize: {
218
223
  type: import("vue").PropType<number>;
219
224
  default: any;
220
- };
225
+ }; /**
226
+ * @Author gx12358
227
+ * @DateTime 2022/1/21
228
+ * @lastTime 2022/1/21
229
+ * @description Tabel-scroll hooks 方法
230
+ */
221
231
  expandIconColumnIndex: {
222
232
  type: import("vue").PropType<number>;
223
233
  default: any;
@@ -228,6 +238,12 @@ declare const GProTable: import("vue").DefineComponent<{
228
238
  };
229
239
  expandedRowClassName: {
230
240
  type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").RowClassName<any>>;
241
+ /**
242
+ * @Author gx12358
243
+ * @DateTime 2022/1/21
244
+ * @lastTime 2022/1/21
245
+ * @description Tabel-colums hooks 方法
246
+ */
231
247
  default: any;
232
248
  };
233
249
  childrenColumnName: {
@@ -268,7 +284,12 @@ declare const GProTable: import("vue").DefineComponent<{
268
284
  };
269
285
  onChange: {
270
286
  type: import("vue").PropType<(pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue | null>, sorter: import("ant-design-vue/es/table/interface").SorterResult<any> | import("ant-design-vue/es/table/interface").SorterResult<any>[], extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void>;
271
- default: any;
287
+ default: any; /**
288
+ * @Author gx12358
289
+ * @DateTime 2022/1/21
290
+ * @lastTime 2022/1/21
291
+ * @description Tabel-datasource hooks 方法
292
+ */
272
293
  };
273
294
  onResizeColumn: {
274
295
  type: import("vue").PropType<(w: number, col: import("ant-design-vue/es/table/interface").ColumnType<any>) => void>;
@@ -533,7 +554,12 @@ declare const GProTable: import("vue").DefineComponent<{
533
554
  };
534
555
  expandedRowRender: {
535
556
  type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").ExpandedRowRender<any>>;
536
- default: any;
557
+ default: any; /**
558
+ * @Author gx12358
559
+ * @DateTime 2022/1/21
560
+ * @lastTime 2022/1/21
561
+ * @description Tabel-loading hooks 方法
562
+ */
537
563
  };
538
564
  expandRowByClick: {
539
565
  type: import("vue").PropType<boolean>;
@@ -562,7 +588,12 @@ declare const GProTable: import("vue").DefineComponent<{
562
588
  indentSize: {
563
589
  type: import("vue").PropType<number>;
564
590
  default: any;
565
- };
591
+ }; /**
592
+ * @Author gx12358
593
+ * @DateTime 2022/1/21
594
+ * @lastTime 2022/1/21
595
+ * @description Tabel-scroll hooks 方法
596
+ */
566
597
  expandIconColumnIndex: {
567
598
  type: import("vue").PropType<number>;
568
599
  default: any;
@@ -573,6 +604,12 @@ declare const GProTable: import("vue").DefineComponent<{
573
604
  };
574
605
  expandedRowClassName: {
575
606
  type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").RowClassName<any>>;
607
+ /**
608
+ * @Author gx12358
609
+ * @DateTime 2022/1/21
610
+ * @lastTime 2022/1/21
611
+ * @description Tabel-colums hooks 方法
612
+ */
576
613
  default: any;
577
614
  };
578
615
  childrenColumnName: {
@@ -613,7 +650,12 @@ declare const GProTable: import("vue").DefineComponent<{
613
650
  };
614
651
  onChange: {
615
652
  type: import("vue").PropType<(pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue | null>, sorter: import("ant-design-vue/es/table/interface").SorterResult<any> | import("ant-design-vue/es/table/interface").SorterResult<any>[], extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void>;
616
- default: any;
653
+ default: any; /**
654
+ * @Author gx12358
655
+ * @DateTime 2022/1/21
656
+ * @lastTime 2022/1/21
657
+ * @description Tabel-datasource hooks 方法
658
+ */
617
659
  };
618
660
  onResizeColumn: {
619
661
  type: import("vue").PropType<(w: number, col: import("ant-design-vue/es/table/interface").ColumnType<any>) => void>;
@@ -2,6 +2,7 @@ import type { Ref, ComputedRef } from 'vue';
2
2
  import type { ProCoreActionType, ProCoreFormType, ProTableRef } from '../types/TableTypings';
3
3
  export declare function useTable(tableRef: Ref<ProTableRef>): {
4
4
  params: ComputedRef<Record<string, any>>;
5
+ pageInfo: ComputedRef<Record<string, any>>;
5
6
  loading: ComputedRef<ProCoreActionType['getLoadingStatus']>;
6
7
  reload: ProCoreActionType['reload'];
7
8
  mutate: ProCoreActionType['reSetDataList'];
@@ -30,6 +30,11 @@ function useTable(tableRef) {
30
30
  ...((_c = formRef.value) == null ? void 0 : _c.formParams) || {}
31
31
  };
32
32
  });
33
+ const pageInfo = computed(() => {
34
+ var _a, _b;
35
+ const pageParams = isBoolean((_a = actionRef.value) == null ? void 0 : _a.pageParams) ? {} : ((_b = actionRef.value) == null ? void 0 : _b.pageParams) || {};
36
+ return pageParams;
37
+ });
33
38
  const loading = computed(() => {
34
39
  var _a;
35
40
  return ((_a = actionRef.value) == null ? void 0 : _a.getLoadingStatus) || false;
@@ -50,6 +55,7 @@ function useTable(tableRef) {
50
55
  formRef,
51
56
  actionRef,
52
57
  params,
58
+ pageInfo,
53
59
  loading,
54
60
  setPage,
55
61
  mutate,
@@ -30003,7 +30009,7 @@ const GProTable = defineComponent({
30003
30009
  "toolBarBtn": toolBarBtn
30004
30010
  }, null);
30005
30011
  return () => {
30006
- var _a, _b;
30012
+ var _a, _b, _c;
30007
30013
  const headerTitleRender = getSlotVNode(slots, props2, "headerTitle");
30008
30014
  const titleTipRender = getSlotVNode(slots, props2, "titleTip");
30009
30015
  const toolBarBtnRender = getSlotVNode(slots, props2, "toolBarBtn");
@@ -30018,7 +30024,7 @@ const GProTable = defineComponent({
30018
30024
  "modal": props2.modalScroll,
30019
30025
  "searchMap": formDataRef.value,
30020
30026
  "prefixCls": baseClassName,
30021
- "loading": !!unref(getLoading),
30027
+ "loading": (_b = unref(getBindValues).loading) == null ? void 0 : _b.spinning,
30022
30028
  "onSearch": handleTableSubmit,
30023
30029
  "defaultParams": defaultParamsRef
30024
30030
  }, {
@@ -30026,9 +30032,7 @@ const GProTable = defineComponent({
30026
30032
  var _a2;
30027
30033
  return (_a2 = slots.search) == null ? void 0 : _a2.call(slots);
30028
30034
  } : null
30029
- }), !needVirtualScroll.value && toolbarDom(headerTitleRender, toolBarBtnRender, titleTipRender), !!((_b = props2.customRender) != null ? _b : slots.customRender) ? createVNode(Spin$1, {
30030
- "spinning": !!unref(getLoading)
30031
- }, {
30035
+ }), !needVirtualScroll.value && toolbarDom(headerTitleRender, toolBarBtnRender, titleTipRender), !!((_c = props2.customRender) != null ? _c : slots.customRender) ? createVNode(Spin$1, unref(getBindValues).loading, {
30032
30036
  default: () => {
30033
30037
  var _a2;
30034
30038
  return [renderCustomize(), !!((_a2 = dataSourceRef.value) == null ? void 0 : _a2.length) && createVNode(Pagination$2, mergeProps({