@qqt-product/ui 0.0.12 → 0.0.13
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/components/ComponentsDemo.vue.d.ts +13 -0
- package/dist/components/EditPage.vue.d.ts +6011 -0
- package/dist/components/PreviewList.vue.d.ts +218 -0
- package/dist/components/hook/use-field-select-modal-hook.d.ts +288 -0
- package/dist/components/login.vue.d.ts +19 -0
- package/dist/components/mock.d.ts +260 -0
- package/dist/components/mockList.d.ts +44 -0
- package/dist/index.es.js +79830 -58293
- package/dist/index.umd.js +15319 -54
- package/dist/lib/components/breadcrumb/index.d.ts +10 -0
- package/dist/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -0
- package/dist/lib/components/card-list-layout/index.d.ts +147 -0
- package/dist/lib/components/card-list-layout/src/card-content.vue.d.ts +70 -0
- package/dist/lib/components/card-list-layout/src/cardItem.vue.d.ts +79 -0
- package/dist/lib/components/card-list-layout/src/index.vue.d.ts +144 -0
- package/dist/lib/components/card-list-layout/src/sidebar.vue.d.ts +30 -0
- package/dist/lib/components/card-list-layout/src/types.d.ts +41 -0
- package/dist/lib/components/cascader/index.d.ts +42 -54
- package/dist/lib/components/cascader/src/cascader-types.d.ts +17 -23
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +42 -54
- package/dist/lib/components/cascader/src/use-cascader.d.ts +2 -2
- package/dist/lib/components/checkbox/index.d.ts +113 -0
- package/dist/lib/components/checkbox/src/checkbox-types.d.ts +62 -0
- package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +109 -0
- package/dist/lib/components/checkbox/src/use-checkbox.d.ts +2 -0
- package/dist/lib/components/codeEditorModel/index.d.ts +187 -0
- package/dist/lib/components/codeEditorModel/src/codeEditorModel.vue.d.ts +184 -0
- package/dist/lib/components/collapse-transition/index.d.ts +16 -0
- package/dist/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +15 -0
- package/dist/lib/components/coutdown/index.d.ts +94 -0
- package/dist/lib/components/coutdown/src/coutdown.d.ts +56 -0
- package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +99 -0
- package/dist/lib/components/currency/index.d.ts +109 -0
- package/dist/lib/components/currency/src/currency-type.d.ts +47 -0
- package/dist/lib/components/currency/src/currency.vue.d.ts +105 -0
- package/dist/lib/components/currency/src/use-currency.d.ts +2 -0
- package/dist/lib/components/currency/src/use-methods.d.ts +14 -0
- package/dist/lib/components/detail-form/index.d.ts +102 -0
- package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +99 -0
- package/dist/lib/components/detail-form/src/use-detail-form.d.ts +2 -0
- package/dist/lib/components/detail-grid/index.d.ts +2633 -0
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +2630 -0
- package/dist/lib/components/detail-grid/src/hook/use-grid-config-hook.d.ts +10 -0
- package/dist/lib/components/detail-grid/src/use-detail-grid.d.ts +2 -0
- package/dist/lib/components/detail-page-layout/index.d.ts +186 -0
- package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +183 -0
- package/dist/lib/components/detail-page-layout/src/use-detail-page-layout.d.ts +2 -0
- package/dist/lib/components/edit-form/index.d.ts +103 -62
- package/dist/lib/components/edit-form/src/edit-form-types.d.ts +28 -24
- package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +104 -62
- package/dist/lib/components/edit-form/src/hook/use-callback-hook.d.ts +11 -0
- package/dist/lib/components/edit-form/src/hook/use-form-config-hook.d.ts +8 -0
- package/dist/lib/components/edit-form/src/use-edit-form.d.ts +1 -1
- package/dist/lib/components/edit-grid/index.d.ts +90 -63
- package/dist/lib/components/edit-grid/src/components/empty/index.d.ts +8 -0
- package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +33 -24
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +90 -63
- package/dist/lib/components/edit-grid/src/hook/use-grid-config-hook.d.ts +10 -0
- package/dist/lib/components/edit-grid/src/hook/use-grid-height-hook.d.ts +4 -0
- package/dist/lib/components/edit-grid/src/use-edit-grid.d.ts +1 -1
- package/dist/lib/components/edit-page-layout/index.d.ts +66 -10
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +206 -38
- package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +66 -10
- package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -0
- package/dist/lib/components/editor/index.d.ts +31 -0
- package/dist/lib/components/editor/src/index.vue.d.ts +28 -0
- package/dist/lib/components/field-select-modal/index.d.ts +150 -0
- package/dist/lib/components/field-select-modal/src/field-select-modal-types.d.ts +85 -0
- package/dist/lib/components/field-select-modal/src/field-select-modal.vue.d.ts +146 -0
- package/dist/lib/components/field-select-modal/src/use-field-select-modal.d.ts +6 -0
- package/dist/lib/components/index.d.ts +23 -3
- package/dist/lib/components/item-wrap/index.d.ts +57 -0
- package/dist/lib/components/item-wrap/src/item-wrap-types.d.ts +27 -0
- package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +53 -0
- package/dist/lib/components/item-wrap/src/use-item-wrap.d.ts +2 -0
- package/dist/lib/components/layout/index.d.ts +93 -12
- package/dist/lib/components/layout/src/header/index.vue.d.ts +109 -76
- package/dist/lib/components/layout/src/header/navRight/customMessage.vue.d.ts +8 -17
- package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +15 -2
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +99 -61
- package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +26 -6
- package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +22 -39
- package/dist/lib/components/layout/src/header/navRight/settingDrawer.vue.d.ts +34 -0
- package/dist/lib/components/layout/src/index.vue.d.ts +93 -26
- package/dist/lib/components/layout/src/menu/deepCycleSubMenu.vue.d.ts +4 -1
- package/dist/lib/components/layout/src/menu/menu.vue.d.ts +56 -72
- package/dist/lib/components/layout/src/menu/secondLevelMenu.vue.d.ts +4 -22
- package/dist/lib/components/layout/src/menu/subSecondMenu.vue.d.ts +3 -21
- package/dist/lib/components/layout/src/sider/index.vue.d.ts +23 -24
- package/dist/lib/components/layout/src/sider/logo.vue.d.ts +1 -10
- package/dist/lib/components/layout/src/sider/search.vue.d.ts +77 -2
- package/dist/lib/components/layout/src/types.d.ts +68 -0
- package/dist/lib/components/{layout-auchor → layout-anchor}/index.d.ts +9 -6
- package/dist/lib/components/{layout-auchor/src/layout-auchor-types.d.ts → layout-anchor/src/layout-anchor-types.d.ts} +3 -3
- package/dist/lib/components/{layout-auchor → layout-anchor}/src/layout-auchor.vue.d.ts +6 -3
- package/dist/lib/components/layout-anchor/src/use-layout-anchor.d.ts +2 -0
- package/dist/lib/components/layout-buttons/index.d.ts +38 -1
- package/dist/lib/components/layout-buttons/src/layout-buttons-types.d.ts +16 -0
- package/dist/lib/components/layout-buttons/src/layout-buttons.vue.d.ts +38 -1
- package/dist/lib/components/layout-buttons/src/use-layout-buttons.d.ts +1 -1
- package/dist/lib/components/layout-pattern/index.d.ts +7 -13
- package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +34 -4
- package/dist/lib/components/layout-pattern/src/layout-pattern-types.d.ts +3 -5
- package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +7 -13
- package/dist/lib/components/list-page-layout/index.d.ts +244 -0
- package/dist/lib/components/list-page-layout/src/components/common/add-modal/add-modal.vue.d.ts +21 -0
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +293 -0
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/use-grid-slot-hook.d.ts +22 -0
- package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/edit-nav-modal.vue.d.ts +16 -0
- package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/types.d.ts +4 -0
- package/dist/lib/components/list-page-layout/src/components/common/help-text-modal/help-text-modal.vue.d.ts +8 -0
- package/dist/lib/components/list-page-layout/src/components/common/import-modal/import-modal.vue.d.ts +40 -0
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/mock.d.ts +48 -0
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +5088 -0
- package/dist/lib/components/list-page-layout/src/components/list-content/events-helper.d.ts +13 -0
- package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +95 -0
- package/dist/lib/components/list-page-layout/src/components/list-content-buttons/events-helper.d.ts +6 -0
- package/dist/lib/components/list-page-layout/src/components/list-content-buttons/list-content-buttons.vue.d.ts +33 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +27 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +15 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/quick-nav/index.vue.d.ts +9 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +103 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/tabs/index.vue.d.ts +56 -0
- package/dist/lib/components/list-page-layout/src/hooks/export-xls-hook.d.ts +4 -0
- package/dist/lib/components/list-page-layout/src/hooks/fetch-data-hook.d.ts +5 -0
- package/dist/lib/components/list-page-layout/src/hooks/fetch-head-data-hook.d.ts +6 -0
- package/dist/lib/components/list-page-layout/src/hooks/get-columns-hook.d.ts +6 -0
- package/dist/lib/components/list-page-layout/src/hooks/list-slot-hook.d.ts +9 -0
- package/dist/lib/components/list-page-layout/src/hooks/use-button-function-hook.d.ts +13 -0
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +238 -0
- package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +358 -0
- package/dist/lib/components/list-page-layout/src/symbol.d.ts +11 -0
- package/dist/lib/components/list-page-layout/src/tokens.d.ts +12 -0
- package/dist/lib/components/list-page-layout/src/types.d.ts +1 -0
- package/dist/lib/components/list-page-layout/src/utils/gridConfig.d.ts +174 -0
- package/dist/lib/components/page-layout/index.d.ts +11 -1
- package/dist/lib/components/page-layout/src/constant/buttons.d.ts +10 -0
- package/dist/lib/components/page-layout/src/constant/index.d.ts +3 -0
- package/dist/lib/components/page-layout/src/constant/items.d.ts +3 -0
- package/dist/lib/components/page-layout/src/constant/symbol.d.ts +15 -0
- package/dist/lib/components/page-layout/src/hook/use-merge-defaultValues-hook.d.ts +6 -0
- package/dist/lib/components/page-layout/src/hook/use-page-data-hook.d.ts +6 -0
- package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +26 -0
- package/dist/lib/components/page-layout/src/hook/use-ref-instance-hook.d.ts +7 -0
- package/dist/lib/components/page-layout/src/hook/use-remote-config-hook.d.ts +5 -2
- package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +6 -1
- package/dist/lib/components/page-layout/src/token.d.ts +7 -1
- package/dist/lib/components/page-layout/src/util.d.ts +10 -35
- package/dist/lib/components/radio/index.d.ts +104 -0
- package/dist/lib/components/radio/src/radio-types.d.ts +56 -0
- package/dist/lib/components/radio/src/radio.vue.d.ts +100 -0
- package/dist/lib/components/radio/src/use-radio.d.ts +2 -0
- package/dist/lib/components/remote-select/index.d.ts +122 -0
- package/dist/lib/components/remote-select/src/remote-select-types.d.ts +50 -0
- package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +118 -0
- package/dist/lib/components/remote-select/src/use-remote-select.d.ts +6 -0
- package/dist/lib/components/select/index.d.ts +10 -41
- package/dist/lib/components/select/src/select-types.d.ts +4 -15
- package/dist/lib/components/select/src/select.vue.d.ts +10 -41
- package/dist/lib/components/select/src/use-select.d.ts +2 -2
- package/dist/lib/components/select-modal/index.d.ts +329 -0
- package/dist/lib/components/select-modal/src/select-modal-types.d.ts +51 -0
- package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +325 -0
- package/dist/lib/components/select-modal/src/use-select-modal.d.ts +6 -0
- package/dist/lib/components/shared/hooks/use-namespace-last.d.ts +23 -0
- package/dist/lib/components/shared/hooks/use-namespace.d.ts +3 -3
- package/dist/lib/components/switch/index.d.ts +2 -4
- package/dist/lib/components/switch/src/switch-types.d.ts +0 -2
- package/dist/lib/components/switch/src/switch.vue.d.ts +2 -4
- package/dist/lib/components/tree-select/index.d.ts +114 -0
- package/dist/lib/components/tree-select/src/tree-select-types.d.ts +60 -0
- package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +110 -0
- package/dist/lib/components/tree-select/src/use-tree-select.d.ts +2 -0
- package/dist/lib/components/upload-file/index.d.ts +266 -0
- package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +20 -0
- package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +11 -0
- package/dist/lib/components/upload-file/src/hook/use-operation-column-hook.d.ts +15 -0
- package/dist/lib/components/upload-file/src/upload-file-types.d.ts +154 -0
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +258 -0
- package/dist/lib/components/upload-image/index.d.ts +191 -0
- package/dist/lib/components/upload-image/src/upload-image-type.d.ts +53 -0
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +187 -0
- package/dist/lib/components/vxe-select/index.d.ts +116 -0
- package/dist/lib/components/vxe-select/src/use-vxe-select.d.ts +2 -0
- package/dist/lib/components/vxe-select/src/vxe-select-types.d.ts +58 -0
- package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +112 -0
- package/dist/lib/index.d.ts +16 -2
- package/dist/lib/setting/vxe-table/config.d.ts +3 -0
- package/dist/lib/utils/event.d.ts +37 -0
- package/dist/router/index.d.ts +4 -0
- package/dist/stores/user.d.ts +25 -0
- package/dist/style.css +6 -8
- package/dist/utils/qApiPlugin.d.ts +6 -0
- package/dist/views/dashboard/workspace.vue.d.ts +6972 -0
- package/dist/vite-env.d.ts +15 -0
- package/package.json +17 -4
- package/dist/lib/components/layout/src/menu/icon.d.ts +0 -6
- package/dist/lib/components/layout-auchor/src/use-layout-auchor.d.ts +0 -2
- package/dist/lib/components/layout-header/index.d.ts +0 -17
- package/dist/lib/components/layout-header/src/layout-header-types.d.ts +0 -8
- package/dist/lib/components/layout-header/src/layout-header.vue.d.ts +0 -13
- package/dist/lib/components/layout-header/src/use-layout-header.d.ts +0 -2
- package/dist/lib/constant/constant.d.ts +0 -1
- package/dist/lib/types/ComponentCustomProperties .d.ts +0 -6
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AxiosRequestConfig } from '@qqt-product/api';
|
|
2
|
+
import type { Ref, ComputedRef, PropType, ExtractPropTypes, SetupContext } from 'vue';
|
|
3
|
+
import type { VxeGridProps } from 'vxe-table';
|
|
4
|
+
import type { Decimal } from 'decimal.js';
|
|
5
|
+
export interface ResponseType {
|
|
6
|
+
code: number;
|
|
7
|
+
message: string;
|
|
8
|
+
result: RecordStringNumber;
|
|
9
|
+
success: boolean;
|
|
10
|
+
timestamp: number;
|
|
11
|
+
}
|
|
2
12
|
export interface UserInfo {
|
|
3
13
|
elsAccount: string;
|
|
4
14
|
subAccount: string;
|
|
@@ -10,13 +20,29 @@ export interface CurrentRow {
|
|
|
10
20
|
templateVersion: number;
|
|
11
21
|
templateAccount: string;
|
|
12
22
|
busAccount: string;
|
|
23
|
+
elsAccount: string;
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
export interface DictCodeItem {
|
|
27
|
+
title: string;
|
|
28
|
+
value: string;
|
|
13
29
|
[key: string]: unknown;
|
|
14
30
|
}
|
|
15
31
|
export type Role = 'purchase' | 'sale';
|
|
32
|
+
export declare function roleValidator(pattern: string): boolean;
|
|
33
|
+
export type GroupType = 'head' | 'item';
|
|
16
34
|
export type Pattern = 'vertical' | 'tab' | 'collapse' | 'master';
|
|
17
35
|
export declare function patternValidator(pattern: string): boolean;
|
|
18
|
-
export
|
|
19
|
-
|
|
36
|
+
export interface Icon {
|
|
37
|
+
type: string;
|
|
38
|
+
size: number;
|
|
39
|
+
color?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface PageButtonPayload {
|
|
42
|
+
tableData: RecordStringNumber[];
|
|
43
|
+
pageData: Ref<RecordStringNumber>;
|
|
44
|
+
fileData?: RecordStringNumber[];
|
|
45
|
+
}
|
|
20
46
|
export interface PageButton {
|
|
21
47
|
title: string;
|
|
22
48
|
key: string | symbol;
|
|
@@ -24,78 +50,209 @@ export interface PageButton {
|
|
|
24
50
|
url: string;
|
|
25
51
|
[key: string]: unknown;
|
|
26
52
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
53
|
+
authorityCode?: string;
|
|
54
|
+
attrs?: RecordStringNumber;
|
|
55
|
+
icon?: Icon;
|
|
56
|
+
emit?: boolean;
|
|
57
|
+
emitKey?: string;
|
|
58
|
+
showMessage?: boolean;
|
|
59
|
+
checkBefore?: boolean;
|
|
60
|
+
confirm?: {
|
|
61
|
+
title: string;
|
|
62
|
+
content: string;
|
|
63
|
+
};
|
|
64
|
+
isExistFrozenSource?: boolean;
|
|
65
|
+
isExistFrozenSourceUrl?: string;
|
|
66
|
+
isExistFrozenSourceParams?: (pageData: RecordStringNumber) => RecordStringNumber;
|
|
67
|
+
disabled?: (pageData: RecordStringNumber) => boolean;
|
|
68
|
+
handleBefore?: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
|
|
69
|
+
handleAfter?: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
|
|
70
|
+
callback?: (payload: PageButtonPayload) => void;
|
|
71
|
+
}
|
|
72
|
+
export interface PageUploadButton extends Omit<PageButton, 'args'> {
|
|
73
|
+
args?: {
|
|
74
|
+
url?: string;
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export interface PageButtonWithGroupCode extends PageButton {
|
|
79
|
+
groupCode: string;
|
|
80
|
+
}
|
|
81
|
+
export interface PageButtonDeleteRow extends PageButton {
|
|
82
|
+
groupCode: string;
|
|
83
|
+
ids?: string[];
|
|
84
|
+
}
|
|
85
|
+
export type ValidateStatus = 'success' | 'fail' | 'unset';
|
|
86
|
+
export interface ValidateResult {
|
|
87
|
+
result: {
|
|
88
|
+
groupCode: string;
|
|
89
|
+
status: ValidateStatus;
|
|
90
|
+
};
|
|
91
|
+
button: PageButton;
|
|
31
92
|
}
|
|
32
|
-
export type
|
|
33
|
-
export
|
|
93
|
+
export type PageButtonPosition = 'top' | 'bottom';
|
|
94
|
+
export declare function pageButtonPositionValidator(mode: string): boolean;
|
|
95
|
+
export type RecordStringNumber = Record<string | number, unknown>;
|
|
96
|
+
export interface Group {
|
|
34
97
|
groupName: string;
|
|
35
98
|
groupNameI18nKey?: string;
|
|
36
99
|
groupCode: string;
|
|
37
|
-
groupType:
|
|
100
|
+
groupType: GroupType;
|
|
38
101
|
sortOrder?: string;
|
|
39
|
-
buttons?: PageButton[];
|
|
40
|
-
extend?:
|
|
41
|
-
|
|
102
|
+
buttons?: PageButton[] | PageUploadButton[];
|
|
103
|
+
extend?: RecordStringNumber;
|
|
104
|
+
vxeGridConfig?: VxeGridProps;
|
|
105
|
+
show?: boolean;
|
|
106
|
+
shake?: boolean;
|
|
107
|
+
columns?: ColumnItem[];
|
|
108
|
+
formFields?: FormFieldsItem[];
|
|
42
109
|
}
|
|
43
|
-
export
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
110
|
+
export interface HeadGroupType extends Group {
|
|
111
|
+
groupType: 'head';
|
|
112
|
+
formFields: FormFieldsItem[];
|
|
113
|
+
}
|
|
114
|
+
export interface ItemGroupType extends Group {
|
|
115
|
+
groupType: 'item';
|
|
116
|
+
columns: ColumnItem[];
|
|
117
|
+
}
|
|
118
|
+
export type GroupItem = HeadGroupType | ItemGroupType;
|
|
119
|
+
export type StringOrNumber = string | number;
|
|
120
|
+
export interface Expose {
|
|
121
|
+
pageData: RecordStringNumber;
|
|
122
|
+
layoutConfig: LayoutConfig;
|
|
123
|
+
defaultValues: RecordStringNumber;
|
|
124
|
+
}
|
|
125
|
+
export interface ExposeWithPageButtons {
|
|
126
|
+
pageData: Ref<RecordStringNumber>;
|
|
127
|
+
layoutConfig: Ref<LayoutConfig>;
|
|
128
|
+
defaultValues: Ref<RecordStringNumber>;
|
|
129
|
+
pageButtons: Ref<PageButton[]>;
|
|
130
|
+
refreshMethods?: (row?: CurrentRow) => void;
|
|
131
|
+
isAdd?: boolean;
|
|
132
|
+
addResult?: CurrentRow;
|
|
133
|
+
}
|
|
134
|
+
export type CustomFormatItem = (groupCode: string, fieldName: string, fn: (item: FormFieldsItem | ColumnItem) => void) => void;
|
|
135
|
+
export type SetItemRequired = (groupCode: string, fieldName: string, flag: boolean) => void;
|
|
136
|
+
export type SetItemDisabled = (groupCode: string, fieldName: string, flag: boolean) => void;
|
|
137
|
+
export type SetItemRequiredOrDisabled = (groupCode: string, fieldName: string, flag: boolean) => void;
|
|
138
|
+
export interface ValuePayload {
|
|
139
|
+
value: StringOrNumber;
|
|
140
|
+
data?: RecordStringNumber[];
|
|
141
|
+
pageData: RecordStringNumber;
|
|
142
|
+
layoutConfig: LayoutConfig;
|
|
143
|
+
userInfo?: UserInfo;
|
|
144
|
+
modalData?: RecordStringNumber[];
|
|
145
|
+
customFormatItem?: CustomFormatItem;
|
|
146
|
+
setItemRequired?: SetItemRequired;
|
|
147
|
+
setItemDisabled?: SetItemDisabled;
|
|
148
|
+
setItemRequiredOrDisabled?: SetItemRequiredOrDisabled;
|
|
149
|
+
Decimal?: typeof Decimal;
|
|
150
|
+
}
|
|
151
|
+
export type Payload = ValuePayload;
|
|
152
|
+
export type VxePayload = {
|
|
153
|
+
value?: StringOrNumber;
|
|
154
|
+
data?: RecordStringNumber[];
|
|
155
|
+
pageData: RecordStringNumber;
|
|
156
|
+
layoutConfig: LayoutConfig;
|
|
157
|
+
userInfo?: UserInfo;
|
|
158
|
+
modalData?: RecordStringNumber[];
|
|
159
|
+
row: RecordStringNumber;
|
|
160
|
+
idx: number;
|
|
161
|
+
fileData?: RecordStringNumber[];
|
|
162
|
+
customFormatItem?: CustomFormatItem;
|
|
163
|
+
setItemRequired?: SetItemRequired;
|
|
164
|
+
setItemDisabled?: SetItemDisabled;
|
|
165
|
+
setItemRequiredOrDisabled?: SetItemRequiredOrDisabled;
|
|
166
|
+
Decimal?: typeof Decimal;
|
|
49
167
|
};
|
|
50
168
|
export interface FormFieldsItem {
|
|
51
169
|
groupCode: string;
|
|
52
170
|
fieldType: string;
|
|
53
171
|
fieldLabel: string;
|
|
54
172
|
fieldName: string;
|
|
173
|
+
helpText?: string;
|
|
174
|
+
required?: '0' | '1';
|
|
175
|
+
regex?: RegExp;
|
|
176
|
+
alertMsg?: string;
|
|
177
|
+
callback?: (ctx: SetupContext, payload: Payload) => void;
|
|
55
178
|
[key: string]: unknown;
|
|
56
179
|
}
|
|
57
180
|
export interface ColumnItem {
|
|
58
181
|
groupCode: string;
|
|
59
182
|
title: string;
|
|
60
|
-
fieldLabelI18nKey
|
|
61
|
-
field: string;
|
|
62
|
-
[key: string]: unknown;
|
|
63
|
-
}
|
|
64
|
-
export interface ItemColumnsItem {
|
|
65
|
-
groupCode: string;
|
|
66
|
-
title: string;
|
|
183
|
+
fieldLabelI18nKey?: string;
|
|
67
184
|
field: string;
|
|
68
185
|
fieldType?: string;
|
|
186
|
+
helpText?: string;
|
|
187
|
+
required?: '0' | '1';
|
|
188
|
+
regex?: string | RegExp;
|
|
189
|
+
alertMsg?: string;
|
|
190
|
+
callback?: (ctx: SetupContext, payload: VxePayload) => void;
|
|
69
191
|
[key: string]: unknown;
|
|
70
192
|
}
|
|
193
|
+
export interface FormFieldsItemWithValue extends FormFieldsItem {
|
|
194
|
+
value: StringOrNumber;
|
|
195
|
+
data?: RecordStringNumber[];
|
|
196
|
+
}
|
|
197
|
+
export interface ColumnItemWithValue extends ColumnItem {
|
|
198
|
+
value: StringOrNumber;
|
|
199
|
+
idx: number;
|
|
200
|
+
data?: RecordStringNumber[];
|
|
201
|
+
}
|
|
202
|
+
export interface ColumnItemWithExtend extends ColumnItem {
|
|
203
|
+
extend: {
|
|
204
|
+
businessType: string;
|
|
205
|
+
[key: string]: unknown;
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
export interface FormFieldsItemUpload extends FormFieldsItem {
|
|
209
|
+
extend?: {
|
|
210
|
+
businessType?: string;
|
|
211
|
+
[key: string]: unknown;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
export type BindFunctionEvent = FormFieldsItemWithValue;
|
|
215
|
+
export type VxeBindFunctionEvent = ColumnItemWithValue;
|
|
71
216
|
export type RemoteConfig = {
|
|
72
217
|
editLayout?: string;
|
|
73
218
|
tempRole?: string;
|
|
74
219
|
examineLayout?: string;
|
|
75
|
-
groups:
|
|
220
|
+
groups: Group[];
|
|
76
221
|
formFields: FormFieldsItem[];
|
|
77
|
-
itemColumns:
|
|
222
|
+
itemColumns: ColumnItem[];
|
|
78
223
|
};
|
|
224
|
+
export type LayoutConfig = Omit<RemoteConfig, 'groups' | 'formFields' | 'itemColumns'> & {
|
|
225
|
+
groups: GroupItem[];
|
|
226
|
+
};
|
|
227
|
+
export type LocalConfig = Partial<RemoteConfig>;
|
|
79
228
|
export interface DetailApiFunctionType {
|
|
80
|
-
(row: CurrentRow): {
|
|
81
|
-
|
|
82
|
-
params: {
|
|
83
|
-
id: string;
|
|
84
|
-
} & {
|
|
85
|
-
[key: string]: unknown;
|
|
86
|
-
};
|
|
229
|
+
(row: CurrentRow): AxiosRequestConfig & {
|
|
230
|
+
method: 'get' | 'post' | 'delete' | 'put';
|
|
87
231
|
};
|
|
88
232
|
}
|
|
89
233
|
export declare const editPageLayoutProps: {
|
|
234
|
+
isDetail: {
|
|
235
|
+
type: PropType<boolean>;
|
|
236
|
+
default: boolean;
|
|
237
|
+
};
|
|
90
238
|
businessType: {
|
|
91
239
|
type: StringConstructor;
|
|
92
240
|
default: string;
|
|
93
241
|
};
|
|
242
|
+
role: {
|
|
243
|
+
type: PropType<Role>;
|
|
244
|
+
default: string;
|
|
245
|
+
validator: typeof roleValidator;
|
|
246
|
+
};
|
|
94
247
|
currentRow: {
|
|
95
248
|
type: PropType<CurrentRow>;
|
|
96
249
|
default(): {};
|
|
97
250
|
require: boolean;
|
|
98
251
|
};
|
|
252
|
+
refreshMethods: {
|
|
253
|
+
type: PropType<(row?: CurrentRow) => void>;
|
|
254
|
+
default: null;
|
|
255
|
+
};
|
|
99
256
|
userInfo: {
|
|
100
257
|
type: PropType<UserInfo>;
|
|
101
258
|
default(): {};
|
|
@@ -116,10 +273,13 @@ export declare const editPageLayoutProps: {
|
|
|
116
273
|
detailApi: {
|
|
117
274
|
type: PropType<string | DetailApiFunctionType>;
|
|
118
275
|
default: string;
|
|
119
|
-
|
|
276
|
+
};
|
|
277
|
+
withoutIdDetailApi: {
|
|
278
|
+
type: PropType<string>;
|
|
279
|
+
default: string;
|
|
120
280
|
};
|
|
121
281
|
handleAfterDetailApiResponse: {
|
|
122
|
-
type: PropType<(
|
|
282
|
+
type: PropType<(args: Expose) => void>;
|
|
123
283
|
default: null;
|
|
124
284
|
};
|
|
125
285
|
pageButtons: {
|
|
@@ -131,14 +291,22 @@ export declare const editPageLayoutProps: {
|
|
|
131
291
|
default: string;
|
|
132
292
|
validator: typeof pageButtonPositionValidator;
|
|
133
293
|
};
|
|
294
|
+
hasAdd: {
|
|
295
|
+
type: PropType<boolean>;
|
|
296
|
+
default: boolean;
|
|
297
|
+
};
|
|
134
298
|
isUseLocalData: {
|
|
135
299
|
type: PropType<boolean>;
|
|
136
300
|
default: boolean;
|
|
137
301
|
};
|
|
138
302
|
localData: {
|
|
139
|
-
type: PropType<
|
|
303
|
+
type: PropType<RecordStringNumber>;
|
|
140
304
|
default(): {};
|
|
141
305
|
};
|
|
306
|
+
showBackIcon: {
|
|
307
|
+
type: PropType<boolean>;
|
|
308
|
+
default: boolean;
|
|
309
|
+
};
|
|
142
310
|
};
|
|
143
311
|
export type EditPageLayoutProps = ExtractPropTypes<typeof editPageLayoutProps>;
|
|
144
312
|
export interface EditPageLayoutReturnType {
|
|
@@ -1,15 +1,28 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { Role, roleValidator, CurrentRow, UserInfo, Pattern, patternValidator, RemoteConfig, DetailApiFunctionType, PageButtonPosition, pageButtonPositionValidator, RecordStringNumber, Expose, PageButton } from './edit-page-layout-types';
|
|
3
3
|
declare const _sfc_main: DefineComponent<{
|
|
4
|
+
isDetail: {
|
|
5
|
+
type: PropType<boolean>;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
4
8
|
businessType: {
|
|
5
9
|
type: StringConstructor;
|
|
6
10
|
default: string;
|
|
7
11
|
};
|
|
12
|
+
role: {
|
|
13
|
+
type: PropType<Role>;
|
|
14
|
+
default: string;
|
|
15
|
+
validator: typeof roleValidator;
|
|
16
|
+
};
|
|
8
17
|
currentRow: {
|
|
9
18
|
type: PropType<CurrentRow>;
|
|
10
19
|
default(): {};
|
|
11
20
|
require: boolean;
|
|
12
21
|
};
|
|
22
|
+
refreshMethods: {
|
|
23
|
+
type: PropType<(row?: CurrentRow | undefined) => void>;
|
|
24
|
+
default: null;
|
|
25
|
+
};
|
|
13
26
|
userInfo: {
|
|
14
27
|
type: PropType<UserInfo>;
|
|
15
28
|
default(): {};
|
|
@@ -30,10 +43,13 @@ declare const _sfc_main: DefineComponent<{
|
|
|
30
43
|
detailApi: {
|
|
31
44
|
type: PropType<string | DetailApiFunctionType>;
|
|
32
45
|
default: string;
|
|
33
|
-
|
|
46
|
+
};
|
|
47
|
+
withoutIdDetailApi: {
|
|
48
|
+
type: PropType<string>;
|
|
49
|
+
default: string;
|
|
34
50
|
};
|
|
35
51
|
handleAfterDetailApiResponse: {
|
|
36
|
-
type: PropType<(
|
|
52
|
+
type: PropType<(args: Expose) => void>;
|
|
37
53
|
default: null;
|
|
38
54
|
};
|
|
39
55
|
pageButtons: {
|
|
@@ -45,28 +61,51 @@ declare const _sfc_main: DefineComponent<{
|
|
|
45
61
|
default: string;
|
|
46
62
|
validator: typeof pageButtonPositionValidator;
|
|
47
63
|
};
|
|
64
|
+
hasAdd: {
|
|
65
|
+
type: PropType<boolean>;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
48
68
|
isUseLocalData: {
|
|
49
69
|
type: PropType<boolean>;
|
|
50
70
|
default: boolean;
|
|
51
71
|
};
|
|
52
72
|
localData: {
|
|
53
|
-
type: PropType<
|
|
73
|
+
type: PropType<RecordStringNumber>;
|
|
54
74
|
default(): {};
|
|
55
75
|
};
|
|
76
|
+
showBackIcon: {
|
|
77
|
+
type: PropType<boolean>;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
56
80
|
}, {
|
|
81
|
+
instance: Ref<Expose | undefined>;
|
|
57
82
|
classes: ComputedRef<{
|
|
58
83
|
[key: string]: string | boolean;
|
|
59
84
|
}>;
|
|
85
|
+
handleSetInstance: (expose: Expose) => void;
|
|
60
86
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
87
|
+
isDetail: {
|
|
88
|
+
type: PropType<boolean>;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
61
91
|
businessType: {
|
|
62
92
|
type: StringConstructor;
|
|
63
93
|
default: string;
|
|
64
94
|
};
|
|
95
|
+
role: {
|
|
96
|
+
type: PropType<Role>;
|
|
97
|
+
default: string;
|
|
98
|
+
validator: typeof roleValidator;
|
|
99
|
+
};
|
|
65
100
|
currentRow: {
|
|
66
101
|
type: PropType<CurrentRow>;
|
|
67
102
|
default(): {};
|
|
68
103
|
require: boolean;
|
|
69
104
|
};
|
|
105
|
+
refreshMethods: {
|
|
106
|
+
type: PropType<(row?: CurrentRow | undefined) => void>;
|
|
107
|
+
default: null;
|
|
108
|
+
};
|
|
70
109
|
userInfo: {
|
|
71
110
|
type: PropType<UserInfo>;
|
|
72
111
|
default(): {};
|
|
@@ -87,10 +126,13 @@ declare const _sfc_main: DefineComponent<{
|
|
|
87
126
|
detailApi: {
|
|
88
127
|
type: PropType<string | DetailApiFunctionType>;
|
|
89
128
|
default: string;
|
|
90
|
-
|
|
129
|
+
};
|
|
130
|
+
withoutIdDetailApi: {
|
|
131
|
+
type: PropType<string>;
|
|
132
|
+
default: string;
|
|
91
133
|
};
|
|
92
134
|
handleAfterDetailApiResponse: {
|
|
93
|
-
type: PropType<(
|
|
135
|
+
type: PropType<(args: Expose) => void>;
|
|
94
136
|
default: null;
|
|
95
137
|
};
|
|
96
138
|
pageButtons: {
|
|
@@ -102,26 +144,40 @@ declare const _sfc_main: DefineComponent<{
|
|
|
102
144
|
default: string;
|
|
103
145
|
validator: typeof pageButtonPositionValidator;
|
|
104
146
|
};
|
|
147
|
+
hasAdd: {
|
|
148
|
+
type: PropType<boolean>;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
105
151
|
isUseLocalData: {
|
|
106
152
|
type: PropType<boolean>;
|
|
107
153
|
default: boolean;
|
|
108
154
|
};
|
|
109
155
|
localData: {
|
|
110
|
-
type: PropType<
|
|
156
|
+
type: PropType<RecordStringNumber>;
|
|
111
157
|
default(): {};
|
|
112
158
|
};
|
|
159
|
+
showBackIcon: {
|
|
160
|
+
type: PropType<boolean>;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
113
163
|
}>>, {
|
|
164
|
+
isDetail: boolean;
|
|
114
165
|
businessType: string;
|
|
166
|
+
role: Role;
|
|
115
167
|
currentRow: CurrentRow;
|
|
168
|
+
refreshMethods: (row?: CurrentRow | undefined) => void;
|
|
116
169
|
userInfo: UserInfo;
|
|
117
170
|
pattern: Pattern;
|
|
118
171
|
localConfig: Partial<RemoteConfig>;
|
|
119
172
|
handleAfterRemoteConfig: <T>(args: T) => T | Promise<T>;
|
|
120
173
|
detailApi: string | DetailApiFunctionType;
|
|
121
|
-
|
|
174
|
+
withoutIdDetailApi: string;
|
|
175
|
+
handleAfterDetailApiResponse: (args: Expose) => void;
|
|
122
176
|
pageButtons: PageButton[];
|
|
123
177
|
pageButtonPosition: PageButtonPosition;
|
|
178
|
+
hasAdd: boolean;
|
|
124
179
|
isUseLocalData: boolean;
|
|
125
|
-
localData:
|
|
180
|
+
localData: RecordStringNumber;
|
|
181
|
+
showBackIcon: boolean;
|
|
126
182
|
}>;
|
|
127
183
|
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ResponseType, UserInfo, CurrentRow, DictCodeItem, Role, GroupType, Pattern, Icon, PageButton, PageButtonWithGroupCode, PageButtonDeleteRow, ValidateStatus, ValidateResult, PageButtonPosition, RecordStringNumber, Group, HeadGroupType, ItemGroupType, GroupItem, StringOrNumber, Expose, ExposeWithPageButtons, Payload, VxePayload, FormFieldsItem, ColumnItem, FormFieldsItemWithValue, ColumnItemWithValue, BindFunctionEvent, VxeBindFunctionEvent, RemoteConfig, LayoutConfig, LocalConfig, DetailApiFunctionType, EditPageLayoutProps, } from './edit-page-layout-types';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
3
|
+
import QEditor from './src/index.vue';
|
|
4
|
+
declare const _default: SFCWithInstall<DefineComponent<{
|
|
5
|
+
content: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
readonly: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
editorRef: Ref<HTMLDivElement | undefined>;
|
|
15
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:content"[], "update:content", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
16
|
+
content: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
readonly: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}>> & {
|
|
25
|
+
"onUpdate:content"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
content: string;
|
|
28
|
+
readonly: boolean;
|
|
29
|
+
}>>;
|
|
30
|
+
export default _default;
|
|
31
|
+
export { QEditor };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _sfc_main: DefineComponent<{
|
|
3
|
+
content: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
readonly: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
editorRef: Ref<HTMLDivElement | undefined>;
|
|
13
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:content"[], "update:content", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
14
|
+
content: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
readonly: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}>> & {
|
|
23
|
+
"onUpdate:content"?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
content: string;
|
|
26
|
+
readonly: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import type { VxeTableProps, VxeGridInstance } from 'vxe-table';
|
|
2
|
+
import type { RequestMethod, ModalConfig, ModalType, OpenFuncType, TablePage } from './src/field-select-modal-types';
|
|
3
|
+
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
|
+
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
5
|
+
import QFieldSelectModal from './src/field-select-modal.vue';
|
|
6
|
+
export * from './src/field-select-modal-types';
|
|
7
|
+
export { QFieldSelectModal };
|
|
8
|
+
declare const _default: SFCWithInstall<DefineComponent<{
|
|
9
|
+
modalTitle: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
apiUrls: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
requestMethod: {
|
|
18
|
+
type: PropType<RequestMethod>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
modalConfig: {
|
|
22
|
+
type: PropType<ModalConfig>;
|
|
23
|
+
default: () => {};
|
|
24
|
+
};
|
|
25
|
+
tableConfig: {
|
|
26
|
+
type: PropType<VxeTableProps<any>>;
|
|
27
|
+
default: () => {
|
|
28
|
+
height: number;
|
|
29
|
+
isTree: boolean;
|
|
30
|
+
radioConfig: {};
|
|
31
|
+
checkboxConfig: {
|
|
32
|
+
highlight: boolean;
|
|
33
|
+
reserve: boolean;
|
|
34
|
+
trigger: string;
|
|
35
|
+
};
|
|
36
|
+
pagerConfig: {};
|
|
37
|
+
treeConfig: {};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
placeholder: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
selectModal: {
|
|
45
|
+
type: PropType<ModalType>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
classes: ComputedRef<{
|
|
50
|
+
[x: string]: boolean;
|
|
51
|
+
}>;
|
|
52
|
+
selectGrid: Ref<VxeGridInstance | null>;
|
|
53
|
+
data: {
|
|
54
|
+
url: string;
|
|
55
|
+
params: {
|
|
56
|
+
pageNo: number;
|
|
57
|
+
pageSize: number;
|
|
58
|
+
keyWord?: string | undefined;
|
|
59
|
+
total?: number | undefined;
|
|
60
|
+
align?: string | undefined;
|
|
61
|
+
pageSizes?: number[] | undefined;
|
|
62
|
+
layouts?: string[] | undefined;
|
|
63
|
+
perfect?: boolean | undefined;
|
|
64
|
+
};
|
|
65
|
+
modalLoading: boolean;
|
|
66
|
+
loading: boolean;
|
|
67
|
+
};
|
|
68
|
+
modalShow: Ref<boolean>;
|
|
69
|
+
modalConfigComputed: ComputedRef<any>;
|
|
70
|
+
tableConfigComputed: ComputedRef<any>;
|
|
71
|
+
tablePage: {
|
|
72
|
+
currentPage: number;
|
|
73
|
+
pageSize: number;
|
|
74
|
+
total?: number | undefined;
|
|
75
|
+
align?: string | undefined;
|
|
76
|
+
pageSizes?: number[] | undefined;
|
|
77
|
+
layouts?: string[] | undefined;
|
|
78
|
+
perfect?: boolean | undefined;
|
|
79
|
+
};
|
|
80
|
+
tableData: Ref<Record<string, unknown>[]>;
|
|
81
|
+
columns: Ref<{
|
|
82
|
+
type?: string | undefined;
|
|
83
|
+
field?: string | undefined;
|
|
84
|
+
title?: string | undefined;
|
|
85
|
+
align?: string | undefined;
|
|
86
|
+
fieldLabelI18nKey?: string | undefined;
|
|
87
|
+
width?: number | undefined;
|
|
88
|
+
}[]>;
|
|
89
|
+
form: {
|
|
90
|
+
keyWord: string;
|
|
91
|
+
};
|
|
92
|
+
selectModal: Ref<ModalType>;
|
|
93
|
+
getPagerConfig: ComputedRef<any>;
|
|
94
|
+
modalTitle: Ref<string>;
|
|
95
|
+
placeholder: Ref<string>;
|
|
96
|
+
open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
|
|
97
|
+
close: () => void;
|
|
98
|
+
onSearch: (keyWord: string) => void;
|
|
99
|
+
handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
|
|
100
|
+
selectedOk: () => void;
|
|
101
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
102
|
+
modalTitle: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
apiUrls: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
requestMethod: {
|
|
111
|
+
type: PropType<RequestMethod>;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
modalConfig: {
|
|
115
|
+
type: PropType<ModalConfig>;
|
|
116
|
+
default: () => {};
|
|
117
|
+
};
|
|
118
|
+
tableConfig: {
|
|
119
|
+
type: PropType<VxeTableProps<any>>;
|
|
120
|
+
default: () => {
|
|
121
|
+
height: number;
|
|
122
|
+
isTree: boolean;
|
|
123
|
+
radioConfig: {};
|
|
124
|
+
checkboxConfig: {
|
|
125
|
+
highlight: boolean;
|
|
126
|
+
reserve: boolean;
|
|
127
|
+
trigger: string;
|
|
128
|
+
};
|
|
129
|
+
pagerConfig: {};
|
|
130
|
+
treeConfig: {};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
placeholder: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
selectModal: {
|
|
138
|
+
type: PropType<ModalType>;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
}>>, {
|
|
142
|
+
modalConfig: ModalConfig;
|
|
143
|
+
modalTitle: string;
|
|
144
|
+
apiUrls: string;
|
|
145
|
+
requestMethod: RequestMethod;
|
|
146
|
+
tableConfig: VxeTableProps<any>;
|
|
147
|
+
placeholder: string;
|
|
148
|
+
selectModal: ModalType;
|
|
149
|
+
}>>;
|
|
150
|
+
export default _default;
|