@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,110 @@
|
|
|
1
|
+
import type { RecordStringNumber } from '../../edit-page-layout';
|
|
2
|
+
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
import type { FieldNames, TreeNode } from './tree-select-types';
|
|
4
|
+
declare const _sfc_main: DefineComponent<{
|
|
5
|
+
readonly value: {
|
|
6
|
+
readonly type: StringConstructor;
|
|
7
|
+
readonly default: "";
|
|
8
|
+
};
|
|
9
|
+
readonly multiple: {
|
|
10
|
+
readonly type: BooleanConstructor;
|
|
11
|
+
readonly default: false;
|
|
12
|
+
};
|
|
13
|
+
readonly dictCode: {
|
|
14
|
+
readonly type: StringConstructor;
|
|
15
|
+
readonly default: "";
|
|
16
|
+
};
|
|
17
|
+
readonly params: {
|
|
18
|
+
readonly type: PropType<RecordStringNumber>;
|
|
19
|
+
readonly default: () => {};
|
|
20
|
+
};
|
|
21
|
+
readonly fieldNames: {
|
|
22
|
+
readonly type: PropType<FieldNames>;
|
|
23
|
+
readonly default: () => {
|
|
24
|
+
children: string;
|
|
25
|
+
label: string;
|
|
26
|
+
value: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly options: {
|
|
30
|
+
readonly type: PropType<TreeNode[]>;
|
|
31
|
+
readonly default: () => never[];
|
|
32
|
+
};
|
|
33
|
+
readonly 'onUpdate:value': {
|
|
34
|
+
type: PropType<((value: string) => void) | ((value: string) => void)[]>;
|
|
35
|
+
default: unknown;
|
|
36
|
+
};
|
|
37
|
+
readonly onChange: {
|
|
38
|
+
type: PropType<((value: string) => void) | ((value: string) => void)[]>;
|
|
39
|
+
default: unknown;
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
classes: ComputedRef<{
|
|
43
|
+
[key: string]: string | boolean;
|
|
44
|
+
}>;
|
|
45
|
+
realValue: Ref<string | string[]>;
|
|
46
|
+
options: Ref<{
|
|
47
|
+
[x: string]: unknown;
|
|
48
|
+
id: string;
|
|
49
|
+
key: string;
|
|
50
|
+
hasChildren: boolean;
|
|
51
|
+
title: string;
|
|
52
|
+
value: string;
|
|
53
|
+
children?: any[] | null | undefined;
|
|
54
|
+
}[]>;
|
|
55
|
+
labelProp: ComputedRef<string>;
|
|
56
|
+
fieldNames: FieldNames;
|
|
57
|
+
multiple: Ref<boolean>;
|
|
58
|
+
onChange: (value: string) => void;
|
|
59
|
+
searchValue: Ref<string>;
|
|
60
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
61
|
+
readonly value: {
|
|
62
|
+
readonly type: StringConstructor;
|
|
63
|
+
readonly default: "";
|
|
64
|
+
};
|
|
65
|
+
readonly multiple: {
|
|
66
|
+
readonly type: BooleanConstructor;
|
|
67
|
+
readonly default: false;
|
|
68
|
+
};
|
|
69
|
+
readonly dictCode: {
|
|
70
|
+
readonly type: StringConstructor;
|
|
71
|
+
readonly default: "";
|
|
72
|
+
};
|
|
73
|
+
readonly params: {
|
|
74
|
+
readonly type: PropType<RecordStringNumber>;
|
|
75
|
+
readonly default: () => {};
|
|
76
|
+
};
|
|
77
|
+
readonly fieldNames: {
|
|
78
|
+
readonly type: PropType<FieldNames>;
|
|
79
|
+
readonly default: () => {
|
|
80
|
+
children: string;
|
|
81
|
+
label: string;
|
|
82
|
+
value: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly options: {
|
|
86
|
+
readonly type: PropType<TreeNode[]>;
|
|
87
|
+
readonly default: () => never[];
|
|
88
|
+
};
|
|
89
|
+
readonly 'onUpdate:value': {
|
|
90
|
+
type: PropType<((value: string) => void) | ((value: string) => void)[]>;
|
|
91
|
+
default: unknown;
|
|
92
|
+
};
|
|
93
|
+
readonly onChange: {
|
|
94
|
+
type: PropType<((value: string) => void) | ((value: string) => void)[]>;
|
|
95
|
+
default: unknown;
|
|
96
|
+
};
|
|
97
|
+
}>> & {
|
|
98
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
readonly params: RecordStringNumber;
|
|
102
|
+
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
103
|
+
readonly value: string;
|
|
104
|
+
readonly multiple: boolean;
|
|
105
|
+
readonly options: TreeNode[];
|
|
106
|
+
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
107
|
+
readonly fieldNames: FieldNames;
|
|
108
|
+
readonly dictCode: string;
|
|
109
|
+
}, {}>;
|
|
110
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import type { UploadFile } from 'ant-design-vue';
|
|
2
|
+
import type { FileType } from 'ant-design-vue/lib/upload/interface';
|
|
3
|
+
import type { validateInfos } from 'ant-design-vue/lib/form/useForm';
|
|
4
|
+
import type { Data, FileTypeList } from './src/upload-file-types';
|
|
5
|
+
import type { UserInfo, Role, CurrentRow, RecordStringNumber } from '../edit-page-layout';
|
|
6
|
+
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
7
|
+
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
8
|
+
import QUploadFile from './src/upload-file.vue';
|
|
9
|
+
export * from './src/upload-file-types';
|
|
10
|
+
import useFileColumnHook from './src/hook/use-file-column-hook';
|
|
11
|
+
import useOperationColumnButtonHook from './src/hook/use-operation-column-button-hook';
|
|
12
|
+
export { useFileColumnHook, useOperationColumnButtonHook };
|
|
13
|
+
export { QUploadFile };
|
|
14
|
+
declare const _default: SFCWithInstall<DefineComponent<{
|
|
15
|
+
readonly visible: {
|
|
16
|
+
readonly type: BooleanConstructor;
|
|
17
|
+
readonly default: false;
|
|
18
|
+
};
|
|
19
|
+
readonly dictCode: {
|
|
20
|
+
readonly type: StringConstructor;
|
|
21
|
+
readonly default: "";
|
|
22
|
+
};
|
|
23
|
+
readonly attrCheck: {
|
|
24
|
+
readonly type: StringConstructor;
|
|
25
|
+
readonly default: "headId";
|
|
26
|
+
};
|
|
27
|
+
readonly limitSize: {
|
|
28
|
+
readonly type: NumberConstructor;
|
|
29
|
+
readonly default: 100;
|
|
30
|
+
};
|
|
31
|
+
readonly accept: {
|
|
32
|
+
readonly type: StringConstructor;
|
|
33
|
+
readonly default: ".doc, .docx, .xls, .xlsx, .ppt, .png, .jpg, .jpeg, .gif, .pptx, .pdf, .txt";
|
|
34
|
+
};
|
|
35
|
+
readonly acceptDictCode: {
|
|
36
|
+
readonly type: StringConstructor;
|
|
37
|
+
readonly default: "attachmentExtension";
|
|
38
|
+
};
|
|
39
|
+
readonly single: {
|
|
40
|
+
readonly type: BooleanConstructor;
|
|
41
|
+
readonly default: false;
|
|
42
|
+
};
|
|
43
|
+
readonly multiple: {
|
|
44
|
+
readonly type: BooleanConstructor;
|
|
45
|
+
readonly default: true;
|
|
46
|
+
};
|
|
47
|
+
readonly userInfo: {
|
|
48
|
+
readonly type: PropType<UserInfo>;
|
|
49
|
+
readonly default: () => {};
|
|
50
|
+
};
|
|
51
|
+
readonly data: {
|
|
52
|
+
readonly type: PropType<Data>;
|
|
53
|
+
readonly default: () => {};
|
|
54
|
+
};
|
|
55
|
+
readonly isOss: {
|
|
56
|
+
readonly type: BooleanConstructor;
|
|
57
|
+
readonly default: false;
|
|
58
|
+
};
|
|
59
|
+
readonly isGridUpload: {
|
|
60
|
+
readonly type: BooleanConstructor;
|
|
61
|
+
readonly default: false;
|
|
62
|
+
};
|
|
63
|
+
readonly role: {
|
|
64
|
+
readonly type: PropType<Role>;
|
|
65
|
+
readonly default: "purchase";
|
|
66
|
+
};
|
|
67
|
+
readonly action: {
|
|
68
|
+
readonly type: StringConstructor;
|
|
69
|
+
readonly default: "/attachment/purchaseAttachment/upload";
|
|
70
|
+
};
|
|
71
|
+
readonly currentRow: {
|
|
72
|
+
readonly type: PropType<CurrentRow>;
|
|
73
|
+
readonly default: () => {};
|
|
74
|
+
};
|
|
75
|
+
readonly itemNumberKey: {
|
|
76
|
+
readonly type: StringConstructor;
|
|
77
|
+
readonly default: "itemNumber";
|
|
78
|
+
};
|
|
79
|
+
readonly itemNumberLabel: {
|
|
80
|
+
readonly type: StringConstructor;
|
|
81
|
+
readonly default: "行项目";
|
|
82
|
+
};
|
|
83
|
+
readonly itemNumbeValueProp: {
|
|
84
|
+
readonly type: StringConstructor;
|
|
85
|
+
readonly default: "";
|
|
86
|
+
};
|
|
87
|
+
readonly itemNumberDefaultValue: {
|
|
88
|
+
readonly type: StringConstructor;
|
|
89
|
+
readonly default: "";
|
|
90
|
+
};
|
|
91
|
+
readonly property: {
|
|
92
|
+
readonly type: StringConstructor;
|
|
93
|
+
readonly default: "materialName";
|
|
94
|
+
};
|
|
95
|
+
readonly itemNumberSelectIndex: {
|
|
96
|
+
readonly type: BooleanConstructor;
|
|
97
|
+
readonly default: false;
|
|
98
|
+
};
|
|
99
|
+
readonly disabledItemNumber: {
|
|
100
|
+
readonly type: BooleanConstructor;
|
|
101
|
+
readonly default: false;
|
|
102
|
+
};
|
|
103
|
+
readonly itemInfo: {
|
|
104
|
+
readonly type: PropType<RecordStringNumber[]>;
|
|
105
|
+
readonly default: () => never[];
|
|
106
|
+
};
|
|
107
|
+
readonly fileTypeList: {
|
|
108
|
+
readonly type: PropType<FileTypeList[]>;
|
|
109
|
+
readonly default: () => never[];
|
|
110
|
+
};
|
|
111
|
+
readonly 'onUpdate:visible': {
|
|
112
|
+
type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
|
|
113
|
+
default: unknown;
|
|
114
|
+
};
|
|
115
|
+
}, {
|
|
116
|
+
validateInfos: validateInfos;
|
|
117
|
+
limitSize: Ref<number>;
|
|
118
|
+
accept: Ref<string>;
|
|
119
|
+
multiple: Ref<boolean>;
|
|
120
|
+
handleConfirm: () => void;
|
|
121
|
+
handleCancel: () => void;
|
|
122
|
+
fileData: Record<string, any>;
|
|
123
|
+
itemNumberLabel: Ref<string>;
|
|
124
|
+
itemNumbeValueProp: Ref<string>;
|
|
125
|
+
property: Ref<string>;
|
|
126
|
+
disabledItemNumber: Ref<boolean>;
|
|
127
|
+
fileTypeList: Ref<{
|
|
128
|
+
[x: string]: unknown;
|
|
129
|
+
title: string;
|
|
130
|
+
value: string;
|
|
131
|
+
}[]>;
|
|
132
|
+
isGridUpload: Ref<boolean>;
|
|
133
|
+
beforeUpload: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
|
|
134
|
+
handleRemove: (file: UploadFile<unknown>) => boolean | void | Promise<boolean | void>;
|
|
135
|
+
labelCol: Ref<{
|
|
136
|
+
span: number;
|
|
137
|
+
}>;
|
|
138
|
+
wrapperCol: Ref<{
|
|
139
|
+
span: number;
|
|
140
|
+
}>;
|
|
141
|
+
loading: Ref<boolean>;
|
|
142
|
+
visible: Ref<boolean>;
|
|
143
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:visible" | "change_upload_files")[], "update:visible" | "change_upload_files", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
144
|
+
readonly visible: {
|
|
145
|
+
readonly type: BooleanConstructor;
|
|
146
|
+
readonly default: false;
|
|
147
|
+
};
|
|
148
|
+
readonly dictCode: {
|
|
149
|
+
readonly type: StringConstructor;
|
|
150
|
+
readonly default: "";
|
|
151
|
+
};
|
|
152
|
+
readonly attrCheck: {
|
|
153
|
+
readonly type: StringConstructor;
|
|
154
|
+
readonly default: "headId";
|
|
155
|
+
};
|
|
156
|
+
readonly limitSize: {
|
|
157
|
+
readonly type: NumberConstructor;
|
|
158
|
+
readonly default: 100;
|
|
159
|
+
};
|
|
160
|
+
readonly accept: {
|
|
161
|
+
readonly type: StringConstructor;
|
|
162
|
+
readonly default: ".doc, .docx, .xls, .xlsx, .ppt, .png, .jpg, .jpeg, .gif, .pptx, .pdf, .txt";
|
|
163
|
+
};
|
|
164
|
+
readonly acceptDictCode: {
|
|
165
|
+
readonly type: StringConstructor;
|
|
166
|
+
readonly default: "attachmentExtension";
|
|
167
|
+
};
|
|
168
|
+
readonly single: {
|
|
169
|
+
readonly type: BooleanConstructor;
|
|
170
|
+
readonly default: false;
|
|
171
|
+
};
|
|
172
|
+
readonly multiple: {
|
|
173
|
+
readonly type: BooleanConstructor;
|
|
174
|
+
readonly default: true;
|
|
175
|
+
};
|
|
176
|
+
readonly userInfo: {
|
|
177
|
+
readonly type: PropType<UserInfo>;
|
|
178
|
+
readonly default: () => {};
|
|
179
|
+
};
|
|
180
|
+
readonly data: {
|
|
181
|
+
readonly type: PropType<Data>;
|
|
182
|
+
readonly default: () => {};
|
|
183
|
+
};
|
|
184
|
+
readonly isOss: {
|
|
185
|
+
readonly type: BooleanConstructor;
|
|
186
|
+
readonly default: false;
|
|
187
|
+
};
|
|
188
|
+
readonly isGridUpload: {
|
|
189
|
+
readonly type: BooleanConstructor;
|
|
190
|
+
readonly default: false;
|
|
191
|
+
};
|
|
192
|
+
readonly role: {
|
|
193
|
+
readonly type: PropType<Role>;
|
|
194
|
+
readonly default: "purchase";
|
|
195
|
+
};
|
|
196
|
+
readonly action: {
|
|
197
|
+
readonly type: StringConstructor;
|
|
198
|
+
readonly default: "/attachment/purchaseAttachment/upload";
|
|
199
|
+
};
|
|
200
|
+
readonly currentRow: {
|
|
201
|
+
readonly type: PropType<CurrentRow>;
|
|
202
|
+
readonly default: () => {};
|
|
203
|
+
};
|
|
204
|
+
readonly itemNumberKey: {
|
|
205
|
+
readonly type: StringConstructor;
|
|
206
|
+
readonly default: "itemNumber";
|
|
207
|
+
};
|
|
208
|
+
readonly itemNumberLabel: {
|
|
209
|
+
readonly type: StringConstructor;
|
|
210
|
+
readonly default: "行项目";
|
|
211
|
+
};
|
|
212
|
+
readonly itemNumbeValueProp: {
|
|
213
|
+
readonly type: StringConstructor;
|
|
214
|
+
readonly default: "";
|
|
215
|
+
};
|
|
216
|
+
readonly itemNumberDefaultValue: {
|
|
217
|
+
readonly type: StringConstructor;
|
|
218
|
+
readonly default: "";
|
|
219
|
+
};
|
|
220
|
+
readonly property: {
|
|
221
|
+
readonly type: StringConstructor;
|
|
222
|
+
readonly default: "materialName";
|
|
223
|
+
};
|
|
224
|
+
readonly itemNumberSelectIndex: {
|
|
225
|
+
readonly type: BooleanConstructor;
|
|
226
|
+
readonly default: false;
|
|
227
|
+
};
|
|
228
|
+
readonly disabledItemNumber: {
|
|
229
|
+
readonly type: BooleanConstructor;
|
|
230
|
+
readonly default: false;
|
|
231
|
+
};
|
|
232
|
+
readonly itemInfo: {
|
|
233
|
+
readonly type: PropType<RecordStringNumber[]>;
|
|
234
|
+
readonly default: () => never[];
|
|
235
|
+
};
|
|
236
|
+
readonly fileTypeList: {
|
|
237
|
+
readonly type: PropType<FileTypeList[]>;
|
|
238
|
+
readonly default: () => never[];
|
|
239
|
+
};
|
|
240
|
+
readonly 'onUpdate:visible': {
|
|
241
|
+
type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
|
|
242
|
+
default: unknown;
|
|
243
|
+
};
|
|
244
|
+
}>> & {
|
|
245
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
246
|
+
onChange_upload_files?: ((...args: any[]) => any) | undefined;
|
|
247
|
+
}, {
|
|
248
|
+
readonly data: Data;
|
|
249
|
+
readonly multiple: boolean;
|
|
250
|
+
readonly dictCode: string;
|
|
251
|
+
readonly property: string;
|
|
252
|
+
readonly visible: boolean;
|
|
253
|
+
readonly role: Role;
|
|
254
|
+
readonly currentRow: CurrentRow;
|
|
255
|
+
readonly userInfo: UserInfo;
|
|
256
|
+
readonly single: boolean;
|
|
257
|
+
readonly attrCheck: string;
|
|
258
|
+
readonly limitSize: number;
|
|
259
|
+
readonly accept: string;
|
|
260
|
+
readonly acceptDictCode: string;
|
|
261
|
+
readonly isOss: boolean;
|
|
262
|
+
readonly isGridUpload: boolean;
|
|
263
|
+
readonly action: string;
|
|
264
|
+
readonly itemNumberKey: string;
|
|
265
|
+
readonly itemNumberLabel: string;
|
|
266
|
+
readonly itemNumbeValueProp: string;
|
|
267
|
+
readonly itemNumberDefaultValue: string;
|
|
268
|
+
readonly itemNumberSelectIndex: boolean;
|
|
269
|
+
readonly disabledItemNumber: boolean;
|
|
270
|
+
readonly itemInfo: RecordStringNumber[];
|
|
271
|
+
readonly fileTypeList: FileTypeList[];
|
|
272
|
+
readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
|
|
273
|
+
}, {}>>;
|
|
274
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { VxePayload } from '../../../edit-page-layout';
|
|
2
|
+
import type { Slot } from 'vue';
|
|
3
|
+
import { InitializeConfig } from '../upload-file-types';
|
|
4
|
+
export default function useFileColumn<T extends InitializeConfig>(payload: T): {
|
|
5
|
+
field: string;
|
|
6
|
+
title: string;
|
|
7
|
+
fieldLabelI18nKey: string;
|
|
8
|
+
width: number;
|
|
9
|
+
groupCode: string;
|
|
10
|
+
fieldType?: string | undefined;
|
|
11
|
+
helpText?: string | undefined;
|
|
12
|
+
required?: "0" | "1" | undefined;
|
|
13
|
+
regex?: string | RegExp | undefined;
|
|
14
|
+
alertMsg?: string | undefined;
|
|
15
|
+
callback?: ((ctx: {
|
|
16
|
+
attrs: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
slots: Readonly<{
|
|
20
|
+
[name: string]: Slot<any> | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
emit: (event: string, ...args: any[]) => void;
|
|
23
|
+
expose: (exposed?: Record<string, any> | undefined) => void;
|
|
24
|
+
} | {
|
|
25
|
+
attrs: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
slots: Readonly<{
|
|
29
|
+
[name: string]: Slot<any> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
emit: (event: string, ...args: any[]) => void;
|
|
32
|
+
expose: (exposed?: Record<string, any> | undefined) => void;
|
|
33
|
+
}, payload: VxePayload) => void) | undefined;
|
|
34
|
+
}[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RecordStringNumber } from '../../../edit-page-layout';
|
|
2
|
+
import { InitializeConfig } from '../upload-file-types';
|
|
3
|
+
export interface ButtonConfig extends InitializeConfig {
|
|
4
|
+
row: RecordStringNumber;
|
|
5
|
+
rowIndex: number;
|
|
6
|
+
}
|
|
7
|
+
export default function useOperationColumnButton(): {
|
|
8
|
+
handleDelete: <T extends ButtonConfig>(payload: T) => void;
|
|
9
|
+
handleDownload: <T_1 extends ButtonConfig>(payload: T_1) => void;
|
|
10
|
+
handlePreview: <T_2 extends ButtonConfig>(payload: T_2) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, Ref } from 'vue';
|
|
2
|
+
import type { Role, UserInfo, CurrentRow, ColumnItem, LayoutConfig, RecordStringNumber } from '../../edit-page-layout';
|
|
3
|
+
export interface InitializeConfig {
|
|
4
|
+
groupCode: string;
|
|
5
|
+
pageData?: Ref<RecordStringNumber>;
|
|
6
|
+
layoutConfig?: Ref<LayoutConfig>;
|
|
7
|
+
role?: string;
|
|
8
|
+
path?: string;
|
|
9
|
+
operationButton?: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface Data {
|
|
12
|
+
businessType: string;
|
|
13
|
+
headId: string;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface FilePropsType {
|
|
17
|
+
data: Data;
|
|
18
|
+
action?: string;
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
export interface FileTypeList {
|
|
22
|
+
title: string;
|
|
23
|
+
value: string;
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
export interface ColumnItemExtend {
|
|
27
|
+
url?: string;
|
|
28
|
+
single: boolean;
|
|
29
|
+
multiple: boolean;
|
|
30
|
+
isGridUpload: boolean;
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
[key: number]: unknown;
|
|
33
|
+
}
|
|
34
|
+
export interface ColumnItemWithExtend extends ColumnItem {
|
|
35
|
+
extend?: ColumnItemExtend;
|
|
36
|
+
idx: number;
|
|
37
|
+
}
|
|
38
|
+
export type VxeItemFileUpload = ColumnItemWithExtend;
|
|
39
|
+
export declare const uploadFilesProps: {
|
|
40
|
+
readonly visible: {
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly default: false;
|
|
43
|
+
};
|
|
44
|
+
readonly dictCode: {
|
|
45
|
+
readonly type: StringConstructor;
|
|
46
|
+
readonly default: "";
|
|
47
|
+
};
|
|
48
|
+
readonly attrCheck: {
|
|
49
|
+
readonly type: StringConstructor;
|
|
50
|
+
readonly default: "headId";
|
|
51
|
+
};
|
|
52
|
+
readonly limitSize: {
|
|
53
|
+
readonly type: NumberConstructor;
|
|
54
|
+
readonly default: 100;
|
|
55
|
+
};
|
|
56
|
+
readonly accept: {
|
|
57
|
+
readonly type: StringConstructor;
|
|
58
|
+
readonly default: ".doc, .docx, .xls, .xlsx, .ppt, .png, .jpg, .jpeg, .gif, .pptx, .pdf, .txt";
|
|
59
|
+
};
|
|
60
|
+
readonly acceptDictCode: {
|
|
61
|
+
readonly type: StringConstructor;
|
|
62
|
+
readonly default: "attachmentExtension";
|
|
63
|
+
};
|
|
64
|
+
readonly single: {
|
|
65
|
+
readonly type: BooleanConstructor;
|
|
66
|
+
readonly default: false;
|
|
67
|
+
};
|
|
68
|
+
readonly multiple: {
|
|
69
|
+
readonly type: BooleanConstructor;
|
|
70
|
+
readonly default: true;
|
|
71
|
+
};
|
|
72
|
+
readonly userInfo: {
|
|
73
|
+
readonly type: PropType<UserInfo>;
|
|
74
|
+
readonly default: () => {};
|
|
75
|
+
};
|
|
76
|
+
readonly data: {
|
|
77
|
+
readonly type: PropType<Data>;
|
|
78
|
+
readonly default: () => {};
|
|
79
|
+
};
|
|
80
|
+
readonly isOss: {
|
|
81
|
+
readonly type: BooleanConstructor;
|
|
82
|
+
readonly default: false;
|
|
83
|
+
};
|
|
84
|
+
readonly isGridUpload: {
|
|
85
|
+
readonly type: BooleanConstructor;
|
|
86
|
+
readonly default: false;
|
|
87
|
+
};
|
|
88
|
+
readonly role: {
|
|
89
|
+
readonly type: PropType<Role>;
|
|
90
|
+
readonly default: "purchase";
|
|
91
|
+
};
|
|
92
|
+
readonly action: {
|
|
93
|
+
readonly type: StringConstructor;
|
|
94
|
+
readonly default: "/attachment/purchaseAttachment/upload";
|
|
95
|
+
};
|
|
96
|
+
readonly currentRow: {
|
|
97
|
+
readonly type: PropType<CurrentRow>;
|
|
98
|
+
readonly default: () => {};
|
|
99
|
+
};
|
|
100
|
+
readonly itemNumberKey: {
|
|
101
|
+
readonly type: StringConstructor;
|
|
102
|
+
readonly default: "itemNumber";
|
|
103
|
+
};
|
|
104
|
+
readonly itemNumberLabel: {
|
|
105
|
+
readonly type: StringConstructor;
|
|
106
|
+
readonly default: "行项目";
|
|
107
|
+
};
|
|
108
|
+
readonly itemNumbeValueProp: {
|
|
109
|
+
readonly type: StringConstructor;
|
|
110
|
+
readonly default: "";
|
|
111
|
+
};
|
|
112
|
+
readonly itemNumberDefaultValue: {
|
|
113
|
+
readonly type: StringConstructor;
|
|
114
|
+
readonly default: "";
|
|
115
|
+
};
|
|
116
|
+
readonly property: {
|
|
117
|
+
readonly type: StringConstructor;
|
|
118
|
+
readonly default: "materialName";
|
|
119
|
+
};
|
|
120
|
+
readonly itemNumberSelectIndex: {
|
|
121
|
+
readonly type: BooleanConstructor;
|
|
122
|
+
readonly default: false;
|
|
123
|
+
};
|
|
124
|
+
readonly disabledItemNumber: {
|
|
125
|
+
readonly type: BooleanConstructor;
|
|
126
|
+
readonly default: false;
|
|
127
|
+
};
|
|
128
|
+
readonly itemInfo: {
|
|
129
|
+
readonly type: PropType<RecordStringNumber[]>;
|
|
130
|
+
readonly default: () => never[];
|
|
131
|
+
};
|
|
132
|
+
readonly fileTypeList: {
|
|
133
|
+
readonly type: PropType<FileTypeList[]>;
|
|
134
|
+
readonly default: () => never[];
|
|
135
|
+
};
|
|
136
|
+
readonly 'onUpdate:visible': {
|
|
137
|
+
type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
|
|
138
|
+
default: unknown;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
export type UploadFilesProps = ExtractPropTypes<typeof uploadFilesProps>;
|