@qqt-product/ui 8.0.3 → 9.0.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.
Files changed (28) hide show
  1. package/dist/index.es.js +18353 -18034
  2. package/dist/index.umd.js +92 -92
  3. package/dist/lib/components/detail-form/index.d.ts +5 -3
  4. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +5 -3
  5. package/dist/lib/components/detail-grid/index.d.ts +6 -3
  6. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +6 -3
  7. package/dist/lib/components/edit-form/index.d.ts +6 -1
  8. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +6 -1
  9. package/dist/lib/components/edit-grid/index.d.ts +6 -3
  10. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +6 -3
  11. package/dist/lib/components/layout/index.d.ts +818 -6
  12. package/dist/lib/components/layout/src/index.vue.d.ts +818 -6
  13. package/dist/lib/components/layout/src/menu/menu.vue.d.ts +133 -6
  14. package/dist/lib/components/layout/src/sider/index.vue.d.ts +420 -20
  15. package/dist/lib/components/layout/src/sider/logo.vue.d.ts +1 -1
  16. package/dist/lib/components/list-page-layout/index.d.ts +32 -3
  17. package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/edit-nav-modal.vue.d.ts +2 -0
  18. package/dist/lib/components/list-page-layout/src/components/list-content/events-helper.d.ts +2 -2
  19. package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +1 -0
  20. package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +4 -1
  21. package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +3 -1
  22. package/dist/lib/components/list-page-layout/src/hooks/common-hook.d.ts +5 -0
  23. package/dist/lib/components/list-page-layout/src/hooks/use-column-drag-hook.d.ts +5 -0
  24. package/dist/lib/components/list-page-layout/src/hooks/use-default-props-hook.d.ts +3 -1
  25. package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +32 -3
  26. package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +11 -2
  27. package/dist/style.css +1 -1
  28. package/package.json +10 -10
@@ -31,7 +31,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
31
31
  formState: {};
32
32
  };
33
33
  statusConfig: {};
34
- superQuery: {};
34
+ superQueryConfig: {
35
+ queryModel: never[];
36
+ superQuery: {};
37
+ };
35
38
  };
36
39
  };
37
40
  apiUrls: {
@@ -78,6 +81,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
78
81
  attrs?: ObjectMap | undefined;
79
82
  extend?: ObjectMap | undefined;
80
83
  customSearch?: ((args: ObjectMap) => void) | undefined;
84
+ customReset?: (() => void) | undefined;
81
85
  form: {
82
86
  type: string;
83
87
  label: string;
@@ -191,6 +195,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
191
195
  attrs?: ObjectMap | undefined;
192
196
  extend?: ObjectMap | undefined;
193
197
  customSearch?: ((args: ObjectMap) => void) | undefined;
198
+ customReset?: (() => void) | undefined;
194
199
  form: {
195
200
  type: string;
196
201
  label: string;
@@ -215,6 +220,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
215
220
  total: string | number;
216
221
  flag?: string | undefined;
217
222
  } | undefined;
223
+ activeKey?: unknown;
218
224
  } | undefined;
219
225
  filterConfig?: {
220
226
  show?: boolean | (() => boolean | void) | undefined;
@@ -260,7 +266,27 @@ declare const _default: SFCWithInstall<DefineComponent<{
260
266
  iconJumpMore?: string | undefined;
261
267
  } | undefined;
262
268
  isOrder?: ObjectMap | undefined;
263
- superQuery?: ObjectMap | undefined;
269
+ superQueryConfig?: {
270
+ queryModel: {
271
+ [x: string]: unknown;
272
+ logicSymbol?: string | undefined;
273
+ fieldCode?: string | undefined;
274
+ dictCode?: string | undefined;
275
+ fieldType?: string | undefined;
276
+ fieldValue?: string | number | undefined;
277
+ showValue?: string | number | undefined;
278
+ joiner?: string | number | undefined;
279
+ dictTable?: string | number | undefined;
280
+ customReturnField?: string | number | undefined;
281
+ queryItemId?: string | number | undefined;
282
+ extendLink?: string | undefined;
283
+ extend?: {
284
+ [x: string]: unknown;
285
+ bindFunction?: (<T_3>(discard: null, args: T_3) => void) | undefined;
286
+ } | undefined;
287
+ }[];
288
+ superQuery: ObjectMap;
289
+ } | undefined;
264
290
  };
265
291
  beforeHandleData?: ((column: GridColumn[]) => void) | undefined;
266
292
  afterHandleData?: ((tableData: ObjectMap[]) => void) | undefined;
@@ -308,7 +334,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
308
334
  formState: {};
309
335
  };
