@qqt-product/ui 15.0.0 → 16.0.1
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 +85508 -82878
- package/dist/index.umd.js +143 -161
- package/dist/lib/components/audit-modal/index.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/component/afterSignModal.vue.d.ts +232 -0
- package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +15 -4
- package/dist/lib/components/basicTitle/index.d.ts +96 -0
- package/dist/lib/components/basicTitle/src/BasicHelp.d.ts +99 -0
- package/dist/lib/components/basicTitle/src/BasicTitle.vue.d.ts +123 -0
- package/dist/lib/components/breadcrumb/index.d.ts +2 -7
- package/dist/lib/components/card-list-layout/index.d.ts +1 -1
- package/dist/lib/components/card-list-layout/src/index.vue.d.ts +1 -1
- package/dist/lib/components/cascader/index.d.ts +3 -3
- package/dist/lib/components/cascader/src/cascader-types.d.ts +1 -1
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +3 -3
- package/dist/lib/components/checkbox/index.d.ts +4 -4
- package/dist/lib/components/checkbox/src/checkbox-types.d.ts +1 -1
- package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
- package/dist/lib/components/code-editor-model/index.d.ts +5 -0
- package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +23 -9
- package/dist/lib/components/countdown/index.d.ts +2 -2
- package/dist/lib/components/countdown/src/countdown.d.ts +2 -2
- package/dist/lib/components/currency/index.d.ts +3 -3
- package/dist/lib/components/currency/src/currency.vue.d.ts +3 -3
- package/dist/lib/components/custom-remote-select/src/type.d.ts +7 -0
- package/dist/lib/components/detail-grid/index.d.ts +14 -4
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +14 -4
- package/dist/lib/components/detail-page-layout/index.d.ts +10 -0
- package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +11 -1
- package/dist/lib/components/edit-form/index.d.ts +2 -2
- package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/dist/lib/components/edit-grid/index.d.ts +14 -4
- package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +4 -0
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +14 -4
- package/dist/lib/components/edit-grid/src/hook/use-grid-height-hook.d.ts +1 -1
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +1 -0
- package/dist/lib/components/empty/index.d.ts +2 -2
- package/dist/lib/components/flow-view/index.d.ts +1 -1
- package/dist/lib/components/flow-view/src/flow-view.d.ts +1 -1
- package/dist/lib/components/import-modal/index.d.ts +2 -2
- package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +2 -2
- package/dist/lib/components/index.d.ts +6 -1
- package/dist/lib/components/ladder-price/index.d.ts +2 -2
- package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +2 -2
- package/dist/lib/components/layout/index.d.ts +8 -3
- package/dist/lib/components/layout/src/header/index.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/index.vue.d.ts +8 -3
- package/dist/lib/components/layout/src/sider/index.vue.d.ts +7 -2
- package/dist/lib/components/layout/src/sider/logo.vue.d.ts +7 -2
- package/dist/lib/components/layout-anchor/index.d.ts +5 -0
- package/dist/lib/components/layout-anchor/src/layout-auchor.vue.d.ts +5 -0
- package/dist/lib/components/layout-pattern/index.d.ts +1 -170
- package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +1 -169
- package/dist/lib/components/list-page-layout/index.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +1 -0
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/mock.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +6 -6
- package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +2 -2
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +1 -1
- package/dist/lib/components/menu/index.d.ts +2 -80
- package/dist/lib/components/modal/index.d.ts +1364 -0
- package/dist/lib/components/modal/src/BasicModal.vue.d.ts +1358 -0
- package/dist/lib/components/modal/src/components/Modal.d.ts +255 -0
- package/dist/lib/components/modal/src/components/ModalClose.vue.d.ts +56 -0
- package/dist/lib/components/modal/src/components/ModalFooter.vue.d.ts +262 -0
- package/dist/lib/components/modal/src/components/ModalHeader.vue.d.ts +19 -0
- package/dist/lib/components/modal/src/components/ModalWrapper.vue.d.ts +102 -0
- package/dist/lib/components/modal/src/hooks/useModal.d.ts +6 -0
- package/dist/lib/components/modal/src/hooks/useModalContext.d.ts +7 -0
- package/dist/lib/components/modal/src/hooks/useModalDrag.d.ts +7 -0
- package/dist/lib/components/modal/src/hooks/useModalFullScreen.d.ts +11 -0
- package/dist/lib/components/modal/src/props.d.ts +150 -0
- package/dist/lib/components/modal/src/typing.d.ts +204 -0
- package/dist/lib/components/page-layout/index.d.ts +175 -2
- package/dist/lib/components/{layout-pattern/src/hook/use-audit-button-hook.d.ts → page-layout/src/hook/use-audit-button.d.ts} +59 -3
- package/dist/lib/components/page-layout/src/hook/use-custom-format.d.ts +9 -0
- package/dist/lib/components/page-layout/src/hook/use-excel-import.d.ts +42 -0
- package/dist/lib/components/page-layout/src/hook/use-file-upload.d.ts +64 -0
- package/dist/lib/components/page-layout/src/hook/use-grid-events.d.ts +26 -0
- package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +33 -1
- package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +174 -1
- package/dist/lib/components/page-layout/src/util.d.ts +18 -2
- package/dist/lib/components/radio/index.d.ts +4 -4
- package/dist/lib/components/radio/src/radio-types.d.ts +1 -1
- package/dist/lib/components/radio/src/radio.vue.d.ts +4 -4
- package/dist/lib/components/relation-graph/index.d.ts +6 -0
- package/dist/lib/components/relation-graph/src/relation-graph.vue.d.ts +89 -0
- package/dist/lib/components/remote-select/index.d.ts +2 -2
- package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +2 -2
- package/dist/lib/components/sale-template/index.d.ts +2 -1
- package/dist/lib/components/scrollContainer/index.d.ts +14 -0
- package/dist/lib/components/scrollContainer/src/ScrollContainer.vue.d.ts +10 -0
- package/dist/lib/components/scrollContainer/src/typing.d.ts +17 -0
- package/dist/lib/components/scrollbar/index.d.ts +80 -0
- package/dist/lib/components/scrollbar/src/Scrollbar.vue.d.ts +73 -0
- package/dist/lib/components/scrollbar/src/bar.d.ts +15 -0
- package/dist/lib/components/scrollbar/src/types.d.ts +18 -0
- package/dist/lib/components/scrollbar/src/util.d.ts +8 -0
- package/dist/lib/components/select/index.d.ts +2 -2
- package/dist/lib/components/select/src/select.vue.d.ts +2 -2
- package/dist/lib/components/select-modal/index.d.ts +2 -2
- package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +2 -2
- package/dist/lib/components/tree-select/index.d.ts +2 -2
- package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +2 -2
- package/dist/lib/components/upload-file/index.d.ts +4 -4
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +4 -4
- package/dist/lib/components/upload-image/index.d.ts +6 -4
- package/dist/lib/components/upload-image/src/preview.vue.d.ts +16 -0
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +6 -4
- package/dist/lib/hooks/core/useAttrs.d.ts +9 -0
- package/dist/lib/hooks/core/useContext.d.ts +11 -0
- package/dist/lib/hooks/core/useTimeout.d.ts +11 -0
- package/dist/lib/hooks/event/useScrollTo.d.ts +10 -0
- package/dist/lib/hooks/event/useWindowSizeFn.d.ts +7 -0
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/types/index.d.ts +32 -0
- package/dist/lib/utils/domUtils.d.ts +36 -0
- package/dist/lib/utils/event/index.d.ts +3 -0
- package/dist/lib/utils/helper/tsxHelper.d.ts +13 -0
- package/dist/lib/utils/index.d.ts +7 -0
- package/dist/lib/utils/is.d.ts +22 -0
- package/dist/lib/utils/log.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +15 -13
- /package/dist/lib/components/page-layout/src/hook/{use-merge-defaultValues-hook.d.ts → use-merge-defaultValues.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-page-data-hook.d.ts → use-page-data.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-ref-instance-hook.d.ts → use-ref-instance.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-remote-config-hook.d.ts → use-remote-config.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-uid-hook.d.ts → use-uid.d.ts} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { PageButtonArgsFunctionType, ExposeWithPageButtons, PageButtonPayload, RecordString, LayoutConfig, PageButton } from '../../../edit-page-layout';
|
|
3
|
+
export default function useExcelImport(pageData: Ref<RecordString>, layoutConfig: Ref<LayoutConfig>, defaultValues: Ref<RecordString>): {
|
|
4
|
+
importVisible: Ref<boolean>;
|
|
5
|
+
importProps: Ref<{
|
|
6
|
+
button: {
|
|
7
|
+
title: string;
|
|
8
|
+
i18nKey?: string | undefined;
|
|
9
|
+
key: string | symbol;
|
|
10
|
+
args: PageButtonArgsFunctionType | {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
authorityCode?: string | undefined;
|
|
15
|
+
attrs?: RecordString | undefined;
|
|
16
|
+
icon?: {
|
|
17
|
+
type: string;
|
|
18
|
+
size: number;
|
|
19
|
+
color?: string | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
emit?: boolean | undefined;
|
|
22
|
+
emitKey?: string | undefined;
|
|
23
|
+
showMessage?: boolean | undefined;
|
|
24
|
+
checkBefore?: boolean | undefined;
|
|
25
|
+
confirm?: {
|
|
26
|
+
title: string;
|
|
27
|
+
content: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
dropdown?: boolean | undefined;
|
|
30
|
+
isExistFrozenSource?: boolean | undefined;
|
|
31
|
+
isExistFrozenSourceUrl?: string | undefined;
|
|
32
|
+
isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
|
|
33
|
+
disabled?: ((pageData: RecordString) => boolean) | undefined;
|
|
34
|
+
handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
35
|
+
handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
36
|
+
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
37
|
+
};
|
|
38
|
+
isEditPage: boolean;
|
|
39
|
+
token: string;
|
|
40
|
+
}>;
|
|
41
|
+
handleOpenImportModal: (btn: PageButton) => void;
|
|
42
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { Ref, SetupContext } from 'vue';
|
|
2
|
+
import type { ColumnItemWithExtend, VxeItemFileUpload } from '../../../upload-file';
|
|
3
|
+
import type { PageButtonDownLoad, PageButtonDeleteFileRow, PageButtonUploadType, RecordString, LayoutConfig } from '../../../edit-page-layout';
|
|
4
|
+
export default function useFileUpload(ctx: SetupContext, pageData: Ref<RecordString>, layoutConfig: Ref<LayoutConfig>, defaultValues: Ref<RecordString>): {
|
|
5
|
+
btnObj: Ref<PageButtonUploadType | undefined>;
|
|
6
|
+
itemConfigObj: Ref<ColumnItemWithExtend | undefined>;
|
|
7
|
+
fileVisible: Ref<boolean>;
|
|
8
|
+
fileProps: Ref<{
|
|
9
|
+
readonly data?: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
businessType: string;
|
|
12
|
+
headId: string;
|
|
13
|
+
} | undefined;
|
|
14
|
+
readonly 'onUpdate:visible'?: ((value: boolean) => void) | ((value: boolean) => void)[] | undefined;
|
|
15
|
+
readonly visible?: boolean | undefined;
|
|
16
|
+
readonly currentRow?: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
templateNumber: string;
|
|
19
|
+
templateVersion: number;
|
|
20
|
+
templateAccount: string;
|
|
21
|
+
busAccount: string;
|
|
22
|
+
elsAccount: string;
|
|
23
|
+
} | undefined;
|
|
24
|
+
readonly action?: string | undefined;
|
|
25
|
+
readonly accept?: string | undefined;
|
|
26
|
+
readonly dictCode?: string | undefined;
|
|
27
|
+
readonly userInfo?: {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
elsAccount: string;
|
|
30
|
+
subAccount: string;
|
|
31
|
+
serivceUrl: string;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly role?: string | undefined;
|
|
34
|
+
readonly property?: string | undefined;
|
|
35
|
+
readonly defaultFileType?: string | undefined;
|
|
36
|
+
readonly requiredFileType?: boolean | undefined;
|
|
37
|
+
readonly defaultFileBelong?: string | undefined;
|
|
38
|
+
readonly limitSize?: number | undefined;
|
|
39
|
+
readonly acceptDictCode?: string | undefined;
|
|
40
|
+
readonly maxCount?: number | undefined;
|
|
41
|
+
readonly isOss?: boolean | undefined;
|
|
42
|
+
readonly isGridUpload?: boolean | undefined;
|
|
43
|
+
readonly itemNumberKey?: string | undefined;
|
|
44
|
+
readonly itemNumberLabel?: string | undefined;
|
|
45
|
+
readonly itemNumberValueProp?: string | undefined;
|
|
46
|
+
readonly itemNumberDefaultValue?: string | undefined;
|
|
47
|
+
readonly itemNumberSelectIndex?: boolean | undefined;
|
|
48
|
+
readonly disabledItemNumber?: boolean | undefined;
|
|
49
|
+
readonly itemInfo?: RecordString[] | undefined;
|
|
50
|
+
readonly fileTypeList?: {
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
title: string;
|
|
53
|
+
value: string;
|
|
54
|
+
}[] | undefined;
|
|
55
|
+
readonly actionRoutePath?: string | undefined;
|
|
56
|
+
readonly sourceNumberType?: string | undefined;
|
|
57
|
+
readonly onConfirmBeforeUpload?: Function | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
handleDownLoadZip: (btn: PageButtonDownLoad) => void;
|
|
60
|
+
handleDeleteFileRows: (btn: PageButtonDeleteFileRow) => void;
|
|
61
|
+
handleOpenFileUpload: (btn: PageButtonUploadType) => void;
|
|
62
|
+
handleOpenFileUploadItem: (itemConfig: VxeItemFileUpload) => void;
|
|
63
|
+
handleChangeFiles: (fileResult: RecordString[]) => void;
|
|
64
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Ref, SetupContext } from 'vue';
|
|
2
|
+
import type { RecordString, KeydownEventParams, HeaderCellClickEventParams, HeaderCellDblclickEventParams, HeaderCellMenuEventParams, CellClickEventParams, CellDblclickEventParams, CellMenuEventParams, FooterCellClickEventParams, FooterCellDblclickEventParams, FooterCellMenuEventParams, RadioChangeEventParams, CheckboxChangeEventParams, CheckboxAllEventParams, ScrollEventParams, ZoomEventParams, CustomEventParams, CellAreaCutParams, CellAreaCopyParams, CellAreaPasteParams } from '../../../edit-page-layout';
|
|
3
|
+
export default function useGridEvents(ctx: SetupContext, pageData: Ref<RecordString>): {
|
|
4
|
+
cacheRows: Ref<RecordString[]>;
|
|
5
|
+
cacheGroupCode: Ref<string>;
|
|
6
|
+
cacheEventParams: Ref<CellClickEventParams | null | undefined>;
|
|
7
|
+
handleGridKeydown: (params: KeydownEventParams) => void;
|
|
8
|
+
handleGridHeaderCellClick: (params: HeaderCellClickEventParams) => void;
|
|
9
|
+
handleGridHeaderCellDblclick: (params: HeaderCellDblclickEventParams) => void;
|
|
10
|
+
handleGridHeaderCellMenu: (params: HeaderCellMenuEventParams) => void;
|
|
11
|
+
handleGridCellClick: (params: CellClickEventParams) => void;
|
|
12
|
+
handleGridCellDblclick: (params: CellDblclickEventParams) => void;
|
|
13
|
+
handleGridCellMenu: (params: CellMenuEventParams) => void;
|
|
14
|
+
handleGridFooterCellClick: (params: FooterCellClickEventParams) => void;
|
|
15
|
+
handleGridFooterCellDblclick: (params: FooterCellDblclickEventParams) => void;
|
|
16
|
+
handleGridFooterCellMenu: (params: FooterCellMenuEventParams) => void;
|
|
17
|
+
handleGridRadioChange: (params: RadioChangeEventParams) => void;
|
|
18
|
+
handleGridCheckboxChange: (params: CheckboxChangeEventParams) => void;
|
|
19
|
+
handleGridCheckboxAll: (params: CheckboxAllEventParams) => void;
|
|
20
|
+
handleGridScroll: (params: ScrollEventParams) => void;
|
|
21
|
+
handleGridZoom: (params: ZoomEventParams) => void;
|
|
22
|
+
handleGridCustom: (params: CustomEventParams) => void;
|
|
23
|
+
handleGridCellAreaCopy: (params: CellAreaCopyParams) => void;
|
|
24
|
+
handleGridCellAreaCut: (params: CellAreaCutParams) => void;
|
|
25
|
+
handleGridCellAreaPaste: (params: CellAreaPasteParams) => void;
|
|
26
|
+
};
|
|
@@ -1,7 +1,39 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
import type { UsePromiseStepPayload,
|
|
2
|
+
import type { PageButtonArgsFunctionType, PageButtonPayload, UsePromiseStepPayload, ExposeWithPageButtons, RecordString, PageButton, ValidateResult } from '../../../edit-page-layout';
|
|
3
3
|
export default function usePromiseStep<T extends UsePromiseStepPayload>(payload: T): {
|
|
4
4
|
localUid: Ref<number>;
|
|
5
|
+
cacheButton: Ref<{
|
|
6
|
+
title: string;
|
|
7
|
+
i18nKey?: string | undefined;
|
|
8
|
+
key: string | symbol;
|
|
9
|
+
args: PageButtonArgsFunctionType | {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
authorityCode?: string | undefined;
|
|
14
|
+
attrs?: RecordString | undefined;
|
|
15
|
+
icon?: {
|
|
16
|
+
type: string;
|
|
17
|
+
size: number;
|
|
18
|
+
color?: string | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
emit?: boolean | undefined;
|
|
21
|
+
emitKey?: string | undefined;
|
|
22
|
+
showMessage?: boolean | undefined;
|
|
23
|
+
checkBefore?: boolean | undefined;
|
|
24
|
+
confirm?: {
|
|
25
|
+
title: string;
|
|
26
|
+
content: string;
|
|
27
|
+
} | undefined;
|
|
28
|
+
dropdown?: boolean | undefined;
|
|
29
|
+
isExistFrozenSource?: boolean | undefined;
|
|
30
|
+
isExistFrozenSourceUrl?: string | undefined;
|
|
31
|
+
isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
|
|
32
|
+
disabled?: ((pageData: RecordString) => boolean) | undefined;
|
|
33
|
+
handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
34
|
+
handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
35
|
+
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
36
|
+
}>;
|
|
5
37
|
customLoading: Readonly<Ref<boolean>>;
|
|
6
38
|
normalizeStepPromiseMethod: <T_1 extends ExposeWithPageButtons>(key: string | symbol) => ((args: T_1) => Promise<ExposeWithPageButtons>)[];
|
|
7
39
|
handleResetValidateStatus: () => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { ObjectMap } from '../../list-page-layout';
|
|
1
2
|
import type { DefineComponent, ComponentPropsOptions, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComponentObjectPropsOptions } from 'vue';
|
|
2
|
-
import type { LayoutConfig, RecordString } from '../../edit-page-layout';
|
|
3
|
+
import type { LayoutConfig, CurrentRow, PageButtonArgsFunctionType, ExposeWithPageButtons, PageButtonPayload, RecordString } from '../../edit-page-layout';
|
|
3
4
|
declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
|
|
4
5
|
[x: string]: unknown;
|
|
5
6
|
}>>, {
|
|
@@ -12,6 +13,178 @@ declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
|
|
|
12
13
|
loading: Ref<boolean>;
|
|
13
14
|
layoutLoading: Ref<boolean>;
|
|
14
15
|
customLoading: Readonly<Ref<boolean>>;
|
|
16
|
+
currentRow: CurrentRow;
|
|
17
|
+
fileVisible: Ref<boolean>;
|
|
18
|
+
fileProps: Ref<{
|
|
19
|
+
readonly data?: {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
businessType: string;
|
|
22
|
+
headId: string;
|
|
23
|
+
} | undefined;
|
|
24
|
+
readonly 'onUpdate:visible'?: ((value: boolean) => void) | ((value: boolean) => void)[] | undefined;
|
|
25
|
+
readonly visible?: boolean | undefined;
|
|
26
|
+
readonly currentRow?: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
templateNumber: string;
|
|
29
|
+
templateVersion: number;
|
|
30
|
+
templateAccount: string;
|
|
31
|
+
busAccount: string;
|
|
32
|
+
elsAccount: string;
|
|
33
|
+
} | undefined;
|
|
34
|
+
readonly action?: string | undefined;
|
|
35
|
+
readonly accept?: string | undefined;
|
|
36
|
+
readonly dictCode?: string | undefined;
|
|
37
|
+
readonly userInfo?: {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
elsAccount: string;
|
|
40
|
+
subAccount: string;
|
|
41
|
+
serivceUrl: string;
|
|
42
|
+
} | undefined;
|
|
43
|
+
readonly role?: string | undefined;
|
|
44
|
+
readonly property?: string | undefined;
|
|
45
|
+
readonly defaultFileType?: string | undefined;
|
|
46
|
+
readonly requiredFileType?: boolean | undefined;
|
|
47
|
+
readonly defaultFileBelong?: string | undefined;
|
|
48
|
+
readonly limitSize?: number | undefined;
|
|
49
|
+
readonly acceptDictCode?: string | undefined;
|
|
50
|
+
readonly maxCount?: number | undefined;
|
|
51
|
+
readonly isOss?: boolean | undefined;
|
|
52
|
+
readonly isGridUpload?: boolean | undefined;
|
|
53
|
+
readonly itemNumberKey?: string | undefined;
|
|
54
|
+
readonly itemNumberLabel?: string | undefined;
|
|
55
|
+
readonly itemNumberValueProp?: string | undefined;
|
|
56
|
+
readonly itemNumberDefaultValue?: string | undefined;
|
|
57
|
+
readonly itemNumberSelectIndex?: boolean | undefined;
|
|
58
|
+
readonly disabledItemNumber?: boolean | undefined;
|
|
59
|
+
readonly itemInfo?: RecordString[] | undefined;
|
|
60
|
+
readonly fileTypeList?: {
|
|
61
|
+
[x: string]: unknown;
|
|
62
|
+
title: string;
|
|
63
|
+
value: string;
|
|
64
|
+
}[] | undefined;
|
|
65
|
+
readonly actionRoutePath?: string | undefined;
|
|
66
|
+
readonly sourceNumberType?: string | undefined;
|
|
67
|
+
readonly onConfirmBeforeUpload?: Function | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
handleChangeFiles: (fileResult: RecordString[]) => void;
|
|
70
|
+
importVisible: Ref<boolean>;
|
|
71
|
+
importProps: Ref<{
|
|
72
|
+
button: {
|
|
73
|
+
title: string;
|
|
74
|
+
i18nKey?: string | undefined;
|
|
75
|
+
key: string | symbol;
|
|
76
|
+
args: PageButtonArgsFunctionType | {
|
|
77
|
+
[x: string]: unknown;
|
|
78
|
+
url: string;
|
|
79
|
+
};
|
|
80
|
+
authorityCode?: string | undefined;
|
|
81
|
+
attrs?: RecordString | undefined;
|
|
82
|
+
icon?: {
|
|
83
|
+
type: string;
|
|
84
|
+
size: number;
|
|
85
|
+
color?: string | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
emit?: boolean | undefined;
|
|
88
|
+
emitKey?: string | undefined;
|
|
89
|
+
showMessage?: boolean | undefined;
|
|
90
|
+
checkBefore?: boolean | undefined;
|
|
91
|
+
confirm?: {
|
|
92
|
+
title: string;
|
|
93
|
+
content: string;
|
|
94
|
+
} | undefined;
|
|
95
|
+
dropdown?: boolean | undefined;
|
|
96
|
+
isExistFrozenSource?: boolean | undefined;
|
|
97
|
+
isExistFrozenSourceUrl?: string | undefined;
|
|
98
|
+
isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
|
|
99
|
+
disabled?: ((pageData: RecordString) => boolean) | undefined;
|
|
100
|
+
handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
101
|
+
handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
102
|
+
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
103
|
+
};
|
|
104
|
+
isEditPage: boolean;
|
|
105
|
+
token: string;
|
|
106
|
+
}>;
|
|
107
|
+
auditModalVisible: Ref<boolean>;
|
|
108
|
+
approvalModalVisible: Ref<boolean>;
|
|
109
|
+
nodeHistoryModalVisible: Ref<boolean>;
|
|
110
|
+
auditModalProps: Ref<{
|
|
111
|
+
width?: string | undefined;
|
|
112
|
+
form?: {
|
|
113
|
+
[x: string]: unknown;
|
|
114
|
+
type: string;
|
|
115
|
+
label: string;
|
|
116
|
+
fieldName: string;
|
|
117
|
+
required?: string | undefined;
|
|
118
|
+
attrs?: ObjectMap | undefined;
|
|
119
|
+
extends?: ObjectMap | undefined;
|
|
120
|
+
dictCode?: string | undefined;
|
|
121
|
+
options?: any[] | undefined;
|
|
122
|
+
click?: ((args: object, formState?: ObjectMap | undefined) => void) | undefined;
|
|
123
|
+
}[] | undefined;
|
|
124
|
+
title?: string | undefined;
|
|
125
|
+
'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
|
|
126
|
+
visible?: boolean | undefined;
|
|
127
|
+
currentRow?: any;
|
|
128
|
+
businessType?: string | undefined;
|
|
129
|
+
token?: string | undefined;
|
|
130
|
+
busAccount?: string | undefined;
|
|
131
|
+
taskAction?: string | undefined;
|
|
132
|
+
needFlow?: string | undefined;
|
|
133
|
+
flowIframeUrl?: string | undefined;
|
|
134
|
+
customParams?: Record<string, any> | undefined;
|
|
135
|
+
}>;
|
|
136
|
+
auditModalConfirm: Ref<any>;
|
|
137
|
+
auditModalCancel: Ref<any>;
|
|
138
|
+
flowVisible: Ref<boolean>;
|
|
139
|
+
flowProps: Ref<{
|
|
140
|
+
button?: {
|
|
141
|
+
title: string;
|
|
142
|
+
i18nKey?: string | undefined;
|
|
143
|
+
key: string | symbol;
|
|
144
|
+
args: PageButtonArgsFunctionType | {
|
|
145
|
+
[x: string]: unknown;
|
|
146
|
+
url: string;
|
|
147
|
+
};
|
|
148
|
+
authorityCode?: string | undefined;
|
|
149
|
+
attrs?: RecordString | undefined;
|
|
150
|
+
icon?: {
|
|
151
|
+
type: string;
|
|
152
|
+
size: number;
|
|
153
|
+
color?: string | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
emit?: boolean | undefined;
|
|
156
|
+
emitKey?: string | undefined;
|
|
157
|
+
showMessage?: boolean | undefined;
|
|
158
|
+
checkBefore?: boolean | undefined;
|
|
159
|
+
confirm?: {
|
|
160
|
+
title: string;
|
|
161
|
+
content: string;
|
|
162
|
+
} | undefined;
|
|
163
|
+
dropdown?: boolean | undefined;
|
|
164
|
+
isExistFrozenSource?: boolean | undefined;
|
|
165
|
+
isExistFrozenSourceUrl?: string | undefined;
|
|
166
|
+
isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
|
|
167
|
+
disabled?: ((pageData: RecordString) => boolean) | undefined;
|
|
168
|
+
handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
169
|
+
handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
170
|
+
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
width?: string | undefined;
|
|
173
|
+
title?: string | undefined;
|
|
174
|
+
onChange?: ((args: any) => void) | ((args: any) => void)[] | undefined;
|
|
175
|
+
'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
|
|
176
|
+
visible?: boolean | undefined;
|
|
177
|
+
currentRow?: any;
|
|
178
|
+
token?: string | undefined;
|
|
179
|
+
flowId?: string | undefined;
|
|
180
|
+
isDesign?: boolean | undefined;
|
|
181
|
+
workFlowType?: string | undefined;
|
|
182
|
+
}>;
|
|
183
|
+
afterSignModalVisible: Ref<boolean>;
|
|
184
|
+
handleAfterSignModal: () => void;
|
|
185
|
+
layoutExtraInfo: {
|
|
186
|
+
token: string;
|
|
187
|
+
};
|
|
15
188
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, readonly string[] | Readonly<ExtractPropTypes<Readonly<ComponentObjectPropsOptions<{
|
|
16
189
|
[x: string]: unknown;
|
|
17
190
|
}>>>>, {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { InjectionKey } from 'vue';
|
|
2
|
-
import type { UserInfo, CurrentRow, Role } from '../../edit-page-layout';
|
|
2
|
+
import type { UserInfo, CurrentRow, Role, RecordString } from '../../edit-page-layout';
|
|
3
3
|
type Row = {
|
|
4
4
|
currentRow: CurrentRow;
|
|
5
5
|
userInfo: UserInfo;
|
|
6
6
|
businessType: string;
|
|
7
7
|
role?: Role;
|
|
8
|
+
token?: string;
|
|
8
9
|
};
|
|
9
|
-
export declare function getRemoteJsFilePath({ currentRow, userInfo, businessType, role }: Row
|
|
10
|
+
export declare function getRemoteJsFilePath({ currentRow, userInfo, businessType, role, token }: Row): string;
|
|
10
11
|
/**
|
|
11
12
|
* description: 动态加载JS文件
|
|
12
13
|
* param {string} file JS文件地址
|
|
@@ -20,4 +21,19 @@ export declare function loadJS(file: string): Promise<unknown>;
|
|
|
20
21
|
* return {*}
|
|
21
22
|
*/
|
|
22
23
|
export declare function requireInjection<T>(key: InjectionKey<T>, defaultValue?: T): NonNullable<T>;
|
|
24
|
+
/**
|
|
25
|
+
* 从对象中获取链式路径的值
|
|
26
|
+
* @param {object} obj - 源数据对象(如userInfo)
|
|
27
|
+
* @param {string} chain - 链式路径(如"address.city")
|
|
28
|
+
* @returns {any} 链式路径对应的值,不存在则返回 undefined
|
|
29
|
+
*/
|
|
30
|
+
export declare function getChainValue(obj: RecordString, chain: string): RecordString;
|
|
31
|
+
export declare const TEMPLATE_REGEXP: RegExp;
|
|
32
|
+
/**
|
|
33
|
+
* 模板渲染函数
|
|
34
|
+
* @param {string} template - 带{{变量}}或{{date:格式}}的模板字符串
|
|
35
|
+
* @param {object} userInfo - 登录接口返回的用户数据对象
|
|
36
|
+
* @returns {string} 渲染后的最终字符串
|
|
37
|
+
*/
|
|
38
|
+
export declare function renderTemplate(template: string, userInfo: RecordString): string;
|
|
23
39
|
export {};
|
|
@@ -7,7 +7,7 @@ export { QRadio };
|
|
|
7
7
|
declare const _default: SFCWithInstall<DefineComponent<{
|
|
8
8
|
readonly required: {
|
|
9
9
|
readonly type: PropType<"0" | "1">;
|
|
10
|
-
readonly default: 1;
|
|
10
|
+
readonly default: "1";
|
|
11
11
|
};
|
|
12
12
|
readonly options: {
|
|
13
13
|
readonly type: PropType<Option[]>;
|
|
@@ -50,10 +50,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
50
50
|
isLayout: Ref<boolean>;
|
|
51
51
|
colSpan: Ref<string | number>;
|
|
52
52
|
onChange: (e: Event) => void;
|
|
53
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("
|
|
53
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
54
54
|
readonly required: {
|
|
55
55
|
readonly type: PropType<"0" | "1">;
|
|
56
|
-
readonly default: 1;
|
|
56
|
+
readonly default: "1";
|
|
57
57
|
};
|
|
58
58
|
readonly options: {
|
|
59
59
|
readonly type: PropType<Option[]>;
|
|
@@ -91,9 +91,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
91
91
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
92
92
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
93
93
|
}, {
|
|
94
|
+
readonly value: string;
|
|
94
95
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
95
96
|
readonly busAccount: string;
|
|
96
|
-
readonly value: string;
|
|
97
97
|
readonly options: Option[];
|
|
98
98
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
99
99
|
readonly dictCode: string;
|
|
@@ -3,7 +3,7 @@ import { Option } from './radio-types';
|
|
|
3
3
|
declare const _sfc_main: DefineComponent<{
|
|
4
4
|
readonly required: {
|
|
5
5
|
readonly type: PropType<"0" | "1">;
|
|
6
|
-
readonly default: 1;
|
|
6
|
+
readonly default: "1";
|
|
7
7
|
};
|
|
8
8
|
readonly options: {
|
|
9
9
|
readonly type: PropType<Option[]>;
|
|
@@ -46,10 +46,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
46
46
|
isLayout: Ref<boolean>;
|
|
47
47
|
colSpan: Ref<string | number>;
|
|
48
48
|
onChange: (e: Event) => void;
|
|
49
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("
|
|
49
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
50
50
|
readonly required: {
|
|
51
51
|
readonly type: PropType<"0" | "1">;
|
|
52
|
-
readonly default: 1;
|
|
52
|
+
readonly default: "1";
|
|
53
53
|
};
|
|
54
54
|
readonly options: {
|
|
55
55
|
readonly type: PropType<Option[]>;
|
|
@@ -87,9 +87,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
87
87
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
88
88
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
89
89
|
}, {
|
|
90
|
+
readonly value: string;
|
|
90
91
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
91
92
|
readonly busAccount: string;
|
|
92
|
-
readonly value: string;
|
|
93
93
|
readonly options: Option[];
|
|
94
94
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
95
95
|
readonly dictCode: string;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { SrmI18n } from '../../../utils/type';
|
|
2
|
+
import type { RecordString } from '../../select-modal';
|
|
3
|
+
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
|
+
import RelationGraph from 'relation-graph/vue3';
|
|
5
|
+
declare const _sfc_main: DefineComponent<{
|
|
6
|
+
readonly visible: {
|
|
7
|
+
readonly type: BooleanConstructor;
|
|
8
|
+
readonly default: false;
|
|
9
|
+
};
|
|
10
|
+
readonly documentId: {
|
|
11
|
+
readonly require: true;
|
|
12
|
+
readonly type: StringConstructor;
|
|
13
|
+
readonly default: "";
|
|
14
|
+
};
|
|
15
|
+
readonly id: {
|
|
16
|
+
readonly require: true;
|
|
17
|
+
readonly type: StringConstructor;
|
|
18
|
+
readonly default: "";
|
|
19
|
+
};
|
|
20
|
+
readonly onChange: {
|
|
21
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
22
|
+
default: unknown;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
modalVisibleDocket: Ref<boolean>;
|
|
26
|
+
relationGraph$: Ref<RelationGraph | undefined>;
|
|
27
|
+
options: {
|
|
28
|
+
showDebugPanel: boolean;
|
|
29
|
+
defaultFocusRootNode: boolean;
|
|
30
|
+
backgrounImageNoRepeat: boolean;
|
|
31
|
+
layouts: {
|
|
32
|
+
label: string;
|
|
33
|
+
layoutName: string;
|
|
34
|
+
layoutClassName: string;
|
|
35
|
+
defaultNodeShape: number;
|
|
36
|
+
defaultLineShape: number;
|
|
37
|
+
from: string;
|
|
38
|
+
min_per_width: string;
|
|
39
|
+
max_per_width: string;
|
|
40
|
+
min_per_height: string;
|
|
41
|
+
max_per_height: string;
|
|
42
|
+
levelDistance: string;
|
|
43
|
+
}[];
|
|
44
|
+
defaultLineMarker: {
|
|
45
|
+
markerWidth: number;
|
|
46
|
+
markerHeight: number;
|
|
47
|
+
refX: number;
|
|
48
|
+
refY: number;
|
|
49
|
+
data: string;
|
|
50
|
+
};
|
|
51
|
+
defaultExpandHolderPosition: string;
|
|
52
|
+
defaultNodeShape: number;
|
|
53
|
+
defaultNodeWidth: string;
|
|
54
|
+
defaultLineShape: number;
|
|
55
|
+
defaultJunctionPoint: string;
|
|
56
|
+
defaultNodeBorderWidth: number;
|
|
57
|
+
defaultLineColor: string;
|
|
58
|
+
defaultNodeColor: string;
|
|
59
|
+
};
|
|
60
|
+
handleCancel: () => void;
|
|
61
|
+
srmI18n: SrmI18n;
|
|
62
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:visible"[], "update:visible", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
63
|
+
readonly visible: {
|
|
64
|
+
readonly type: BooleanConstructor;
|
|
65
|
+
readonly default: false;
|
|
66
|
+
};
|
|
67
|
+
readonly documentId: {
|
|
68
|
+
readonly require: true;
|
|
69
|
+
readonly type: StringConstructor;
|
|
70
|
+
readonly default: "";
|
|
71
|
+
};
|
|
72
|
+
readonly id: {
|
|
73
|
+
readonly require: true;
|
|
74
|
+
readonly type: StringConstructor;
|
|
75
|
+
readonly default: "";
|
|
76
|
+
};
|
|
77
|
+
readonly onChange: {
|
|
78
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
79
|
+
default: unknown;
|
|
80
|
+
};
|
|
81
|
+
}>> & {
|
|
82
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
readonly onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
|
|
85
|
+
readonly visible: boolean;
|
|
86
|
+
readonly id: string;
|
|
87
|
+
readonly documentId: string;
|
|
88
|
+
}, {}>;
|
|
89
|
+
export default _sfc_main;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MessageType } from 'ant-design-vue/
|
|
1
|
+
import type { MessageType } from 'ant-design-vue/es/message';
|
|
2
2
|
import type { SrmI18n } from '../../utils/type';
|
|
3
3
|
import type { Config, RecordString } from './src/remote-select-types';
|
|
4
4
|
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
@@ -74,9 +74,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
74
74
|
default: unknown;
|
|
75
75
|
};
|
|
76
76
|
}>>, {
|
|
77
|
+
value: string;
|
|
77
78
|
row: Record<string | number, unknown>;
|
|
78
79
|
onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
|
|
79
|
-
value: string;
|
|
80
80
|
config: Config;
|
|
81
81
|
idx: number;
|
|
82
82
|
}, {}>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MessageType } from 'ant-design-vue/
|
|
1
|
+
import type { MessageType } from 'ant-design-vue/es/message';
|
|
2
2
|
import type { SrmI18n } from '../../../utils/type';
|
|
3
3
|
import type { Config, RecordString } from './remote-select-types';
|
|
4
4
|
import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Ref, ComputedRef } from 'vue';
|
|
@@ -70,9 +70,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
70
70
|
default: unknown;
|
|
71
71
|
};
|
|
72
72
|
}>>, {
|
|
73
|
+
value: string;
|
|
73
74
|
row: Record<string | number, unknown>;
|
|
74
75
|
onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
|
|
75
|
-
value: string;
|
|
76
76
|
config: Config;
|
|
77
77
|
idx: number;
|
|
78
78
|
}, {}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SrmI18n } from '../../utils/type';
|
|
2
|
+
import type { FormInstance } from 'ant-design-vue';
|
|
2
3
|
import type { CurrentRow } from '../edit-page-layout';
|
|
3
|
-
import type { RuleObject
|
|
4
|
+
import type { RuleObject } from 'ant-design-vue/es/form';
|
|
4
5
|
import type { Payload } from './src/sale-template-types';
|
|
5
6
|
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
6
7
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
@@ -0,0 +1,14 @@
|
|
|
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 ScrollContainer from './src/ScrollContainer.vue';
|
|
4
|
+
export * from './src/typing';
|
|
5
|
+
export { ScrollContainer };
|
|
6
|
+
declare const _default: SFCWithInstall<DefineComponent<{}, {
|
|
7
|
+
scrollbarRef: Ref<{
|
|
8
|
+
wrap: any;
|
|
9
|
+
} | null>;
|
|
10
|
+
scrollTo: (to: number, duration?: number) => void;
|
|
11
|
+
scrollBottom: () => void;
|
|
12
|
+
getScrollWrap: () => any;
|
|
13
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _sfc_main: DefineComponent<{}, {
|
|
3
|
+
scrollbarRef: Ref<{
|
|
4
|
+
wrap: any;
|
|
5
|
+
} | null>;
|
|
6
|
+
scrollTo: (to: number, duration?: number) => void;
|
|
7
|
+
scrollBottom: () => void;
|
|
8
|
+
getScrollWrap: () => any;
|
|
9
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
10
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type Nullable<T> = T | null;
|
|
2
|
+
export type ScrollType = 'default' | 'main';
|
|
3
|
+
export interface CollapseContainerOptions {
|
|
4
|
+
canExpand?: boolean;
|
|
5
|
+
title?: string;
|
|
6
|
+
helpMessage?: Array<any> | string;
|
|
7
|
+
}
|
|
8
|
+
export interface ScrollContainerOptions {
|
|
9
|
+
enableScroll?: boolean;
|
|
10
|
+
type?: ScrollType;
|
|
11
|
+
}
|
|
12
|
+
export type ScrollActionType = RefType<{
|
|
13
|
+
scrollBottom: () => void;
|
|
14
|
+
getScrollWrap: () => Nullable<HTMLElement>;
|
|
15
|
+
scrollTo: (top: number) => void;
|
|
16
|
+
}>;
|
|
17
|
+
export {};
|