@qqt-product/ui 0.0.17 → 0.0.19

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 (76) hide show
  1. package/dist/index.es.js +79926 -78582
  2. package/dist/index.umd.js +147 -147
  3. package/dist/lib/components/audit-modal/index.d.ts +1 -1
  4. package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +1 -1
  5. package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +1 -1
  6. package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +1 -1
  7. package/dist/lib/components/cascader/index.d.ts +1 -1
  8. package/dist/lib/components/cascader/src/cascader.vue.d.ts +1 -1
  9. package/dist/lib/components/checkbox/index.d.ts +4 -4
  10. package/dist/lib/components/checkbox/src/checkbox-types.d.ts +1 -1
  11. package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
  12. package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +73 -5
  13. package/dist/lib/components/code-editor-model/src/one-dark.d.ts +90 -0
  14. package/dist/lib/components/countdown/index.d.ts +3 -3
  15. package/dist/lib/components/countdown/src/countdown.d.ts +3 -3
  16. package/dist/lib/components/coutdown/index.d.ts +2 -2
  17. package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +2 -2
  18. package/dist/lib/components/currency/index.d.ts +3 -3
  19. package/dist/lib/components/currency/src/currency-type.d.ts +1 -1
  20. package/dist/lib/components/currency/src/currency.vue.d.ts +3 -3
  21. package/dist/lib/components/detail-form/index.d.ts +4 -3
  22. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +4 -3
  23. package/dist/lib/components/detail-grid/index.d.ts +13 -13
  24. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +13 -13
  25. package/dist/lib/components/detail-page-layout/index.d.ts +10 -1
  26. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +10 -1
  27. package/dist/lib/components/edit-form/index.d.ts +3 -3
  28. package/dist/lib/components/edit-form/src/edit-form-types.d.ts +1 -1
  29. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +3 -3
  30. package/dist/lib/components/edit-grid/index.d.ts +13 -13
  31. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +13 -13
  32. package/dist/lib/components/edit-page-layout/index.d.ts +10 -1
  33. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +11 -0
  34. package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +10 -1
  35. package/dist/lib/components/flow-view/index.d.ts +2 -2
  36. package/dist/lib/components/flow-view/src/flow-view.d.ts +2 -2
  37. package/dist/lib/components/import-modal/index.d.ts +1 -1
  38. package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +1 -1
  39. package/dist/lib/components/item-wrap/index.d.ts +4 -4
  40. package/dist/lib/components/item-wrap/src/item-wrap-types.d.ts +1 -1
  41. package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +4 -4
  42. package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +13 -12
  43. package/dist/lib/components/layout-pattern/src/hook/use-audit-button-hook.d.ts +6 -6
  44. package/dist/lib/components/list-page-layout/index.d.ts +1 -1
  45. package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +26 -26
  46. package/dist/lib/components/list-page-layout/src/hooks/get-columns-hook.d.ts +2 -2
  47. package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +1 -1
  48. package/dist/lib/components/page-layout/src/constant/symbol.d.ts +1 -0
  49. package/dist/lib/components/radio/index.d.ts +4 -4
  50. package/dist/lib/components/radio/src/radio-types.d.ts +1 -1
  51. package/dist/lib/components/radio/src/radio.vue.d.ts +4 -4
  52. package/dist/lib/components/sale-template/index.d.ts +3 -3
  53. package/dist/lib/components/sale-template/src/sale-template.vue.d.ts +3 -3
  54. package/dist/lib/components/select/index.d.ts +1 -1
  55. package/dist/lib/components/select/src/select.vue.d.ts +1 -1
  56. package/dist/lib/components/select-modal/index.d.ts +1 -1
  57. package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +1 -1
  58. package/dist/lib/components/select-template/index.d.ts +1 -1
  59. package/dist/lib/components/select-template/src/select-template.vue.d.ts +1 -1
  60. package/dist/lib/components/switch/index.d.ts +5 -5
  61. package/dist/lib/components/switch/src/switch-types.d.ts +1 -1
  62. package/dist/lib/components/switch/src/switch.vue.d.ts +5 -5
  63. package/dist/lib/components/tree-select/index.d.ts +1 -1
  64. package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +1 -1
  65. package/dist/lib/components/upload-file/index.d.ts +1 -1
  66. package/dist/lib/components/upload-file/src/upload-file-types.d.ts +1 -0
  67. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +1 -1
  68. package/dist/lib/components/upload-image/index.d.ts +1 -1
  69. package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +1 -1
  70. package/dist/lib/components/vxe-select/index.d.ts +3 -3
  71. package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +3 -3
  72. package/dist/lib/utils/event.d.ts +3 -2
  73. package/dist/lib/utils/use-create-link-hook.d.ts +24 -0
  74. package/dist/style.css +1 -1
  75. package/package.json +21 -18
  76. package/dist/lib/components/list-page-layout/src/hooks/use-list-params-hook.d.ts +0 -7
