cnhis-design-vue 3.1.31-beta.1 → 3.1.31-beta.11
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/README.md +123 -123
- package/es/components/big-table/index.js +1 -1
- package/es/components/big-table/src/{BigTable.js → BigTable.vue.js} +1 -1
- package/es/components/big-table/src/{BigTable.vue_vue_type_script_setup_true_lang.js → BigTable.vue2.js} +6 -6
- package/es/components/{scale-view/src/components/NoData.js → big-table/src/components/NoData.vue.js} +4 -4
- package/es/components/big-table/src/components/edit-form/{edit-separate.js → edit-separate.vue.js} +1 -1
- package/es/components/big-table/src/components/{input-button.js → input-button.vue.js} +0 -0
- package/es/components/big-table/src/components/{separate.js → separate.vue.js} +0 -0
- package/es/components/big-table/src/hooks/useEdit.js +1 -1
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/bpmn-workflow/index.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/src/{BpmnWorkflow.js → BpmnWorkflow.vue.js} +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/index.d.ts +65 -45
- package/es/components/button-print/index.js +1 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +65 -45
- package/es/components/button-print/src/{ButtonPrint.js → ButtonPrint.vue.js} +1 -1
- package/es/components/button-print/src/{ButtonPrint.vue_vue_type_script_setup_true_lang.js → ButtonPrint.vue2.js} +1 -1
- package/es/components/button-print/src/components/{edit.vue.d.ts → EditFormat.vue.d.ts} +66 -46
- package/es/components/button-print/src/components/EditFormat.vue.js +173 -0
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +65 -45
- package/es/components/button-print/src/components/{IdentityVerification.js → IdentityVerification.vue.js} +9 -6
- package/es/components/button-print/src/components/Preview.vue.d.ts +41 -0
- package/es/components/button-print/src/components/Preview.vue.js +6 -0
- package/es/components/button-print/src/components/Preview.vue2.js +67 -0
- package/es/components/button-print/src/utils/browserPrint.d.ts +1 -1
- package/es/components/button-print/src/utils/browserPrint.js +1 -2
- package/es/components/button-print/src/utils/dialog.d.ts +5 -1
- package/es/components/button-print/src/utils/dialog.js +65 -23
- package/es/components/button-print/src/utils/print.d.ts +4 -1
- package/es/components/button-print/src/utils/print.js +13 -3
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/drag-layout/index.js +1 -1
- package/es/components/drag-layout/src/{DragFormLeftItem.js → DragFormLeftItem.vue.js} +0 -0
- package/es/components/drag-layout/src/{DragFormRightItem.js → DragFormRightItem.vue.js} +0 -0
- package/es/components/drag-layout/src/{DragLayout.js → DragLayout.vue.js} +2 -2
- package/es/components/fabric-chart/index.js +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -4
- package/es/components/fabric-chart/src/{FabricChart.js → FabricChart.vue.js} +1 -1
- package/es/components/fabric-chart/src/components/{PopupTip.js → PopupTip.vue.js} +0 -0
- package/es/components/fabric-chart/src/hooks/useCenter.js +5 -6
- package/es/components/fabric-chart/src/hooks/useGrid.js +3 -3
- package/es/components/fabric-chart/src/interface.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/fabric-chart/src/utils/index.js +0 -1
- package/es/components/field-set/index.js +1 -1
- package/es/components/field-set/src/{FieldSet.js → FieldSet.vue.js} +0 -0
- package/es/components/form-config/index.js +1 -1
- package/es/components/form-config/src/{FormConfig.js → FormConfig.vue.js} +3 -3
- package/es/components/form-config/src/components/{FormConfigCreator.js → FormConfigCreator.vue.js} +0 -0
- package/es/components/form-config/src/components/{FormConfigDragDisplay.js → FormConfigDragDisplay.vue.js} +0 -0
- package/es/components/form-config/src/components/{FormConfigEdit.js → FormConfigEdit.vue.js} +0 -0
- package/es/components/form-config/src/components/index.js +6 -6
- package/es/components/form-config/src/components/renderer/{CloseButton.js → CloseButton.vue.js} +0 -0
- package/es/components/form-config/src/components/renderer/{ComplexNode.js → ComplexNode.vue.js} +2 -2
- package/es/components/form-config/src/components/renderer/{DefaultNode.js → DefaultNode.vue.js} +1 -1
- package/es/components/form-config/src/components/renderer/index.js +3 -3
- package/es/components/form-config/src/hooks/usePresetRenderer.js +2 -2
- package/es/components/form-render/index.js +2 -2
- package/es/components/form-render/src/{FormRender.js → FormRender.vue.js} +0 -0
- package/es/components/form-render/src/{FormRenderWrapper.js → FormRenderWrapper.vue.js} +1 -1
- package/es/components/form-render/src/components/renderer/checkbox.js +3 -5
- package/es/components/form-render/src/components/renderer/index.js +2 -0
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/{FormCollapse.js → FormCollapse.vue.js} +0 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -1
- package/es/components/form-render/src/components/renderer/recommendSelect.d.ts +131 -0
- package/es/components/form-render/src/components/renderer/recommendSelect.js +213 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +0 -1
- package/es/components/form-render/src/components/renderer/select.js +3 -5
- package/es/components/form-render/src/hooks/useAsyncQueue.js +2 -1
- package/es/components/form-render/src/hooks/useAutographOptions.js +5 -7
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +7 -0
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +8 -1
- package/es/components/form-render/src/hooks/useFormRequest.js +24 -1
- package/es/components/form-render/src/utils/index.d.ts +2 -2
- package/es/components/form-render/src/utils/index.js +27 -3
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +124 -66
- package/es/components/iho-table/index.js +1 -2
- package/es/components/iho-table/src/IhoTable.vue.d.ts +124 -66
- package/es/components/iho-table/src/{IhoTable.js → IhoTable.vue.js} +2 -1
- package/es/components/iho-table/src/components/IhoTableColumn.js +14 -11
- package/es/components/iho-table/src/constants/index.d.ts +5 -3
- package/es/components/iho-table/src/constants/index.js +5 -3
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +64 -5
- package/es/components/iho-table/src/hooks/tapHooks/index.js +17 -9
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +5 -3
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +3 -2
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterPlugin/{filter.js → filter.vue.js} +1 -0
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +14 -12
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +32 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/{editDate.js → editDate.vue.js} +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +10 -12
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +11 -15
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +17 -24
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +11 -13
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{editSeparate.js → editSeparate.vue.js} +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +9 -12
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +13 -17
- package/es/components/iho-table/src/types/index.d.ts +6 -6
- package/es/components/iho-table/src/types/pluginType.d.ts +2 -1
- package/es/components/iho-table/src/utils/index.d.ts +12 -2
- package/es/components/iho-table/src/utils/index.js +33 -2
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +5 -2
- package/es/components/info-header/index.js +1 -1
- package/es/components/info-header/src/{HiddenContent.js → HiddenContent.vue.js} +1 -1
- package/es/components/info-header/src/{InfoEllipsis.js → InfoEllipsis.vue.js} +0 -0
- package/es/components/info-header/src/{InfoHeader.js → InfoHeader.vue.js} +2 -2
- package/es/components/keyboard/index.d.ts +146 -78
- package/es/components/keyboard/index.js +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +155 -78
- package/es/components/keyboard/src/Keyboard.vue.js +149 -0
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +6 -4
- package/es/components/keyboard/src/components/{InputNumber.js → InputNumber.vue.js} +0 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +118 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.js +206 -0
- package/es/components/map/index.js +1 -1
- package/es/components/map/src/{Map.js → Map.vue.js} +0 -0
- package/es/components/recommend-search/index.d.ts +813 -0
- package/es/components/recommend-search/index.js +10 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +815 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.js +62 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +119 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +148 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +303 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +103 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +63 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +104 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +350 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +156 -0
- package/es/components/recommend-search/src/constant/index.d.ts +4 -0
- package/es/components/recommend-search/src/constant/index.js +7 -0
- package/es/components/recommend-search/src/types/index.d.ts +9 -0
- package/es/components/recommend-search/src/types/index.js +1 -0
- package/es/components/recommend-search/style/index.css +1 -0
- package/es/components/scale-view/index.js +1 -1
- package/es/components/scale-view/src/{ScaleView.js → ScaleView.vue.js} +5 -5
- package/es/components/scale-view/src/components/{AnswerParse.js → AnswerParse.vue.js} +1 -1
- package/es/components/scale-view/src/components/{EvaluateCountdown.js → EvaluateCountdown.vue.js} +1 -1
- package/es/components/scale-view/src/components/{EvaluatePage.js → EvaluatePage.vue.js} +0 -0
- package/es/components/scale-view/src/components/{LoadingCom.js → LoadingCom.vue.js} +0 -0
- package/es/components/{big-table/src/components/NoData.js → scale-view/src/components/NoData.vue.js} +4 -4
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.js +1 -1
- package/es/components/search-cascader/index.js +1 -1
- package/es/components/search-cascader/src/{SearchCascader.js → SearchCascader.vue.js} +0 -0
- package/es/components/search-cascader/src/components/SearchMenu.js +3 -3
- package/es/components/select-label/index.js +2 -2
- package/es/components/select-label/src/{LabelFormContent.js → LabelFormContent.vue.js} +1 -1
- package/es/components/select-label/src/{SelectLabel.js → SelectLabel.vue.js} +1 -1
- package/es/components/select-label/src/{SelectLabel.vue_vue_type_script_setup_true_lang.js → SelectLabel.vue2.js} +2 -2
- package/es/components/select-label/src/components/{label-classify.js → label-classify.vue.js} +0 -0
- package/es/components/select-person/index.js +1 -1
- package/es/components/select-person/src/{SelectPerson.js → SelectPerson.vue.js} +1 -1
- package/es/components/select-person/src/{SelectPerson.vue_vue_type_script_setup_true_lang.js → SelectPerson.vue2.js} +0 -0
- package/es/components/shortcut-provider/index.js +1 -1
- package/es/components/shortcut-provider/src/{ShortcutProvider.js → ShortcutProvider.vue.js} +0 -0
- package/es/components/shortcut-setter/index.js +1 -1
- package/es/components/shortcut-setter/src/{ShortcutSetter.js → ShortcutSetter.vue.js} +1 -1
- package/es/components/shortcut-setter/src/{ShortcutSetterItem.js → ShortcutSetterItem.vue.js} +0 -0
- package/es/components/steps-wheel/index.d.ts +3 -0
- package/es/components/steps-wheel/index.js +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +3 -0
- package/es/components/steps-wheel/src/{StepsWheel.js → StepsWheel.vue.js} +38 -9
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/time-line/index.js +1 -1
- package/es/components/time-line/src/{TimeLine.js → TimeLine.vue.js} +0 -0
- package/es/components/vod-chunk-upload/index.js +1 -1
- package/es/components/vod-chunk-upload/src/{chunk-upload-new.js → chunk-upload-new.vue.js} +0 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +2 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/{vod-chunk-upload.js → vod-chunk-upload.vue.js} +3 -3
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
- package/es/shared/assets/img/failure.js +1 -3
- package/es/shared/assets/img/failure.png.js +3 -0
- package/es/shared/assets/img/icon-asc.js +1 -1
- package/es/shared/assets/img/icon-desc.js +1 -1
- package/es/shared/assets/img/no-permission.js +1 -3
- package/es/shared/assets/img/no-permission.png.js +3 -0
- package/es/shared/assets/img/nodata.js +1 -3
- package/es/shared/assets/img/nodata.png.js +3 -0
- package/es/shared/assets/img/notfound.js +1 -3
- package/es/shared/assets/img/notfound.png.js +3 -0
- package/es/shared/assets/img/qr.js +1 -3
- package/es/shared/assets/img/qr.png.js +3 -0
- package/es/shared/assets/img/success.js +1 -3
- package/es/shared/assets/img/success.png.js +3 -0
- package/es/shared/assets/img/video.js +1 -3
- package/es/shared/assets/img/video.png.js +3 -0
- package/es/shared/assets/img/video_default_cover.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +3 -0
- package/es/shared/assets/img/video_hover.js +1 -1
- package/es/shared/assets/img/video_play_hover.js +1 -1
- package/es/shared/assets/img/xb_big.js +1 -3
- package/es/shared/assets/img/xb_big.png.js +3 -0
- package/es/shared/assets/img/xb_small.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +3 -0
- package/es/shared/components/SelectPage/{SelectPage.js → SelectPage.vue.js} +0 -0
- package/es/shared/components/SelectPage/index.js +2 -2
- package/es/shared/components/SvgIcon/{SvgIcon.js → SvgIcon.vue.js} +0 -0
- package/es/shared/components/SvgIcon/index.js +2 -2
- package/es/shared/components/TextOverTooltip/{TextOverTooltip.js → TextOverTooltip.vue.js} +0 -0
- package/es/shared/components/TextOverTooltip/index.js +2 -2
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/components/no-data/{NoData.js → NoData.vue.js} +4 -4
- package/es/shared/components/no-data/index.js +2 -2
- package/es/shared/utils/index.d.ts +1 -1
- package/es/shared/utils/index.js +3 -3
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/button-print/src/components/edit.js +0 -152
- package/es/components/keyboard/src/Keyboard.js +0 -285
|
@@ -4,7 +4,7 @@ import { useMessage, NDropdown, NButton, NIcon } from 'naive-ui';
|
|
|
4
4
|
import { ChevronDown } from '@vicons/ionicons5';
|
|
5
5
|
import { Print } from './utils/print.js';
|
|
6
6
|
import { isIReport } from './utils/browserPrint.js';
|
|
7
|
-
import IdentityVerification from './components/IdentityVerification.js';
|
|
7
|
+
import IdentityVerification from './components/IdentityVerification.vue.js';
|
|
8
8
|
import { format } from 'date-fns';
|
|
9
9
|
|
|
10
10
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,58 +1,69 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { UploadFileInfo } from 'naive-ui';
|
|
3
3
|
import { AnyObject } from '../../../../../es/shared/types';
|
|
4
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
formatId: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
required: false;
|
|
8
|
+
};
|
|
9
|
+
token: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
PROTOCOL: string;
|
|
5
15
|
HOST: string;
|
|
16
|
+
BASEURL: string;
|
|
6
17
|
SAVEIREPORT: string;
|
|
18
|
+
QUERYFILELIST: string;
|
|
19
|
+
DELETEFILE: string;
|
|
7
20
|
instance: import("axios").AxiosInstance;
|
|
8
21
|
$message: import("naive-ui").MessageApi;
|
|
22
|
+
props: {
|
|
23
|
+
formatId?: string | undefined;
|
|
24
|
+
token: string;
|
|
25
|
+
};
|
|
9
26
|
fileList: import("vue").Ref<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
type?: string | null | undefined;
|
|
43
|
-
fullPath?: string | null | undefined;
|
|
44
|
-
}[];
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
batchId?: string | null | undefined;
|
|
30
|
+
percentage?: number | null | undefined;
|
|
31
|
+
status: "error" | "pending" | "uploading" | "finished" | "removed";
|
|
32
|
+
url?: string | null | undefined;
|
|
33
|
+
file?: {
|
|
34
|
+
readonly lastModified: number;
|
|
35
|
+
readonly name: string;
|
|
36
|
+
readonly webkitRelativePath: string;
|
|
37
|
+
readonly size: number;
|
|
38
|
+
readonly type: string;
|
|
39
|
+
arrayBuffer: {
|
|
40
|
+
(): Promise<ArrayBuffer>;
|
|
41
|
+
(): Promise<ArrayBuffer>;
|
|
42
|
+
};
|
|
43
|
+
slice: {
|
|
44
|
+
(start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
|
|
45
|
+
(start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
|
|
46
|
+
};
|
|
47
|
+
stream: {
|
|
48
|
+
(): ReadableStream<Uint8Array>;
|
|
49
|
+
(): NodeJS.ReadableStream;
|
|
50
|
+
};
|
|
51
|
+
text: {
|
|
52
|
+
(): Promise<string>;
|
|
53
|
+
(): Promise<string>;
|
|
54
|
+
};
|
|
55
|
+
} | null | undefined;
|
|
56
|
+
thumbnailUrl?: string | null | undefined;
|
|
57
|
+
type?: string | null | undefined;
|
|
58
|
+
fullPath?: string | null | undefined;
|
|
45
59
|
}[]>;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
file: UploadFileInfo;
|
|
49
|
-
fileList: UploadFileInfo[];
|
|
50
|
-
}, index: number) => void;
|
|
51
|
-
onBeforeUpload: (data: {
|
|
60
|
+
queryFileList: () => void;
|
|
61
|
+
onRemove: (options: {
|
|
52
62
|
file: UploadFileInfo;
|
|
53
|
-
fileList: UploadFileInfo
|
|
54
|
-
}) => Promise<
|
|
55
|
-
|
|
63
|
+
fileList: Array<UploadFileInfo>;
|
|
64
|
+
}) => Promise<unknown>;
|
|
65
|
+
submit: (datas: AnyObject) => Promise<unknown>;
|
|
66
|
+
validateFormat: () => boolean;
|
|
56
67
|
NForm: any;
|
|
57
68
|
NFormItem: import("vue").DefineComponent<{
|
|
58
69
|
readonly label: StringConstructor;
|
|
@@ -1220,5 +1231,14 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
1220
1231
|
}>;
|
|
1221
1232
|
NSpace: any;
|
|
1222
1233
|
Archive: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1223
|
-
},
|
|
1234
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1235
|
+
formatId: {
|
|
1236
|
+
type: StringConstructor;
|
|
1237
|
+
required: false;
|
|
1238
|
+
};
|
|
1239
|
+
token: {
|
|
1240
|
+
type: StringConstructor;
|
|
1241
|
+
required: true;
|
|
1242
|
+
};
|
|
1243
|
+
}>>, {}>;
|
|
1224
1244
|
export default _default;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createVNode, createElementVNode, createTextVNode } from 'vue';
|
|
2
|
+
import { useMessage, NForm, NFormItem, NSpace, NUpload, NUploadDragger, NIcon, NText, NP } from 'naive-ui';
|
|
3
|
+
import { Archive } from '@vicons/ionicons5';
|
|
4
|
+
import axios from 'axios';
|
|
5
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
6
|
+
|
|
7
|
+
const _hoisted_1 = { style: { "margin-bottom": "12px" } };
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "EditFormat",
|
|
10
|
+
props: {
|
|
11
|
+
formatId: null,
|
|
12
|
+
token: null
|
|
13
|
+
},
|
|
14
|
+
setup(__props, { expose }) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const PROTOCOL = window.location.protocol;
|
|
17
|
+
const HOST = window.location.host;
|
|
18
|
+
const BASEURL = `${PROTOCOL}//${HOST}/bi-api`;
|
|
19
|
+
const SAVEIREPORT = `${BASEURL}/reprot/print/open/client/saveIReportFormat`;
|
|
20
|
+
const QUERYFILELIST = `${BASEURL}/reprot/print/open/client/getIReportFiles`;
|
|
21
|
+
const DELETEFILE = `${BASEURL}/reprot/print/open/client/delIReportFiles`;
|
|
22
|
+
const instance = axios.create({});
|
|
23
|
+
const $message = useMessage();
|
|
24
|
+
const fileList = ref([]);
|
|
25
|
+
queryFileList();
|
|
26
|
+
function queryFileList() {
|
|
27
|
+
var _a;
|
|
28
|
+
instance.get(`${QUERYFILELIST}?formatId=${(_a = props.formatId) == null ? void 0 : _a.split("_")[1]}&authorizationKey=${props.token}`).then(({ data }) => {
|
|
29
|
+
(data.list || []).forEach((file) => {
|
|
30
|
+
fileList.value.push({
|
|
31
|
+
id: Date.now().toString(),
|
|
32
|
+
name: file,
|
|
33
|
+
status: "finished"
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function onRemove(options) {
|
|
39
|
+
return new Promise((resolve, reject) => {
|
|
40
|
+
var _a;
|
|
41
|
+
instance.get(
|
|
42
|
+
`${DELETEFILE}?formatId=${(_a = props.formatId) == null ? void 0 : _a.split("_")[1]}&authorizationKey=${props.token}&fileName=${options.file.name}`
|
|
43
|
+
).then(({ data }) => {
|
|
44
|
+
if ((data == null ? void 0 : data.result) !== "SUCCESS") {
|
|
45
|
+
$message.error((data == null ? void 0 : data.resultMsg) || "\u5220\u9664\u6587\u4EF6\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01");
|
|
46
|
+
reject();
|
|
47
|
+
} else {
|
|
48
|
+
$message.success("\u5220\u9664\u6587\u4EF6\u6210\u529F\uFF01");
|
|
49
|
+
resolve("SUCCESS");
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function submit(datas) {
|
|
55
|
+
return new Promise((resolve, reject) => {
|
|
56
|
+
if (!validateFormat()) {
|
|
57
|
+
$message.warning("\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2Ajrxml\u6587\u4EF6\u548C\u4E00\u4E2Ajasper\u6587\u4EF6\uFF01");
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const files = fileList.value.filter((file) => file.file);
|
|
61
|
+
if (files.length === 0) {
|
|
62
|
+
$message.warning("\u672C\u6B21\u65E0\u65B0\u6587\u4EF6\u589E\u52A0\uFF0C\u8BF7\u5148\u6DFB\u52A0\u65B0\u6587\u4EF6\uFF01");
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const params = new FormData();
|
|
66
|
+
Object.keys(datas).forEach((v) => {
|
|
67
|
+
params.append(v, datas[v]);
|
|
68
|
+
});
|
|
69
|
+
fileList.value.forEach((file) => {
|
|
70
|
+
file.file && params.append("files", file.file);
|
|
71
|
+
});
|
|
72
|
+
instance.post(SAVEIREPORT, params, {
|
|
73
|
+
headers: {
|
|
74
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
75
|
+
}
|
|
76
|
+
}).then(({ data }) => {
|
|
77
|
+
if ((data == null ? void 0 : data.result) !== "SUCCESS") {
|
|
78
|
+
$message.error((data == null ? void 0 : data.resultMsg) || "\u4E0A\u4F20\u6587\u4EF6\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01");
|
|
79
|
+
reject();
|
|
80
|
+
} else {
|
|
81
|
+
resolve("SUCCESS");
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function validateFormat() {
|
|
87
|
+
if (fileList.value.length < 2)
|
|
88
|
+
return false;
|
|
89
|
+
let isJrxml = false;
|
|
90
|
+
let isJasper = false;
|
|
91
|
+
const rExt = /\.([^.]+)$/;
|
|
92
|
+
fileList.value.forEach((file) => {
|
|
93
|
+
var _a;
|
|
94
|
+
const name = ((_a = file.file) == null ? void 0 : _a.name) || file.name || "";
|
|
95
|
+
const ext = rExt.exec(name) ? RegExp.$1.toLowerCase() : "";
|
|
96
|
+
if (ext && ".jrxml".includes(ext))
|
|
97
|
+
isJrxml = true;
|
|
98
|
+
if (ext && ".jasper".includes(ext))
|
|
99
|
+
isJasper = true;
|
|
100
|
+
});
|
|
101
|
+
if (isJrxml && isJasper)
|
|
102
|
+
return true;
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
expose({
|
|
106
|
+
submit
|
|
107
|
+
});
|
|
108
|
+
return (_ctx, _cache) => {
|
|
109
|
+
return openBlock(), createBlock(unref(NForm), {
|
|
110
|
+
"label-placement": "left",
|
|
111
|
+
"label-width": 75
|
|
112
|
+
}, {
|
|
113
|
+
default: withCtx(() => [
|
|
114
|
+
createVNode(unref(NFormItem), {
|
|
115
|
+
label: "\u683C\u5F0F\u6587\u4EF6:",
|
|
116
|
+
path: "file"
|
|
117
|
+
}, {
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createVNode(unref(NSpace), { vertical: "" }, {
|
|
120
|
+
default: withCtx(() => [
|
|
121
|
+
createVNode(unref(NUpload), {
|
|
122
|
+
multiple: "",
|
|
123
|
+
"directory-dnd": "",
|
|
124
|
+
"file-list": fileList.value,
|
|
125
|
+
"onUpdate:file-list": _cache[0] || (_cache[0] = ($event) => fileList.value = $event),
|
|
126
|
+
onRemove
|
|
127
|
+
}, {
|
|
128
|
+
default: withCtx(() => [
|
|
129
|
+
createVNode(unref(NUploadDragger), null, {
|
|
130
|
+
default: withCtx(() => [
|
|
131
|
+
createElementVNode("div", _hoisted_1, [
|
|
132
|
+
createVNode(unref(NIcon), {
|
|
133
|
+
size: "36",
|
|
134
|
+
depth: 3,
|
|
135
|
+
component: unref(Archive)
|
|
136
|
+
}, null, 8, ["component"])
|
|
137
|
+
]),
|
|
138
|
+
createVNode(unref(NText), { style: { "font-size": "12px" } }, {
|
|
139
|
+
default: withCtx(() => [
|
|
140
|
+
createTextVNode("\u70B9\u51FB\u6216\u8005\u62D6\u52A8\u6587\u4EF6\u5230\u8BE5\u533A\u57DF\u6765\u4E0A\u4F20")
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}),
|
|
144
|
+
createVNode(unref(NP), {
|
|
145
|
+
depth: "3",
|
|
146
|
+
style: { "margin": "5px 0 0 0", "font-size": "13px" }
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx(() => [
|
|
149
|
+
createTextVNode("\u81F3\u5C11\u5305\u542B\u4E00\u4E2Ajxml\u6587\u4EF6\u548C\u4E00\u4E2Ajasper\u6587\u4EF6")
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
})
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
})
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 8, ["file-list"])
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
})
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
})
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
var EditFormat = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "EditFormat.vue"]]);
|
|
172
|
+
|
|
173
|
+
export { EditFormat as default };
|
|
@@ -358,58 +358,69 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
358
358
|
readonly ignorePathChange: boolean;
|
|
359
359
|
}>;
|
|
360
360
|
NInput: any;
|
|
361
|
-
|
|
361
|
+
EditFormat: import("vue").DefineComponent<{
|
|
362
|
+
formatId: {
|
|
363
|
+
type: StringConstructor;
|
|
364
|
+
required: false;
|
|
365
|
+
};
|
|
366
|
+
token: {
|
|
367
|
+
type: StringConstructor;
|
|
368
|
+
required: true;
|
|
369
|
+
};
|
|
370
|
+
}, {
|
|
371
|
+
PROTOCOL: string;
|
|
362
372
|
HOST: string;
|
|
373
|
+
BASEURL: string;
|
|
363
374
|
SAVEIREPORT: string;
|
|
375
|
+
QUERYFILELIST: string;
|
|
376
|
+
DELETEFILE: string;
|
|
364
377
|
instance: import("axios").AxiosInstance;
|
|
365
378
|
$message: import("naive-ui").MessageApi;
|
|
379
|
+
props: {
|
|
380
|
+
formatId?: string | undefined;
|
|
381
|
+
token: string;
|
|
382
|
+
};
|
|
366
383
|
fileList: import("vue").Ref<{
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
type?: string | null | undefined;
|
|
400
|
-
fullPath?: string | null | undefined;
|
|
401
|
-
}[];
|
|
384
|
+
id: string;
|
|
385
|
+
name: string;
|
|
386
|
+
batchId?: string | null | undefined;
|
|
387
|
+
percentage?: number | null | undefined;
|
|
388
|
+
status: "error" | "pending" | "uploading" | "finished" | "removed";
|
|
389
|
+
url?: string | null | undefined;
|
|
390
|
+
file?: {
|
|
391
|
+
readonly lastModified: number;
|
|
392
|
+
readonly name: string;
|
|
393
|
+
readonly webkitRelativePath: string;
|
|
394
|
+
readonly size: number;
|
|
395
|
+
readonly type: string;
|
|
396
|
+
arrayBuffer: {
|
|
397
|
+
(): Promise<ArrayBuffer>;
|
|
398
|
+
(): Promise<ArrayBuffer>;
|
|
399
|
+
};
|
|
400
|
+
slice: {
|
|
401
|
+
(start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
|
|
402
|
+
(start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
|
|
403
|
+
};
|
|
404
|
+
stream: {
|
|
405
|
+
(): ReadableStream<Uint8Array>;
|
|
406
|
+
(): NodeJS.ReadableStream;
|
|
407
|
+
};
|
|
408
|
+
text: {
|
|
409
|
+
(): Promise<string>;
|
|
410
|
+
(): Promise<string>;
|
|
411
|
+
};
|
|
412
|
+
} | null | undefined;
|
|
413
|
+
thumbnailUrl?: string | null | undefined;
|
|
414
|
+
type?: string | null | undefined;
|
|
415
|
+
fullPath?: string | null | undefined;
|
|
402
416
|
}[]>;
|
|
403
|
-
|
|
404
|
-
|
|
417
|
+
queryFileList: () => void;
|
|
418
|
+
onRemove: (options: {
|
|
405
419
|
file: import("naive-ui").UploadFileInfo;
|
|
406
420
|
fileList: import("naive-ui").UploadFileInfo[];
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
fileList: import("naive-ui").UploadFileInfo[];
|
|
411
|
-
}) => Promise<boolean>;
|
|
412
|
-
validateFormat: (file: import("naive-ui").UploadFileInfo, format: string) => boolean;
|
|
421
|
+
}) => Promise<unknown>;
|
|
422
|
+
submit: (datas: import("../../../../shared/types").AnyObject) => Promise<unknown>;
|
|
423
|
+
validateFormat: () => boolean;
|
|
413
424
|
NForm: any;
|
|
414
425
|
NFormItem: import("vue").DefineComponent<{
|
|
415
426
|
readonly label: StringConstructor;
|
|
@@ -1577,7 +1588,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1577
1588
|
}>;
|
|
1578
1589
|
NSpace: any;
|
|
1579
1590
|
Archive: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1580
|
-
},
|
|
1591
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1592
|
+
formatId: {
|
|
1593
|
+
type: StringConstructor;
|
|
1594
|
+
required: false;
|
|
1595
|
+
};
|
|
1596
|
+
token: {
|
|
1597
|
+
type: StringConstructor;
|
|
1598
|
+
required: true;
|
|
1599
|
+
};
|
|
1600
|
+
}>>, {}>;
|
|
1581
1601
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "update:modelValue")[], "close" | "success" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1582
1602
|
verifyUser: {
|
|
1583
1603
|
type: FunctionConstructor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, watch, openBlock, createBlock, unref, normalizeStyle, withCtx, createElementVNode, mergeProps, createVNode, createTextVNode } from 'vue';
|
|
2
2
|
import { useMessage, NModal, NForm, NFormItem, NInput, NButton } from 'naive-ui';
|
|
3
|
-
import
|
|
3
|
+
import EditFormat from './EditFormat.vue.js';
|
|
4
4
|
import '../utils/print.js';
|
|
5
5
|
import { isIReport } from '../utils/browserPrint.js';
|
|
6
6
|
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
@@ -71,12 +71,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
73
|
const submitEditFile = async () => {
|
|
74
|
-
var _a;
|
|
74
|
+
var _a, _b;
|
|
75
75
|
try {
|
|
76
76
|
loading.value = true;
|
|
77
|
-
const data = await ((
|
|
77
|
+
const data = await ((_b = editFormRef.value) == null ? void 0 : _b.submit({
|
|
78
78
|
authorizationKey: token.value,
|
|
79
|
-
id: props.formatId,
|
|
79
|
+
id: (_a = props.formatId) == null ? void 0 : _a.split("_")[1],
|
|
80
80
|
templateId: props.templateId,
|
|
81
81
|
datasourceName: null,
|
|
82
82
|
dataSourceId: null
|
|
@@ -113,11 +113,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
113
|
}, {
|
|
114
114
|
default: withCtx(() => [
|
|
115
115
|
createElementVNode("div", _hoisted_1, [
|
|
116
|
-
showEditForm.value ? (openBlock(), createBlock(
|
|
116
|
+
showEditForm.value ? (openBlock(), createBlock(EditFormat, mergeProps({
|
|
117
117
|
key: 0,
|
|
118
118
|
ref_key: "editFormRef",
|
|
119
119
|
ref: editFormRef
|
|
120
|
-
}, _ctx.$attrs
|
|
120
|
+
}, _ctx.$attrs, {
|
|
121
|
+
formatId: __props.formatId,
|
|
122
|
+
token: token.value
|
|
123
|
+
}), null, 16, ["formatId", "token"])) : (openBlock(), createBlock(unref(NForm), {
|
|
121
124
|
key: 1,
|
|
122
125
|
class: "login-form-button-print",
|
|
123
126
|
ref_key: "formRef",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
visible: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
src: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
};
|
|
9
|
+
}, {
|
|
10
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
visible: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
src: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
};
|
|
18
|
+
}>> & {
|
|
19
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>>;
|
|
21
|
+
emit: (event: "update:visible", ...args: any[]) => void;
|
|
22
|
+
isNormalSize: import("vue").Ref<boolean>;
|
|
23
|
+
style: import("vue").ComputedRef<string>;
|
|
24
|
+
titleRender: () => JSX.Element;
|
|
25
|
+
changeSize: () => void;
|
|
26
|
+
onClose: () => void;
|
|
27
|
+
NModal: any;
|
|
28
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
visible: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
src: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
};
|
|
36
|
+
}>> & {
|
|
37
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
visible: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createBlock, unref, normalizeStyle, withCtx, createElementVNode, createVNode, Fragment, createTextVNode } from 'vue';
|
|
2
|
+
import { NModal, NIcon } from 'naive-ui';
|
|
3
|
+
import { SquareOutline, CopyOutline } from '@vicons/ionicons5';
|
|
4
|
+
|
|
5
|
+
const _hoisted_1 = ["src"];
|
|
6
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "Preview",
|
|
8
|
+
props: {
|
|
9
|
+
visible: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: false
|
|
12
|
+
},
|
|
13
|
+
src: {
|
|
14
|
+
type: String
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:visible"],
|
|
18
|
+
setup(__props, {
|
|
19
|
+
emit
|
|
20
|
+
}) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const isNormalSize = ref(true);
|
|
23
|
+
const style = computed(() => {
|
|
24
|
+
const size = isNormalSize.value ? 80 : 100;
|
|
25
|
+
return `width: ${size}vw; height: ${size}vh`;
|
|
26
|
+
});
|
|
27
|
+
function titleRender() {
|
|
28
|
+
return createVNode(Fragment, null, [createVNode("div", null, [createTextVNode("\u9884\u89C8")]), createVNode(NIcon, {
|
|
29
|
+
"style": {
|
|
30
|
+
margin: "0 0 0 auto",
|
|
31
|
+
transform: isNormalSize.value ? "none" : "rotate(90deg)"
|
|
32
|
+
},
|
|
33
|
+
"onClick": changeSize,
|
|
34
|
+
"component": isNormalSize.value ? SquareOutline : CopyOutline
|
|
35
|
+
}, null)]);
|
|
36
|
+
}
|
|
37
|
+
function changeSize() {
|
|
38
|
+
isNormalSize.value = !isNormalSize.value;
|
|
39
|
+
}
|
|
40
|
+
function onClose() {
|
|
41
|
+
props.src && window.URL.revokeObjectURL(props.src);
|
|
42
|
+
emit("update:visible", false);
|
|
43
|
+
}
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return openBlock(), createBlock(unref(NModal), {
|
|
46
|
+
preset: "dialog",
|
|
47
|
+
show: __props.visible,
|
|
48
|
+
"show-icon": false,
|
|
49
|
+
style: normalizeStyle(unref(style)),
|
|
50
|
+
class: "c-button-preview-modal",
|
|
51
|
+
title: titleRender,
|
|
52
|
+
onClose,
|
|
53
|
+
onMaskClick: onClose
|
|
54
|
+
}, {
|
|
55
|
+
default: withCtx(() => [createElementVNode("iframe", {
|
|
56
|
+
src: __props.src,
|
|
57
|
+
frameborder: "0",
|
|
58
|
+
width: "100%",
|
|
59
|
+
height: "97%"
|
|
60
|
+
}, null, 8, _hoisted_1)]),
|
|
61
|
+
_: 1
|
|
62
|
+
}, 8, ["show", "style"]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export { _sfc_main as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function useBrowserPrint(data: Blob, mode?: string): void;
|
|
1
|
+
export declare function useBrowserPrint(data: Blob, mode?: string): string | void;
|
|
2
2
|
export declare function isIReport(formatId: string): boolean;
|
|
@@ -4,5 +4,9 @@ export declare class IdentityVerificationDialog {
|
|
|
4
4
|
rendered: boolean;
|
|
5
5
|
static createMsg(message: string): string;
|
|
6
6
|
show(instance: ComponentInternalInstance, title: string, api: Func, formatId?: string, templateId?: string): Promise<string>;
|
|
7
|
-
|
|
7
|
+
}
|
|
8
|
+
export declare class PreviewDialog {
|
|
9
|
+
rendered: boolean;
|
|
10
|
+
static createMsg(message: string): string;
|
|
11
|
+
show(instance: ComponentInternalInstance, src: string): Promise<string>;
|
|
8
12
|
}
|