cnhis-design-vue 3.2.7-beta.3 → 3.2.7-beta.31
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +87 -87
- package/es/components/base-search/index.d.ts +2 -0
- package/es/components/base-search/src/index.vue.d.ts +2 -0
- package/es/components/button-print/index.d.ts +27 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +27 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +27 -0
- package/es/components/classification/index.d.ts +60 -5
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +60 -5
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +60 -5
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/classification/src/index.vue.d.ts +60 -5
- package/es/components/date-picker/index.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
- 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/newBirthProcess/useNewBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.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/useTemperatureChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +11 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
- package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
- package/es/components/form-config/index.d.ts +40 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +40 -3
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +14 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +23 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
- package/es/components/form-render/index.d.ts +14 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +14 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +14 -0
- package/es/components/form-render/src/components/renderer/formItem.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
- package/es/components/form-render/src/types/index.d.ts +2 -1
- package/es/components/form-render/src/utils/business.js +1 -1
- package/es/components/form-render/src/utils/schema.d.ts +1 -1
- package/es/components/form-render/src/utils/schema.js +1 -1
- package/es/components/iho-chat/index.d.ts +302 -78
- package/es/components/iho-chat/src/Index.vue.d.ts +302 -78
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +35 -13
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +41 -14
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +50 -14
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +24 -4
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +60 -11
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +62 -24
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +3 -3
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -2
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchUserList.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -0
- package/es/components/iho-chat/src/hooks/useSession.d.ts +1 -1
- package/es/components/iho-chat/src/hooks/useSession.js +1 -1
- package/es/components/iho-chat/src/hooks/useState.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
- package/es/components/iho-chat/src/types/index.d.ts +0 -1
- 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/index.d.ts +13 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +13 -0
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
- package/es/components/iho-table/src/types/index.d.ts +3 -0
- package/es/components/iho-table/src/utils/index.d.ts +0 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +34 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +34 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +16 -0
- package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +14 -0
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/index.d.ts +23 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +23 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +21 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/directive/drag-move.d.ts +3 -0
- package/es/components/scale-view/src/directive/drag-move.js +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +16 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +16 -1
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +47 -5
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +37 -19
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +47 -5
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +47 -5
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +33 -18
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +69 -4
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +69 -4
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +3 -0
- package/es/components/time-line/index.d.ts +4 -4
- package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
- package/es/components/time-line/src/TimeLine.vue2.js +1 -1
- package/es/components/time-picker/index.d.ts +20 -2
- package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- package/es/env.d.ts +25 -25
- 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/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/package.json.js +1 -1
- package/es/shared/utils/business.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/iho-table/src/plugins/headerPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/headerPlugin.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
@@ -174,6 +174,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
174
174
|
linebarDirection: "horizontal" | "vertical";
|
175
175
|
linebarTextDirection: "horizontal" | "vertical";
|
176
176
|
autoWidth: number | boolean;
|
177
|
+
feedbackType: "default" | "tooltip";
|
177
178
|
}>>>;
|
178
179
|
};
|
179
180
|
encrypted: {
|
@@ -356,6 +357,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
356
357
|
linebarDirection: "horizontal" | "vertical";
|
357
358
|
linebarTextDirection: "horizontal" | "vertical";
|
358
359
|
autoWidth: number | boolean;
|
360
|
+
feedbackType: "default" | "tooltip";
|
359
361
|
}>>>;
|
360
362
|
};
|
361
363
|
encrypted: {
|
@@ -549,6 +551,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
549
551
|
linebarDirection: "horizontal" | "vertical";
|
550
552
|
linebarTextDirection: "horizontal" | "vertical";
|
551
553
|
autoWidth: number | boolean;
|
554
|
+
feedbackType: "default" | "tooltip";
|
552
555
|
}>>;
|
553
556
|
encrypted: boolean;
|
554
557
|
};
|
@@ -673,6 +676,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
673
676
|
};
|
674
677
|
SchemaField: import("vue").Component;
|
675
678
|
formRenderRef: import("vue").Ref<import("..").FormRenderExpose | undefined>;
|
679
|
+
setEdit: (v: boolean) => void;
|
676
680
|
onItemDblclick: (item: Partial<{
|
677
681
|
[K: string]: any;
|
678
682
|
slot: string | import("vue").Component | ((payload: {
|
@@ -799,6 +803,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
799
803
|
linebarDirection: "horizontal" | "vertical";
|
800
804
|
linebarTextDirection: "horizontal" | "vertical";
|
801
805
|
autoWidth: number | boolean;
|
806
|
+
feedbackType: "default" | "tooltip";
|
802
807
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
803
808
|
[key: symbol]: any;
|
804
809
|
[key: `x-${string}`]: any;
|
@@ -1343,6 +1348,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
1343
1348
|
type: BooleanConstructor;
|
1344
1349
|
default: boolean;
|
1345
1350
|
};
|
1351
|
+
feedbackType: {
|
1352
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
1353
|
+
default: string;
|
1354
|
+
};
|
1346
1355
|
}, {
|
1347
1356
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1348
1357
|
fieldList: {
|
@@ -1538,6 +1547,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
1538
1547
|
type: BooleanConstructor;
|
1539
1548
|
default: boolean;
|
1540
1549
|
};
|
1550
|
+
feedbackType: {
|
1551
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
1552
|
+
default: string;
|
1553
|
+
};
|
1541
1554
|
}>> & {
|
1542
1555
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
1543
1556
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1710,6 +1723,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
1710
1723
|
linebarDirection: "horizontal" | "vertical";
|
1711
1724
|
linebarTextDirection: "horizontal" | "vertical";
|
1712
1725
|
autoWidth: number | boolean;
|
1726
|
+
feedbackType: "default" | "tooltip";
|
1713
1727
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
1714
1728
|
[key: symbol]: any;
|
1715
1729
|
[key: `x-${string}`]: any;
|
@@ -2089,6 +2103,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
2089
2103
|
type: BooleanConstructor;
|
2090
2104
|
default: boolean;
|
2091
2105
|
};
|
2106
|
+
feedbackType: {
|
2107
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
2108
|
+
default: string;
|
2109
|
+
};
|
2092
2110
|
}>> & {
|
2093
2111
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
2094
2112
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -2119,6 +2137,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
2119
2137
|
linebarDirection: "horizontal" | "vertical";
|
2120
2138
|
linebarTextDirection: "horizontal" | "vertical";
|
2121
2139
|
autoWidth: number | boolean;
|
2140
|
+
feedbackType: "default" | "tooltip";
|
2122
2141
|
operationalFormInit: boolean;
|
2123
2142
|
incrementalRender: boolean;
|
2124
2143
|
}>;
|
@@ -2442,6 +2461,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
2442
2461
|
type: BooleanConstructor;
|
2443
2462
|
default: boolean;
|
2444
2463
|
};
|
2464
|
+
feedbackType: {
|
2465
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
2466
|
+
default: string;
|
2467
|
+
};
|
2445
2468
|
}, {
|
2446
2469
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
2447
2470
|
fieldList: {
|
@@ -2637,6 +2660,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
2637
2660
|
type: BooleanConstructor;
|
2638
2661
|
default: boolean;
|
2639
2662
|
};
|
2663
|
+
feedbackType: {
|
2664
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
2665
|
+
default: string;
|
2666
|
+
};
|
2640
2667
|
}>> & {
|
2641
2668
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
2642
2669
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -2809,6 +2836,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
2809
2836
|
linebarDirection: "horizontal" | "vertical";
|
2810
2837
|
linebarTextDirection: "horizontal" | "vertical";
|
2811
2838
|
autoWidth: number | boolean;
|
2839
|
+
feedbackType: "default" | "tooltip";
|
2812
2840
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
2813
2841
|
[key: symbol]: any;
|
2814
2842
|
[key: `x-${string}`]: any;
|
@@ -3188,6 +3216,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
3188
3216
|
type: BooleanConstructor;
|
3189
3217
|
default: boolean;
|
3190
3218
|
};
|
3219
|
+
feedbackType: {
|
3220
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
3221
|
+
default: string;
|
3222
|
+
};
|
3191
3223
|
}>> & {
|
3192
3224
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
3193
3225
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -3218,6 +3250,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
3218
3250
|
linebarDirection: "horizontal" | "vertical";
|
3219
3251
|
linebarTextDirection: "horizontal" | "vertical";
|
3220
3252
|
autoWidth: number | boolean;
|
3253
|
+
feedbackType: "default" | "tooltip";
|
3221
3254
|
operationalFormInit: boolean;
|
3222
3255
|
incrementalRender: boolean;
|
3223
3256
|
}>;
|
@@ -3410,6 +3443,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
3410
3443
|
linebarDirection: "horizontal" | "vertical";
|
3411
3444
|
linebarTextDirection: "horizontal" | "vertical";
|
3412
3445
|
autoWidth: number | boolean;
|
3446
|
+
feedbackType: "default" | "tooltip";
|
3413
3447
|
}>>>;
|
3414
3448
|
};
|
3415
3449
|
encrypted: {
|
@@ -175,6 +175,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
175
175
|
linebarDirection: "horizontal" | "vertical";
|
176
176
|
linebarTextDirection: "horizontal" | "vertical";
|
177
177
|
autoWidth: number | boolean;
|
178
|
+
feedbackType: "default" | "tooltip";
|
178
179
|
}>>>;
|
179
180
|
};
|
180
181
|
encrypted: {
|
@@ -355,6 +356,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
355
356
|
linebarDirection: "horizontal" | "vertical";
|
356
357
|
linebarTextDirection: "horizontal" | "vertical";
|
357
358
|
autoWidth: number | boolean;
|
359
|
+
feedbackType: "default" | "tooltip";
|
358
360
|
}>>>;
|
359
361
|
};
|
360
362
|
encrypted: {
|
@@ -544,6 +546,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
544
546
|
linebarDirection: "horizontal" | "vertical";
|
545
547
|
linebarTextDirection: "horizontal" | "vertical";
|
546
548
|
autoWidth: number | boolean;
|
549
|
+
feedbackType: "default" | "tooltip";
|
547
550
|
}>>;
|
548
551
|
encrypted: boolean;
|
549
552
|
};
|
@@ -668,6 +671,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
668
671
|
};
|
669
672
|
SchemaField: import("vue").Component;
|
670
673
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
674
|
+
setEdit: (v: boolean) => void;
|
671
675
|
onItemDblclick: (item: Partial<{
|
672
676
|
[K: string]: any;
|
673
677
|
slot: string | import("vue").Component | ((payload: {
|
@@ -794,6 +798,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
794
798
|
linebarDirection: "horizontal" | "vertical";
|
795
799
|
linebarTextDirection: "horizontal" | "vertical";
|
796
800
|
autoWidth: number | boolean;
|
801
|
+
feedbackType: "default" | "tooltip";
|
797
802
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
798
803
|
[key: symbol]: any;
|
799
804
|
[key: `x-${string}`]: any;
|
@@ -1338,6 +1343,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1338
1343
|
type: BooleanConstructor;
|
1339
1344
|
default: boolean;
|
1340
1345
|
};
|
1346
|
+
feedbackType: {
|
1347
|
+
type: PropType<"default" | "tooltip">;
|
1348
|
+
default: string;
|
1349
|
+
};
|
1341
1350
|
}, {
|
1342
1351
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1343
1352
|
fieldList: {
|
@@ -1533,6 +1542,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1533
1542
|
type: BooleanConstructor;
|
1534
1543
|
default: boolean;
|
1535
1544
|
};
|
1545
|
+
feedbackType: {
|
1546
|
+
type: PropType<"default" | "tooltip">;
|
1547
|
+
default: string;
|
1548
|
+
};
|
1536
1549
|
}>> & {
|
1537
1550
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
1538
1551
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1705,6 +1718,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1705
1718
|
linebarDirection: "horizontal" | "vertical";
|
1706
1719
|
linebarTextDirection: "horizontal" | "vertical";
|
1707
1720
|
autoWidth: number | boolean;
|
1721
|
+
feedbackType: "default" | "tooltip";
|
1708
1722
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
1709
1723
|
[key: symbol]: any;
|
1710
1724
|
[key: `x-${string}`]: any;
|
@@ -2084,6 +2098,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2084
2098
|
type: BooleanConstructor;
|
2085
2099
|
default: boolean;
|
2086
2100
|
};
|
2101
|
+
feedbackType: {
|
2102
|
+
type: PropType<"default" | "tooltip">;
|
2103
|
+
default: string;
|
2104
|
+
};
|
2087
2105
|
}>> & {
|
2088
2106
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
2089
2107
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -2114,6 +2132,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2114
2132
|
linebarDirection: "horizontal" | "vertical";
|
2115
2133
|
linebarTextDirection: "horizontal" | "vertical";
|
2116
2134
|
autoWidth: number | boolean;
|
2135
|
+
feedbackType: "default" | "tooltip";
|
2117
2136
|
operationalFormInit: boolean;
|
2118
2137
|
incrementalRender: boolean;
|
2119
2138
|
}>;
|
@@ -2437,6 +2456,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2437
2456
|
type: BooleanConstructor;
|
2438
2457
|
default: boolean;
|
2439
2458
|
};
|
2459
|
+
feedbackType: {
|
2460
|
+
type: PropType<"default" | "tooltip">;
|
2461
|
+
default: string;
|
2462
|
+
};
|
2440
2463
|
}, {
|
2441
2464
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
2442
2465
|
fieldList: {
|
@@ -2632,6 +2655,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2632
2655
|
type: BooleanConstructor;
|
2633
2656
|
default: boolean;
|
2634
2657
|
};
|
2658
|
+
feedbackType: {
|
2659
|
+
type: PropType<"default" | "tooltip">;
|
2660
|
+
default: string;
|
2661
|
+
};
|
2635
2662
|
}>> & {
|
2636
2663
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
2637
2664
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -2804,6 +2831,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2804
2831
|
linebarDirection: "horizontal" | "vertical";
|
2805
2832
|
linebarTextDirection: "horizontal" | "vertical";
|
2806
2833
|
autoWidth: number | boolean;
|
2834
|
+
feedbackType: "default" | "tooltip";
|
2807
2835
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
2808
2836
|
[key: symbol]: any;
|
2809
2837
|
[key: `x-${string}`]: any;
|
@@ -3183,6 +3211,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
3183
3211
|
type: BooleanConstructor;
|
3184
3212
|
default: boolean;
|
3185
3213
|
};
|
3214
|
+
feedbackType: {
|
3215
|
+
type: PropType<"default" | "tooltip">;
|
3216
|
+
default: string;
|
3217
|
+
};
|
3186
3218
|
}>> & {
|
3187
3219
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
3188
3220
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -3213,6 +3245,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3213
3245
|
linebarDirection: "horizontal" | "vertical";
|
3214
3246
|
linebarTextDirection: "horizontal" | "vertical";
|
3215
3247
|
autoWidth: number | boolean;
|
3248
|
+
feedbackType: "default" | "tooltip";
|
3216
3249
|
operationalFormInit: boolean;
|
3217
3250
|
incrementalRender: boolean;
|
3218
3251
|
}>;
|
@@ -3403,6 +3436,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3403
3436
|
linebarDirection: "horizontal" | "vertical";
|
3404
3437
|
linebarTextDirection: "horizontal" | "vertical";
|
3405
3438
|
autoWidth: number | boolean;
|
3439
|
+
feedbackType: "default" | "tooltip";
|
3406
3440
|
}>>>;
|
3407
3441
|
};
|
3408
3442
|
encrypted: {
|
@@ -40,6 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
};
|
41
41
|
SchemaField: import("vue").Component;
|
42
42
|
formRenderRef: import("vue").Ref<import("../../../../../components/form-render").FormRenderExpose | undefined>;
|
43
|
+
setEdit: (v: boolean) => void;
|
43
44
|
onItemDblclick: (item: InfoHeaderTypes.InfoItem) => Promise<void>;
|
44
45
|
onItemClick: (item: InfoHeaderTypes.InfoItem) => Promise<void>;
|
45
46
|
collector: import("../../../../../components/form-render").BusinessCollector | undefined;
|
@@ -146,6 +147,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
146
147
|
linebarDirection: "horizontal" | "vertical";
|
147
148
|
linebarTextDirection: "horizontal" | "vertical";
|
148
149
|
autoWidth: number | boolean;
|
150
|
+
feedbackType: "default" | "tooltip";
|
149
151
|
}>) => Record<string, import("@formily/vue").Stringify<{
|
150
152
|
[key: symbol]: any;
|
151
153
|
[key: `x-${string}`]: any;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as t,
|
1
|
+
import{defineComponent as e,inject as t,watch as o,computed as n,openBlock as l,createElementBlock as i,createBlock as r,unref as m,normalizeStyle as d,Fragment as s,withDirectives as a,createElementVNode as c,vShow as f,createCommentVNode as u}from"vue";import{isField as p}from"@formily/core";import{useForm as y}from"@formily/vue";import{isFunction as v}from"lodash-es";import{pauseTracking as I,enableTracking as h}from"@vue/reactivity";import"../../../../form-render/index.js";import{InjectionSchemaField as F,InjectionBusinessCollector as w}from"../../../../form-render/src/constants/index.js";import{InjectionInfoHeaderFormRef as b}from"../../constants/index.js";import k from"./HiddenContent.vue.js";import P from"./InfoEllipsis.vue.js";import x from"../../../../../shared/components/SlotRender/SlotRender.js";import{useFieldListAdaptor as j}from"../../../../form-render/src/hooks/useFieldListAdaptor.js";import{createObjSchema as S}from"../../../../form-render/src/utils/schema.js";const g={key:0};var W=e({__name:"DescriptionItem",props:{infoItem:{default:()=>({})},labelField:{default:"label"},valueField:{default:"value"},width:null,rootSlot:null,encrypted:{type:Boolean}},setup(e){const W=e,_=t(F,{render:()=>null}),B=t(b);function E(e){W.infoItem.edit=e}async function q(e){var t,o,n;if(!e.formField||e.edit)return;E(!0);const l=await(null==(t=B.value)?void 0:t.queryWidget(e[W.labelField]));l&&(null==(o=l.widgetElement)||o.focus(),null==(n=l.widgetElement)||n.click())}o((()=>W.infoItem.edit),(e=>{var t;null==(t=B.value)||t.setFieldState(W.infoItem[W.labelField],(t=>{t.decoratorProps.showTooltipFeedback=!!e}))}),{immediate:!0});const A=t(w,void 0),{schemaAdaptor:C}=j(A),D=y(),L=n((()=>{var e,t,o;const n=W.infoItem.formField;if(!n)return{};const l=W.infoItem[W.labelField],i={...n,html_type:null!=(e=n.html_type)?e:"INPUT",val_key:l,decoratorProps:{showLabel:!1,...n.decoratorProps,style:{marginBottom:"-12px"}},componentProps:{size:"tiny",clearable:!0,...n.componentProps,style:{fontWeight:(null==(t=W.infoItem)?void 0:t.bold)?700:500,...null==(o=n.componentProps)?void 0:o.style},async onBlur(e){var t;if(D&&D.value)try{const o=D.value.query(l).take();await(o&&p(o)&&o.validate()),E(!1),v(null==(t=n.componentProps)?void 0:t.onBlur)&&n.componentProps.onBlur(e)}catch(e){}}}};I(),i.default_val=W.infoItem[W.valueField],h();const r=C([i]);return S(r)}));o((()=>W.width),(e=>{var t;e&&W.infoItem.formField&&(null==(t=B.value)||t.setFieldState(W.infoItem[W.labelField],(t=>{t.componentProps&&(t.componentProps.style={...t.componentProps.style,maxWidth:e+"px"})})))}));const R=n((()=>({fontWeight:W.infoItem.bold?700:500,...W.infoItem.contentStyle}))),T=n((()=>{const{bold:e,contentStyle:t}=W.infoItem,o=W.width+"px";return{width:o,maxWidth:o,fontWeight:e?700:500,...t}})),z=n((()=>["电话","身份证"].some((e=>{var t,o;return null==(o=null==(t=W.infoItem[W.labelField])?void 0:t.includes)?void 0:o.call(t,e)}))));return(t,o)=>(l(),i("section",{onDblclick:o[0]||(o[0]=t=>q(e.infoItem)),onClick:o[1]||(o[1]=t=>async function(e){e.formField&&!e[W.valueField]&&0!==e[W.valueField]&&q(e)}(e.infoItem))},[e.infoItem.slot?(l(),r(m(x),{key:0,renderer:e.infoItem.slot,"root-slots":e.rootSlot,item:e.infoItem,style:d(m(R)),width:e.width},null,8,["renderer","root-slots","item","style","width"])):(l(),i(s,{key:1},[a(c("section",null,[m(z)?(l(),r(k,{key:0,content:e.infoItem[e.valueField],tip:e.infoItem.tip,"content-style":m(R),width:e.width,encrypted:e.encrypted},null,8,["content","tip","content-style","width","encrypted"])):(l(),r(P,{key:1,"content-style":m(T),content:e.infoItem[e.valueField],tip:e.infoItem.tip},null,8,["content-style","content","tip"]))],512),[[f,!e.infoItem.edit||!e.infoItem.formField]]),e.infoItem.formField?a((l(),i("section",g,[(l(),r(m(_),{schema:m(L),key:e.infoItem[e.labelField]},null,8,["schema"]))],512)),[[f,e.infoItem.edit]]):u("v-if",!0)],64))],32))}});export{W as default};
|
@@ -94,6 +94,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
94
94
|
};
|
95
95
|
SchemaField: import("vue").Component;
|
96
96
|
formRenderRef: import("vue").Ref<import("../../../..").FormRenderExpose | undefined>;
|
97
|
+
setEdit: (v: boolean) => void;
|
97
98
|
onItemDblclick: (item: Partial<{
|
98
99
|
[K: string]: any;
|
99
100
|
slot: string | import("vue").Component | ((payload: {
|
@@ -220,6 +221,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
220
221
|
linebarDirection: "horizontal" | "vertical";
|
221
222
|
linebarTextDirection: "horizontal" | "vertical";
|
222
223
|
autoWidth: number | boolean;
|
224
|
+
feedbackType: "default" | "tooltip";
|
223
225
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
224
226
|
[key: symbol]: any;
|
225
227
|
[key: `x-${string}`]: any;
|
@@ -166,6 +166,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
166
166
|
};
|
167
167
|
SchemaField: import("vue").Component;
|
168
168
|
formRenderRef: import("vue").Ref<import("../../../../../components/form-render").FormRenderExpose | undefined>;
|
169
|
+
setEdit: (v: boolean) => void;
|
169
170
|
onItemDblclick: (item: Partial<{
|
170
171
|
[K: string]: any;
|
171
172
|
slot: string | import("vue").Component | ((payload: {
|
@@ -292,6 +293,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
292
293
|
linebarDirection: "horizontal" | "vertical";
|
293
294
|
linebarTextDirection: "horizontal" | "vertical";
|
294
295
|
autoWidth: number | boolean;
|
296
|
+
feedbackType: "default" | "tooltip";
|
295
297
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
296
298
|
[key: symbol]: any;
|
297
299
|
[key: `x-${string}`]: any;
|
@@ -836,6 +838,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
836
838
|
type: BooleanConstructor;
|
837
839
|
default: boolean;
|
838
840
|
};
|
841
|
+
feedbackType: {
|
842
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
843
|
+
default: string;
|
844
|
+
};
|
839
845
|
}, {
|
840
846
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
841
847
|
fieldList: {
|
@@ -1031,6 +1037,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1031
1037
|
type: BooleanConstructor;
|
1032
1038
|
default: boolean;
|
1033
1039
|
};
|
1040
|
+
feedbackType: {
|
1041
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
1042
|
+
default: string;
|
1043
|
+
};
|
1034
1044
|
}>> & {
|
1035
1045
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
1036
1046
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1203,6 +1213,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1203
1213
|
linebarDirection: "horizontal" | "vertical";
|
1204
1214
|
linebarTextDirection: "horizontal" | "vertical";
|
1205
1215
|
autoWidth: number | boolean;
|
1216
|
+
feedbackType: "default" | "tooltip";
|
1206
1217
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
1207
1218
|
[key: symbol]: any;
|
1208
1219
|
[key: `x-${string}`]: any;
|
@@ -1582,6 +1593,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1582
1593
|
type: BooleanConstructor;
|
1583
1594
|
default: boolean;
|
1584
1595
|
};
|
1596
|
+
feedbackType: {
|
1597
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
1598
|
+
default: string;
|
1599
|
+
};
|
1585
1600
|
}>> & {
|
1586
1601
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
1587
1602
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1612,6 +1627,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1612
1627
|
linebarDirection: "horizontal" | "vertical";
|
1613
1628
|
linebarTextDirection: "horizontal" | "vertical";
|
1614
1629
|
autoWidth: number | boolean;
|
1630
|
+
feedbackType: "default" | "tooltip";
|
1615
1631
|
operationalFormInit: boolean;
|
1616
1632
|
incrementalRender: boolean;
|
1617
1633
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as i,computed as o,ref as
|
1
|
+
import{defineComponent as e,inject as i,computed as o,ref as t,nextTick as l,onMounted as n,watch as r,onBeforeUnmount as a,onDeactivated as s,onActivated as u,openBlock as d,createElementBlock as f,normalizeStyle as m,createVNode as c,unref as p,withCtx as v,createCommentVNode as h,renderSlot as _,createElementVNode as y,createBlock as w,mergeProps as F}from"vue";import{useThrottleFn as b,useEventListener as L}from"@vueuse/core";import{isArray as k}from"lodash-es";import{NScrollbar as C,NConfigProvider as W}from"naive-ui";import j from"./DescriptionList.vue.js";import{InjectionInfoHeaderEmit as x,InjectionInfoHeaderFormRef as g}from"../../constants/index.js";import{useThemeOverrides as R}from"../../hooks/useThemeOverrides.js";import O from"../../../../form-render/index.js";var $=e({__name:"index",props:{infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},minColumnWidth:{default:180},rootSlot:null,formProps:{default:()=>({})},encrypted:{type:Boolean}},setup(e,{expose:$}){const A=e,{themeOverrides:I}=R(),M=i(x),P=o((()=>k(A.infoList)&&A.infoList.some((e=>e.formField)))),S=o((()=>k(A.infoList)?A.infoList.reduce(((e,i)=>(i.formField&&(e[i[A.labelField]]=i[A.valueField]),e)),{}):{}));function T(e){var i;const{fieldKey:o,value:t}=e,l=null==(i=A.infoList)?void 0:i.find((e=>e[A.labelField]===o));l&&(l[A.valueField]=t,M&&M("formChange",e))}const q=i(g),z=t(3),B=t(),D=t(0),K=t([]),E=b((async function(){await l();const e=B.value;if(!e)return;const{clientWidth:i}=e;z.value=Math.floor(i/+A.minColumnWidth),D.value=Math.floor(i/z.value),await l();const o=e.querySelectorAll(".n-descriptions-table-content__label");o&&Object.assign(K.value,Array.from(o).map((e=>D.value-e.clientWidth-8)))}),200,!0,!1);let G;function H(){clearInterval(G)}function J(){H(),G=setInterval(E,700)}return n(E),r([()=>A.minColumnWidth,()=>A.infoList],E,{flush:"post",deep:!0}),L(window,"resize",E),a(H),s(H),u(J),n(J),$({updateColumn:E}),(i,o)=>(d(),f("section",{class:"c-info-header__info",ref_key:"infoRef",ref:B,style:m({"--column-width":D.value})},[c(p(C),{class:"c-info-header__infoWrapper"},{default:v((()=>[h(" 描述信息区插槽 "),_(i.$slots,"info",{},(()=>[y("section",null,[p(P)?(d(),w(p(O),F({key:1,feedbackType:"tooltip"},e.formProps,{onFormChange:T,"initial-data":p(S),ref_key:"formRenderRef",ref:q,class:"c-info-header__formRender"}),{default:v((()=>[c(p(W),{"theme-overrides":p(I),style:m({"grid-column":"span min(var(--column), 999) / span min(var(--column), 999)"})},{default:v((()=>[c(j,F(i.$props,{"description-width-list":K.value,"column-num":z.value,"in-form":""}),null,16,["description-width-list","column-num"])])),_:1},8,["theme-overrides","style"])])),_:1},16,["initial-data"])):(d(),w(j,F({key:0},i.$props,{"description-width-list":K.value,"column-num":z.value}),null,16,["description-width-list","column-num"]))])]))])),_:3})],4))}});export{$ as default};
|
@@ -248,6 +248,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
248
248
|
type: BooleanConstructor;
|
249
249
|
default: boolean;
|
250
250
|
};
|
251
|
+
feedbackType: {
|
252
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
253
|
+
default: string;
|
254
|
+
};
|
251
255
|
}, {
|
252
256
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
253
257
|
fieldList: {
|
@@ -443,6 +447,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
443
447
|
type: BooleanConstructor;
|
444
448
|
default: boolean;
|
445
449
|
};
|
450
|
+
feedbackType: {
|
451
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
452
|
+
default: string;
|
453
|
+
};
|
446
454
|
}>> & {
|
447
455
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
448
456
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -615,6 +623,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
615
623
|
linebarDirection: "horizontal" | "vertical";
|
616
624
|
linebarTextDirection: "horizontal" | "vertical";
|
617
625
|
autoWidth: number | boolean;
|
626
|
+
feedbackType: "default" | "tooltip";
|
618
627
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
619
628
|
[key: symbol]: any;
|
620
629
|
[key: `x-${string}`]: any;
|
@@ -994,6 +1003,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
994
1003
|
type: BooleanConstructor;
|
995
1004
|
default: boolean;
|
996
1005
|
};
|
1006
|
+
feedbackType: {
|
1007
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
1008
|
+
default: string;
|
1009
|
+
};
|
997
1010
|
}>> & {
|
998
1011
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
999
1012
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1024,6 +1037,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1024
1037
|
linebarDirection: "horizontal" | "vertical";
|
1025
1038
|
linebarTextDirection: "horizontal" | "vertical";
|
1026
1039
|
autoWidth: number | boolean;
|
1040
|
+
feedbackType: "default" | "tooltip";
|
1027
1041
|
operationalFormInit: boolean;
|
1028
1042
|
incrementalRender: boolean;
|
1029
1043
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as l,provide as a,computed as t,watch as i,onMounted as n,openBlock as o,createElementBlock as r,createElementVNode as
|
1
|
+
import{defineComponent as e,ref as l,provide as a,computed as t,watch as i,onMounted as n,openBlock as o,createElementBlock as r,createElementVNode as s,Fragment as u,renderList as c,unref as d,normalizeClass as f,createCommentVNode as v,createVNode as m,withCtx as p,createTextVNode as h,toDisplayString as g,createBlock as k,withDirectives as b,vShow as y,isRef as C}from"vue";import{useMessage as _,NPopover as A,NModal as S,NCard as x,NIcon as w,NButton as F,NForm as q,NFormItem as j,NInput as I}from"naive-ui";import{CloseOutline as E,AddOutline as R}from"@vicons/ionicons5";import U from"../../table-filter/src/hooks/useMixins.js";import L from"../../table-filter/src/hooks/useRenderWidget.js";import N from"../../table-filter/src/hooks/useAdvanced.js";import T from"../../table-filter/src/components/render-widget/index.vue.js";import{WidgetTypeEnums as D}from"../../table-filter/src/types/enums.js";import"moment/locale/zh-cn";import{cloneDeep as O}from"lodash-es";import{InjectionFilterApiConfig as P,InjectionFilterSearchConfig as V}from"../../table-filter/src/constants/index.js";const z={class:"quick-search-block quick-search-table"},B={class:"quick-row"},M={class:"quick-item-title"},Q={class:"quick-item-col"},W={class:"svg-wrap"},G={class:"flex_right"},J={class:"class-filter-content"},Y={class:"quickSearch-content"},H=s("span",{class:"label"},"父类名称:",-1),K=["onDblclick","onClick"],X={class:"s-content"};var Z=e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:Z,emit:$}){const ee=e,le={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},ae=_(),{handleGetConfigApi:te,outQuickSearchFn:ie}=U(),{getRenderSearchConObj:ne,resetRenderWidgetValue:oe,isRender:re}=L(),{transformData:se,getCacheDef:ue,transformParams:ce}=N(),de=l(null),fe=l({classname:""});let ve=l(!1),me=l([]),pe=l([]),he=l(!1),ge=l("");const ke=l(),be=l(),ye=l([]);a(P,ee.filterApiConfig),a(V,me);let Ce=t((()=>!!pe.value.length&&pe.value.some((e=>e.isAdd)))),_e=t((()=>(e,l="name")=>e.alias||e[l]));function Ae(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=ne(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(me.value)||[]}function Se(){var e;null==(e=de.value)||e.validate((e=>{var l;if(e)return;let a=Ae();a.length||(a=[]);let t=null==(l=pe.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await te(e,"requestSaveTableCondiTion",{},ee.filterApiConfig))return;ve.value=!1,null==(l=de.value)||l.restoreValidation(),fe.value.classname="",pe.value=[],je()}catch(e){console.log(e)}}({tableId:ee.tableId||"",setting:JSON.stringify({displayCategory:t,name:fe.value.classname,conObj:a.map((e=>(e.unit&&(e.value=[]),e.widgetType===D.SELECTDYNAMIC&&(e.dynamicBaseList=e.value.map((e=>e.includes("&")?{label:e.split("&")[0],value:e.split("&")[1]}:{label:e,value:e})),e.value=e.value.map((e=>e.includes("&")?e.split("&")[1]:e))),e)))}),conditionList:"[]"})}))}function xe(e){setTimeout((()=>{be.value&&be.value.focus()}),100),he.value=!0}function we(){he.value=!1,ge.value&&(pe.value.forEach((e=>e.selected=!1)),pe.value.push({disabled:!0,value:ge.value,selected:!0,isAdd:!0}),ge.value="")}function Fe(e){!function(e){pe.value.splice(e,1)}(e)}function qe(){ve.value=!1}function je(){Ie(me.value),$("clearQuickSearchConfig")}function Ie(e){Array.isArray(e)&&(e.forEach((e=>{oe(e)})),ie.handlerInitSearchItem(me.value))}return i((()=>ee.searchFieldList),(e=>{e&&e.length>0&&function(){let e=O(se(ee.searchFieldList,{_filterApiConfig:ee.filterApiConfig})).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];me.value=e||[],ie.handlerInitSearchItem(me.value)}()}),{immediate:!0,deep:!0}),i((()=>me),(()=>{const e=Ae()||[],l=ce(e);$("getFilterParam",e,l),ye.value.forEach((e=>e(l)))}),{deep:!0}),n((()=>{const e=ee.quickSearchConfig;if(e&&e.length>0)return l=e,void me.value.forEach((e=>{var a,t;if(re(e)){const i=l.find((l=>l.field_key===e.columnName));i&&(null==(a=i.value)?void 0:a.length)>0&&(e.value=ue(e,i.value),e.unit=null!=(t=i.unit)?t:"")}}));var l;Ie(me.value)})),Z({openSaveToCalss:function(){let e=Ae();e&&(e.length>0?ve.value=!0:ae.warning("请设置搜索条件"))},clearData:je,onFilterSearch:function(){let e=Ae()||[];const l=ce(e);return $("onFilterSearch",e,l,!1),me.value},getFilterParams:function(){const e=Ae()||[];return ce(e)},setFilterParams:function(e){const l=e?Object.keys(e):[];l.length>0&&me.value.forEach((a=>{var t;if(re(a)&&l.includes(a.columnName)){const l=e[a.columnName];a.value=Array.isArray(l)&&!1===(null==(t=a.widgetCfg)?void 0:t.multiple)?l[0]:l}}))},getOriginalConfig:function(){return ee.searchFieldList},onFilterChange:function(e){ye.value.push(e)}}),(e,l)=>(o(),r("div",null,[s("div",z,[(o(!0),r(u,null,c(d(me),(e=>(o(),r("div",{class:f(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[s("div",B,[v(" title "),s("div",M,[m(d(A),{trigger:"hover"},{trigger:p((()=>[h(g(d(_e)(e,"title")),1)])),default:p((()=>[s("span",null,g(d(_e)(e,"title")),1)])),_:2},1024)]),v(" content "),s("div",Q,[v(" 直接渲染组件 "),e.isRender?(o(),k(T,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,unit:e.unit,"onUpdate:unit":l=>e.unit=l},null,8,["cfg","modelValue","onUpdate:modelValue","unit","onUpdate:unit"])):v("v-if",!0)])])],2)))),128))]),v(" 保存到分类的弹窗 "),m(d(S),{show:d(ve),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:Se,onNegativeClick:qe,class:"classification-modal-block"},{default:p((()=>[m(d(x),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":p((()=>[s("div",W,[m(d(w),{component:d(E),size:"24",onClick:qe},null,8,["component"])])])),footer:p((()=>[s("div",G,[m(d(F),{onClick:qe},{default:p((()=>[h("取消")])),_:1}),m(d(F),{type:"info",onClick:Se},{default:p((()=>[h("确认")])),_:1})])])),default:p((()=>[s("div",J,[m(d(q),{ref_key:"formRef",ref:de,"label-placement":"left",rules:le,model:fe.value},{default:p((()=>[m(d(j),{label:"筛选集名称",path:"classname"},{default:p((()=>[m(d(I),{value:fe.value.classname,"onUpdate:value":l[0]||(l[0]=e=>fe.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),s("div",Y,[H,(o(!0),r(u,null,c(d(pe),((e,l)=>(o(),r("div",{class:"parent-name",key:l,onDblclick:l=>function(e){e.disabled=!1,setTimeout((()=>{ke.value.length>0&&ke.value[0].focus()}),100)}(e),onClick:a=>function(e,l){e.disabled&&(pe.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(o(),r("div",{key:0,class:f(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}])},[s("div",X,g(e.value),1),m(d(w),{component:d(E),class:"anticon-close",size:"20",onClick:e=>Fe(l)},null,8,["component","onClick"])],2)):(o(),k(d(I),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:ke,class:"parent-input",style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxlength:20},null,8,["value","onUpdate:value","disabled","onBlur"]))],40,K)))),128)),d(Ce)?v("v-if",!0):(o(),r(u,{key:0},[b(m(d(F),{dashed:"",icon:"plus",class:"ant-btn",onClick:xe},{default:p((()=>[m(d(w),{component:d(R),size:"20"},null,8,["component"]),h("添加分类 ")])),_:1},512),[[y,!d(he)]]),b(m(d(I),{ref_key:"parentInputAddRef",ref:be,class:"parent-input",style:{width:"100px"},value:d(ge),"onUpdate:value":l[1]||(l[1]=e=>C(ge)?ge.value=e:ge=e),valueModifiers:{trim:!0},onBlur:we,maxlength:20},null,8,["value"]),[[y,d(he)]])],64))])])])),_:1})])),_:1},8,["show"])]))}});export{Z as default};
|
@@ -260,6 +260,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
260
260
|
}>>;
|
261
261
|
state: any;
|
262
262
|
emit: (event: "onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale", ...args: any[]) => void;
|
263
|
+
scaleViewDom: any;
|
263
264
|
countdownDom: any;
|
264
265
|
formRef: import("vue").Ref<{
|
265
266
|
validate: import("naive-ui/es/form/src/interface").FormValidate;
|
@@ -311,6 +312,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
311
312
|
showEvaluateCountdown: any;
|
312
313
|
isEvaluetaResSituation: any;
|
313
314
|
evaResultObj: any;
|
315
|
+
scaleViewDom: any;
|
314
316
|
}>;
|
315
317
|
isEvaluetaResSituation: import("vue").ComputedRef<any>;
|
316
318
|
disableEdit: import("vue").ComputedRef<any>;
|
@@ -424,7 +426,13 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
424
426
|
type: BooleanConstructor;
|
425
427
|
default: boolean;
|
426
428
|
};
|
429
|
+
scaleViewDom: {
|
430
|
+
type: any;
|
431
|
+
};
|
427
432
|
}, {
|
433
|
+
vDrag: {
|
434
|
+
beforeMount(el: any, binding: any): void;
|
435
|
+
};
|
428
436
|
state: {
|
429
437
|
source: string;
|
430
438
|
setAnswered: number;
|
@@ -434,6 +442,12 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
434
442
|
answeredRes: string;
|
435
443
|
answeredColor: string;
|
436
444
|
};
|
445
|
+
countdownRef: any;
|
446
|
+
dragSetting: {
|
447
|
+
isDrag: boolean;
|
448
|
+
container: string;
|
449
|
+
target: string;
|
450
|
+
};
|
437
451
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
438
452
|
formArray: {
|
439
453
|
type: ArrayConstructor;
|
@@ -470,6 +484,9 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
470
484
|
type: BooleanConstructor;
|
471
485
|
default: boolean;
|
472
486
|
};
|
487
|
+
scaleViewDom: {
|
488
|
+
type: any;
|
489
|
+
};
|
473
490
|
}>> & {
|
474
491
|
onCloseEvaluateCountdown?: ((...args: any[]) => any) | undefined;
|
475
492
|
}>>;
|
@@ -498,7 +515,8 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
498
515
|
answeredResCalc: (val: any) => void;
|
499
516
|
init: () => void;
|
500
517
|
checkType: (val: any) => string;
|
501
|
-
|
518
|
+
calcMaxTop: () => void;
|
519
|
+
toggleFold: (e: Event) => void;
|
502
520
|
diffAnswered: (form: any) => void;
|
503
521
|
getCountdownObj: () => {
|
504
522
|
setAnswered: number;
|
@@ -541,6 +559,9 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
541
559
|
type: BooleanConstructor;
|
542
560
|
default: boolean;
|
543
561
|
};
|
562
|
+
scaleViewDom: {
|
563
|
+
type: any;
|
564
|
+
};
|
544
565
|
}>> & {
|
545
566
|
onCloseEvaluateCountdown?: ((...args: any[]) => any) | undefined;
|
546
567
|
}, {
|
@@ -553,6 +574,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
553
574
|
currentTime: number;
|
554
575
|
showEvaluateCountdown: boolean;
|
555
576
|
evaResultObj: Record<string, any>;
|
577
|
+
scaleViewDom: any;
|
556
578
|
}>;
|
557
579
|
EvaluatePage: import("vue").DefineComponent<{
|
558
580
|
formArray: {
|