310
336
  statusConfig: {};
311
- superQuery: {};
337
+ superQueryConfig: {
338
+ queryModel: never[];
339
+ superQuery: {};
340
+ };
312
341
  };
313
342
  };
314
343
  apiUrls: {
@@ -5,6 +5,8 @@ declare const _sfc_main: DefineComponent<{}, {
5
5
  setFastLoding: Ref<boolean>;
6
6
  disableArr: Ref<any>;
7
7
  enabledArr: Ref<any>;
8
+ onSearch: () => void;
9
+ menuKeyword: Ref<string>;
8
10
  open: () => void;
9
11
  handleClose: () => void;
10
12
  handleDelete: (id: string) => void;
@@ -1,6 +1,6 @@
1
- import { ListPageLayoutProps, EventHandler } from '../../list-page-layout-types';
1
+ import { EventHandler, ObjectMap } from '../../list-page-layout-types';
2
2
  import { VxeGridEvents } from 'vxe-table';
3
- export declare const useEvents: (props: ListPageLayoutProps) => {
3
+ export declare const useEvents: ({ isAggregate, tableColumns, listGridRef, apiUrls }: ObjectMap) => {
4
4
  cellClick: EventHandler;
5
5
  sortChange: VxeGridEvents.SortChange<any>;
6
6
  filterChange: VxeGridEvents.FilterChange<any>;
@@ -52,6 +52,7 @@ declare const _sfc_main: DefineComponent<{
52
52
  cssVarBlockName: (name: string) => string;
53
53
  };
54
54
  srmI18n: SrmI18n;
55
+ gridWrapperHight: Ref<any>;
55
56
  pageData: PageData;
56
57
  gridConfig: ComputedRef<VxeGridProps<VxeTableDataRow>>;
57
58
  computedColumns: ComputedRef<VxeGridPropTypes.Columns<VxeTableDataRow>>;
@@ -1,10 +1,11 @@
1
1
  import type { UseNamespace } from '../../../../shared/hooks/use-namespace';
2
2
  import type { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
- import type { PageData, ApiUrls, QueryParamsItem, TabListItem, ObjectMap } from '../../list-page-layout-types';
3
+ import type { PageData, ApiUrls, QueryParamsItem, TabListItem, ObjectMap, UserInfo } from '../../list-page-layout-types';
4
4
  declare const _sfc_main: DefineComponent<{}, {
5
5
  ns: UseNamespace;
6
6
  isShowQuickNav: ComputedRef<boolean | (() => boolean | void)>;
7
7
  normalQuery: (formState: ObjectMap) => void;
8
+ userInfo: UserInfo;
8
9
  isShowStatus: ComputedRef<string | false>;
9
10
  isShowFilter: ComputedRef<boolean>;
10
11
  isShowQuery: ComputedRef<any>;
@@ -20,6 +21,7 @@ declare const _sfc_main: DefineComponent<{}, {
20
21
  superQuery: () => void;
21
22
  handleMore: () => void;
22
23
  mergeChange: (event: Event) => void;
24
+ handleReset: () => void;
23
25
  searchExtendRef: Ref<any>;
24
26
  superQueryShow: Ref<boolean>;
25
27
  queryParamsModelLength: (value: number) => void;
@@ -28,5 +30,6 @@ declare const _sfc_main: DefineComponent<{}, {
28
30
  apiUrls: ApiUrls;
29
31
  superQueryClose: () => void;
30
32
  handleFold: (value?: boolean) => void;
33
+ foldShow: ComputedRef<boolean>;
31
34
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
32
35
  export default _sfc_main;
@@ -12,12 +12,14 @@ declare const _sfc_main: DefineComponent<{}, {
12
12
  needAdvancedQuery: boolean;
13
13
  handleFinish: () => void;
14
14
  superQuery: () => void;
15
+ handleReset: () => void;
15
16
  handleFinishFailed: () => void;
16
17
  ns: UseNamespace;
17
18
  filtersOption: (el: QueryFormItemSelect, input: string, option: any) => any;
18
19
  handleQuerySelectChange: ({ value }: ISelectArgs, config: QueryFormItem) => void;
19
20
  handleQueryInputChange: (event: ObjectMap, config: QueryFormItem) => void;
20
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("superQuery" | "normalQuery")[], "superQuery" | "normalQuery", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>> & {
21
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("superQuery" | "normalQuery" | "reset")[], "superQuery" | "normalQuery" | "reset", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>> & {
22
+ onReset?: ((...args: any[]) => any) | undefined;
21
23
  onSuperQuery?: ((...args: any[]) => any) | undefined;
22
24
  onNormalQuery?: ((...args: any[]) => any) | undefined;
23
25
  }, {}, {}>;
@@ -0,0 +1,5 @@
1
+ import { ObjectMap } from '../list-page-layout-types';
2
+ declare const _default: () => {
3
+ saveColumnsConfig: ({ params, columnsCode }: ObjectMap) => void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { ObjectMap } from '../list-page-layout-types';
2
+ declare const _default: ({ listGridRef, tableColumns, apiUrls }: ObjectMap) => {
3
+ columnDragInit: () => void;
4
+ };
5
+ export default _default;
@@ -1,4 +1,6 @@
1
- import { ListPageLayoutProps } from '../list-page-layout-types';
1
+ import { ListPageLayoutProps, ObjectMap } from '../list-page-layout-types';
2
2
  export default function useDefaultPropsHook(): {
3
3
  setDefaultProps: (props: ListPageLayoutProps) => ListPageLayoutProps;
4
+ getPageDataByCache: () => any;
5
+ setPageDataToCache: (value: ObjectMap) => void;
4
6
  };
@@ -24,7 +24,10 @@ declare const _sfc_main: DefineComponent<{
24
24
  formState: {};
25
25
  };
26
26
  statusConfig: {};
27
- superQuery: {};
27
+ superQueryConfig: {
28
+ queryModel: never[];
29
+ superQuery: {};
30
+ };
28
31
  };
29
32
  };
30
33
  apiUrls: {
@@ -71,6 +74,7 @@ declare const _sfc_main: DefineComponent<{
71
74
  attrs?: ObjectMap | undefined;
72
75
  extend?: ObjectMap | undefined;
73
76
  customSearch?: ((args: ObjectMap) => void) | undefined;
77
+ customReset?: (() => void) | undefined;
74
78
  form: {
75
79
  type: string;
76
80
  label: string;
@@ -184,6 +188,7 @@ declare const _sfc_main: DefineComponent<{
184
188
  attrs?: ObjectMap | undefined;
185
189
  extend?: ObjectMap | undefined;
186
190
  customSearch?: ((args: ObjectMap) => void) | undefined;
191
+ customReset?: (() => void) | undefined;
187
192
  form: {
188
193
  type: string;
189
194
  label: string;
@@ -208,6 +213,7 @@ declare const _sfc_main: DefineComponent<{
208
213
  total: string | number;
209
214
  flag?: string | undefined;
210
215
  } | undefined;
216
+ activeKey?: unknown;
211
217
  } | undefined;
212
218
  filterConfig?: {
213
219
  show?: boolean | (() => boolean | void) | undefined;
@@ -253,7 +259,27 @@ declare const _sfc_main: DefineComponent<{
253
259
  iconJumpMore?: string | undefined;
254
260
  } | undefined;
255
261
  isOrder?: ObjectMap | undefined;
256
- superQuery?: ObjectMap | undefined;
262
+ superQueryConfig?: {
263
+ queryModel: {
264
+ [x: string]: unknown;
265
+ logicSymbol?: string | undefined;
266
+ fieldCode?: string | undefined;
267
+ dictCode?: string | undefined;
268
+ fieldType?: string | undefined;
269
+ fieldValue?: string | number | undefined;
270
+ showValue?: string | number | undefined;
271
+ joiner?: string | number | undefined;
272
+ dictTable?: string | number | undefined;
273
+ customReturnField?: string | number | undefined;
274
+ queryItemId?: string | number | undefined;
275
+ extendLink?: string | undefined;
276
+ extend?: {
277
+ [x: string]: unknown;
278
+ bindFunction?: (<T_3>(discard: null, args: T_3) => void) | undefined;
279
+ } | undefined;
280
+ }[];
281
+ superQuery: ObjectMap;
282
+ } | undefined;
257
283
  };
258
284
  beforeHandleData?: ((column: GridColumn[]) => void) | undefined;
259
285
  afterHandleData?: ((tableData: ObjectMap[]) => void) | undefined;
@@ -301,7 +327,10 @@ declare const _sfc_main: DefineComponent<{
301
327
  formState: {};
302
328
  };
303
329
  statusConfig: {};
304
- superQuery: {};
330
+ superQueryConfig: {
331
+ queryModel: never[];
332
+ superQuery: {};
333
+ };
305
334
  };
306
335
  };
307
336
  apiUrls: {
@@ -96,6 +96,7 @@ export interface PageData {
96
96
  attrs?: ObjectMap;
97
97
  extend?: ObjectMap;
98
98
  customSearch?: (args: ObjectMap) => void;
99
+ customReset?: () => void;
99
100
  form: QueryFormItem[];
100
101
  needAdvancedQuery?: boolean;
101
102
  formState?: ObjectMap;
@@ -104,6 +105,7 @@ export interface PageData {
104
105
  show?: (() => boolean | void) | boolean;
105
106
  filter?: ObjectMap;
106
107
  currentValue?: TabListItem;
108
+ activeKey?: number | string | unknown;
107
109
  };
108
110
  filterConfig?: {
109
111
  show?: (() => boolean | void) | boolean;
@@ -120,7 +122,10 @@ export interface PageData {
120
122
  };
121
123
  pagerConfig?: VxeGridPropTypes.PagerConfig;
122
124
  isOrder?: ObjectMap;
123
- superQuery?: ObjectMap;
125
+ superQueryConfig?: {
126
+ queryModel: QueryParamsItem[];
127
+ superQuery: ObjectMap;
128
+ };
124
129
  [key: string]: unknown | any;
125
130
  }
126
131
  export interface ListMergeDataItem {
@@ -166,7 +171,10 @@ export declare const listPageLayout: {
166
171
  formState: {};
167
172
  };
168
173
  statusConfig: {};
169
- superQuery: {};
174
+ superQueryConfig: {
175
+ queryModel: never[];
176
+ superQuery: {};
177
+ };
170
178
  };
171
179
  };
172
180
  apiUrls: {
@@ -308,6 +316,7 @@ export interface FetchDataOptions {
308
316
  getParams?: () => {
309
317
  [key: string]: unknown;
310
318
  };
319
+ setPageDataToCache?: (value: ObjectMap) => void;
311
320
  }
312
321
  export interface CurrentRow {
313
322
  templateNumber: string;