@qqt-product/ui 0.0.12 → 0.0.14
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 +56339 -59301
- package/dist/index.umd.js +15222 -56
- 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 +43 -55
- package/dist/lib/components/cascader/src/cascader-types.d.ts +17 -23
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +43 -55
- 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 +93 -0
- package/dist/lib/components/codeEditorModel/src/codeEditorModel.vue.d.ts +90 -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 +84 -0
- package/dist/lib/components/coutdown/src/coutdown.d.ts +48 -0
- package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +81 -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 +2678 -0
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +2675 -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 +104 -63
- 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 +105 -63
- 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 +414 -343
- 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 +414 -343
- 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 +67 -11
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +212 -40
- package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +67 -11
- 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 +94 -13
- package/dist/lib/components/layout/src/header/index.vue.d.ts +117 -84
- package/dist/lib/components/layout/src/header/navRight/customMessage.vue.d.ts +10 -19
- package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +16 -3
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +105 -67
- package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +27 -7
- package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +26 -43
- package/dist/lib/components/layout/src/header/navRight/settingDrawer.vue.d.ts +34 -0
- package/dist/lib/components/layout/src/index.vue.d.ts +94 -27
- package/dist/lib/components/layout/src/menu/deepCycleSubMenu.vue.d.ts +5 -2
- package/dist/lib/components/layout/src/menu/menu.vue.d.ts +57 -73
- package/dist/lib/components/layout/src/menu/secondLevelMenu.vue.d.ts +5 -23
- package/dist/lib/components/layout/src/menu/subSecondMenu.vue.d.ts +4 -22
- package/dist/lib/components/layout/src/sider/index.vue.d.ts +24 -25
- package/dist/lib/components/layout/src/sider/logo.vue.d.ts +1 -10
- package/dist/lib/components/layout/src/sider/search.vue.d.ts +78 -3
- package/dist/lib/components/layout/src/types.d.ts +68 -0
- package/dist/lib/components/{layout-auchor → layout-anchor}/index.d.ts +10 -7
- 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 +7 -4
- package/dist/lib/components/layout-anchor/src/use-layout-anchor.d.ts +2 -0
- package/dist/lib/components/layout-buttons/index.d.ts +39 -2
- 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 +39 -2
- package/dist/lib/components/layout-buttons/src/use-layout-buttons.d.ts +1 -1
- package/dist/lib/components/layout-pattern/index.d.ts +8 -14
- package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +72 -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 +8 -14
- 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 +5178 -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 +12 -2
- 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 +7 -2
- 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 +8 -39
- package/dist/lib/components/select/src/select-types.d.ts +4 -15
- package/dist/lib/components/select/src/select.vue.d.ts +8 -39
- package/dist/lib/components/select/src/use-select.d.ts +2 -2
- package/dist/lib/components/select-modal/index.d.ts +333 -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 +329 -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 +274 -0
- package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +34 -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/upload-file-types.d.ts +141 -0
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +267 -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 +15 -2
- package/dist/lib/setting/vxe-table/config.d.ts +3 -0
- package/dist/lib/utils/event.d.ts +37 -0
- package/dist/style.css +6 -8
- package/dist/vite-env.d.ts +15 -0
- package/package.json +35 -22
- 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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import type { EditGridProps } from '../../../edit-grid';
|
|
3
|
+
import type { VxeTableDataRow, VxeTableDefines, VxeGridPropTypes } from 'vxe-table';
|
|
4
|
+
export interface ruleItem {
|
|
5
|
+
[field: string]: VxeTableDefines.ValidatorRule[];
|
|
6
|
+
}
|
|
7
|
+
export default function useGridConfig(props: EditGridProps): {
|
|
8
|
+
computedColumns: ComputedRef<VxeGridPropTypes.Columns<VxeTableDataRow>>;
|
|
9
|
+
editRules: ComputedRef<ruleItem>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import type { Role, roleValidator, CurrentRow, UserInfo, Pattern, patternValidator, RemoteConfig, DetailApiFunctionType, Expose, PageButton, PageButtonPosition, pageButtonPositionValidator, RecordStringNumber } from '../edit-page-layout';
|
|
2
|
+
import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
4
|
+
import QDetailPageLayout from './src/detail-page-layout.vue';
|
|
5
|
+
export { QDetailPageLayout };
|
|
6
|
+
declare const _default: SFCWithInstall<DefineComponent<{
|
|
7
|
+
isDetail: {
|
|
8
|
+
type: PropType<boolean>;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
businessType: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
role: {
|
|
16
|
+
type: PropType<Role>;
|
|
17
|
+
default: string;
|
|
18
|
+
validator: typeof roleValidator;
|
|
19
|
+
};
|
|
20
|
+
currentRow: {
|
|
21
|
+
type: PropType<CurrentRow>;
|
|
22
|
+
default(): {};
|
|
23
|
+
require: boolean;
|
|
24
|
+
};
|
|
25
|
+
refreshMethods: {
|
|
26
|
+
type: PropType<(row?: CurrentRow | undefined) => void>;
|
|
27
|
+
default: null;
|
|
28
|
+
};
|
|
29
|
+
userInfo: {
|
|
30
|
+
type: PropType<UserInfo>;
|
|
31
|
+
default(): {};
|
|
32
|
+
};
|
|
33
|
+
pattern: {
|
|
34
|
+
type: PropType<Pattern>;
|
|
35
|
+
default: string;
|
|
36
|
+
validator: typeof patternValidator;
|
|
37
|
+
};
|
|
38
|
+
localConfig: {
|
|
39
|
+
type: PropType<Partial<RemoteConfig>>;
|
|
40
|
+
default(): {};
|
|
41
|
+
};
|
|
42
|
+
handleAfterRemoteConfig: {
|
|
43
|
+
type: PropType<(<T>(args: T) => T | Promise<T>)>;
|
|
44
|
+
default: null;
|
|
45
|
+
};
|
|
46
|
+
detailApi: {
|
|
47
|
+
type: PropType<string | DetailApiFunctionType>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
withoutIdDetailApi: {
|
|
51
|
+
type: PropType<string>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
handleAfterDetailApiResponse: {
|
|
55
|
+
type: PropType<(args: Expose) => void>;
|
|
56
|
+
default: null;
|
|
57
|
+
};
|
|
58
|
+
pageButtons: {
|
|
59
|
+
type: PropType<PageButton[]>;
|
|
60
|
+
default: null;
|
|
61
|
+
};
|
|
62
|
+
pageButtonPosition: {
|
|
63
|
+
type: PropType<PageButtonPosition>;
|
|
64
|
+
default: string;
|
|
65
|
+
validator: typeof pageButtonPositionValidator;
|
|
66
|
+
};
|
|
67
|
+
hasAdd: {
|
|
68
|
+
type: PropType<boolean>;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
isUseLocalData: {
|
|
72
|
+
type: PropType<boolean>;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
localData: {
|
|
76
|
+
type: PropType<RecordStringNumber>;
|
|
77
|
+
default(): {};
|
|
78
|
+
};
|
|
79
|
+
showBackIcon: {
|
|
80
|
+
type: PropType<boolean>;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
}, {
|
|
84
|
+
instance: Ref<Expose | undefined>;
|
|
85
|
+
classes: ComputedRef<{
|
|
86
|
+
[key: string]: string | boolean;
|
|
87
|
+
}>;
|
|
88
|
+
handleSetInstance: (expose: Expose) => void;
|
|
89
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
90
|
+
isDetail: {
|
|
91
|
+
type: PropType<boolean>;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
businessType: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
role: {
|
|
99
|
+
type: PropType<Role>;
|
|
100
|
+
default: string;
|
|
101
|
+
validator: typeof roleValidator;
|
|
102
|
+
};
|
|
103
|
+
currentRow: {
|
|
104
|
+
type: PropType<CurrentRow>;
|
|
105
|
+
default(): {};
|
|
106
|
+
require: boolean;
|
|
107
|
+
};
|
|
108
|
+
refreshMethods: {
|
|
109
|
+
type: PropType<(row?: CurrentRow | undefined) => void>;
|
|
110
|
+
default: null;
|
|
111
|
+
};
|
|
112
|
+
userInfo: {
|
|
113
|
+
type: PropType<UserInfo>;
|
|
114
|
+
default(): {};
|
|
115
|
+
};
|
|
116
|
+
pattern: {
|
|
117
|
+
type: PropType<Pattern>;
|
|
118
|
+
default: string;
|
|
119
|
+
validator: typeof patternValidator;
|
|
120
|
+
};
|
|
121
|
+
localConfig: {
|
|
122
|
+
type: PropType<Partial<RemoteConfig>>;
|
|
123
|
+
default(): {};
|
|
124
|
+
};
|
|
125
|
+
handleAfterRemoteConfig: {
|
|
126
|
+
type: PropType<(<T>(args: T) => T | Promise<T>)>;
|
|
127
|
+
default: null;
|
|
128
|
+
};
|
|
129
|
+
detailApi: {
|
|
130
|
+
type: PropType<string | DetailApiFunctionType>;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
withoutIdDetailApi: {
|
|
134
|
+
type: PropType<string>;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
handleAfterDetailApiResponse: {
|
|
138
|
+
type: PropType<(args: Expose) => void>;
|
|
139
|
+
default: null;
|
|
140
|
+
};
|
|
141
|
+
pageButtons: {
|
|
142
|
+
type: PropType<PageButton[]>;
|
|
143
|
+
default: null;
|
|
144
|
+
};
|
|
145
|
+
pageButtonPosition: {
|
|
146
|
+
type: PropType<PageButtonPosition>;
|
|
147
|
+
default: string;
|
|
148
|
+
validator: typeof pageButtonPositionValidator;
|
|
149
|
+
};
|
|
150
|
+
hasAdd: {
|
|
151
|
+
type: PropType<boolean>;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
isUseLocalData: {
|
|
155
|
+
type: PropType<boolean>;
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
158
|
+
localData: {
|
|
159
|
+
type: PropType<RecordStringNumber>;
|
|
160
|
+
default(): {};
|
|
161
|
+
};
|
|
162
|
+
showBackIcon: {
|
|
163
|
+
type: PropType<boolean>;
|
|
164
|
+
default: boolean;
|
|
165
|
+
};
|
|
166
|
+
}>>, {
|
|
167
|
+
isDetail: boolean;
|
|
168
|
+
businessType: string;
|
|
169
|
+
role: Role;
|
|
170
|
+
currentRow: CurrentRow;
|
|
171
|
+
refreshMethods: (row?: CurrentRow | undefined) => void;
|
|
172
|
+
userInfo: UserInfo;
|
|
173
|
+
pattern: Pattern;
|
|
174
|
+
localConfig: Partial<RemoteConfig>;
|
|
175
|
+
handleAfterRemoteConfig: <T>(args: T) => T | Promise<T>;
|
|
176
|
+
detailApi: string | DetailApiFunctionType;
|
|
177
|
+
withoutIdDetailApi: string;
|
|
178
|
+
handleAfterDetailApiResponse: (args: Expose) => void;
|
|
179
|
+
pageButtons: PageButton[];
|
|
180
|
+
pageButtonPosition: PageButtonPosition;
|
|
181
|
+
hasAdd: boolean;
|
|
182
|
+
isUseLocalData: boolean;
|
|
183
|
+
localData: RecordStringNumber;
|
|
184
|
+
showBackIcon: boolean;
|
|
185
|
+
}, {}>>;
|
|
186
|
+
export default _default;
|
|
@@ -0,0 +1,183 @@
|
|
|
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';
|
|
3
|
+
declare const _sfc_main: DefineComponent<{
|
|
4
|
+
isDetail: {
|
|
5
|
+
type: PropType<boolean>;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
businessType: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
role: {
|
|
13
|
+
type: PropType<Role>;
|
|
14
|
+
default: string;
|
|
15
|
+
validator: typeof roleValidator;
|
|
16
|
+
};
|
|
17
|
+
currentRow: {
|
|
18
|
+
type: PropType<CurrentRow>;
|
|
19
|
+
default(): {};
|
|
20
|
+
require: boolean;
|
|
21
|
+
};
|
|
22
|
+
refreshMethods: {
|
|
23
|
+
type: PropType<(row?: CurrentRow | undefined) => void>;
|
|
24
|
+
default: null;
|
|
25
|
+
};
|
|
26
|
+
userInfo: {
|
|
27
|
+
type: PropType<UserInfo>;
|
|
28
|
+
default(): {};
|
|
29
|
+
};
|
|
30
|
+
pattern: {
|
|
31
|
+
type: PropType<Pattern>;
|
|
32
|
+
default: string;
|
|
33
|
+
validator: typeof patternValidator;
|
|
34
|
+
};
|
|
35
|
+
localConfig: {
|
|
36
|
+
type: PropType<Partial<RemoteConfig>>;
|
|
37
|
+
default(): {};
|
|
38
|
+
};
|
|
39
|
+
handleAfterRemoteConfig: {
|
|
40
|
+
type: PropType<(<T>(args: T) => T | Promise<T>)>;
|
|
41
|
+
default: null;
|
|
42
|
+
};
|
|
43
|
+
detailApi: {
|
|
44
|
+
type: PropType<string | DetailApiFunctionType>;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
withoutIdDetailApi: {
|
|
48
|
+
type: PropType<string>;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
handleAfterDetailApiResponse: {
|
|
52
|
+
type: PropType<(args: Expose) => void>;
|
|
53
|
+
default: null;
|
|
54
|
+
};
|
|
55
|
+
pageButtons: {
|
|
56
|
+
type: PropType<PageButton[]>;
|
|
57
|
+
default: null;
|
|
58
|
+
};
|
|
59
|
+
pageButtonPosition: {
|
|
60
|
+
type: PropType<PageButtonPosition>;
|
|
61
|
+
default: string;
|
|
62
|
+
validator: typeof pageButtonPositionValidator;
|
|
63
|
+
};
|
|
64
|
+
hasAdd: {
|
|
65
|
+
type: PropType<boolean>;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
isUseLocalData: {
|
|
69
|
+
type: PropType<boolean>;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
localData: {
|
|
73
|
+
type: PropType<RecordStringNumber>;
|
|
74
|
+
default(): {};
|
|
75
|
+
};
|
|
76
|
+
showBackIcon: {
|
|
77
|
+
type: PropType<boolean>;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
}, {
|
|
81
|
+
instance: Ref<Expose | undefined>;
|
|
82
|
+
classes: ComputedRef<{
|
|
83
|
+
[key: string]: string | boolean;
|
|
84
|
+
}>;
|
|
85
|
+
handleSetInstance: (expose: Expose) => void;
|
|
86
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
87
|
+
isDetail: {
|
|
88
|
+
type: PropType<boolean>;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
businessType: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
role: {
|
|
96
|
+
type: PropType<Role>;
|
|
97
|
+
default: string;
|
|
98
|
+
validator: typeof roleValidator;
|
|
99
|
+
};
|
|
100
|
+
currentRow: {
|
|
101
|
+
type: PropType<CurrentRow>;
|
|
102
|
+
default(): {};
|
|
103
|
+
require: boolean;
|
|
104
|
+
};
|
|
105
|
+
refreshMethods: {
|
|
106
|
+
type: PropType<(row?: CurrentRow | undefined) => void>;
|
|
107
|
+
default: null;
|
|
108
|
+
};
|
|
109
|
+
userInfo: {
|
|
110
|
+
type: PropType<UserInfo>;
|
|
111
|
+
default(): {};
|
|
112
|
+
};
|
|
113
|
+
pattern: {
|
|
114
|
+
type: PropType<Pattern>;
|
|
115
|
+
default: string;
|
|
116
|
+
validator: typeof patternValidator;
|
|
117
|
+
};
|
|
118
|
+
localConfig: {
|
|
119
|
+
type: PropType<Partial<RemoteConfig>>;
|
|
120
|
+
default(): {};
|
|
121
|
+
};
|
|
122
|
+
handleAfterRemoteConfig: {
|
|
123
|
+
type: PropType<(<T>(args: T) => T | Promise<T>)>;
|
|
124
|
+
default: null;
|
|
125
|
+
};
|
|
126
|
+
detailApi: {
|
|
127
|
+
type: PropType<string | DetailApiFunctionType>;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
130
|
+
withoutIdDetailApi: {
|
|
131
|
+
type: PropType<string>;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
handleAfterDetailApiResponse: {
|
|
135
|
+
type: PropType<(args: Expose) => void>;
|
|
136
|
+
default: null;
|
|
137
|
+
};
|
|
138
|
+
pageButtons: {
|
|
139
|
+
type: PropType<PageButton[]>;
|
|
140
|
+
default: null;
|
|
141
|
+
};
|
|
142
|
+
pageButtonPosition: {
|
|
143
|
+
type: PropType<PageButtonPosition>;
|
|
144
|
+
default: string;
|
|
145
|
+
validator: typeof pageButtonPositionValidator;
|
|
146
|
+
};
|
|
147
|
+
hasAdd: {
|
|
148
|
+
type: PropType<boolean>;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
151
|
+
isUseLocalData: {
|
|
152
|
+
type: PropType<boolean>;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
localData: {
|
|
156
|
+
type: PropType<RecordStringNumber>;
|
|
157
|
+
default(): {};
|
|
158
|
+
};
|
|
159
|
+
showBackIcon: {
|
|
160
|
+
type: PropType<boolean>;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
163
|
+
}>>, {
|
|
164
|
+
isDetail: boolean;
|
|
165
|
+
businessType: string;
|
|
166
|
+
role: Role;
|
|
167
|
+
currentRow: CurrentRow;
|
|
168
|
+
refreshMethods: (row?: CurrentRow | undefined) => void;
|
|
169
|
+
userInfo: UserInfo;
|
|
170
|
+
pattern: Pattern;
|
|
171
|
+
localConfig: Partial<RemoteConfig>;
|
|
172
|
+
handleAfterRemoteConfig: <T>(args: T) => T | Promise<T>;
|
|
173
|
+
detailApi: string | DetailApiFunctionType;
|
|
174
|
+
withoutIdDetailApi: string;
|
|
175
|
+
handleAfterDetailApiResponse: (args: Expose) => void;
|
|
176
|
+
pageButtons: PageButton[];
|
|
177
|
+
pageButtonPosition: PageButtonPosition;
|
|
178
|
+
hasAdd: boolean;
|
|
179
|
+
isUseLocalData: boolean;
|
|
180
|
+
localData: RecordStringNumber;
|
|
181
|
+
showBackIcon: boolean;
|
|
182
|
+
}, {}>;
|
|
183
|
+
export default _sfc_main;
|
|
@@ -1,91 +1,132 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { Breakpoint } from 'ant-design-vue/lib/_util/responsiveObserve';
|
|
2
|
+
import type { PickerLocale } from 'ant-design-vue/es/date-picker/generatePicker';
|
|
3
|
+
import type { RuleObject } from 'ant-design-vue/es/form';
|
|
4
|
+
import type { FormInstance } from 'ant-design-vue';
|
|
5
|
+
import type { PageButton, FormFieldsItem, RecordStringNumber, FormFieldsItemUpload } from '../edit-page-layout';
|
|
6
|
+
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
7
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
4
8
|
import QEditForm from './src/edit-form.vue';
|
|
5
9
|
export * from './src/edit-form-types';
|
|
6
10
|
export { QEditForm };
|
|
7
11
|
declare const _default: SFCWithInstall<DefineComponent<{
|
|
8
|
-
groupName: {
|
|
9
|
-
type: PropType<string>;
|
|
10
|
-
default:
|
|
12
|
+
readonly groupName: {
|
|
13
|
+
readonly type: PropType<string>;
|
|
14
|
+
readonly default: "";
|
|
11
15
|
};
|
|
12
|
-
groupNameI18nKey: {
|
|
13
|
-
type: PropType<string>;
|
|
14
|
-
default:
|
|
16
|
+
readonly groupNameI18nKey: {
|
|
17
|
+
readonly type: PropType<string>;
|
|
18
|
+
readonly default: "";
|
|
15
19
|
};
|
|
16
|
-
groupCode: {
|
|
17
|
-
type: PropType<string>;
|
|
18
|
-
default:
|
|
20
|
+
readonly groupCode: {
|
|
21
|
+
readonly type: PropType<string>;
|
|
22
|
+
readonly default: "";
|
|
19
23
|
};
|
|
20
|
-
groupType: {
|
|
21
|
-
type: PropType<string>;
|
|
22
|
-
default:
|
|
24
|
+
readonly groupType: {
|
|
25
|
+
readonly type: PropType<string>;
|
|
26
|
+
readonly default: "";
|
|
23
27
|
};
|
|
24
|
-
sortOrder: {
|
|
25
|
-
type: PropType<string>;
|
|
26
|
-
default:
|
|
28
|
+
readonly sortOrder: {
|
|
29
|
+
readonly type: PropType<string>;
|
|
30
|
+
readonly default: "";
|
|
27
31
|
};
|
|
28
|
-
buttons: {
|
|
29
|
-
type: PropType<PageButton[]>;
|
|
30
|
-
default()
|
|
32
|
+
readonly buttons: {
|
|
33
|
+
readonly type: PropType<PageButton[]>;
|
|
34
|
+
readonly default: () => never[];
|
|
31
35
|
};
|
|
32
|
-
formFields: {
|
|
33
|
-
type: PropType<FormFieldsItem[]>;
|
|
34
|
-
default()
|
|
36
|
+
readonly formFields: {
|
|
37
|
+
readonly type: PropType<FormFieldsItem[]>;
|
|
38
|
+
readonly default: () => never[];
|
|
35
39
|
};
|
|
36
|
-
extend: {
|
|
37
|
-
type: ObjectConstructor;
|
|
38
|
-
default()
|
|
40
|
+
readonly extend: {
|
|
41
|
+
readonly type: ObjectConstructor;
|
|
42
|
+
readonly default: () => {};
|
|
43
|
+
};
|
|
44
|
+
readonly shake: {
|
|
45
|
+
readonly type: PropType<boolean>;
|
|
46
|
+
readonly default: true;
|
|
39
47
|
};
|
|
40
48
|
}, {
|
|
41
|
-
|
|
49
|
+
busAccount: ComputedRef<string>;
|
|
50
|
+
shake: Ref<boolean>;
|
|
51
|
+
formRef: Ref<FormInstance | undefined>;
|
|
42
52
|
classes: ComputedRef<{
|
|
43
53
|
[key: string]: string | boolean;
|
|
44
54
|
}>;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
55
|
+
noHiddenFieldFormFields: ComputedRef<FormFieldsItem[]>;
|
|
56
|
+
rules: ComputedRef<Record<string, RuleObject[]>>;
|
|
57
|
+
pageData: Ref<RecordStringNumber>;
|
|
58
|
+
locale: PickerLocale;
|
|
59
|
+
getColConfig: (field: FormFieldsItem) => {
|
|
60
|
+
xs: number;
|
|
61
|
+
sm: number;
|
|
62
|
+
md: number;
|
|
63
|
+
lg: number;
|
|
64
|
+
xl: number;
|
|
65
|
+
xxl: number;
|
|
66
|
+
xxxl: number;
|
|
67
|
+
};
|
|
68
|
+
screens: Ref<Partial<Record<Breakpoint, boolean>>>;
|
|
69
|
+
handleUploadData: (file: FormFieldsItemUpload) => {
|
|
70
|
+
businessType: string;
|
|
71
|
+
headId: {};
|
|
72
|
+
};
|
|
73
|
+
resetForm: () => void;
|
|
74
|
+
handleInputBlur: (event: Event, config: FormFieldsItem) => void;
|
|
75
|
+
handleSwitchChange: (value: string, config: FormFieldsItem) => void;
|
|
76
|
+
handleSelectChange: (value: string, config: FormFieldsItem) => void;
|
|
77
|
+
handleRadioChange: (value: string, config: FormFieldsItem) => void;
|
|
78
|
+
handleUploadChange: (value: string, config: FormFieldsItem) => void;
|
|
79
|
+
handleCurrencyChange: (value: string, config: FormFieldsItem) => void;
|
|
80
|
+
handleRemoteSelectChange: (value: string, config: FormFieldsItem) => void;
|
|
81
|
+
handleSelectModalChange: (data: RecordStringNumber[], config: FormFieldsItem) => void;
|
|
82
|
+
handleDateChange: (value: string, config: FormFieldsItem) => void;
|
|
83
|
+
handleCodeChange: (value: string, config: FormFieldsItem) => void;
|
|
48
84
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
49
|
-
groupName: {
|
|
50
|
-
type: PropType<string>;
|
|
51
|
-
default:
|
|
85
|
+
readonly groupName: {
|
|
86
|
+
readonly type: PropType<string>;
|
|
87
|
+
readonly default: "";
|
|
88
|
+
};
|
|
89
|
+
readonly groupNameI18nKey: {
|
|
90
|
+
readonly type: PropType<string>;
|
|
91
|
+
readonly default: "";
|
|
52
92
|
};
|
|
53
|
-
|
|
54
|
-
type: PropType<string>;
|
|
55
|
-
default:
|
|
93
|
+
readonly groupCode: {
|
|
94
|
+
readonly type: PropType<string>;
|
|
95
|
+
readonly default: "";
|
|
56
96
|
};
|
|
57
|
-
|
|
58
|
-
type: PropType<string>;
|
|
59
|
-
default:
|
|
97
|
+
readonly groupType: {
|
|
98
|
+
readonly type: PropType<string>;
|
|
99
|
+
readonly default: "";
|
|
60
100
|
};
|
|
61
|
-
|
|
62
|
-
type: PropType<string>;
|
|
63
|
-
default:
|
|
101
|
+
readonly sortOrder: {
|
|
102
|
+
readonly type: PropType<string>;
|
|
103
|
+
readonly default: "";
|
|
64
104
|
};
|
|
65
|
-
|
|
66
|
-
type: PropType<
|
|
67
|
-
default:
|
|
105
|
+
readonly buttons: {
|
|
106
|
+
readonly type: PropType<PageButton[]>;
|
|
107
|
+
readonly default: () => never[];
|
|
68
108
|
};
|
|
69
|
-
|
|
70
|
-
type: PropType<
|
|
71
|
-
default()
|
|
109
|
+
readonly formFields: {
|
|
110
|
+
readonly type: PropType<FormFieldsItem[]>;
|
|
111
|
+
readonly default: () => never[];
|
|
72
112
|
};
|
|
73
|
-
|
|
74
|
-
type:
|
|
75
|
-
default()
|
|
113
|
+
readonly extend: {
|
|
114
|
+
readonly type: ObjectConstructor;
|
|
115
|
+
readonly default: () => {};
|
|
76
116
|
};
|
|
77
|
-
|
|
78
|
-
type:
|
|
79
|
-
default
|
|
117
|
+
readonly shake: {
|
|
118
|
+
readonly type: PropType<boolean>;
|
|
119
|
+
readonly default: true;
|
|
80
120
|
};
|
|
81
121
|
}>>, {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
122
|
+
readonly buttons: PageButton[];
|
|
123
|
+
readonly extend: Record<string, any>;
|
|
124
|
+
readonly groupName: string;
|
|
125
|
+
readonly groupNameI18nKey: string;
|
|
126
|
+
readonly groupCode: string;
|
|
127
|
+
readonly groupType: string;
|
|
128
|
+
readonly sortOrder: string;
|
|
129
|
+
readonly formFields: FormFieldsItem[];
|
|
130
|
+
readonly shake: boolean;
|
|
131
|
+
}, {}>>;
|
|
91
132
|
export default _default;
|
|
@@ -1,37 +1,41 @@
|
|
|
1
1
|
import type { ComputedRef, PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { PageButton, FormFieldsItem } from '../../edit-page-layout';
|
|
3
3
|
export declare const editFormProps: {
|
|
4
|
-
groupName: {
|
|
5
|
-
type: PropType<string>;
|
|
6
|
-
default:
|
|
4
|
+
readonly groupName: {
|
|
5
|
+
readonly type: PropType<string>;
|
|
6
|
+
readonly default: "";
|
|
7
7
|
};
|
|
8
|
-
groupNameI18nKey: {
|
|
9
|
-
type: PropType<string>;
|
|
10
|
-
default:
|
|
8
|
+
readonly groupNameI18nKey: {
|
|
9
|
+
readonly type: PropType<string>;
|
|
10
|
+
readonly default: "";
|
|
11
11
|
};
|
|
12
|
-
groupCode: {
|
|
13
|
-
type: PropType<string>;
|
|
14
|
-
default:
|
|
12
|
+
readonly groupCode: {
|
|
13
|
+
readonly type: PropType<string>;
|
|
14
|
+
readonly default: "";
|
|
15
15
|
};
|
|
16
|
-
groupType: {
|
|
17
|
-
type: PropType<string>;
|
|
18
|
-
default:
|
|
16
|
+
readonly groupType: {
|
|
17
|
+
readonly type: PropType<string>;
|
|
18
|
+
readonly default: "";
|
|
19
19
|
};
|
|
20
|
-
sortOrder: {
|
|
21
|
-
type: PropType<string>;
|
|
22
|
-
default:
|
|
20
|
+
readonly sortOrder: {
|
|
21
|
+
readonly type: PropType<string>;
|
|
22
|
+
readonly default: "";
|
|
23
23
|
};
|
|
24
|
-
buttons: {
|
|
25
|
-
type: PropType<PageButton[]>;
|
|
26
|
-
default()
|
|
24
|
+
readonly buttons: {
|
|
25
|
+
readonly type: PropType<PageButton[]>;
|
|
26
|
+
readonly default: () => never[];
|
|
27
27
|
};
|
|
28
|
-
formFields: {
|
|
29
|
-
type: PropType<FormFieldsItem[]>;
|
|
30
|
-
default()
|
|
28
|
+
readonly formFields: {
|
|
29
|
+
readonly type: PropType<FormFieldsItem[]>;
|
|
30
|
+
readonly default: () => never[];
|
|
31
31
|
};
|
|
32
|
-
extend: {
|
|
33
|
-
type: ObjectConstructor;
|
|
34
|
-
default()
|
|
32
|
+
readonly extend: {
|
|
33
|
+
readonly type: ObjectConstructor;
|
|
34
|
+
readonly default: () => {};
|
|
35
|
+
};
|
|
36
|
+
readonly shake: {
|
|
37
|
+
readonly type: PropType<boolean>;
|
|
38
|
+
readonly default: true;
|
|
35
39
|
};
|
|
36
40
|
};
|
|
37
41
|
export type EditFormProps = ExtractPropTypes<typeof editFormProps>;
|