@gx-design-vue/pro-table 0.2.0-alpha.10 → 0.2.0-alpha.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.
@@ -70,11 +70,11 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
70
70
  };
71
71
  }>> & Readonly<{}>, {
72
72
  readonly always: boolean;
73
- readonly minSize: number;
74
73
  readonly barStyle: {
75
74
  x: CSSProperties;
76
75
  y: CSSProperties;
77
76
  };
77
+ readonly minSize: number;
78
78
  readonly hasScrollY: boolean;
79
79
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
80
80
  //#endregion
@@ -44,9 +44,9 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
44
44
  readonly default: () => {};
45
45
  };
46
46
  }>> & Readonly<{}>, {
47
+ readonly vertical: boolean;
47
48
  readonly always: boolean;
48
49
  readonly barStyle: CSSProperties;
49
- readonly vertical: boolean;
50
50
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
51
51
  //#endregion
52
52
  export { _default as default, thumbProps };
@@ -47,9 +47,9 @@ declare const CollapseToggle: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
47
47
  required: true;
48
48
  };
49
49
  }>> & Readonly<{}>, {
50
+ hashId: string;
50
51
  collapsed: boolean;
51
52
  collapseRender: WithFalse<(collapsed?: boolean) => CustomRender>;
52
- hashId: string;
53
53
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
54
54
  //#endregion
55
55
  export { CollapseToggle };
@@ -68,8 +68,8 @@ declare const FormItemContainer: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
68
68
  };
69
69
  }>> & Readonly<{}>, {
70
70
  onSubmit: () => void;
71
- autoRequest: boolean;
72
71
  loading: boolean;
72
+ autoRequest: boolean;
73
73
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
74
74
  //#endregion
75
75
  export { FormItemContainer };
@@ -71,10 +71,10 @@ declare const FormItemWrapper: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
71
71
  };
72
72
  }>> & Readonly<{}>, {
73
73
  label: any;
74
- hashId: string;
75
74
  labelWidth: string | number;
76
75
  labelAlign: "left" | "right" | "center";
77
76
  colon: boolean;
77
+ hashId: string;
78
78
  formItemStyle: CSSProperties;
79
79
  globalLabelGap: number;
80
80
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
@@ -112,7 +112,8 @@ declare const ProTableSearchForm: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
112
112
  };
113
113
  }>> & Readonly<{}>, {
114
114
  onReset: (params: Record<string, any>) => void;
115
- loading: any;
115
+ proClasses: Record<string, string>;
116
+ proStyles: Record<string, any>;
116
117
  formColumns: ProSearchMap<"text", string>[];
117
118
  formConfig: FormConfig;
118
119
  formAutoRequest: boolean;
@@ -122,9 +123,8 @@ declare const ProTableSearchForm: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
122
123
  searchText?: string;
123
124
  resetText?: string;
124
125
  };
126
+ loading: any;
125
127
  cardBordered: boolean;
126
- proClasses: Record<string, string>;
127
- proStyles: Record<string, any>;
128
128
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
129
129
  //#endregion
130
130
  export { ProTableSearchForm as default };
@@ -93,19 +93,19 @@ declare const ListToolBar: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
93
93
  default: () => {};
94
94
  };
95
95
  }>> & Readonly<{}>, {
96
- actions: VNode<_$vue.RendererNode, _$vue.RendererElement, {
97
- [key: string]: any;
98
- }>[];
99
- proClasses: Record<string, any>;
100
- proStyles: Record<string, any>;
101
96
  headerTitle: any;
102
97
  headerTitleTip: any;
103
98
  titleTipText: string;
104
99
  settings: VNode<_$vue.RendererNode, _$vue.RendererElement, {
105
100
  [key: string]: any;
106
101
  }>[];
102
+ actions: VNode<_$vue.RendererNode, _$vue.RendererElement, {
103
+ [key: string]: any;
104
+ }>[];
107
105
  actionsPlacement: ToolbarPlacement;
108
106
  listToolAfter: any;
107
+ proClasses: Record<string, any>;
108
+ proStyles: Record<string, any>;
109
109
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
110
110
  //#endregion
111
111
  export { ListToolBar, ListToolBarSetting };
@@ -87,16 +87,16 @@ declare const Toolbar: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
87
87
  default: () => {};
88
88
  };
89
89
  }>> & Readonly<{}>, {
90
- actions: VNode<_$vue.RendererNode, _$vue.RendererElement, {
91
- [key: string]: any;
92
- }>[];
93
- proClasses: Record<string, any>;
94
- proStyles: Record<string, any>;
95
90
  headerTitle: any;
96
91
  headerTitleTip: any;
97
92
  titleTipText: string;
93
+ actions: VNode<_$vue.RendererNode, _$vue.RendererElement, {
94
+ [key: string]: any;
95
+ }>[];
98
96
  actionsPlacement: ToolbarPlacement;
99
97
  listToolAfter: any;
98
+ proClasses: Record<string, any>;
99
+ proStyles: Record<string, any>;
100
100
  options: any;
101
101
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
102
102
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { computed, onScopeDispose, shallowRef, watch } from "vue";
2
- import { getRandomNumber } from "@gx-design-vue/pro-utils";
2
+ import { createUUIDFactory } from "@gx-design-vue/pro-utils";
3
3
  //#region src/hooks/useColumns.ts
4
4
  /** 获取列唯一标识,优先 key,回退 dataIndex */
5
5
  function getColumnKey(col) {
@@ -37,7 +37,7 @@ function createIndexColumn(indexColumn, defaultAlign, firstColumn) {
37
37
  align: config.align ?? defaultAlign,
38
38
  fixed: normalizeFixedValue(config.fixed ?? firstColumn?.fixed),
39
39
  width: config.width ?? 60,
40
- uuid: getRandomNumber().uuid(15),
40
+ uuid: createUUIDFactory().uuid(15),
41
41
  dataIndex: "sortIndex",
42
42
  key: "sortIndex"
43
43
  };
@@ -1,5 +1,5 @@
1
1
  import { computed, onActivated, onDeactivated, onUnmounted, ref, toRaw, watch } from "vue";
2
- import { getRandomNumber, getSortIndex, handleCurrentPage, isArray, isFunction, isObject, merge } from "@gx-design-vue/pro-utils";
2
+ import { createUUIDFactory, getSortIndex, handleCurrentPage, isArray, isFunction, isObject, merge } from "@gx-design-vue/pro-utils";
3
3
  import { useDebounceFn } from "@vueuse/core";
4
4
  //#region src/hooks/useFetchData.ts
5
5
  const EMPTY_ARRAY = [];
@@ -90,7 +90,7 @@ function useFetchData(config, action) {
90
90
  filter: filters,
91
91
  extra
92
92
  });
93
- const currentRequestId = `table_request_${getRandomNumber().uuid(10)}`;
93
+ const currentRequestId = `table_request_${createUUIDFactory().uuid(10)}`;
94
94
  requestId.value = currentRequestId;
95
95
  const controller = new AbortController();
96
96
  abortController.value = controller;