@qqt-product/ui 0.0.16 → 0.0.18

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 (130) hide show
  1. package/dist/index.es.js +81533 -81528
  2. package/dist/index.umd.js +149 -209
  3. package/dist/lib/components/audit-modal/index.d.ts +14 -3
  4. package/dist/lib/components/audit-modal/src/audit-modal-type.d.ts +4 -0
  5. package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +14 -3
  6. package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +10 -1
  7. package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +11 -2
  8. package/dist/lib/components/audit-modal/src/hook/list-slot-hook.d.ts +1 -1
  9. package/dist/lib/components/audit-modal/src/hook/use-field-select-modal-hook.d.ts +2 -2
  10. package/dist/lib/components/cascader/index.d.ts +2 -2
  11. package/dist/lib/components/cascader/src/cascader.vue.d.ts +3 -2
  12. package/dist/lib/components/checkbox/index.d.ts +4 -4
  13. package/dist/lib/components/checkbox/src/checkbox-types.d.ts +1 -1
  14. package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
  15. package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +73 -5
  16. package/dist/lib/components/code-editor-model/src/one-dark.d.ts +90 -0
  17. package/dist/lib/components/countdown/index.d.ts +4 -4
  18. package/dist/lib/components/countdown/src/countdown.d.ts +4 -4
  19. package/dist/lib/components/coutdown/index.d.ts +3 -3
  20. package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +3 -3
  21. package/dist/lib/components/currency/index.d.ts +3 -3
  22. package/dist/lib/components/currency/src/currency-type.d.ts +1 -1
  23. package/dist/lib/components/currency/src/currency.vue.d.ts +3 -3
  24. package/dist/lib/components/detail-form/index.d.ts +11 -8
  25. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +12 -9
  26. package/dist/lib/components/detail-grid/index.d.ts +24 -15
  27. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +24 -15
  28. package/dist/lib/components/detail-page-layout/index.d.ts +34 -7
  29. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +33 -6
  30. package/dist/lib/components/edit-form/index.d.ts +13 -13
  31. package/dist/lib/components/edit-form/src/edit-form-types.d.ts +1 -1
  32. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +14 -14
  33. package/dist/lib/components/edit-form/src/hook/use-callback-hook.d.ts +7 -6
  34. package/dist/lib/components/edit-grid/index.d.ts +25 -15
  35. package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +4 -0
  36. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +25 -15
  37. package/dist/lib/components/edit-grid/src/hook/use-grid-height-hook.d.ts +2 -2
  38. package/dist/lib/components/edit-page-layout/index.d.ts +33 -6
  39. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +58 -35
  40. package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +33 -6
  41. package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -1
  42. package/dist/lib/components/empty/index.d.ts +103 -0
  43. package/dist/lib/components/field-select-modal/index.d.ts +5 -0
  44. package/dist/lib/components/field-select-modal/src/field-select-modal.vue.d.ts +5 -0
  45. package/dist/lib/components/flow-view/index.d.ts +2 -2
  46. package/dist/lib/components/flow-view/src/flow-view.d.ts +2 -2
  47. package/dist/lib/components/import-modal/index.d.ts +1 -1
  48. package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +1 -1
  49. package/dist/lib/components/index.d.ts +4 -1
  50. package/dist/lib/components/item-wrap/index.d.ts +6 -6
  51. package/dist/lib/components/item-wrap/src/item-wrap-types.d.ts +2 -2
  52. package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +6 -6
  53. package/dist/lib/components/ladder-price/index.d.ts +6 -2
  54. package/dist/lib/components/ladder-price/src/LadderNotPriceModal.vue.d.ts +7 -3
  55. package/dist/lib/components/ladder-price/src/LadderPriceModal.vue.d.ts +3 -1
  56. package/dist/lib/components/ladder-price/src/hook/use-type-hook.d.ts +9 -0
  57. package/dist/lib/components/ladder-price/src/ladder-price-types.d.ts +2 -2
  58. package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +6 -2
  59. package/dist/lib/components/layout-buttons/index.d.ts +4 -2
  60. package/dist/lib/components/layout-buttons/src/layout-buttons.vue.d.ts +4 -2
  61. package/dist/lib/components/layout-pattern/index.d.ts +2 -2
  62. package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +30 -25
  63. package/dist/lib/components/layout-pattern/src/hook/use-audit-button-hook.d.ts +9 -8
  64. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +2 -2
  65. package/dist/lib/components/list-page-layout/index.d.ts +10 -2
  66. package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +26 -26
  67. package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +15 -3
  68. package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +4 -2
  69. package/dist/lib/components/list-page-layout/src/components/list-header/module/tabs/index.vue.d.ts +2 -2
  70. package/dist/lib/components/list-page-layout/src/hooks/get-columns-hook.d.ts +2 -2
  71. package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +10 -2
  72. package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +9 -2
  73. package/dist/lib/components/menu/index.d.ts +84 -0
  74. package/dist/lib/components/menu/src/index.d.ts +80 -0
  75. package/dist/lib/components/menu/src/menu-types.d.ts +47 -0
  76. package/dist/lib/components/menu/src/use-menu.d.ts +2 -0
  77. package/dist/lib/components/page-layout/index.d.ts +4 -4
  78. package/dist/lib/components/page-layout/src/constant/buttons.d.ts +6 -6
  79. package/dist/lib/components/page-layout/src/constant/symbol.d.ts +1 -0
  80. package/dist/lib/components/page-layout/src/hook/use-merge-defaultValues-hook.d.ts +3 -3
  81. package/dist/lib/components/page-layout/src/hook/use-page-data-hook.d.ts +2 -2
  82. package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +5 -3
  83. package/dist/lib/components/page-layout/src/hook/use-ref-instance-hook.d.ts +3 -3
  84. package/dist/lib/components/page-layout/src/hook/use-remote-config-hook.d.ts +2 -2
  85. package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +4 -4
  86. package/dist/lib/components/page-layout/src/token.d.ts +4 -4
  87. package/dist/lib/components/radio/index.d.ts +4 -4
  88. package/dist/lib/components/radio/src/radio-types.d.ts +1 -1
  89. package/dist/lib/components/radio/src/radio.vue.d.ts +4 -4
  90. package/dist/lib/components/relation-graph/src/relation-graph-types.d.ts +2 -2
  91. package/dist/lib/components/remote-select/index.d.ts +5 -5
  92. package/dist/lib/components/remote-select/src/remote-select-types.d.ts +6 -6
  93. package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +5 -5
  94. package/dist/lib/components/rich-editor-model/index.d.ts +52 -0
  95. package/dist/lib/components/rich-editor-model/src/rich-editor-model-type.d.ts +14 -0
  96. package/dist/lib/components/rich-editor-model/src/rich-editor-model.vue.d.ts +49 -0
  97. package/dist/lib/components/sale-template/index.d.ts +6 -6
  98. package/dist/lib/components/sale-template/src/sale-template.vue.d.ts +6 -6
  99. package/dist/lib/components/select/index.d.ts +1 -1
  100. package/dist/lib/components/select/src/select.vue.d.ts +1 -1
  101. package/dist/lib/components/select-modal/index.d.ts +17 -8
  102. package/dist/lib/components/select-modal/src/select-modal-types.d.ts +6 -6
  103. package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +17 -8
  104. package/dist/lib/components/select-template/index.d.ts +1 -1
  105. package/dist/lib/components/select-template/src/select-template.vue.d.ts +1 -1
  106. package/dist/lib/components/switch/index.d.ts +5 -5
  107. package/dist/lib/components/switch/src/switch-types.d.ts +1 -1
  108. package/dist/lib/components/switch/src/switch.vue.d.ts +5 -5
  109. package/dist/lib/components/tree-select/index.d.ts +5 -5
  110. package/dist/lib/components/tree-select/src/tree-select-types.d.ts +2 -2
  111. package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +5 -5
  112. package/dist/lib/components/upload-file/index.d.ts +6 -6
  113. package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +2 -32
  114. package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +2 -2
  115. package/dist/lib/components/upload-file/src/upload-file-types.d.ts +7 -6
  116. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +6 -6
  117. package/dist/lib/components/upload-file-vxe/index.d.ts +8 -6
  118. package/dist/lib/components/upload-file-vxe/src/upload-file-vxe-types.d.ts +2 -2
  119. package/dist/lib/components/upload-file-vxe/src/upload-file-vxe.vue.d.ts +8 -6
  120. package/dist/lib/components/upload-image/index.d.ts +11 -1
  121. package/dist/lib/components/upload-image/src/upload-image-type.d.ts +4 -0
  122. package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +11 -1
  123. package/dist/lib/components/vxe-select/index.d.ts +4 -4
  124. package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +4 -4
  125. package/dist/lib/utils/event.d.ts +4 -3
  126. package/dist/lib/utils/use-create-link-hook.d.ts +24 -0
  127. package/dist/style.css +1 -1
  128. package/package.json +21 -18
  129. package/dist/lib/components/edit-grid/src/components/empty/index.d.ts +0 -8
  130. package/dist/vite.svg +0 -1