@@ -237,12 +237,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
237
237
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
238
238
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
239
239
  }, {
240
+ readonly data: Data;
240
241
  readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
241
242
  readonly visible: boolean;
242
243
  readonly currentRow: CurrentRow;
243
244
  readonly action: string;
244
245
  readonly accept: string;
245
- readonly data: Data;
246
246
  readonly dictCode: string;
247
247
  readonly property: string;
248
248
  readonly role: Role;
@@ -7,6 +7,7 @@ export interface InitializeConfig {
7
7
  role?: string;
8
8
  path?: string;
9
9
  operationButton?: string[];
10
+ userInfo?: UserInfo;
10
11
  [key: string]: unknown;
11
12
  }
12
13
  export interface Data {
@@ -229,12 +229,12 @@ declare const _sfc_main: DefineComponent<{
229
229
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
230
230
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
231
231
  }, {
232
+ readonly data: Data;
232
233
  readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
233
234
  readonly visible: boolean;
234
235
  readonly currentRow: CurrentRow;
235
236
  readonly action: string;
236
237
  readonly accept: string;
237
- readonly data: Data;
238
238
  readonly dictCode: string;
239
239
  readonly property: string;
240
240
  readonly role: Role;
@@ -188,9 +188,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
188
188
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
189
189
  }, {
190
190
  readonly disabled: boolean;
191
+ readonly onChange: ((value: string) => void) | ((value: string) => void)[];
191
192
  readonly accept: string;
192
193
  readonly multiple: boolean;
193
- readonly onChange: ((value: string) => void) | ((value: string) => void)[];
194
194
  readonly value: string;
195
195
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
196
196
  readonly canRemove: boolean;
@@ -184,9 +184,9 @@ declare const _sfc_main: DefineComponent<{
184
184
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
185
185
  }, {
186
186
  readonly disabled: boolean;
187
+ readonly onChange: ((value: string) => void) | ((value: string) => void)[];
187
188
  readonly accept: string;
188
189
  readonly multiple: boolean;
189
- readonly onChange: ((value: string) => void) | ((value: string) => void)[];
190
190
  readonly value: string;
191
191
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
192
192
  readonly canRemove: boolean;
@@ -115,9 +115,6 @@ declare const _default: SFCWithInstall<DefineComponent<{
115
115
  onChange?: ((...args: any[]) => any) | undefined;
116
116
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
117
117
  }, {
118
- readonly busAccount: string;
119
- readonly multiple: boolean;
120
- readonly placeholder: string;
121
118
  readonly onChange: (({ value, label }: {
122
119
  value: string;
123
120
  label: string;
@@ -125,6 +122,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
125
122
  value: string;
126
123
  label: string;
127
124
  }) => void)[];
125
+ readonly busAccount: string;
126
+ readonly multiple: boolean;
127
+ readonly placeholder: string;
128
128
  readonly options: SelectOption[];
129
129
  readonly maxTagCount: number;
130
130
  readonly dictCode: string;
@@ -111,9 +111,6 @@ declare const _sfc_main: DefineComponent<{
111
111
  onChange?: ((...args: any[]) => any) | undefined;
112
112
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
113
113
  }, {
114
- readonly busAccount: string;
115
- readonly multiple: boolean;
116
- readonly placeholder: string;
117
114
  readonly onChange: (({ value, label }: {
118
115
  value: string;
119
116
  label: string;
@@ -121,6 +118,9 @@ declare const _sfc_main: DefineComponent<{
121
118
  value: string;
122
119
  label: string;
123
120
  }) => void)[];
121
+ readonly busAccount: string;
122
+ readonly multiple: boolean;
123
+ readonly placeholder: string;
124
124
  readonly options: SelectOption[];
125
125
  readonly maxTagCount: number;
126
126
  readonly dictCode: string;
@@ -1,7 +1,7 @@
1
1
  import type { Emitter } from '@qqt-product/utils';
2
2
  import { VxeTableInstance } from 'vxe-table';
3
- import { SYMBOL_BINDFUNCTION, SYMBOL_CUSTOM_BINDFUNCTION, SYMBOL_VXE_BINDFUNCTION, SYMBOL_CUSTOM_VXE_BINDFUNCTION, SYMBOL_ADD_ONE_ROW, SYMBOL_DELETE_ROWS, SYMBOL_CUSTOM_CLICK, SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK, SYMBOL_CACHE_BUTTON, SYMBOL_CACHE_PAGEDATA, SYMBOL_CACHE_REFRESH, SYMBOL_CACHE_SHOW_MESSAGE, SYMBOL_VALIDATE, SYMBOL_VALIDATE_RESULT, SYMBOL_VALIDATE_SUCCESS, SYMBOL_REFRESH, SYMBOL_BACK, SYMBOL_SAVE, SYMBOL_PUBLISH, SYMBOL_SUBMIT, SYMBOL_CONFIRM, SYMBOL_REJECT, SYMBOL_UPLOAD, SYMBOL_UPLOAD_GRID, SYMBOL_CANCELAUDIT, SYMBOL_DOWNLOAD_ALL, SYMBOL_REMOVE_ALL, SYMBOL_CHECKBOX_CHANGE, SYMBOL_CHECKBOX_ALL, SYMBOL_IMPORT_ROWS, SYMBOL_FLOW_VIEW, SYMBOL_AUDIT_AGREE, SYMBOL_AUDIT_REFUSE, SYMBOL_AUDIT_INFORMED, SYMBOL_AUDIT_TRANSFER, SYMBOL_AUDIT_BACK, SYMBOL_AUDIT_TRANSACTION, SYMBOL_AUDIT_INVALID, SYMBOL_AUDIT_REVOCATION, SYMBOL_AUDIT_REVOCATION_PRE_SIGN, SYMBOL_AUDIT_FLOW_IMAGE, SYMBOL_AUDIT_APPROVAL_COMMENT, SYMBOL_AUDIT_SIGN_NODE, SYMBOL_AUDIT_PRE_SIGN, SYMBOL_AUDIT_AFTER_SIGN, SYMBOL_AUDIT_PRINT, SYMBOL_AUDIT_ADD_NODE_HISTORY, SYMBOL_AUDIT_CHAT } from '../../lib/components/page-layout';
4
- import type { RecordString, BindFunctionEvent, VxeBindFunctionEvent, PageButton, PageButtonWithGroupCode, PageButtonDeleteRow, PageButtonDownLoad, ValidateResult, FormFieldsItem, ColumnItem, PageButtonDeleteFileRow, GridCheckboxChangeParamsWithGroupCoe, GridCheckboxAllParamsWithGroupCoe } from '../../lib/components/edit-page-layout';
3
+ import { SYMBOL_BINDFUNCTION, SYMBOL_CUSTOM_BINDFUNCTION, SYMBOL_VXE_BINDFUNCTION, SYMBOL_CUSTOM_VXE_BINDFUNCTION, SYMBOL_ADD_ONE_ROW, SYMBOL_DELETE_ROWS, SYMBOL_CUSTOM_CLICK, SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK, SYMBOL_CACHE_BUTTON, SYMBOL_CACHE_PAGEDATA, SYMBOL_CACHE_REFRESH, SYMBOL_CACHE_SHOW_MESSAGE, SYMBOL_VALIDATE, SYMBOL_VALIDATE_RESULT, SYMBOL_LINK_CLICK, SYMBOL_VALIDATE_SUCCESS, SYMBOL_REFRESH, SYMBOL_BACK, SYMBOL_SAVE, SYMBOL_PUBLISH, SYMBOL_SUBMIT, SYMBOL_CONFIRM, SYMBOL_REJECT, SYMBOL_UPLOAD, SYMBOL_UPLOAD_GRID, SYMBOL_CANCELAUDIT, SYMBOL_DOWNLOAD_ALL, SYMBOL_REMOVE_ALL, SYMBOL_CHECKBOX_CHANGE, SYMBOL_CHECKBOX_ALL, SYMBOL_IMPORT_ROWS, SYMBOL_FLOW_VIEW, SYMBOL_AUDIT_AGREE, SYMBOL_AUDIT_REFUSE, SYMBOL_AUDIT_INFORMED, SYMBOL_AUDIT_TRANSFER, SYMBOL_AUDIT_BACK, SYMBOL_AUDIT_TRANSACTION, SYMBOL_AUDIT_INVALID, SYMBOL_AUDIT_REVOCATION, SYMBOL_AUDIT_REVOCATION_PRE_SIGN, SYMBOL_AUDIT_FLOW_IMAGE, SYMBOL_AUDIT_APPROVAL_COMMENT, SYMBOL_AUDIT_SIGN_NODE, SYMBOL_AUDIT_PRE_SIGN, SYMBOL_AUDIT_AFTER_SIGN, SYMBOL_AUDIT_PRINT, SYMBOL_AUDIT_ADD_NODE_HISTORY, SYMBOL_AUDIT_CHAT } from '../../lib/components/page-layout';
4
+ import type { RecordString, BindFunctionEvent, VxeBindFunctionEvent, PageButton, PageButtonWithGroupCode, PageButtonDeleteRow, PageButtonDownLoad, ValidateResult, LinkClickCallbackParams, FormFieldsItem, ColumnItem, PageButtonDeleteFileRow, GridCheckboxChangeParamsWithGroupCoe, GridCheckboxAllParamsWithGroupCoe } from '../../lib/components/edit-page-layout';
5
5
  import type { ButtonItem, ObjectMap } from '../../lib/components/list-page-layout';
6
6
  import type { VxeItemFileUpload } from '../../lib/components/upload-file';
7
7
  import { SYMBOL_GRID_INSTANCE, SYMBOL_HANDLE_SETTING, SYMBOL_HANDLE_ADD, SYMBOL_HANDLE_EXPORT, SYMBOL_HANDLE_IMPORT, SYMBOL_HANDLE_QUICK_NAV, SYMBOL_HANDLE_RECORD, SYMBOL_HANDLE_HELP_TEXT, SYMBOL_HANDLE_ATTACHMENT_TEXT, SYMBOL_HANDLE_VIDEO_TEXT, SYMBOL_FETCH_NAV_DATA } from '../components/list-page-layout/src/symbol';
@@ -20,6 +20,7 @@ export type Events = {
20
20
  [SYMBOL_CACHE_SHOW_MESSAGE]: boolean;
21
21
  [SYMBOL_VALIDATE]: PageButton;
22
22
  [SYMBOL_VALIDATE_RESULT]: ValidateResult;
23
+ [SYMBOL_LINK_CLICK]: LinkClickCallbackParams;
23
24
  [SYMBOL_VALIDATE_SUCCESS]: PageButton;
24
25
  [SYMBOL_REFRESH]: PageButton;
25
26
  [SYMBOL_BACK]: PageButton;
@@ -0,0 +1,24 @@
1
+ import { ObjectMap } from '../components/list-page-layout';
2
+ import { LinkClickCallbackParams } from '../components/edit-page-layout/src/edit-page-layout-types';
3
+ interface LinkParams {
4
+ title?: string;
5
+ exLink?: boolean;
6
+ listRequestApi?: string;
7
+ primaryKey: string;
8
+ bindKey: string;
9
+ actionPath: string;
10
+ otherQuery: {
11
+ [key: string]: unknown;
12
+ };
13
+ beforeJump?: <T>(args: T) => T;
14
+ }
15
+ type Type = 'grid' | 'form' | 'custom';
16
+ interface LinkClickParams {
17
+ callback: (args: LinkClickCallbackParams) => void;
18
+ [key: string]: any;
19
+ }
20
+ export default function (Request: ObjectMap): {
21
+ createLink: (fieldInfo: ObjectMap, type: Type, callback: (args: LinkClickCallbackParams) => void, customLinkConfig?: LinkParams) => void;
22
+ linkClick: ({ title, row, column, formData, linkConfig, fieldInfo, callback }: LinkClickParams, type: Type) => void;
23
+ };
24
+ export {};