@qqt-product/ui 0.0.17 → 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.
- package/dist/index.es.js +81366 -78899
- package/dist/index.umd.js +148 -146
- package/dist/lib/components/audit-modal/index.d.ts +1 -1
- package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +1 -1
- package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +1 -1
- package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +1 -1
- package/dist/lib/components/cascader/index.d.ts +1 -1
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +1 -1
- package/dist/lib/components/checkbox/index.d.ts +4 -4
- package/dist/lib/components/checkbox/src/checkbox-types.d.ts +1 -1
- package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
- package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +73 -5
- package/dist/lib/components/code-editor-model/src/one-dark.d.ts +90 -0
- package/dist/lib/components/countdown/index.d.ts +4 -4
- package/dist/lib/components/countdown/src/countdown.d.ts +4 -4
- package/dist/lib/components/coutdown/index.d.ts +3 -3
- package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +3 -3
- package/dist/lib/components/currency/index.d.ts +3 -3
- package/dist/lib/components/currency/src/currency-type.d.ts +1 -1
- package/dist/lib/components/currency/src/currency.vue.d.ts +3 -3
- package/dist/lib/components/detail-form/index.d.ts +4 -3
- package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +4 -3
- package/dist/lib/components/detail-grid/index.d.ts +13 -13
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +13 -13
- package/dist/lib/components/detail-page-layout/index.d.ts +10 -1
- package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +10 -1
- package/dist/lib/components/edit-form/index.d.ts +3 -3
- package/dist/lib/components/edit-form/src/edit-form-types.d.ts +1 -1
- package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +3 -3
- package/dist/lib/components/edit-grid/index.d.ts +13 -13
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +13 -13
- package/dist/lib/components/edit-page-layout/index.d.ts +10 -1
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +11 -0
- package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +10 -1
- package/dist/lib/components/flow-view/index.d.ts +2 -2
- package/dist/lib/components/flow-view/src/flow-view.d.ts +2 -2
- package/dist/lib/components/import-modal/index.d.ts +1 -1
- package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +1 -1
- package/dist/lib/components/item-wrap/index.d.ts +4 -4
- package/dist/lib/components/item-wrap/src/item-wrap-types.d.ts +1 -1
- package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +4 -4
- package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +13 -12
- package/dist/lib/components/layout-pattern/src/hook/use-audit-button-hook.d.ts +6 -6
- package/dist/lib/components/list-page-layout/index.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +26 -26
- package/dist/lib/components/list-page-layout/src/hooks/get-columns-hook.d.ts +2 -2
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +1 -1
- package/dist/lib/components/page-layout/src/constant/symbol.d.ts +1 -0
- package/dist/lib/components/radio/index.d.ts +4 -4
- package/dist/lib/components/radio/src/radio-types.d.ts +1 -1
- package/dist/lib/components/radio/src/radio.vue.d.ts +4 -4
- package/dist/lib/components/sale-template/index.d.ts +6 -6
- package/dist/lib/components/sale-template/src/sale-template.vue.d.ts +6 -6
- package/dist/lib/components/select/index.d.ts +1 -1
- package/dist/lib/components/select/src/select.vue.d.ts +1 -1
- package/dist/lib/components/select-modal/index.d.ts +1 -1
- package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +1 -1
- package/dist/lib/components/select-template/index.d.ts +1 -1
- package/dist/lib/components/select-template/src/select-template.vue.d.ts +1 -1
- package/dist/lib/components/switch/index.d.ts +5 -5
- package/dist/lib/components/switch/src/switch-types.d.ts +1 -1
- package/dist/lib/components/switch/src/switch.vue.d.ts +5 -5
- package/dist/lib/components/tree-select/index.d.ts +1 -1
- package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +1 -1
- package/dist/lib/components/upload-file/index.d.ts +1 -1
- package/dist/lib/components/upload-file/src/upload-file-types.d.ts +1 -0
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +1 -1
- package/dist/lib/components/upload-image/index.d.ts +1 -1
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +1 -1
- package/dist/lib/components/vxe-select/index.d.ts +4 -4
- package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +4 -4
- package/dist/lib/utils/event.d.ts +3 -2
- package/dist/lib/utils/use-create-link-hook.d.ts +24 -0
- package/dist/style.css +1 -1
- package/package.json +21 -18
- package/dist/lib/components/list-page-layout/src/hooks/use-list-params-hook.d.ts +0 -7
|
@@ -99,9 +99,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
99
99
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
100
100
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
101
101
|
}, {
|
|
102
|
-
readonly multiple: boolean;
|
|
103
102
|
readonly params: RecordString;
|
|
104
103
|
readonly onChange: ((payload: TreeSelectPayload) => void) | ((payload: TreeSelectPayload) => void)[];
|
|
104
|
+
readonly multiple: boolean;
|
|
105
105
|
readonly value: string;
|
|
106
106
|
readonly options: TreeNode[];
|
|
107
107
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
@@ -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;
|
|
@@ -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,10 +122,13 @@ 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;
|
|
131
|
-
readonly 'onUpdate:modelValue': ((value: string) => void) | ((value: string) => void)[];
|
|
132
131
|
readonly modelValue: string;
|
|
132
|
+
readonly 'onUpdate:modelValue': ((value: string) => void) | ((value: string) => void)[];
|
|
133
133
|
}, {}>>;
|
|
134
134
|
export default _default;
|
|
@@ -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,10 +118,13 @@ 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;
|
|
127
|
-
readonly 'onUpdate:modelValue': ((value: string) => void) | ((value: string) => void)[];
|
|
128
127
|
readonly modelValue: string;
|
|
128
|
+
readonly 'onUpdate:modelValue': ((value: string) => void) | ((value: string) => void)[];
|
|
129
129
|
}, {}>;
|
|
130
130
|
export default _sfc_main;
|
|
@@ -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 {};
|