@@ -1,6 +1,7 @@
1
1
  import type { DefineComponent, PropType, Ref, ShallowRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComputedRef } from 'vue';
2
- import type { PageData, TabsData, ApiUrls, ObjectMap, OptColumnListItem, OptionsButtonsCallBack } from '../../list-page-layout-types';
3
- import type { VxeGridPropTypes, VxeTableDataRow, VxeGridListeners, VxeGridProps } from 'vxe-table';
2
+ import type { PageData, TabsData, ApiUrls, GridColumn, ObjectMap, OptColumnListItem, OptionsButtonsCallBack } from '../../list-page-layout-types';
3
+ import type { VxeTableDataRow, VxeGridListeners, VxeGridProps } from 'vxe-table';
4
+ import { VxeGridPropTypes } from 'vxe-table';
4
5
  declare const _sfc_main: DefineComponent<{
5
6
  loading: {
6
7
  type: BooleanConstructor;
@@ -26,6 +27,9 @@ declare const _sfc_main: DefineComponent<{
26
27
  type: PropType<ApiUrls>;
27
28
  default: () => {};
28
29
  };
30
+ afterHandleData: {
31
+ type: PropType<(column: GridColumn[]) => void>;
32
+ };
29
33
  filterList: never[];
30
34
  }, {
31
35
  ns: {
@@ -48,7 +52,7 @@ declare const _sfc_main: DefineComponent<{
48
52
  };
49
53
  pageData: PageData;
50
54
  gridConfig: ComputedRef<VxeGridProps<VxeTableDataRow>>;
51
- tableColumns: Ref<VxeGridPropTypes.Columns<VxeTableDataRow>>;
55
+ computedColumns: ComputedRef<VxeGridPropTypes.Columns<VxeTableDataRow>>;
52
56
  groupColumns: Ref<VxeGridPropTypes.Columns<VxeTableDataRow>>;
53
57
  isAggregate: ComputedRef<boolean>;
54
58
  options: ComputedRef<OptColumnListItem[]>;
@@ -58,8 +62,13 @@ declare const _sfc_main: DefineComponent<{
58
62
  gridEvent: VxeGridListeners<VxeTableDataRow>;
59
63
  loading: ShallowRef<boolean>;
60
64
  listGridRef: Ref<any>;
65
+ seqConfig: ComputedRef<{
66
+ startIndex: number;
67
+ }>;
61
68
  disableHandle: (item: OptColumnListItem, row: ObjectMap) => boolean | undefined;
62
69
  optionsButtonsCallBack: ({ row, column, $rowIndex, optionItem, $columnIndex, click }: OptionsButtonsCallBack) => Promise<false | undefined>;
70
+ initRowLadderJson: (jsonData: any) => any;
71
+ defaultRowLadderJson: (jsonData: any) => string;
63
72
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
64
73
  loading: {
65
74
  type: BooleanConstructor;
@@ -85,6 +94,9 @@ declare const _sfc_main: DefineComponent<{
85
94
  type: PropType<ApiUrls>;
86
95
  default: () => {};
87
96
  };
97
+ afterHandleData: {
98
+ type: PropType<(column: GridColumn[]) => void>;
99
+ };
88
100
  filterList: never[];
89
101
  }>>, {
90
102
  apiUrls: ApiUrls;
@@ -9,6 +9,7 @@ declare const _sfc_main: DefineComponent<{}, {
9
9
  isShowQuery: ComputedRef<any>;
10
10
  container: Ref<any>;
11
11
  isExpand: Ref<boolean>;
12
+ superQueryNumber: Ref<number>;
12
13
  pageData: PageData;
13
14
  statusNav: TabListItem[];
14
15
  containerStyle: {
@@ -20,10 +21,11 @@ declare const _sfc_main: DefineComponent<{}, {
20
21
  mergeChange: (event: Event) => void;
21
22
  searchExtendRef: Ref<any>;
22
23
  superQueryShow: Ref<boolean>;
23
- queryParamsModelLength: () => void;
24
+ queryParamsModelLength: (value: number) => void;
24
25
  handleSuperQuery: (arg: QueryParamsItem, superQueryMatchType: string) => void;
26
+ synQueryParams: (args: QueryParamsItem, superQueryMatchType: string) => void;
25
27
  apiUrls: ApiUrls;
26
28
  superQueryClose: () => void;
27
- handleFold: () => void;
29
+ handleFold: (value?: boolean) => void;
28
30
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
29
31
  export default _sfc_main;
@@ -1,5 +1,5 @@
1
1
  import type { UseNamespace } from '../../../../../../shared/hooks/use-namespace';
2
- import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Ref } from 'vue';
3
3
  import type { PageData, TabListItem } from '../../../../list-page-layout-types';
4
4
  declare const _sfc_main: DefineComponent<{
5
5
  tabsData: {
@@ -24,7 +24,7 @@ declare const _sfc_main: DefineComponent<{
24
24
  showMoreBtn: () => void;
25
25
  otabsData: Ref<TabListItem[]>;
26
26
  statusData: Ref<TabListItem[]>;
27
- activeKey: Ref<string>;
27
+ activeKey: Ref<string | null>;
28
28
  pageData: PageData;
29
29
  visible: Ref<boolean>;
30
30
  checkValue: Ref<boolean>;
@@ -1,6 +1,6 @@
1
- import type { Ref } from 'vue';
2
1
  import { ListPageLayoutProps } from '../list-page-layout-types';
3
- export default function getColumnsHook(props: ListPageLayoutProps): {
2
+ import type { Ref, SetupContext } from 'vue';
3
+ export default function getColumnsHook(props: ListPageLayoutProps, ctx: SetupContext): {
4
4
  tableColumns: Ref<any>;
5
5
  groupColumns: Ref<any>;
6
6
  };
@@ -21,6 +21,9 @@ declare const _sfc_main: DefineComponent<{
21
21
  beforeHandleData: {
22
22
  type: PropType<(column: GridColumn[]) => void>;
23
23
  };
24
+ afterHandleData: {
25
+ type: PropType<(tableData: ObjectMap[]) => void>;
26
+ };
24
27
  localColumnGroup: {
25
28
  type: PropType<(column: GridColumn[]) => GridColumn[]>;
26
29
  };
@@ -82,9 +85,9 @@ declare const _sfc_main: DefineComponent<{
82
85
  loading: boolean;
83
86
  extraListConfig: ObjectMap;
84
87
  pageData: {
85
- [x: string]: unknown;
88
+ [x: string]: any;
86
89
  onlyShowNav?: boolean | undefined;
87
- isAggregate?: "0" | "1" | undefined;
90
+ isAggregate?: "1" | "0" | undefined;
88
91
  isUseLocalColumns?: boolean | undefined;
89
92
  localColumns?: {
90
93
  [x: string]: any;
@@ -236,8 +239,10 @@ declare const _sfc_main: DefineComponent<{
236
239
  iconNextPage?: string | undefined;
237
240
  iconJumpMore?: string | undefined;
238
241
  } | undefined;
242
+ cacheParams?: ObjectMap | undefined;
239
243
  };
240
244
  beforeHandleData?: ((column: GridColumn[]) => void) | undefined;
245
+ afterHandleData?: ((tableData: ObjectMap[]) => void) | undefined;
241
246
  localColumnGroup?: ((column: GridColumn[]) => GridColumn[]) | undefined;
242
247
  };
243
248
  };
@@ -279,6 +284,9 @@ declare const _sfc_main: DefineComponent<{
279
284
  beforeHandleData: {
280
285
  type: PropType<(column: GridColumn[]) => void>;
281
286
  };
287
+ afterHandleData: {
288
+ type: PropType<(tableData: ObjectMap[]) => void>;
289
+ };
282
290
  localColumnGroup: {
283
291
  type: PropType<(column: GridColumn[]) => GridColumn[]>;
284
292
  };
@@ -119,7 +119,8 @@ export interface PageData {
119
119
  change: (event: Event, value?: string | number, options?: ListMergeDataItem[]) => void;
120
120
  };
121
121
  pagerConfig?: VxeGridPropTypes.PagerConfig;
122
- [key: string]: unknown;
122
+ cacheParams?: ObjectMap;
123
+ [key: string]: unknown | any;
123
124
  }
124
125
  export interface ListMergeDataItem {
125
126
  title: string;
@@ -161,6 +162,9 @@ export declare const listPageLayout: {
161
162
  beforeHandleData: {
162
163
  type: PropType<(column: GridColumn[]) => void>;
163
164
  };
165
+ afterHandleData: {
166
+ type: PropType<(tableData: ObjectMap[]) => void>;
167
+ };
164
168
  localColumnGroup: {
165
169
  type: PropType<(column: GridColumn[]) => GridColumn[]>;
166
170
  };
@@ -192,6 +196,9 @@ export declare const listContent: {
192
196
  type: PropType<ApiUrls>;
193
197
  default: () => {};
194
198
  };
199
+ afterHandleData: {
200
+ type: PropType<(column: GridColumn[]) => void>;
201
+ };
195
202
  filterList: never[];
196
203
  };
197
204
  export interface ButtonConfig {
@@ -324,7 +331,7 @@ export interface QueryParamsItem {
324
331
  queryItemId?: string | number;
325
332
  extendLink?: string;
326
333
  extend?: {
327
- bindFunction?: (args: object) => void;
334
+ bindFunction?: <T>(discard: null, args: T) => void;
328
335
  [key: string]: unknown;
329
336
  };
330
337
  [key: string]: unknown;
@@ -0,0 +1,84 @@
1
+ import type { MenuTheme, MenuMode } from 'ant-design-vue';
2
+ import type { RouteLocationNormalizedLoaded, LocationQuery } from 'vue-router';
3
+ import type { MenuTreeNode } from './src/menu-types';
4
+ import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
5
+ import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
6
+ import QMenu from './src/index';
7
+ export * from './src/menu-types';
8
+ export { QMenu };
9
+ declare const _default: SFCWithInstall<DefineComponent<{
10
+ readonly menus: {
11
+ readonly type: PropType<MenuTreeNode[]>;
12
+ readonly default: () => never[];
13
+ };
14
+ readonly _route: {
15
+ readonly type: PropType<RouteLocationNormalizedLoaded>;
16
+ readonly default: () => {
17
+ path: string;
18
+ matched: never[];
19
+ };
20
+ readonly required: true;
21
+ };
22
+ readonly _query: {
23
+ readonly type: PropType<LocationQuery>;
24
+ readonly default: () => {};
25
+ };
26
+ readonly theme: {
27
+ readonly type: PropType<MenuTheme>;
28
+ readonly default: "light";
29
+ };
30
+ readonly mode: {
31
+ readonly type: PropType<MenuMode>;
32
+ readonly default: "inline";
33
+ };
34
+ readonly inlineCollapsed: {
35
+ readonly type: PropType<boolean>;
36
+ readonly default: false;
37
+ };
38
+ readonly 'onUpdate:inlineCollapsed': {
39
+ type: PropType<((flag: boolean) => void) | ((flag: boolean) => void)[]>;
40
+ default: unknown;
41
+ };
42
+ }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
43
+ readonly menus: {
44
+ readonly type: PropType<MenuTreeNode[]>;
45
+ readonly default: () => never[];
46
+ };
47
+ readonly _route: {
48
+ readonly type: PropType<RouteLocationNormalizedLoaded>;
49
+ readonly default: () => {
50
+ path: string;
51
+ matched: never[];
52
+ };
53
+ readonly required: true;
54
+ };
55
+ readonly _query: {
56
+ readonly type: PropType<LocationQuery>;
57
+ readonly default: () => {};
58
+ };
59
+ readonly theme: {
60
+ readonly type: PropType<MenuTheme>;
61
+ readonly default: "light";
62
+ };
63
+ readonly mode: {
64
+ readonly type: PropType<MenuMode>;
65
+ readonly default: "inline";
66
+ };
67
+ readonly inlineCollapsed: {
68
+ readonly type: PropType<boolean>;
69
+ readonly default: false;
70
+ };
71
+ readonly 'onUpdate:inlineCollapsed': {
72
+ type: PropType<((flag: boolean) => void) | ((flag: boolean) => void)[]>;
73
+ default: unknown;
74
+ };
75
+ }>>, {
76
+ readonly mode: MenuMode;
77
+ readonly theme: MenuTheme;
78
+ readonly menus: MenuTreeNode[];
79
+ readonly _route: RouteLocationNormalizedLoaded;
80
+ readonly _query: LocationQuery;
81
+ readonly inlineCollapsed: boolean;
82
+ readonly 'onUpdate:inlineCollapsed': ((flag: boolean) => void) | ((flag: boolean) => void)[];
83
+ }, {}>>;
84
+ export default _default;
@@ -0,0 +1,80 @@
1
+ import type { MenuTheme, MenuMode } from 'ant-design-vue';
2
+ import type { RouteLocationNormalizedLoaded, LocationQuery } from 'vue-router';
3
+ import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
4
+ import type { MenuTreeNode } from './menu-types';
5
+ declare const _default: DefineComponent<{
6
+ readonly menus: {
7
+ readonly type: PropType<MenuTreeNode[]>;
8
+ readonly default: () => never[];
9
+ };
10
+ readonly _route: {
11
+ readonly type: PropType<RouteLocationNormalizedLoaded>;
12
+ readonly default: () => {
13
+ path: string;
14
+ matched: never[];
15
+ };
16
+ readonly required: true;
17
+ };
18
+ readonly _query: {
19
+ readonly type: PropType<LocationQuery>;
20
+ readonly default: () => {};
21
+ };
22
+ readonly theme: {
23
+ readonly type: PropType<MenuTheme>;
24
+ readonly default: "light";
25
+ };
26
+ readonly mode: {
27
+ readonly type: PropType<MenuMode>;
28
+ readonly default: "inline";
29
+ };
30
+ readonly inlineCollapsed: {
31
+ readonly type: PropType<boolean>;
32
+ readonly default: false;
33
+ };
34
+ readonly 'onUpdate:inlineCollapsed': {
35
+ type: PropType<((flag: boolean) => void) | ((flag: boolean) => void)[]>;
36
+ default: unknown;
37
+ };
38
+ }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
39
+ readonly menus: {
40
+ readonly type: PropType<MenuTreeNode[]>;
41
+ readonly default: () => never[];
42
+ };
43
+ readonly _route: {
44
+ readonly type: PropType<RouteLocationNormalizedLoaded>;
45
+ readonly default: () => {
46
+ path: string;
47
+ matched: never[];
48
+ };
49
+ readonly required: true;
50
+ };
51
+ readonly _query: {
52
+ readonly type: PropType<LocationQuery>;
53
+ readonly default: () => {};
54
+ };
55
+ readonly theme: {
56
+ readonly type: PropType<MenuTheme>;
57
+ readonly default: "light";
58
+ };
59
+ readonly mode: {
60
+ readonly type: PropType<MenuMode>;
61
+ readonly default: "inline";
62
+ };
63
+ readonly inlineCollapsed: {
64
+ readonly type: PropType<boolean>;
65
+ readonly default: false;
66
+ };
67
+ readonly 'onUpdate:inlineCollapsed': {
68
+ type: PropType<((flag: boolean) => void) | ((flag: boolean) => void)[]>;
69
+ default: unknown;
70
+ };
71
+ }>>, {
72
+ readonly mode: MenuMode;
73
+ readonly theme: MenuTheme;
74
+ readonly menus: MenuTreeNode[];
75
+ readonly _route: RouteLocationNormalizedLoaded;
76
+ readonly _query: LocationQuery;
77
+ readonly inlineCollapsed: boolean;
78
+ readonly 'onUpdate:inlineCollapsed': ((flag: boolean) => void) | ((flag: boolean) => void)[];
79
+ }, {}>;
80
+ export default _default;
@@ -0,0 +1,47 @@
1
+ import type { ComputedRef, PropType, ExtractPropTypes } from 'vue';
2
+ import type { MenuMode, MenuTheme } from 'ant-design-vue';
3
+ import type { RouteRecordRaw, RouteLocationNormalizedLoaded, LocationQuery } from 'vue-router';
4
+ export type MenuTreeNode = Partial<RouteRecordRaw> & {
5
+ hidden?: boolean;
6
+ children?: null | MenuTreeNode[];
7
+ };
8
+ export declare const menuProps: {
9
+ readonly menus: {
10
+ readonly type: PropType<MenuTreeNode[]>;
11
+ readonly default: () => never[];
12
+ };
13
+ readonly _route: {
14
+ readonly type: PropType<RouteLocationNormalizedLoaded>;
15
+ readonly default: () => {
16
+ path: string;
17
+ matched: never[];
18
+ };
19
+ readonly required: true;
20
+ };
21
+ readonly _query: {
22
+ readonly type: PropType<LocationQuery>;
23
+ readonly default: () => {};
24
+ };
25
+ readonly theme: {
26
+ readonly type: PropType<MenuTheme>;
27
+ readonly default: "light";
28
+ };
29
+ readonly mode: {
30
+ readonly type: PropType<MenuMode>;
31
+ readonly default: "inline";
32
+ };
33
+ readonly inlineCollapsed: {
34
+ readonly type: PropType<boolean>;
35
+ readonly default: false;
36
+ };
37
+ readonly 'onUpdate:inlineCollapsed': {
38
+ type: PropType<((flag: boolean) => void) | ((flag: boolean) => void)[]>;
39
+ default: unknown;
40
+ };
41
+ };
42
+ export type MenuProps = ExtractPropTypes<typeof menuProps>;
43
+ export interface UseMenuReturnType {
44
+ classes: ComputedRef<{
45
+ [key: string]: string | boolean;
46
+ }>;
47
+ }
@@ -0,0 +1,2 @@
1
+ import { UseMenuReturnType } from './menu-types';
2
+ export default function useMenu(): UseMenuReturnType;
@@ -1,5 +1,5 @@
1
1
  import type { LayoutConfig } from '../edit-page-layout';
2
- import type { RecordStringNumber } from '../select-modal';
2
+ import type { RecordString } from '../select-modal';
3
3
  import type { DefineComponent, ComponentPropsOptions, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComponentObjectPropsOptions } from 'vue';
4
4
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
5
5
  import QPageLayout from './src/page-layout.vue';
@@ -17,12 +17,12 @@ declare const _default: SFCWithInstall<DefineComponent<Readonly<ComponentPropsOp
17
17
  classes: ComputedRef<{
18
18
  [key: string]: string | boolean;
19
19
  }>;
20
- defaultValues: Ref<RecordStringNumber>;
20
+ defaultValues: Ref<RecordString>;
21
21
  layoutConfig: Ref<LayoutConfig>;
22
- pageData: Ref<RecordStringNumber>;
22
+ pageData: Ref<RecordString>;
23
23
  loading: Ref<boolean>;
24
24
  layoutLoading: Ref<boolean>;
25
- customLoading: Ref<boolean>;
25
+ customLoading: Readonly<Ref<boolean>>;
26
26
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, readonly string[] | Readonly<ExtractPropTypes<Readonly<ComponentObjectPropsOptions<{
27
27
  [x: string]: unknown;
28
28
  }>>>>, {
@@ -16,21 +16,21 @@ export declare const BUTTON_CUSTOM: PageButton;
16
16
  export declare const BUTTON_CUSTOM_PRIMARY: PageButton;
17
17
  export declare const BUTTON_CUSTOM_DANGER: PageButton;
18
18
  /**************************************审批按钮组 start************************************/
19
+ export declare const BUTTON_AUDIT_CHAT: PageButton;
19
20
  export declare const BUTTON_AUDIT_AGREE: PageButton;
20
- export declare const BUTTON_AUDIT_REFUSE: PageButton;
21
21
  export declare const BUTTON_AUDIT_INFORMED: PageButton;
22
22
  export declare const BUTTON_AUDIT_TRANSFER: PageButton;
23
23
  export declare const BUTTON_AUDIT_BACK: PageButton;
24
24
  export declare const BUTTON_AUDIT_TRANSACTION: PageButton;
25
- export declare const BUTTON_AUDIT_INVALID: PageButton;
26
- export declare const BUTTON_AUDIT_REVOCATION: PageButton;
27
- export declare const BUTTON_AUDIT_REVOCATION_PRE_SIGN: PageButton;
28
25
  export declare const BUTTON_AUDIT_FLOW_IMAGE: PageButton;
29
- export declare const BUTTON_AUDIT_APPROVAL_COMMENT: PageButton;
26
+ export declare const BUTTON_AUDIT_INVALID: PageButton;
30
27
  export declare const BUTTON_AUDIT_SIGN_NODE: PageButton;
31
28
  export declare const BUTTON_AUDIT_PRE_SIGN: PageButton;
32
29
  export declare const BUTTON_AUDIT_AFTER_SIGN: PageButton;
30
+ export declare const BUTTON_AUDIT_APPROVAL_COMMENT: PageButton;
33
31
  export declare const BUTTON_AUDIT_PRINT: PageButton;
34
32
  export declare const BUTTON_AUDIT_ADD_NODE_HISTORY: PageButton;
35
- export declare const BUTTON_AUDIT_CHAT: PageButton;
33
+ export declare const BUTTON_AUDIT_REFUSE: PageButton;
34
+ export declare const BUTTON_AUDIT_REVOCATION: PageButton;
35
+ export declare const BUTTON_AUDIT_REVOCATION_PRE_SIGN: PageButton;
36
36
  /**************************************审批按钮组 end************************************/
@@ -11,6 +11,7 @@ export declare const SYMBOL_CACHE_REFRESH: unique symbol;
11
11
  export declare const SYMBOL_CACHE_SHOW_MESSAGE: unique symbol;
12
12
  export declare const SYMBOL_VALIDATE: unique symbol;
13
13
  export declare const SYMBOL_VALIDATE_RESULT: unique symbol;
14
+ export declare const SYMBOL_LINK_CLICK: unique symbol;
14
15
  export declare const SYMBOL_VALIDATE_SUCCESS: unique symbol;
15
16
  export declare const SYMBOL_REFRESH: unique symbol;
16
17
  export declare const SYMBOL_BACK: unique symbol;
@@ -1,6 +1,6 @@
1
1
  import type { Ref } from 'vue';
2
- import type { RecordStringNumber, LayoutConfig } from '../../../edit-page-layout';
3
- export default function useMergeDefaultValues(rawPageData: Ref<RecordStringNumber>, defaultValues: Ref<RecordStringNumber>, layoutConfig: Ref<LayoutConfig>): {
4
- pageData: Ref<RecordStringNumber>;
2
+ import type { RecordString, LayoutConfig } from '../../../edit-page-layout';
3
+ export default function useMergeDefaultValues(rawPageData: Ref<RecordString>, defaultValues: Ref<RecordString>, layoutConfig: Ref<LayoutConfig>): {
4
+ pageData: Ref<RecordString>;
5
5
  isFinishData: Ref<boolean>;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import type { Ref } from 'vue';
2
- import type { RecordStringNumber } from '../../../edit-page-layout';
2
+ import type { RecordString } from '../../../edit-page-layout';
3
3
  export default function usePageData(): {
4
- rawPageData: Ref<RecordStringNumber>;
4
+ rawPageData: Ref<RecordString>;
5
5
  loading: Ref<boolean>;
6
6
  };
@@ -1,14 +1,14 @@
1
1
  import type { Ref } from 'vue';
2
- import type { UsePromiseStepPayload, ExposeWithPageButtons, RecordStringNumber, PageButton, ValidateResult } from '../../../edit-page-layout';
2
+ import type { UsePromiseStepPayload, ExposeWithPageButtons, RecordString, PageButton, ValidateResult } from '../../../edit-page-layout';
3
3
  export default function usePromiseStep<T extends UsePromiseStepPayload>(payload: T): {
4
- customLoading: Ref<boolean>;
4
+ customLoading: Readonly<Ref<boolean>>;
5
5
  normalizeStepPromiseMethod: <T_1 extends ExposeWithPageButtons>(key: string | symbol) => ((args: T_1) => Promise<ExposeWithPageButtons>)[];
6
6
  handleResetValidateStatus: (btn: PageButton) => void;
7
7
  handleValidateResult: ({ result, button }: ValidateResult) => void;
8
8
  stepSave: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
9
9
  stepAdd: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
10
10
  handleSetCacheButton: (btn: PageButton) => void;
11
- handleSetCachePageData: (data: RecordStringNumber) => void;
11
+ handleSetCachePageData: (data: RecordString) => void;
12
12
  handleSetCacheRefresh: (refresh: boolean) => void;
13
13
  handleSetCacheShowMessage: (show: boolean) => void;
14
14
  stepTriggerValidate: () => void;
@@ -31,6 +31,8 @@ export default function usePromiseStep<T extends UsePromiseStepPayload>(payload:
31
31
  restOfConfirm: () => void;
32
32
  composeReject: () => void;
33
33
  composeCancelAudit: () => void;
34
+ composeFlowView: () => void;
34
35
  stepCancelAuditModal: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
35
36
  stepCancelAudit: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
37
+ stepFlowView: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
36
38
  };
@@ -1,7 +1,7 @@
1
1
  import type { Ref, ComponentPublicInstance } from 'vue';
2
- import type { LayoutConfig, RecordStringNumber } from '../../../edit-page-layout';
2
+ import type { LayoutConfig, RecordString } from '../../../edit-page-layout';
3
3
  export default function useRefInstance(layoutRef: Ref<ComponentPublicInstance | null>): {
4
- pageData: Ref<RecordStringNumber>;
4
+ pageData: Ref<RecordString>;
5
5
  layoutConfig: Ref<LayoutConfig>;
6
- defaultValues: Ref<RecordStringNumber>;
6
+ defaultValues: Ref<RecordString>;
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import type { Ref } from 'vue';
2
- import type { LayoutConfig, RecordStringNumber } from '../../../edit-page-layout';
2
+ import type { LayoutConfig, RecordString } from '../../../edit-page-layout';
3
3
  export default function useRemoteConfig(): {
4
4
  layoutConfig: Ref<LayoutConfig>;
5
- defaultValues: Ref<RecordStringNumber>;
5
+ defaultValues: Ref<RecordString>;
6
6
  layoutLoading: Ref<boolean>;
7
7
  isFinishConfig: Ref<boolean>;
8
8
  };
@@ -1,17 +1,17 @@
1
1
  import type { DefineComponent, ComponentPropsOptions, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComponentObjectPropsOptions } from 'vue';
2
- import type { LayoutConfig, RecordStringNumber } from '../../edit-page-layout';
2
+ import type { LayoutConfig, RecordString } from '../../edit-page-layout';
3
3
  declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
4
4
  [x: string]: unknown;
5
5
  }>>, {
6
6
  classes: ComputedRef<{
7
7
  [key: string]: string | boolean;
8
8
  }>;
9
- defaultValues: Ref<RecordStringNumber>;
9
+ defaultValues: Ref<RecordString>;
10
10
  layoutConfig: Ref<LayoutConfig>;
11
- pageData: Ref<RecordStringNumber>;
11
+ pageData: Ref<RecordString>;
12
12
  loading: Ref<boolean>;
13
13
  layoutLoading: Ref<boolean>;
14
- customLoading: Ref<boolean>;
14
+ customLoading: Readonly<Ref<boolean>>;
15
15
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, readonly string[] | Readonly<ExtractPropTypes<Readonly<ComponentObjectPropsOptions<{
16
16
  [x: string]: unknown;
17
17
  }>>>>, {
@@ -1,10 +1,10 @@
1
1
  import type { InjectionKey, Ref } from 'vue';
2
- import type { LayoutConfig, RecordStringNumber } from '../../edit-page-layout';
2
+ import type { LayoutConfig, RecordString } from '../../edit-page-layout';
3
3
  export declare const LAYOUT_CONFIG_TOKEN: InjectionKey<Ref<LayoutConfig>>;
4
4
  export declare const LAYOUT_CONFIG_TOKEN_DEFAULT_VALUE: Ref<LayoutConfig>;
5
- export declare const DEFAULT_VALUE_TOKEN: InjectionKey<Ref<RecordStringNumber>>;
6
- export declare const DEFAULT_VALUE_TOKEN_DEFAULT_VALUE: Ref<RecordStringNumber>;
7
- export declare const LAYOUT_PAGE_DATA_TOKEN: InjectionKey<Ref<RecordStringNumber>>;
5
+ export declare const DEFAULT_VALUE_TOKEN: InjectionKey<Ref<RecordString>>;
6
+ export declare const DEFAULT_VALUE_TOKEN_DEFAULT_VALUE: Ref<RecordString>;
7
+ export declare const LAYOUT_PAGE_DATA_TOKEN: InjectionKey<Ref<RecordString>>;
8
8
  export declare const LAYOUT_PAGE_DATA_TOKEN_DEFAULT_VALUE: Ref<{
9
9
  id: null;
10
10
  }>;
@@ -6,7 +6,7 @@ export * from './src/radio-types';
6
6
  export { QRadio };
7
7
  declare const _default: SFCWithInstall<DefineComponent<{
8
8
  readonly required: {
9
- readonly type: PropType<"0" | "1">;
9
+ readonly type: PropType<"1" | "0">;
10
10
  readonly default: 1;
11
11
  };
12
12
  readonly options: {
@@ -52,7 +52,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
52
52
  onChange: (e: Event) => void;
53
53
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
54
54
  readonly required: {
55
- readonly type: PropType<"0" | "1">;
55
+ readonly type: PropType<"1" | "0">;
56
56
  readonly default: 1;
57
57
  };
58
58
  readonly options: {
@@ -91,12 +91,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
91
91
  onChange?: ((...args: any[]) => any) | undefined;
92
92
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
93
93
  }, {
94
- readonly busAccount: string;
95
94
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
95
+ readonly busAccount: string;
96
96
  readonly value: string;
97
97
  readonly options: Option[];
98
98
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
99
- readonly required: "0" | "1";
99
+ readonly required: "1" | "0";
100
100
  readonly dictCode: string;
101
101
  readonly isLayout: boolean;
102
102
  readonly colSpan: string;
@@ -9,7 +9,7 @@ export interface Option {
9
9
  export type realOptions = Option;
10
10
  export declare const rabioProps: {
11
11
  readonly required: {
12
- readonly type: PropType<"0" | "1">;
12
+ readonly type: PropType<"1" | "0">;
13
13
  readonly default: 1;
14
14
  };
15
15
  readonly options: {
@@ -2,7 +2,7 @@ import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin
2
2
  import { Option } from './radio-types';
3
3
  declare const _sfc_main: DefineComponent<{
4
4
  readonly required: {
5
- readonly type: PropType<"0" | "1">;
5
+ readonly type: PropType<"1" | "0">;
6
6
  readonly default: 1;
7
7
  };
8
8
  readonly options: {
@@ -48,7 +48,7 @@ declare const _sfc_main: DefineComponent<{
48
48
  onChange: (e: Event) => void;
49
49
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
50
50
  readonly required: {
51
- readonly type: PropType<"0" | "1">;
51
+ readonly type: PropType<"1" | "0">;
52
52
  readonly default: 1;
53
53
  };
54
54
  readonly options: {
@@ -87,12 +87,12 @@ declare const _sfc_main: DefineComponent<{
87
87
  onChange?: ((...args: any[]) => any) | undefined;
88
88
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
89
89
  }, {
90
- readonly busAccount: string;
91
90
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
91
+ readonly busAccount: string;
92
92
  readonly value: string;
93
93
  readonly options: Option[];
94
94
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
95
- readonly required: "0" | "1";
95
+ readonly required: "1" | "0";
96
96
  readonly dictCode: string;
97
97
  readonly isLayout: boolean;
98
98
  readonly colSpan: string;