cnhis-design-vue 3.2.15-beta.2 → 3.2.15-beta.8
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 +87 -87
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -1
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/branch-notice/index.d.ts +393 -6
- package/es/components/branch-notice/src/BranchNotice.vue.d.ts +369 -6
- package/es/components/branch-notice/src/BranchNotice.vue2.js +1 -1
- package/es/components/branch-notice/src/canstants.d.ts +2 -1
- package/es/components/branch-notice/src/canstants.js +1 -1
- package/es/components/branch-notice/src/components/NoticeItem.vue.d.ts +168 -44
- package/es/components/branch-notice/src/components/NoticeItem.vue.js +1 -0
- package/es/components/branch-notice/src/components/NoticeItem.vue2.js +1 -0
- package/es/components/branch-notice/src/components/NoticeItemAside.vue.d.ts +74 -5
- package/es/components/branch-notice/src/components/NoticeItemAside.vue.js +1 -0
- package/es/components/branch-notice/src/components/NoticeItemAside.vue2.js +1 -0
- package/es/components/branch-notice/src/components/NoticeOperationList.vue.js +1 -0
- package/es/components/branch-notice/src/components/NoticeOperationList.vue2.js +1 -0
- package/es/components/branch-notice/src/drawLine.js +1 -1
- package/es/components/branch-notice/src/hooks/useTheme.d.ts +1 -0
- package/es/components/branch-notice/src/hooks/useTheme.js +1 -0
- package/es/components/branch-notice/src/types.d.ts +22 -4
- package/es/components/branch-notice/style/index.css +1 -1
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
- package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/{temperature/useShadow.d.ts → useShadow.d.ts} +2 -2
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/TableStyle.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/field-set/src/constants/filter.js +1 -1
- package/es/components/field-set/src/constants/index.js +1 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
- package/es/components/form-config/src/hooks/useLocale.js +1 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/complex.js +1 -1
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/components/renderer/switch.js +1 -1
- package/es/components/form-render/src/components/renderer/text.js +1 -1
- package/es/components/form-render/src/components/renderer/textarea.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/iho-chat/index.d.ts +261 -27
- package/es/components/iho-chat/src/Index.vue.d.ts +261 -27
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +11 -2
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +4 -1
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +34 -34
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +4 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +2 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +203 -4
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/components/userItemRender.d.ts +18 -0
- package/es/components/iho-chat/src/components/userItemRender.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +4 -2
- package/es/components/iho-chat/src/hooks/useData.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +1 -0
- package/es/components/iho-chat/src/hooks/useWebSocket.js +1 -1
- package/es/components/iho-chat/src/types/index.d.ts +2 -0
- package/es/components/iho-chat/src/utils/index.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -1
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -1
- package/es/components/map/src/Map.vue2.js +1 -1
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-methods.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/template-render/src/components/index.d.ts +23 -23
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -1
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/ai__avatar.png.js +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/logo.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/hooks/temperature/useShadow.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1,20 +1,87 @@
|
|
1
|
-
import { widthAppend } from '../../../../shared/utils';
|
2
1
|
import { PropType } from 'vue';
|
3
|
-
import { StepNotice } from '../../../../components/step-notice/src/types';
|
4
2
|
import { parseRender, parseTitle } from '../../../../components/step-notice/src/utils';
|
5
3
|
declare const _default: import("vue").DefineComponent<{
|
6
4
|
item: {
|
7
|
-
type: PropType<
|
5
|
+
type: PropType<Partial<{
|
6
|
+
header: string | import("../../../../shared/types").AnyFn;
|
7
|
+
type: "warning" | "normal" | "primary";
|
8
|
+
icon: import("../../../../shared/types").AnyFn | "warning";
|
9
|
+
topText: (string | import("../../../../shared/types").AnyFn)[];
|
10
|
+
footerText: string | import("../../../../shared/types").AnyFn;
|
11
|
+
content: string | import("../../../../shared/types").AnyFn;
|
12
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
13
|
+
noticeList: Partial<{
|
14
|
+
header: string | import("../../../../shared/types").AnyFn;
|
15
|
+
content: string | import("../../../../shared/types").AnyFn;
|
16
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
17
|
+
}>[];
|
18
|
+
operationList: Partial<Partial<{
|
19
|
+
header: string | import("../../../../shared/types").AnyFn;
|
20
|
+
content: string | import("../../../../shared/types").AnyFn;
|
21
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
22
|
+
}> & {
|
23
|
+
type: "warning" | "primary";
|
24
|
+
subHeader: string | import("../../../../shared/types").AnyFn;
|
25
|
+
remark: string | import("../../../../shared/types").AnyFn;
|
26
|
+
}>[];
|
27
|
+
children?: Partial<any>[][] | undefined;
|
28
|
+
}>>;
|
8
29
|
required: true;
|
9
30
|
};
|
10
31
|
}, {
|
11
32
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
12
33
|
item: {
|
13
|
-
type: PropType<
|
34
|
+
type: PropType<Partial<{
|
35
|
+
header: string | import("../../../../shared/types").AnyFn;
|
36
|
+
type: "warning" | "normal" | "primary";
|
37
|
+
icon: import("../../../../shared/types").AnyFn | "warning";
|
38
|
+
topText: (string | import("../../../../shared/types").AnyFn)[];
|
39
|
+
footerText: string | import("../../../../shared/types").AnyFn;
|
40
|
+
content: string | import("../../../../shared/types").AnyFn;
|
41
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
42
|
+
noticeList: Partial<{
|
43
|
+
header: string | import("../../../../shared/types").AnyFn;
|
44
|
+
content: string | import("../../../../shared/types").AnyFn;
|
45
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
46
|
+
}>[];
|
47
|
+
operationList: Partial<Partial<{
|
48
|
+
header: string | import("../../../../shared/types").AnyFn;
|
49
|
+
content: string | import("../../../../shared/types").AnyFn;
|
50
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
51
|
+
}> & {
|
52
|
+
type: "warning" | "primary";
|
53
|
+
subHeader: string | import("../../../../shared/types").AnyFn;
|
54
|
+
remark: string | import("../../../../shared/types").AnyFn;
|
55
|
+
}>[];
|
56
|
+
children?: Partial<any>[][] | undefined;
|
57
|
+
}>>;
|
14
58
|
required: true;
|
15
59
|
};
|
16
60
|
}>> & {}>>;
|
17
|
-
itemRef: import("vue").Ref<
|
61
|
+
itemRef: import("vue").Ref<Partial<{
|
62
|
+
header: string | import("../../../../shared/types").AnyFn;
|
63
|
+
type: "warning" | "normal" | "primary";
|
64
|
+
icon: import("../../../../shared/types").AnyFn | "warning";
|
65
|
+
topText: (string | import("../../../../shared/types").AnyFn)[];
|
66
|
+
footerText: string | import("../../../../shared/types").AnyFn;
|
67
|
+
content: string | import("../../../../shared/types").AnyFn;
|
68
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
69
|
+
noticeList: Partial<{
|
70
|
+
header: string | import("../../../../shared/types").AnyFn;
|
71
|
+
content: string | import("../../../../shared/types").AnyFn;
|
72
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
73
|
+
}>[];
|
74
|
+
operationList: Partial<Partial<{
|
75
|
+
header: string | import("../../../../shared/types").AnyFn;
|
76
|
+
content: string | import("../../../../shared/types").AnyFn;
|
77
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
78
|
+
}> & {
|
79
|
+
type: "warning" | "primary";
|
80
|
+
subHeader: string | import("../../../../shared/types").AnyFn;
|
81
|
+
remark: string | import("../../../../shared/types").AnyFn;
|
82
|
+
}>[];
|
83
|
+
children?: Partial<any>[][] | undefined;
|
84
|
+
}>>;
|
18
85
|
classList: import("vue").ComputedRef<string[]>;
|
19
86
|
frontStyle: import("vue").ComputedRef<{
|
20
87
|
minHeight: string;
|
@@ -23,50 +90,61 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
90
|
renderIcon: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
24
91
|
[key: string]: any;
|
25
92
|
}> | import("../../../../shared/types").AnyFn | null;
|
26
|
-
NoticeConnection: import("vue").DefineComponent<{
|
27
|
-
item: {
|
28
|
-
type: PropType<StepNotice.InternalItem>;
|
29
|
-
required: true;
|
30
|
-
};
|
31
|
-
}, {
|
32
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
33
|
-
item: {
|
34
|
-
type: PropType<StepNotice.InternalItem>;
|
35
|
-
required: true;
|
36
|
-
};
|
37
|
-
}>> & {}>>;
|
38
|
-
itemRef: import("vue").Ref<StepNotice.InternalItem>;
|
39
|
-
pointStyle: import("vue").ComputedRef<{
|
40
|
-
opacity: number;
|
41
|
-
}>;
|
42
|
-
verticalLineHeight: import("vue").Ref<number>;
|
43
|
-
horizonLineWidth: import("vue").Ref<number>;
|
44
|
-
subHorizonWidth: import("vue").Ref<number>;
|
45
|
-
wrapperRef: import("vue").Ref<HTMLElement | undefined>;
|
46
|
-
calculatePositionRect: () => void;
|
47
|
-
lineStyles: import("vue").ComputedRef<{
|
48
|
-
width: string;
|
49
|
-
height: string;
|
50
|
-
}>;
|
51
|
-
iconStyle: import("vue").ComputedRef<{
|
52
|
-
top: string;
|
53
|
-
}>;
|
54
|
-
widthAppend: typeof widthAppend;
|
55
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
56
|
-
item: {
|
57
|
-
type: PropType<StepNotice.InternalItem>;
|
58
|
-
required: true;
|
59
|
-
};
|
60
|
-
}>>, {}>;
|
61
93
|
NoticeItemAside: import("vue").DefineComponent<{
|
62
94
|
item: {
|
63
|
-
type: PropType<
|
95
|
+
type: PropType<Partial<{
|
96
|
+
header: string | import("../../../../shared/types").AnyFn;
|
97
|
+
type: "warning" | "normal" | "primary";
|
98
|
+
icon: import("../../../../shared/types").AnyFn | "warning";
|
99
|
+
topText: (string | import("../../../../shared/types").AnyFn)[];
|
100
|
+
footerText: string | import("../../../../shared/types").AnyFn;
|
101
|
+
content: string | import("../../../../shared/types").AnyFn;
|
102
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
103
|
+
noticeList: Partial<{
|
104
|
+
header: string | import("../../../../shared/types").AnyFn;
|
105
|
+
content: string | import("../../../../shared/types").AnyFn;
|
106
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
107
|
+
}>[];
|
108
|
+
operationList: Partial<Partial<{
|
109
|
+
header: string | import("../../../../shared/types").AnyFn;
|
110
|
+
content: string | import("../../../../shared/types").AnyFn;
|
111
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
112
|
+
}> & {
|
113
|
+
type: "warning" | "primary";
|
114
|
+
subHeader: string | import("../../../../shared/types").AnyFn;
|
115
|
+
remark: string | import("../../../../shared/types").AnyFn;
|
116
|
+
}>[];
|
117
|
+
children?: Partial<any>[][] | undefined;
|
118
|
+
}>>;
|
64
119
|
required: true;
|
65
120
|
};
|
66
121
|
}, {
|
67
122
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
68
123
|
item: {
|
69
|
-
type: PropType<
|
124
|
+
type: PropType<Partial<{
|
125
|
+
header: string | import("../../../../shared/types").AnyFn;
|
126
|
+
type: "warning" | "normal" | "primary";
|
127
|
+
icon: import("../../../../shared/types").AnyFn | "warning";
|
128
|
+
topText: (string | import("../../../../shared/types").AnyFn)[];
|
129
|
+
footerText: string | import("../../../../shared/types").AnyFn;
|
130
|
+
content: string | import("../../../../shared/types").AnyFn;
|
131
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
132
|
+
noticeList: Partial<{
|
133
|
+
header: string | import("../../../../shared/types").AnyFn;
|
134
|
+
content: string | import("../../../../shared/types").AnyFn;
|
135
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
136
|
+
}>[];
|
137
|
+
operationList: Partial<Partial<{
|
138
|
+
header: string | import("../../../../shared/types").AnyFn;
|
139
|
+
content: string | import("../../../../shared/types").AnyFn;
|
140
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
141
|
+
}> & {
|
142
|
+
type: "warning" | "primary";
|
143
|
+
subHeader: string | import("../../../../shared/types").AnyFn;
|
144
|
+
remark: string | import("../../../../shared/types").AnyFn;
|
145
|
+
}>[];
|
146
|
+
children?: Partial<any>[][] | undefined;
|
147
|
+
}>>;
|
70
148
|
required: true;
|
71
149
|
};
|
72
150
|
}>> & {}>>;
|
@@ -89,7 +167,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
167
|
parseRender: typeof parseRender;
|
90
168
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
91
169
|
item: {
|
92
|
-
type: PropType<
|
170
|
+
type: PropType<Partial<{
|
171
|
+
header: string | import("../../../../shared/types").AnyFn;
|
172
|
+
type: "warning" | "normal" | "primary";
|
173
|
+
icon: import("../../../../shared/types").AnyFn | "warning";
|
174
|
+
topText: (string | import("../../../../shared/types").AnyFn)[];
|
175
|
+
footerText: string | import("../../../../shared/types").AnyFn;
|
176
|
+
content: string | import("../../../../shared/types").AnyFn;
|
177
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
178
|
+
noticeList: Partial<{
|
179
|
+
header: string | import("../../../../shared/types").AnyFn;
|
180
|
+
content: string | import("../../../../shared/types").AnyFn;
|
181
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
182
|
+
}>[];
|
183
|
+
operationList: Partial<Partial<{
|
184
|
+
header: string | import("../../../../shared/types").AnyFn;
|
185
|
+
content: string | import("../../../../shared/types").AnyFn;
|
186
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
187
|
+
}> & {
|
188
|
+
type: "warning" | "primary";
|
189
|
+
subHeader: string | import("../../../../shared/types").AnyFn;
|
190
|
+
remark: string | import("../../../../shared/types").AnyFn;
|
191
|
+
}>[];
|
192
|
+
children?: Partial<any>[][] | undefined;
|
193
|
+
}>>;
|
93
194
|
required: true;
|
94
195
|
};
|
95
196
|
}>>, {}>;
|
@@ -144,7 +245,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
144
245
|
parseTitle: typeof parseTitle;
|
145
246
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
146
247
|
item: {
|
147
|
-
type: PropType<
|
248
|
+
type: PropType<Partial<{
|
249
|
+
header: string | import("../../../../shared/types").AnyFn;
|
250
|
+
type: "warning" | "normal" | "primary";
|
251
|
+
icon: import("../../../../shared/types").AnyFn | "warning";
|
252
|
+
topText: (string | import("../../../../shared/types").AnyFn)[];
|
253
|
+
footerText: string | import("../../../../shared/types").AnyFn;
|
254
|
+
content: string | import("../../../../shared/types").AnyFn;
|
255
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
256
|
+
noticeList: Partial<{
|
257
|
+
header: string | import("../../../../shared/types").AnyFn;
|
258
|
+
content: string | import("../../../../shared/types").AnyFn;
|
259
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
260
|
+
}>[];
|
261
|
+
operationList: Partial<Partial<{
|
262
|
+
header: string | import("../../../../shared/types").AnyFn;
|
263
|
+
content: string | import("../../../../shared/types").AnyFn;
|
264
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
265
|
+
}> & {
|
266
|
+
type: "warning" | "primary";
|
267
|
+
subHeader: string | import("../../../../shared/types").AnyFn;
|
268
|
+
remark: string | import("../../../../shared/types").AnyFn;
|
269
|
+
}>[];
|
270
|
+
children?: Partial<any>[][] | undefined;
|
271
|
+
}>>;
|
148
272
|
required: true;
|
149
273
|
};
|
150
274
|
}>>, {}>;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./NoticeItem.vue2.js";import t from"../../../../_virtual/_plugin-vue_export-helper.js";var r=t(e,[["__file","NoticeItem.vue"]]);export{r as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as t,toRef as e,computed as i,openBlock as n,createElementBlock as o,normalizeClass as r,unref as a,createVNode as s,withCtx as c,createElementVNode as l,createBlock as m,resolveDynamicComponent as u,Fragment as p,renderList as v,createCommentVNode as _,normalizeStyle as h,h as d}from"vue";import{AlertCircle as b}from"@vicons/ionicons5";import f from"./NoticeItemAside.vue.js";import y from"./NoticeOperationList.vue.js";import{NPopover as g}from"naive-ui";import{parseRender as x,parseTitle as k}from"../../../step-notice/src/utils.js";const C={class:"branch-notice__itemWrapper"},F={class:"branch-notice__icon"},T={key:0,class:"branch-notice__itemHeader"},w=["title"],j={key:0,class:"branch-notice__itemFrontContent"},L=["title"],H=["title"],N={key:1,class:"branch-notice__itemFooter"};var I=t({__name:"NoticeItem",props:{item:{type:Object,required:!0}},setup(t){const I=e(t,"item"),O=i((()=>[`branch-notice__item--${I.value.type||"primary"}`])),q=i((()=>({minHeight:"74px"}))),A=i((()=>{var t,e;return!(null==(e=null==(t=I.value)?void 0:t.operationList)?void 0:e.length)}));function S(){var t;const e=null==(t=I.value)?void 0:t.icon;return e?"warning"===e?d(b,{class:"branch-notice__icon--warning"}):e:null}return(e,i)=>{var d;return n(),o("section",{class:r(a(O)),style:{width:"100%",height:"100%"}},[s(a(g),{disabled:a(A),"keep-alive-on-hover":"",placement:"bottom-start",animated:!1,"show-arrow":!1},{trigger:c((()=>{var e;return[l("section",C,[l("span",F,[(n(),m(u(S)))]),(null==(e=t.item.topText)?void 0:e.length)?(n(),o("section",T,[(n(!0),o(p,null,v(t.item.topText,((t,e)=>(n(),o("span",{key:e},[(n(),m(u(a(x)(t))))])))),128))])):_("v-if",!0),l("section",{class:"branch-notice__itemFront",style:h(a(q))},[l("header",{class:"branch-notice__itemFrontHeader",title:a(k)(t.item.header)},[(n(),m(u(a(x)(t.item.header))))],8,w),t.item.content||t.item.subContent?(n(),o("section",j,[l("div",{class:"branch-notice__itemFrontContentText",title:a(k)(t.item.content)},[(n(),m(u(a(x)(t.item.content))))],8,L),l("div",{class:"branch-notice__itemFrontContentSubText",title:a(k)(t.item.subContent)},[(n(),m(u(a(x)(t.item.subContent))))],8,H)])):_("v-if",!0)],4),t.item.footerText?(n(),o("footer",N,[(n(),m(u(a(x)(t.item.footerText))))])):_("v-if",!0)])]})),default:c((()=>[s(y,{"operation-list":t.item.operationList},null,8,["operation-list"])])),_:1},8,["disabled"]),(null==(d=t.item.noticeList)?void 0:d.length)?(n(),m(f,{key:0,item:t.item},null,8,["item"])):_("v-if",!0)],2)}}});export{I as default};
|
@@ -1,15 +1,61 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
|
-
import {
|
2
|
+
import { BranchNotice } from '../../../../components/branch-notice';
|
3
3
|
import { parseRender } from '../../../../components/step-notice/src/utils';
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
5
5
|
item: {
|
6
|
-
type: PropType<
|
6
|
+
type: PropType<Partial<{
|
7
|
+
header: string | import("../../../../shared/types").AnyFn;
|
8
|
+
type: "warning" | "normal" | "primary";
|
9
|
+
icon: import("../../../../shared/types").AnyFn | "warning";
|
10
|
+
topText: (string | import("../../../../shared/types").AnyFn)[];
|
11
|
+
footerText: string | import("../../../../shared/types").AnyFn;
|
12
|
+
content: string | import("../../../../shared/types").AnyFn;
|
13
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
14
|
+
noticeList: Partial<{
|
15
|
+
header: string | import("../../../../shared/types").AnyFn;
|
16
|
+
content: string | import("../../../../shared/types").AnyFn;
|
17
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
18
|
+
}>[];
|
19
|
+
operationList: Partial<Partial<{
|
20
|
+
header: string | import("../../../../shared/types").AnyFn;
|
21
|
+
content: string | import("../../../../shared/types").AnyFn;
|
22
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
23
|
+
}> & {
|
24
|
+
type: "warning" | "primary";
|
25
|
+
subHeader: string | import("../../../../shared/types").AnyFn;
|
26
|
+
remark: string | import("../../../../shared/types").AnyFn;
|
27
|
+
}>[];
|
28
|
+
children?: Partial<any>[][] | undefined;
|
29
|
+
}>>;
|
7
30
|
required: true;
|
8
31
|
};
|
9
32
|
}, {
|
10
33
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
11
34
|
item: {
|
12
|
-
type: PropType<
|
35
|
+
type: PropType<Partial<{
|
36
|
+
header: string | import("../../../../shared/types").AnyFn;
|
37
|
+
type: "warning" | "normal" | "primary";
|
38
|
+
icon: import("../../../../shared/types").AnyFn | "warning";
|
39
|
+
topText: (string | import("../../../../shared/types").AnyFn)[];
|
40
|
+
footerText: string | import("../../../../shared/types").AnyFn;
|
41
|
+
content: string | import("../../../../shared/types").AnyFn;
|
42
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
43
|
+
noticeList: Partial<{
|
44
|
+
header: string | import("../../../../shared/types").AnyFn;
|
45
|
+
content: string | import("../../../../shared/types").AnyFn;
|
46
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
47
|
+
}>[];
|
48
|
+
operationList: Partial<Partial<{
|
49
|
+
header: string | import("../../../../shared/types").AnyFn;
|
50
|
+
content: string | import("../../../../shared/types").AnyFn;
|
51
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
52
|
+
}> & {
|
53
|
+
type: "warning" | "primary";
|
54
|
+
subHeader: string | import("../../../../shared/types").AnyFn;
|
55
|
+
remark: string | import("../../../../shared/types").AnyFn;
|
56
|
+
}>[];
|
57
|
+
children?: Partial<any>[][] | undefined;
|
58
|
+
}>>;
|
13
59
|
required: true;
|
14
60
|
};
|
15
61
|
}>> & {}>>;
|
@@ -20,7 +66,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
20
66
|
last: string;
|
21
67
|
};
|
22
68
|
getPlacement: (index: number) => string;
|
23
|
-
getAsideClassList: (noticeItem:
|
69
|
+
getAsideClassList: (noticeItem: BranchNotice.NoticeItem, index: number) => (string | {
|
24
70
|
'is-active': string | import("../../../../shared/types").AnyFn | undefined;
|
25
71
|
})[];
|
26
72
|
theme: import("vue").ComputedRef<import("../../../../shared/types").AnyObject>;
|
@@ -28,7 +74,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
28
74
|
parseRender: typeof parseRender;
|
29
75
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
30
76
|
item: {
|
31
|
-
type: PropType<
|
77
|
+
type: PropType<Partial<{
|
78
|
+
header: string | import("../../../../shared/types").AnyFn;
|
79
|
+
type: "warning" | "normal" | "primary";
|
80
|
+
icon: import("../../../../shared/types").AnyFn | "warning";
|
81
|
+
topText: (string | import("../../../../shared/types").AnyFn)[];
|
82
|
+
footerText: string | import("../../../../shared/types").AnyFn;
|
83
|
+
content: string | import("../../../../shared/types").AnyFn;
|
84
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
85
|
+
noticeList: Partial<{
|
86
|
+
header: string | import("../../../../shared/types").AnyFn;
|
87
|
+
content: string | import("../../../../shared/types").AnyFn;
|
88
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
89
|
+
}>[];
|
90
|
+
operationList: Partial<Partial<{
|
91
|
+
header: string | import("../../../../shared/types").AnyFn;
|
92
|
+
content: string | import("../../../../shared/types").AnyFn;
|
93
|
+
subContent: string | import("../../../../shared/types").AnyFn;
|
94
|
+
}> & {
|
95
|
+
type: "warning" | "primary";
|
96
|
+
subHeader: string | import("../../../../shared/types").AnyFn;
|
97
|
+
remark: string | import("../../../../shared/types").AnyFn;
|
98
|
+
}>[];
|
99
|
+
children?: Partial<any>[][] | undefined;
|
100
|
+
}>>;
|
32
101
|
required: true;
|
33
102
|
};
|
34
103
|
}>>, {}>;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./NoticeItemAside.vue2.js";import t from"../../../../_virtual/_plugin-vue_export-helper.js";var i=t(e,[["__file","NoticeItemAside.vue"]]);export{i as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,openBlock as t,createElementBlock as n,Fragment as i,renderList as r,createBlock as o,unref as s,withCtx as c,createElementVNode as l,normalizeClass as a,normalizeStyle as m,resolveDynamicComponent as u,createCommentVNode as p}from"vue";import{NPopover as d}from"naive-ui";import{useBranchNoticeTheme as h}from"../hooks/useTheme.js";import{parseRender as f}from"../../../step-notice/src/utils.js";const _={class:"branch-notice__itemAside"},b=l("i",{class:"branch-notice__itemAsidePopperBridge"},null,-1);var v=e({__name:"NoticeItemAside",props:{item:{type:Object,required:!0}},setup(e){const v=e;function g(e){return 1===v.item.noticeList.length?"center":0===e?"first":e<v.item.noticeList.length-1?"center":"last"}const A={first:"right-start",center:"right-center",last:"right-end"};function k(e){return A[g(e)]}function y(e,t){return[`branch-notice__itemAsideElement--${g(t)}`,{"is-active":e.content||e.subContent}]}const j=h();return(h,v)=>(t(),n("section",_,[(t(!0),n(i,null,r(e.item.noticeList,((e,r)=>(t(),o(s(d),{raw:"","keep-alive-on-hover":"",placement:k(r),animated:!1,"show-arrow":!1,key:r},{trigger:c((()=>[l("div",{class:a(["branch-notice__itemAsideElement",...y(e,r)])},null,2)])),default:c((()=>[l("div",{class:a(["branch-notice__itemAsidePopper",...y(e,r)]),style:m(s(j))},[l("header",null,[(t(),o(u(s(f)(e.header))))]),e.content||e.subContent?(t(),n(i,{key:0},[l("section",null,[(t(),o(u(s(f)(e.content))))]),l("footer",null,[(t(),o(u(s(f)(e.subContent))))])],64)):p("v-if",!0),b],6)])),_:2},1032,["placement"])))),128))]))}});export{v as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./NoticeOperationList.vue2.js";import t from"../../../../_virtual/_plugin-vue_export-helper.js";var i=t(e,[["__file","NoticeOperationList.vue"]]);export{i as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,openBlock as t,createElementBlock as r,normalizeStyle as n,unref as i,Fragment as o,renderList as a,normalizeClass as c,createElementVNode as s,createBlock as m,resolveDynamicComponent as p}from"vue";import{CloseCircle as _,CheckmarkCircle as b}from"@vicons/ionicons5";import{useBranchNoticeTheme as h}from"../hooks/useTheme.js";import{parseRender as l}from"../../../step-notice/src/utils.js";const d={class:"branch-notice__itemOperationItemHeaderWrapper"},I={class:"branch-notice__itemOperationItemHeader"},O={class:"branch-notice__itemOperationItemSubHeader"},u={class:"branch-notice__itemOperationItemContentWrapper"},y={class:"branch-notice__itemOperationItemContent"},v={class:"branch-notice__itemOperationItemSubContent"},f={class:"branch-notice__itemOperationItemRemark"};var k=e({__name:"NoticeOperationList",props:{operationList:{type:Array,required:!0}},setup(e){const k=h();return(h,H)=>(t(),r("section",{class:"branch-notice__itemOperationWrapper",style:n(i(k))},[(t(!0),r(o,null,a(e.operationList,((e,n)=>(t(),r("section",{key:n,class:c(["branch-notice__itemOperationItem",`branch-notice__itemOperationItem--${e.type||"primary"}`])},[s("header",d,["warning"===e.type?(t(),m(i(_),{key:0,class:"branch-notice__itemOperationItemHeaderIcon"})):(t(),m(i(b),{key:1,class:"branch-notice__itemOperationItemHeaderIcon"})),s("div",I,[(t(),m(p(i(l)(e.header))))]),s("div",O,[(t(),m(p(i(l)(e.subHeader))))])]),s("section",u,[s("div",y,[(t(),m(p(i(l)(e.content))))]),s("div",v,[(t(),m(p(i(l)(e.subContent))))])]),s("footer",f,[(t(),m(p(i(l)(e.remark))))])],2)))),128))],4))}});export{k as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{widthAppend as t}from"../../../shared/utils/index.js";import{BRANCH_NOTICE_CONSTANTS as e}from"./canstants.js";function _(_,x,c=""){const i=_.x<x.x?"left":_.x>x.x?"right":"center",
|
1
|
+
import{widthAppend as t}from"../../../shared/utils/index.js";import{BRANCH_NOTICE_CONSTANTS as e}from"./canstants.js";function _(_,x,c=""){const i=_.x<x.x?"left":_.x>x.x?"right":"center",D=_.y<x.y?"top":_.y>x.y?"bottom":"center";let h=[];switch(!0){case"center"===i&&"center"===D:h=[{x:0,y:0,class:"branch-notice__line"}];break;case"left"===i&&"center"===D:h=[{x:0,y:0,class:"branch-notice__line",style:{width:`${e.CARD_X_SPACE}px`,height:t(e.LINE_WIDTH),left:`${_.x+e.CARD_WIDTH}px`,top:`${_.y+e.CARD_HEIGHT/2}px`}}];break;case"center"===i&&"top"===D:h=[{x:0,y:0,class:"branch-notice__line",style:{width:t(e.LINE_WIDTH),height:`${e.CARD_Y_SPACE}px`,left:`${_.x+e.CARD_WIDTH/2}px`,top:`${_.y+e.CARD_HEIGHT}px`}}];break;case"right"===i&&"top"===D:h=[{x:0,y:0,class:"branch-notice__line",style:{width:t(e.LINE_WIDTH),height:e.CARD_Y_SPACE/2+"px",left:`${_.x+e.CARD_WIDTH/2}px`,top:`${_.y+e.CARD_HEIGHT}px`}},{x:0,y:0,class:"branch-notice__line",style:{width:`${_.x-x.x+e.LINE_WIDTH}px`,height:t(e.LINE_WIDTH),left:`${x.x+e.CARD_WIDTH/2}px`,top:`${_.y+e.CARD_HEIGHT+e.CARD_Y_SPACE/2}px`}},{x:0,y:0,class:"branch-notice__line",style:{width:t(e.LINE_WIDTH),height:e.CARD_Y_SPACE/2+"px",left:`${x.x+e.CARD_WIDTH/2}px`,top:`${_.y+e.CARD_HEIGHT+e.CARD_Y_SPACE/2}px`}}];break;case"right"===i&&"center"===D:h=[{x:0,y:0,class:"branch-notice__line",style:{width:`${e.CARD_X_SPACE}px`,height:t(e.LINE_WIDTH),left:`${_.x}px`,top:`${_.y+e.CARD_HEIGHT/2}px`}}];break;case"right"===i&&"bottom"===D:h=[{x:0,y:0,class:"branch-notice__line",style:{width:t(e.LINE_WIDTH),height:e.CARD_Y_SPACE/2+"px",left:`${_.x+e.CARD_WIDTH/2}px`,top:`${_.y}px`}},{x:0,y:0,class:"branch-notice__line",style:{width:_.x-x.x+"px",height:t(e.LINE_WIDTH),left:`${x.x+e.CARD_WIDTH/2}px`,top:_.y-e.CARD_Y_SPACE/2+"px"}},{x:0,y:0,class:"branch-notice__line",style:{width:t(e.LINE_WIDTH),height:e.CARD_Y_SPACE/2+"px",left:`${x.x+e.CARD_WIDTH/2}px`,top:_.y-e.CARD_Y_SPACE/2+"px"}}];break;case"center"===i&&"bottom"===D:h=[{x:0,y:0,class:"branch-notice__line",style:{width:t(e.LINE_WIDTH),height:`${e.CARD_Y_SPACE}px`,left:`${_.x+e.CARD_WIDTH/2}px`,top:`${_.y}px`}}];break;case"left"===i&&"top"===D:h=[{x:0,y:0,class:"branch-notice__line",style:{width:e.CARD_X_SPACE/2+"px",height:t(e.LINE_WIDTH),left:`${_.x+e.CARD_WIDTH}px`,top:`${_.y+e.CARD_HEIGHT/2}px`}},{x:0,y:0,class:"branch-notice__line",style:{width:t(e.LINE_WIDTH),height:x.y-_.y+"px",left:`${_.x+e.CARD_WIDTH+e.CARD_X_SPACE/2}px`,top:`${_.y+e.CARD_HEIGHT/2}px`}},{x:0,y:0,class:"branch-notice__line",style:{width:e.CARD_X_SPACE/2+"px",height:t(e.LINE_WIDTH),left:`${_.x+e.CARD_WIDTH+e.CARD_X_SPACE/2}px`,top:`${x.y+e.CARD_HEIGHT/2}px`}},{x:0,y:0,class:"branch-notice__branchIndex",style:{}}]}return h}export{_ as lineToNextCard};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function useBranchNoticeTheme(): import("vue").ComputedRef<import("../../../../shared/types").AnyObject>;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{useTheme as e}from"../../../../shared/hooks/useTheme.js";import"vue";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"naive-ui";import"../../../../shared/hooks/useScrollLoading.js";function c(){return e({"--branch-notice-primary":"#2563f4","--branch-notice-primary-light":"rgb(225, 232, 252)","--branch-notice-warning":"#ff0000","--branch-notice-warning-light":"#ffcbcb","--branch-notice-normal":"#a9a9a9","--branch-notice-normal-light":"#e6e6e6","--branch-notice-not-accepted-0":"#cccccc","--branch-notice-not-accepted-1":"#b2b2b2","--branch-notice-not-accepted-2":"#7f7f7f","--branch-notice-accepted-0":"#ff7700","--branch-notice-accepted-1":"#dc0000","--branch-notice-accepted-2":"#9f0000"})}export{c as useBranchNoticeTheme};
|
@@ -1,9 +1,27 @@
|
|
1
|
+
import { AnyFn } from '../../../shared/types';
|
1
2
|
export declare namespace BranchNotice {
|
2
|
-
type
|
3
|
-
|
4
|
-
content: string |
|
3
|
+
type NoticeItem = Partial<{
|
4
|
+
header: string | AnyFn;
|
5
|
+
content: string | AnyFn;
|
6
|
+
subContent: string | AnyFn;
|
7
|
+
}>;
|
8
|
+
type OperationItem = Partial<NoticeItem & {
|
9
|
+
type: 'primary' | 'warning';
|
10
|
+
subHeader: string | AnyFn;
|
11
|
+
remark: string | AnyFn;
|
12
|
+
}>;
|
13
|
+
type Item = Partial<{
|
14
|
+
header: string | AnyFn;
|
15
|
+
type: 'normal' | 'primary' | 'warning';
|
16
|
+
icon: 'warning' | AnyFn;
|
17
|
+
topText: (string | AnyFn)[];
|
18
|
+
footerText: string | AnyFn;
|
19
|
+
content: string | AnyFn;
|
20
|
+
subContent: string | AnyFn;
|
21
|
+
noticeList: NoticeItem[];
|
22
|
+
operationList: OperationItem[];
|
5
23
|
children?: Item[][];
|
6
|
-
}
|
24
|
+
}>;
|
7
25
|
type PositionedItem = {
|
8
26
|
item?: Item;
|
9
27
|
class?: string | string[] | Record<string, boolean>;
|
@@ -1 +1 @@
|
|
1
|
-
.branch-notice__item{
|
1
|
+
.branch-notice__item{color:#333;font-size:12px;font-weight:500;position:absolute}.branch-notice__itemContent{line-height:17px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.branch-notice__line{background:#bfc6ca;position:absolute}.branch-notice__icon{height:20px;position:absolute;width:20px;z-index:20}.branch-notice__icon--warning{background:radial-gradient(circle,#fff 0,#fff 50%,transparent 0,transparent 100%);border-radius:50%;color:var(--branch-notice-warning)}.branch-notice__group{align-items:center;display:flex;gap:16px;justify-content:space-between}.branch-notice__group:not(:last-of-type){margin-bottom:calc(var(--branch-notice-col-space)*1px)}.branch-notice__placeholder{width:140px}.branch-notice__item .branch-notice__itemWrapper:hover{border-radius:8px;box-shadow:0 4px 12px 0 hsla(0,0%,69%,.5);transform:translateY(-4px);transition:transform .3s ease}.branch-notice__item .branch-notice__itemWrapper:hover .branch-notice__itemAside{transform:translateY(calc(-50% + 4px))}.branch-notice__item--normal{border-radius:8px}.branch-notice__item--normal .branch-notice__itemFront{background:var(--branch-notice-normal-light);border-color:var(--branch-notice-normal-light);color:#000}.branch-notice__item--normal .branch-notice__itemFooter{background:var(--branch-notice-normal);color:#fff}.branch-notice__item--primary{border-radius:8px}.branch-notice__item--primary .branch-notice__itemFront{background:var(--branch-notice-primary);border-color:var(--branch-notice-primary);color:#fff}.branch-notice__item--primary .branch-notice__itemFooter{background:var(--branch-notice-primary-light);color:var(--branch-notice-primary)}.branch-notice__item--warning{border-radius:8px}.branch-notice__item--warning .branch-notice__itemFront{background:var(--branch-notice-warning-light);border-color:var(--branch-notice-warning);color:#000}.branch-notice__item--warning .branch-notice__itemFooter{background:var(--branch-notice-warning);color:#fff}.branch-notice__itemFront{align-items:center;border-radius:8px;border-style:solid;border-width:1px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-evenly;position:relative;z-index:10}.branch-notice__itemFrontHeader{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;font-size:14px;font-weight:500;overflow:hidden;padding:2px 8px;text-overflow:ellipsis;word-break:break-all}.branch-notice__itemFrontContent{align-items:center;background:#fff;border-radius:4px;display:flex;flex-direction:column;justify-content:space-evenly;margin-bottom:8px;max-height:42px;min-height:26px;padding:2px 0;width:94px}.branch-notice__itemFrontContentText{color:#000}.branch-notice__itemFrontContentSubText,.branch-notice__itemFrontContentText{box-sizing:border-box;max-width:100%;overflow:hidden;padding:0 4px;text-overflow:ellipsis;white-space:nowrap}.branch-notice__itemFrontContentSubText{color:rgba(0,0,0,.5);font-size:12px}.branch-notice__itemFooter{border-radius:8px;box-sizing:border-box;font-size:12px;height:40px;line-height:22px;margin-top:-18px;max-width:100%;overflow:hidden;padding:18px 4px 0;position:relative;text-overflow:ellipsis;white-space:nowrap;z-index:5}.branch-notice__itemFooter.is-active{text-align:center}.branch-notice__itemAside{border-radius:0 4px 4px 0;display:flex;flex-direction:column;overflow:hidden;position:absolute;right:-8px;top:50%;transform:translateY(-50%);width:8px;z-index:20}.branch-notice__itemAsidePopper{align-items:flex-start;border-radius:8px!important;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-evenly;min-height:44px;min-width:120px;padding:4px 13px;position:relative}.branch-notice__itemAsidePopper:not(.is-active){align-items:center}.branch-notice__itemAsidePopper footer{font-size:12px}.branch-notice__itemAsidePopperBridge{background:inherit;height:20px;left:-12px;position:absolute;width:20px}.branch-notice__itemAsideElement{height:20px;width:100%}.branch-notice__itemAsideElement--first{background:var(--branch-notice-not-accepted-0)}.branch-notice__itemAsideElement--first .branch-notice__itemAsidePopperBridge{top:0}.branch-notice__itemAsideElement--first.is-active{background:var(--branch-notice-accepted-0);color:#fff}.branch-notice__itemAsideElement--center{background:var(--branch-notice-not-accepted-1)}.branch-notice__itemAsideElement--center .branch-notice__itemAsidePopperBridge{top:50%;transform:translateY(-50%)}.branch-notice__itemAsideElement--center.is-active{background:var(--branch-notice-accepted-1);color:#fff}.branch-notice__itemAsideElement--last{background:var(--branch-notice-not-accepted-2);color:#fff}.branch-notice__itemAsideElement--last .branch-notice__itemAsidePopperBridge{bottom:0}.branch-notice__itemAsideElement--last.is-active{background:var(--branch-notice-accepted-2)}.branch-notice__itemHeader{background:var(--branch-notice-warning);border-radius:4px 4px 0 0;color:#fff;display:flex;flex-wrap:nowrap;font-size:12px;justify-content:space-between;left:50%;line-height:1;padding:5px 7px 3px;position:absolute;top:-20px;transform:translateX(-50%);width:98px;z-index:30}.branch-notice__itemOperationWrapper{display:flex;flex-direction:column;gap:8px;min-width:210px}.branch-notice__itemOperationItem{border-radius:4px;margin:0 -4px;padding:8px;word-break:break-all}.branch-notice__itemOperationItemSubHeader{font-size:12px}.branch-notice__itemOperationItemHeader{flex:1;font-size:14px;font-weight:700}.branch-notice__itemOperationItemHeaderIcon{height:20px;width:20px}.branch-notice__itemOperationItemHeaderWrapper{align-items:center;display:flex;gap:4px;justify-content:space-between}.branch-notice__itemOperationItemSubContent{color:rgba(0,0,0,.5);font-size:12px}.branch-notice__itemOperationItemContent{box-sizing:border-box;display:flex;flex:1;font-size:14px;max-width:100%;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.branch-notice__itemOperationItemContentWrapper{align-items:center;display:flex;gap:4px;justify-content:space-between}.branch-notice__itemOperationItem--primary .branch-notice__itemOperationItemHeader,.branch-notice__itemOperationItem--primary .branch-notice__itemOperationItemHeaderIcon{color:var(--branch-notice-primary)}.branch-notice__itemOperationItem--primary.branch-notice__itemOperationItem{background:var(--branch-notice-primary-light)}.branch-notice__itemOperationItem--warning .branch-notice__itemOperationItemHeader,.branch-notice__itemOperationItem--warning .branch-notice__itemOperationItemHeaderIcon{color:var(--branch-notice-warning)}.branch-notice__itemOperationItem--warning.branch-notice__itemOperationItem{background:var(--branch-notice-warning-light)}
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as a,reactive as l,watch as o,openBlock as t,createBlock as n,unref as u,normalizeStyle as i,withCtx as d,createElementVNode as r,mergeProps as s,createVNode as c,withKeys as v,createTextVNode as w}from"vue";import{useMessage as p,NModal as m,NForm as g,NFormItem as f,NInput as y,NButton as C}from"naive-ui";import h from"./EditFormat.vue.js";var _;const k={class:"content"};var B=e({__name:"IdentityVerification",props:{verifyUser:{type:Function,default:()=>Promise.resolve()},identityVerificationTitle:{default:(null==(_=window.getLanguageByCode)?void 0:_.call(window,"10010.1.471"))||"打印服务身份校验"},modelValue:{type:Boolean},formatId:null,templateId:null},emits:["update:modelValue","success","close"],setup(e,{emit:_}){var B,I;const L=e,V=p(),x={account:"",password:""},b=a(null),K=a(!1),U=a("");let S=l({...x});const F={account:{required:!0,message:(null==(B=window.getLanguageByCode)?void 0:B.call(window,"10010.1.468"))||"请输入账号"},password:{required:!0,message:(null==(I=window.getLanguageByCode)?void 0:I.call(window,"10010.1.469"))||"请输入密码"}},j="416px",q=a(null),E=()=>{_("update:modelValue",!1),_("close")},N=a(!1),P=()=>{var e;null==(e=q.value)||e.validate((e=>{if(e)return console.log(e),!1;(async()=>{var e;try{N.value=!0;const{data:a={}}=await L.verifyUser(S)||{};if("SUCCESS"!==a.result)return V.error(a.resultMsg||"身份校验失败,请重试!"),!1;_("success",null==(e=a.map)?void 0:e.token)}finally{N.value=!1}})()}))},R=async()=>{var e,a;try{N.value=!0;if(!await(null==(a=b.value)?void 0:a.submit({authorizationKey:U.value,id:null==(e=L.formatId)?void 0:e.split("_")[1],templateId:L.templateId,datasourceName:null,dataSourceId:null})))return!1;_("success",U.value)}finally{N.value=!1}};return o((()=>L.modelValue),(e=>{e||Object.assign(S,x)})),(a,l)=>{var o,p,_;return t(),n(u(m),{preset:"dialog",title:K.value?(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.284"))||"编辑":e.identityVerificationTitle,class:"standard-modal standard-modal-white authentication-modal c-button-print-modal",show:e.modelValue,"close-on-esc":!1,"show-icon":!1,style:i({width:j,overflowY:"auto"}),"positive-text":K.value?(null==(p=window.getLanguageByCode)?void 0:p.call(window,"10010.1.428"))||"确认":"","negative-text":K.value?(null==(_=window.getLanguageByCode)?void 0:_.call(window,"10010.1.
|
1
|
+
import{defineComponent as e,ref as a,reactive as l,watch as o,openBlock as t,createBlock as n,unref as u,normalizeStyle as i,withCtx as d,createElementVNode as r,mergeProps as s,createVNode as c,withKeys as v,createTextVNode as w}from"vue";import{useMessage as p,NModal as m,NForm as g,NFormItem as f,NInput as y,NButton as C}from"naive-ui";import h from"./EditFormat.vue.js";var _;const k={class:"content"};var B=e({__name:"IdentityVerification",props:{verifyUser:{type:Function,default:()=>Promise.resolve()},identityVerificationTitle:{default:(null==(_=window.getLanguageByCode)?void 0:_.call(window,"10010.1.471"))||"打印服务身份校验"},modelValue:{type:Boolean},formatId:null,templateId:null},emits:["update:modelValue","success","close"],setup(e,{emit:_}){var B,I;const L=e,V=p(),x={account:"",password:""},b=a(null),K=a(!1),U=a("");let S=l({...x});const F={account:{required:!0,message:(null==(B=window.getLanguageByCode)?void 0:B.call(window,"10010.1.468"))||"请输入账号"},password:{required:!0,message:(null==(I=window.getLanguageByCode)?void 0:I.call(window,"10010.1.469"))||"请输入密码"}},j="416px",q=a(null),E=()=>{_("update:modelValue",!1),_("close")},N=a(!1),P=()=>{var e;null==(e=q.value)||e.validate((e=>{if(e)return console.log(e),!1;(async()=>{var e;try{N.value=!0;const{data:a={}}=await L.verifyUser(S)||{};if("SUCCESS"!==a.result)return V.error(a.resultMsg||"身份校验失败,请重试!"),!1;_("success",null==(e=a.map)?void 0:e.token)}finally{N.value=!1}})()}))},R=async()=>{var e,a;try{N.value=!0;if(!await(null==(a=b.value)?void 0:a.submit({authorizationKey:U.value,id:null==(e=L.formatId)?void 0:e.split("_")[1],templateId:L.templateId,datasourceName:null,dataSourceId:null})))return!1;_("success",U.value)}finally{N.value=!1}};return o((()=>L.modelValue),(e=>{e||Object.assign(S,x)})),(a,l)=>{var o,p,_;return t(),n(u(m),{preset:"dialog",title:K.value?(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.284"))||"编辑":e.identityVerificationTitle,class:"standard-modal standard-modal-white authentication-modal c-button-print-modal",show:e.modelValue,"close-on-esc":!1,"show-icon":!1,style:i({width:j,overflowY:"auto"}),"positive-text":K.value?(null==(p=window.getLanguageByCode)?void 0:p.call(window,"10010.1.428"))||"确认":"","negative-text":K.value?(null==(_=window.getLanguageByCode)?void 0:_.call(window,"10010.1.28"))||"取消":"",onClose:E,onNegativeClick:E,onPositiveClick:R},{default:d((()=>[r("div",k,[K.value?(t(),n(h,s({key:0,ref_key:"editFormRef",ref:b},a.$attrs,{formatId:e.formatId,token:U.value}),null,16,["formatId","token"])):(t(),n(u(g),{key:1,class:"login-form-button-print",ref_key:"formRef",ref:q,model:u(S),rules:F},{default:d((()=>[c(u(f),{path:"account"},{default:d((()=>{var e;return[c(u(y),{value:u(S).account,"onUpdate:value":l[0]||(l[0]=e=>u(S).account=e),placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.468"))||"请输入账号",onKeyup:v(P,["enter"])},null,8,["value","onKeyup"])]})),_:1}),c(u(f),{path:"password"},{default:d((()=>{var e;return[c(u(y),{type:"password","input-props":{autocomplete:"on",name:"password"},value:u(S).password,"onUpdate:value":l[1]||(l[1]=e=>u(S).password=e),placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.469"))||"请输入密码",onKeyup:v(P,["enter"])},null,8,["value","onKeyup"])]})),_:1}),c(u(f),null,{default:d((()=>[c(u(C),{loading:N.value,type:"primary",class:"login-form-button",onClick:P},{default:d((()=>{var e;return[w((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.470"))||"登录")]})),_:1},8,["loading"])])),_:1})])),_:1},8,["model"]))])])),_:1},8,["title","show","style","positive-text","negative-text"])}}});export{B as default};
|