cnhis-design-vue 3.4.0-release.3 → 3.4.0-release.7
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/es/_virtual/_virtual_i18n-methods.js +5 -1
- package/es/components/audio-sdk/index.d.ts +4 -4
- package/es/components/audio-sdk/src/Index.vue.d.ts +4 -4
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +4 -4
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +4 -4
- package/es/components/base-search/index.d.ts +34 -0
- package/es/components/base-search/src/index.vue.d.ts +34 -0
- package/es/components/base-search/src/index.vue2.js +9 -1
- package/es/components/button-print/index.d.ts +32 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +32 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +4 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +73 -48
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +11 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +35 -0
- package/es/components/button-print/src/utils/print.d.ts +1 -1
- package/es/components/button-print/src/utils/print.js +4 -2
- package/es/components/callback/src/components/render/popupMaps.d.ts +38 -24
- package/es/components/classification/index.d.ts +84 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +84 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +84 -0
- package/es/components/classification/src/index.vue.d.ts +84 -0
- package/es/components/classification/src/index.vue2.js +7 -0
- package/es/components/date-picker/index.d.ts +28 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +28 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +26 -1
- package/es/components/expand-field/index.d.ts +31 -0
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +31 -0
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +31 -0
- package/es/components/expand-field/src/components/form.vue.d.ts +31 -0
- package/es/components/expand-field/src/index.vue.d.ts +31 -0
- package/es/components/fabric-chart/index.d.ts +3 -3
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -3
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -0
- package/es/components/fabric-chart/src/components/PopupMenu.d.ts +4 -4
- package/es/components/fabric-chart/src/components/PopupMenu.js +57 -39
- package/es/components/fabric-chart/src/constants/index.d.ts +19 -5
- package/es/components/fabric-chart/src/constants/index.js +26 -11
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +119 -193
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +69 -117
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +15 -11
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +39 -27
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +86 -122
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -0
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +65 -113
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +63 -37
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +31 -14
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +6 -7
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +152 -208
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -9
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +138 -229
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +5 -2
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +195 -273
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
- package/es/components/fabric-chart/src/interface.d.ts +14 -1
- package/es/components/fabric-chart/src/utils/eventBus.d.ts +2 -0
- package/es/components/fabric-chart/src/utils/eventBus.js +5 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +2 -10
- package/es/components/fabric-chart/style/index.css +1 -1
- package/es/components/field-editor/index.d.ts +1 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +1 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +57 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +3 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +28 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +56 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +28 -0
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/form-config/index.d.ts +24 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +24 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +48 -24
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1 -0
- package/es/components/form-config/src/constants/index.d.ts +2 -0
- package/es/components/form-config/src/constants/index.js +2 -0
- package/es/components/form-config/src/hooks/useConfigurationField.js +20 -3
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -0
- 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/renderer/radio_checkbox.js +3 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +8 -0
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.d.ts +1 -1
- package/es/components/form-render/src/utils/index.js +5 -2
- package/es/components/iho-chat/index.d.ts +2757 -300
- package/es/components/iho-chat/src/Index.vue.d.ts +2757 -300
- package/es/components/iho-chat/src/Index.vue2.js +5 -3
- package/es/components/iho-chat/src/api/index.d.ts +89 -16
- package/es/components/iho-chat/src/api/index.js +8 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +104 -22
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +3 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +783 -101
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +611 -51
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +27 -28
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +204 -14
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +175 -10
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +2 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +197 -29
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +48 -11
- package/es/components/iho-chat/src/components/ContextMenu.js +7 -10
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +88 -7
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.d.ts +158 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.js +6 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue2.js +51 -0
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +176 -14
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +192 -29
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +2 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +91 -8
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +121 -11
- package/es/components/iho-chat/src/components/Video.vue.d.ts +89 -8
- package/es/components/iho-chat/src/components/userItemRender.js +2 -1
- package/es/components/iho-chat/src/constants/index.d.ts +2 -1
- package/es/components/iho-chat/src/constants/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +374 -27
- package/es/components/iho-chat/src/hooks/useData.js +31 -10
- package/es/components/iho-chat/src/hooks/useStreamOutput.d.ts +6 -0
- package/es/components/iho-chat/src/hooks/useStreamOutput.js +100 -0
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +89 -7
- package/es/components/iho-chat/src/hooks/useWebSocket.js +14 -4
- package/es/components/iho-chat/src/types/index.d.ts +39 -7
- package/es/components/iho-chat/src/utils/index.d.ts +2 -1
- package/es/components/iho-chat/src/utils/sseClient.d.ts +22 -0
- package/es/components/iho-chat/src/utils/sseClient.js +97 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +37 -24
- package/es/components/iho-table/src/IhoTable.vue.d.ts +37 -24
- package/es/components/iho-table/src/IhoTable.vue2.js +7 -2
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +3 -3
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +30 -4
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +22 -8
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +7 -2
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +28 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +8 -2
- package/es/components/iho-table/src/types/index.d.ts +3 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +46 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +46 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +41 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +2 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +41 -2
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +20 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +20 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +9 -6
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +42 -2
- 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 +1 -0
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +9 -3
- package/es/components/scale-view/src/hooks/use-event.js +56 -22
- package/es/components/select-person/index.d.ts +31 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +14 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +36 -8
- package/es/components/select-person/src/index.vue.d.ts +31 -0
- package/es/components/select-person/src/index.vue2.js +4 -0
- package/es/components/shortcut-setter/index.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +2 -2
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +56 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +56 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +56 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +30 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +10 -2
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +30 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +10 -2
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +116 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +9 -9
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +116 -0
- package/es/components/table-filter/src/constants/index.d.ts +1 -0
- package/es/components/table-filter/src/constants/index.js +4 -1
- package/es/shared/components/Ellipsis/Ellipsis.d.ts +12 -0
- package/es/shared/components/Ellipsis/Ellipsis.js +86 -0
- package/es/shared/components/Ellipsis/index.d.ts +2 -0
- package/es/shared/components/Ellipsis/index.js +2 -0
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +15 -0
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +24 -10
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +3 -2
- package/es/shared/utils/business.js +16 -0
- package/package.json +3 -3
|
@@ -243,6 +243,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
243
243
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../components/form-render").FieldItem) => boolean | void);
|
|
244
244
|
autoExpand: boolean;
|
|
245
245
|
lowCodeReactions: import("../../../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
246
|
+
newLowCodeReactions: import("../../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
|
246
247
|
linebarAutoHidden: boolean;
|
|
247
248
|
labelPlacementOverwrite: boolean;
|
|
248
249
|
bordered: string | boolean;
|
|
@@ -436,9 +437,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
436
437
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
437
438
|
default: () => {};
|
|
438
439
|
};
|
|
440
|
+
keepShow: {
|
|
441
|
+
type: BooleanConstructor;
|
|
442
|
+
default: boolean;
|
|
443
|
+
};
|
|
439
444
|
}>, {
|
|
440
|
-
readonly NEllipsis: any;
|
|
441
445
|
readonly NTooltip: any;
|
|
446
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
447
|
+
style: ObjectConstructor;
|
|
448
|
+
tooltip: ObjectConstructor;
|
|
449
|
+
keepShow: BooleanConstructor;
|
|
450
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
451
|
+
style: ObjectConstructor;
|
|
452
|
+
tooltip: ObjectConstructor;
|
|
453
|
+
keepShow: BooleanConstructor;
|
|
454
|
+
}>> & Readonly<{}>, {
|
|
455
|
+
keepShow: boolean;
|
|
456
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
442
457
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
443
458
|
content: {
|
|
444
459
|
type: (NumberConstructor | StringConstructor)[];
|
|
@@ -451,9 +466,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
451
466
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
452
467
|
default: () => {};
|
|
453
468
|
};
|
|
469
|
+
keepShow: {
|
|
470
|
+
type: BooleanConstructor;
|
|
471
|
+
default: boolean;
|
|
472
|
+
};
|
|
454
473
|
}>> & Readonly<{}>, {
|
|
455
474
|
content: string | number;
|
|
456
475
|
contentStyle: import("vue").CSSProperties;
|
|
476
|
+
keepShow: boolean;
|
|
457
477
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
458
478
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
459
479
|
content: {
|
|
@@ -489,9 +509,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
489
509
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
490
510
|
default: () => {};
|
|
491
511
|
};
|
|
512
|
+
keepShow: {
|
|
513
|
+
type: BooleanConstructor;
|
|
514
|
+
default: boolean;
|
|
515
|
+
};
|
|
492
516
|
}>, {
|
|
493
|
-
readonly NEllipsis: any;
|
|
494
517
|
readonly NTooltip: any;
|
|
518
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
519
|
+
style: ObjectConstructor;
|
|
520
|
+
tooltip: ObjectConstructor;
|
|
521
|
+
keepShow: BooleanConstructor;
|
|
522
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
523
|
+
style: ObjectConstructor;
|
|
524
|
+
tooltip: ObjectConstructor;
|
|
525
|
+
keepShow: BooleanConstructor;
|
|
526
|
+
}>> & Readonly<{}>, {
|
|
527
|
+
keepShow: boolean;
|
|
528
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
495
529
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
496
530
|
content: {
|
|
497
531
|
type: (NumberConstructor | StringConstructor)[];
|
|
@@ -504,9 +538,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
504
538
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
505
539
|
default: () => {};
|
|
506
540
|
};
|
|
541
|
+
keepShow: {
|
|
542
|
+
type: BooleanConstructor;
|
|
543
|
+
default: boolean;
|
|
544
|
+
};
|
|
507
545
|
}>> & Readonly<{}>, {
|
|
508
546
|
content: string | number;
|
|
509
547
|
contentStyle: import("vue").CSSProperties;
|
|
548
|
+
keepShow: boolean;
|
|
510
549
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
511
550
|
readonly SlotRender: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
512
551
|
renderer: {
|
|
@@ -1195,6 +1234,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1195
1234
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../components/form-render").FieldItem) => boolean | void);
|
|
1196
1235
|
autoExpand: boolean;
|
|
1197
1236
|
lowCodeReactions: import("../../../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
1237
|
+
newLowCodeReactions: import("../../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
|
1198
1238
|
linebarAutoHidden: boolean;
|
|
1199
1239
|
labelPlacementOverwrite: boolean;
|
|
1200
1240
|
bordered: string | boolean;
|
|
@@ -627,6 +627,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
627
627
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
628
628
|
autoExpand: boolean;
|
|
629
629
|
lowCodeReactions: import("../../../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
630
|
+
newLowCodeReactions: import("../../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
|
630
631
|
linebarAutoHidden: boolean;
|
|
631
632
|
labelPlacementOverwrite: boolean;
|
|
632
633
|
bordered: string | boolean;
|
|
@@ -405,7 +405,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
|
405
405
|
beforeCloseFn: () => Promise<unknown>;
|
|
406
406
|
cancel: () => Promise<void>;
|
|
407
407
|
getScaleData: () => any;
|
|
408
|
-
batchInjectFormNew: (data: import("../../shared/types").AnyObject, skipValid?: boolean) => Promise<
|
|
408
|
+
batchInjectFormNew: (data: import("../../shared/types").AnyObject, skipValid?: boolean) => Promise<boolean>;
|
|
409
409
|
readonly isCollection: (e: string) => boolean;
|
|
410
410
|
NoData: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
411
411
|
noDataTip: {
|
|
@@ -404,7 +404,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
404
404
|
beforeCloseFn: () => Promise<unknown>;
|
|
405
405
|
cancel: () => Promise<void>;
|
|
406
406
|
getScaleData: () => any;
|
|
407
|
-
batchInjectFormNew: (data: AnyObject, skipValid?: boolean) => Promise<
|
|
407
|
+
batchInjectFormNew: (data: AnyObject, skipValid?: boolean) => Promise<boolean>;
|
|
408
408
|
readonly isCollection: (e: string) => boolean;
|
|
409
409
|
NoData: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
410
410
|
noDataTip: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i18n } from '../../../_virtual/_virtual_i18n-methods.js';
|
|
2
|
-
import { defineComponent, reactive, ref, watch, nextTick, openBlock, createElementBlock, normalizeClass, unref, Fragment, createBlock, mergeProps, createCommentVNode, createElementVNode, createVNode, withCtx, renderList, toDisplayString, createTextVNode, resolveDynamicComponent, renderSlot } from 'vue';
|
|
2
|
+
import { defineComponent, reactive, ref, watch, nextTick, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, Fragment, createBlock, mergeProps, createCommentVNode, createElementVNode, createVNode, withCtx, renderList, toDisplayString, createTextVNode, resolveDynamicComponent, renderSlot } from 'vue';
|
|
3
3
|
import useNoData from './hooks/use-noData.js';
|
|
4
4
|
import { ScaleViewProps } from './hooks/scaleview-props.js';
|
|
5
5
|
import { getScaleViewState } from './hooks/scaleview-state.js';
|
|
@@ -219,12 +219,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
219
219
|
};
|
|
220
220
|
const batchInjectFormNew = async (data, skipValid = false) => {
|
|
221
221
|
window._beforeCloseFn = null;
|
|
222
|
-
await batchInjectForm(data, skipValid);
|
|
222
|
+
const batchStatus = await batchInjectForm(data, skipValid);
|
|
223
223
|
if (!skipValid || !props.closeConfirm)
|
|
224
|
-
return;
|
|
224
|
+
return batchStatus;
|
|
225
225
|
formChecker.setInitialSnapshot(state.form);
|
|
226
226
|
window._beforeCloseFn = beforeCloseFn;
|
|
227
|
+
return batchStatus;
|
|
227
228
|
};
|
|
229
|
+
onUnmounted(() => {
|
|
230
|
+
if (window._beforeCloseFn) {
|
|
231
|
+
window._beforeCloseFn = null;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
228
234
|
__expose({
|
|
229
235
|
getScaleData,
|
|
230
236
|
onSubmitForm,
|
|
@@ -13,16 +13,17 @@ const useEvent = (props, state) => {
|
|
|
13
13
|
};
|
|
14
14
|
const handleLogicList = (formItem, formArray) => {
|
|
15
15
|
const { seq } = formItem;
|
|
16
|
-
|
|
16
|
+
const list = formArray.map((item2) => {
|
|
17
17
|
if (item2.seq > seq && item2.isShow && item2.__isLogic__)
|
|
18
18
|
return item2;
|
|
19
19
|
return false;
|
|
20
20
|
});
|
|
21
21
|
let nextItemMax = 0;
|
|
22
|
-
|
|
22
|
+
const len = list.length;
|
|
23
|
+
let i = 0, item;
|
|
23
24
|
for (; i < len; i++) {
|
|
24
25
|
item = list[i];
|
|
25
|
-
|
|
26
|
+
const curVal = state.form[formKey(item)];
|
|
26
27
|
if (!curVal)
|
|
27
28
|
continue;
|
|
28
29
|
if (Array.isArray(curVal)) {
|
|
@@ -83,7 +84,7 @@ const useEvent = (props, state) => {
|
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
86
|
} else if (nextLogic.next_logic == "uncondition") {
|
|
86
|
-
|
|
87
|
+
const res = vexutilsExpand.isEmpty(choiceValue);
|
|
87
88
|
formItem.__isLogic__ = !res;
|
|
88
89
|
formItem.__lastSeq__ = seq + 1;
|
|
89
90
|
formArray.forEach((item) => {
|
|
@@ -99,27 +100,60 @@ const useEvent = (props, state) => {
|
|
|
99
100
|
});
|
|
100
101
|
}
|
|
101
102
|
};
|
|
103
|
+
const processFieldValue = (value, isNumberType) => {
|
|
104
|
+
const defaultValue = isNumberType ? null : "/";
|
|
105
|
+
if (value == null || value === "") {
|
|
106
|
+
return defaultValue;
|
|
107
|
+
}
|
|
108
|
+
if (isNumberType) {
|
|
109
|
+
if (typeof value !== "number" && isNaN(+value)) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
return +value;
|
|
113
|
+
}
|
|
114
|
+
return value;
|
|
115
|
+
};
|
|
116
|
+
const createFormElementMap = (formArray) => {
|
|
117
|
+
const elementMap = /* @__PURE__ */ new Map();
|
|
118
|
+
formArray.forEach((element) => {
|
|
119
|
+
if (element.seq != null) {
|
|
120
|
+
elementMap.set(element.seq, element);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
return elementMap;
|
|
124
|
+
};
|
|
125
|
+
const processRelationFieldList = (dataList, relationField, isNumberType) => {
|
|
126
|
+
return dataList.map((dataItem) => processFieldValue(dataItem[relationField], isNumberType)).filter(Boolean) || [];
|
|
127
|
+
};
|
|
102
128
|
const handleDynamicDataRelation = (list, formItem, formArray) => {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
if (!targetSource.target_id)
|
|
107
|
-
return;
|
|
108
|
-
let { relationParam = [] } = targetSource;
|
|
109
|
-
if (!relationParam.length)
|
|
129
|
+
var _a;
|
|
130
|
+
const { targetSource } = formItem;
|
|
131
|
+
if (!targetSource || !Object.keys(targetSource).length || !targetSource.target_id || !((_a = targetSource.relationParam) == null ? void 0 : _a.length)) {
|
|
110
132
|
return;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
133
|
+
}
|
|
134
|
+
const { relationParam } = targetSource;
|
|
135
|
+
const formElementMap = createFormElementMap(formArray);
|
|
136
|
+
const len = relationParam.length;
|
|
137
|
+
let i = 0, item;
|
|
138
|
+
for (; i < len; i++) {
|
|
139
|
+
item = relationParam[i];
|
|
140
|
+
const { relationElement, relationField } = item;
|
|
141
|
+
if (relationElement == null || !relationField)
|
|
142
|
+
continue;
|
|
143
|
+
const targetElement = formElementMap.get(item.relationElement);
|
|
144
|
+
if (!targetElement)
|
|
145
|
+
continue;
|
|
146
|
+
const { val_key: formKey2, valueType } = targetElement;
|
|
147
|
+
const isNumberType = valueType === "number";
|
|
148
|
+
if (!formKey2)
|
|
149
|
+
continue;
|
|
150
|
+
if (!list.length) {
|
|
151
|
+
state.form[formKey2] = null;
|
|
152
|
+
continue;
|
|
121
153
|
}
|
|
122
|
-
|
|
154
|
+
const relationFieldList = processRelationFieldList(list, item.relationField, isNumberType);
|
|
155
|
+
state.form[formKey2] = relationFieldList.length > 0 ? relationFieldList.join(",") : null;
|
|
156
|
+
}
|
|
123
157
|
};
|
|
124
158
|
return {
|
|
125
159
|
nextLogicEvent,
|
|
@@ -114,6 +114,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
|
|
|
114
114
|
type: BooleanConstructor;
|
|
115
115
|
default: boolean;
|
|
116
116
|
};
|
|
117
|
+
onlyCheckChildNode: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
117
121
|
itemKey: {
|
|
118
122
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
|
|
119
123
|
default: undefined;
|
|
@@ -241,6 +245,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
|
|
|
241
245
|
type: BooleanConstructor;
|
|
242
246
|
default: boolean;
|
|
243
247
|
};
|
|
248
|
+
onlyCheckChildNode: {
|
|
249
|
+
type: BooleanConstructor;
|
|
250
|
+
default: boolean;
|
|
251
|
+
};
|
|
244
252
|
itemKey: {
|
|
245
253
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
|
|
246
254
|
default: undefined;
|
|
@@ -1385,6 +1393,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
|
|
|
1385
1393
|
type: BooleanConstructor;
|
|
1386
1394
|
default: boolean;
|
|
1387
1395
|
};
|
|
1396
|
+
onlyCheckChildNode: {
|
|
1397
|
+
type: BooleanConstructor;
|
|
1398
|
+
};
|
|
1388
1399
|
itemKey: {
|
|
1389
1400
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
|
|
1390
1401
|
default: undefined;
|
|
@@ -1471,6 +1482,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
|
|
|
1471
1482
|
type: BooleanConstructor;
|
|
1472
1483
|
default: boolean;
|
|
1473
1484
|
};
|
|
1485
|
+
onlyCheckChildNode: {
|
|
1486
|
+
type: BooleanConstructor;
|
|
1487
|
+
};
|
|
1474
1488
|
itemKey: {
|
|
1475
1489
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
|
|
1476
1490
|
default: undefined;
|
|
@@ -1627,6 +1641,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
|
|
|
1627
1641
|
node: import("naive-ui").TreeOption | null;
|
|
1628
1642
|
action: "check" | "uncheck";
|
|
1629
1643
|
}) => void;
|
|
1644
|
+
updateTreeSelected: (keys: (string | number)[], _: any, meta: {
|
|
1645
|
+
node: import("naive-ui").TreeOption | null;
|
|
1646
|
+
action: "check" | "uncheck";
|
|
1647
|
+
}) => void;
|
|
1630
1648
|
clearAll: () => void;
|
|
1631
1649
|
updateChecked: (key: string | number, checked: boolean) => void;
|
|
1632
1650
|
notifyCheck: (key: string | number, isChecked?: boolean) => void;
|
|
@@ -2038,6 +2056,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
|
|
|
2038
2056
|
type: BooleanConstructor;
|
|
2039
2057
|
default: boolean;
|
|
2040
2058
|
};
|
|
2059
|
+
onlyCheckChildNode: {
|
|
2060
|
+
type: BooleanConstructor;
|
|
2061
|
+
};
|
|
2041
2062
|
itemKey: {
|
|
2042
2063
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
|
|
2043
2064
|
default: undefined;
|
|
@@ -2067,6 +2088,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
|
|
|
2067
2088
|
forceShowSelectAll: boolean;
|
|
2068
2089
|
onlyForwardCascade: boolean;
|
|
2069
2090
|
hideLeaf: boolean;
|
|
2091
|
+
onlyCheckChildNode: boolean;
|
|
2070
2092
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number;
|
|
2071
2093
|
showTagHover: boolean;
|
|
2072
2094
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -2185,6 +2207,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
|
|
|
2185
2207
|
type: BooleanConstructor;
|
|
2186
2208
|
default: boolean;
|
|
2187
2209
|
};
|
|
2210
|
+
onlyCheckChildNode: {
|
|
2211
|
+
type: BooleanConstructor;
|
|
2212
|
+
default: boolean;
|
|
2213
|
+
};
|
|
2188
2214
|
itemKey: {
|
|
2189
2215
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
|
|
2190
2216
|
default: undefined;
|
|
@@ -2316,6 +2342,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
|
|
|
2316
2342
|
type: BooleanConstructor;
|
|
2317
2343
|
default: boolean;
|
|
2318
2344
|
};
|
|
2345
|
+
onlyCheckChildNode: {
|
|
2346
|
+
type: BooleanConstructor;
|
|
2347
|
+
default: boolean;
|
|
2348
|
+
};
|
|
2319
2349
|
itemKey: {
|
|
2320
2350
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
|
|
2321
2351
|
default: undefined;
|
|
@@ -2365,6 +2395,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
|
|
|
2365
2395
|
forceShowSelectAll: boolean;
|
|
2366
2396
|
onlyForwardCascade: boolean;
|
|
2367
2397
|
hideLeaf: boolean;
|
|
2398
|
+
onlyCheckChildNode: boolean;
|
|
2368
2399
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number;
|
|
2369
2400
|
showTagHover: boolean;
|
|
2370
2401
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -81,6 +81,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
81
81
|
type: BooleanConstructor;
|
|
82
82
|
default: boolean;
|
|
83
83
|
};
|
|
84
|
+
onlyCheckChildNode: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
};
|
|
84
87
|
itemKey: {
|
|
85
88
|
type: PropType<(node: ITreeOption) => IKey>;
|
|
86
89
|
default: undefined;
|
|
@@ -164,6 +167,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
164
167
|
type: BooleanConstructor;
|
|
165
168
|
default: boolean;
|
|
166
169
|
};
|
|
170
|
+
onlyCheckChildNode: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
};
|
|
167
173
|
itemKey: {
|
|
168
174
|
type: PropType<(node: ITreeOption) => IKey>;
|
|
169
175
|
default: undefined;
|
|
@@ -320,6 +326,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
320
326
|
node: TreeOption | null;
|
|
321
327
|
action: 'check' | 'uncheck';
|
|
322
328
|
}) => void;
|
|
329
|
+
updateTreeSelected: (keys: Array<IKey>, _: any, meta: {
|
|
330
|
+
node: TreeOption | null;
|
|
331
|
+
action: 'check' | 'uncheck';
|
|
332
|
+
}) => void;
|
|
323
333
|
clearAll: () => void;
|
|
324
334
|
updateChecked: (key: IKey, checked: boolean) => void;
|
|
325
335
|
notifyCheck: (key: IKey, isChecked?: boolean) => void;
|
|
@@ -728,6 +738,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
728
738
|
type: BooleanConstructor;
|
|
729
739
|
default: boolean;
|
|
730
740
|
};
|
|
741
|
+
onlyCheckChildNode: {
|
|
742
|
+
type: BooleanConstructor;
|
|
743
|
+
};
|
|
731
744
|
itemKey: {
|
|
732
745
|
type: PropType<(node: ITreeOption) => IKey>;
|
|
733
746
|
default: undefined;
|
|
@@ -754,6 +767,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
754
767
|
forceShowSelectAll: boolean;
|
|
755
768
|
onlyForwardCascade: boolean;
|
|
756
769
|
hideLeaf: boolean;
|
|
770
|
+
onlyCheckChildNode: boolean;
|
|
757
771
|
itemKey: (node: ITreeOption) => IKey;
|
|
758
772
|
showTagHover: boolean;
|
|
759
773
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -99,6 +99,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
99
|
type: Boolean,
|
|
100
100
|
default: false
|
|
101
101
|
},
|
|
102
|
+
onlyCheckChildNode: {
|
|
103
|
+
type: Boolean
|
|
104
|
+
},
|
|
102
105
|
itemKey: {
|
|
103
106
|
type: Function,
|
|
104
107
|
default: void 0
|
|
@@ -144,7 +147,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
144
147
|
return treeMap.get(key);
|
|
145
148
|
}).filter((tag) => !props.uncheckableField || props.uncheckableField && !tag.originItem[props.uncheckableField]);
|
|
146
149
|
if (isRemote.value) {
|
|
147
|
-
|
|
150
|
+
const mergeTags = [...remoteDefaultList.value, ...re];
|
|
151
|
+
const seen = /* @__PURE__ */ new Set();
|
|
152
|
+
const unique = mergeTags.filter((item) => {
|
|
153
|
+
const k = item.key;
|
|
154
|
+
if (seen.has(k))
|
|
155
|
+
return false;
|
|
156
|
+
seen.add(k);
|
|
157
|
+
return true;
|
|
158
|
+
});
|
|
159
|
+
return unique;
|
|
148
160
|
}
|
|
149
161
|
return re;
|
|
150
162
|
});
|
|
@@ -183,6 +195,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
183
195
|
label: tag.name
|
|
184
196
|
};
|
|
185
197
|
});
|
|
198
|
+
checkedKeys.value = props.defaultList.map((v) => v.key).filter((key) => treeMap.has(key));
|
|
199
|
+
return;
|
|
186
200
|
}
|
|
187
201
|
checkedKeys.value = props.defaultList.filter((k) => treeMap.has(k));
|
|
188
202
|
}
|
|
@@ -210,6 +224,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
210
224
|
});
|
|
211
225
|
curNode.children = tempData.treeItems;
|
|
212
226
|
}
|
|
227
|
+
const defaultKeys = props.defaultList.map((v) => v.key).filter((key) => treeMap.has(key));
|
|
228
|
+
if (defaultKeys == null ? void 0 : defaultKeys.length) {
|
|
229
|
+
checkedKeys.value = [.../* @__PURE__ */ new Set([...checkedKeys.value, ...defaultKeys])];
|
|
230
|
+
}
|
|
213
231
|
return curNode;
|
|
214
232
|
}
|
|
215
233
|
return node;
|
|
@@ -296,7 +314,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
296
314
|
children: void 0,
|
|
297
315
|
originItem: item,
|
|
298
316
|
leaf: isLeaf,
|
|
299
|
-
disabled: disabled || item.disabled
|
|
317
|
+
disabled: disabled || item.disabled,
|
|
318
|
+
checkboxDisabled: false
|
|
300
319
|
};
|
|
301
320
|
if (isRemote.value)
|
|
302
321
|
tree.isLeaf = isLeaf;
|
|
@@ -313,6 +332,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
313
332
|
}
|
|
314
333
|
} else {
|
|
315
334
|
if (children == null ? void 0 : children.length) {
|
|
335
|
+
if (props.onlyCheckChildNode)
|
|
336
|
+
tree.checkboxDisabled = true;
|
|
316
337
|
const childData = transformData(children, tree, visitor);
|
|
317
338
|
if (childData.treeItems.length) {
|
|
318
339
|
tree.children = childData.treeItems;
|
|
@@ -377,7 +398,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
377
398
|
...props.searchFilter
|
|
378
399
|
};
|
|
379
400
|
const customTitles = searchFilter.customTitles || [""];
|
|
380
|
-
const values = [childList, parentList];
|
|
401
|
+
const values = props.onlyCheckChildNode ? [childList] : [childList, parentList];
|
|
381
402
|
searchData.value = customTitles.map((title, i) => ({
|
|
382
403
|
title,
|
|
383
404
|
data: values[i] || []
|
|
@@ -481,6 +502,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
481
502
|
checkedAll.value = false;
|
|
482
503
|
}
|
|
483
504
|
}
|
|
505
|
+
function updateTreeSelected(keys, _, meta) {
|
|
506
|
+
var _a;
|
|
507
|
+
if ((_a = meta.node) == null ? void 0 : _a.checkboxDisabled)
|
|
508
|
+
return;
|
|
509
|
+
checkedKeys.value = keys;
|
|
510
|
+
}
|
|
484
511
|
function clearAll() {
|
|
485
512
|
checkedAll.value = false;
|
|
486
513
|
checkedKeys.value = [];
|
|
@@ -656,11 +683,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
656
683
|
})]), __props.multiple && !isSearch.value && treeData.value.length > 0 ? withDirectives((openBlock(), createBlock(unref(NCheckbox), {
|
|
657
684
|
key: 0,
|
|
658
685
|
checked: checkedAll.value,
|
|
659
|
-
"onUpdate:checked": [_cache[1] || (_cache[1] = ($event) => checkedAll.value = $event), checkedAllChange]
|
|
686
|
+
"onUpdate:checked": [_cache[1] || (_cache[1] = ($event) => checkedAll.value = $event), checkedAllChange],
|
|
687
|
+
disabled: __props.onlyCheckChildNode
|
|
660
688
|
}, {
|
|
661
|
-
default: withCtx(() => [..._cache[
|
|
689
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
|
|
662
690
|
_: 1
|
|
663
|
-
}, 8, ["checked"])), [[vShow, __props.forceShowSelectAll]]) : createCommentVNode("v-if", true), createCommentVNode(" \u540C\u65F6\u517C\u5BB9\u9009\u4EBA\u548C\u9009\u90E8\u95E8 "), isSearch.value && isShowGroupList.value ? (openBlock(), createBlock(SearchGroupList, {
|
|
691
|
+
}, 8, ["checked", "disabled"])), [[vShow, __props.forceShowSelectAll]]) : createCommentVNode("v-if", true), createCommentVNode(" \u540C\u65F6\u517C\u5BB9\u9009\u4EBA\u548C\u9009\u90E8\u95E8 "), isSearch.value && isShowGroupList.value ? (openBlock(), createBlock(SearchGroupList, {
|
|
664
692
|
key: 1,
|
|
665
693
|
class: "c-select-person__hide",
|
|
666
694
|
type: showType.value,
|
|
@@ -672,7 +700,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
672
700
|
"expanded-keys": expandedKeys.value,
|
|
673
701
|
"onUpdate:expandedKeys": _cache[2] || (_cache[2] = ($event) => expandedKeys.value = $event),
|
|
674
702
|
"selected-keys": checkedKeys.value,
|
|
675
|
-
"onUpdate:selectedKeys": _cache[3] || (_cache[3] = ($event) => checkedKeys.value = $event),
|
|
676
703
|
style: {
|
|
677
704
|
"height": "100%"
|
|
678
705
|
},
|
|
@@ -688,6 +715,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
688
715
|
}, __props.treeSetting, {
|
|
689
716
|
class: "c-select-person__scroll",
|
|
690
717
|
"onUpdate:checkedKeys": updateTreeChecked,
|
|
718
|
+
"onUpdate:selectedKeys": updateTreeSelected,
|
|
691
719
|
onLoad: queryLoadChildNode
|
|
692
720
|
}), {
|
|
693
721
|
empty: withCtx(() => [createVNode(unref(DefaultPage), {
|
|
@@ -707,7 +735,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
707
735
|
"margin-bottom": "20px"
|
|
708
736
|
}
|
|
709
737
|
}, {
|
|
710
|
-
default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("span", _hoisted_3, [_cache[
|
|
738
|
+
default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("span", _hoisted_3, [_cache[4] || (_cache[4] = createTextVNode(i18n("10010.1.39", "\u5DF2\u9009\u62E9"), -1)), createElementVNode("span", null, "\uFF1A" + toDisplayString(caculateTagData.value.length), 1)])) : createCommentVNode("v-if", true), __props.showClear ? (openBlock(), createElementBlock("span", {
|
|
711
739
|
key: 1,
|
|
712
740
|
class: "c-select-person__clear-btn",
|
|
713
741
|
onClick: clearAll
|
|
@@ -122,6 +122,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
122
122
|
type: BooleanConstructor;
|
|
123
123
|
default: boolean;
|
|
124
124
|
};
|
|
125
|
+
onlyCheckChildNode: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
125
129
|
itemKey: {
|
|
126
130
|
type: PropType<(node: ITreeOption) => IKey>;
|
|
127
131
|
default: undefined;
|
|
@@ -236,6 +240,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
236
240
|
type: BooleanConstructor;
|
|
237
241
|
default: boolean;
|
|
238
242
|
};
|
|
243
|
+
onlyCheckChildNode: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
239
247
|
itemKey: {
|
|
240
248
|
type: PropType<(node: ITreeOption) => IKey>;
|
|
241
249
|
default: undefined;
|
|
@@ -1380,6 +1388,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1380
1388
|
type: BooleanConstructor;
|
|
1381
1389
|
default: boolean;
|
|
1382
1390
|
};
|
|
1391
|
+
onlyCheckChildNode: {
|
|
1392
|
+
type: BooleanConstructor;
|
|
1393
|
+
};
|
|
1383
1394
|
itemKey: {
|
|
1384
1395
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
1385
1396
|
default: undefined;
|
|
@@ -1466,6 +1477,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1466
1477
|
type: BooleanConstructor;
|
|
1467
1478
|
default: boolean;
|
|
1468
1479
|
};
|
|
1480
|
+
onlyCheckChildNode: {
|
|
1481
|
+
type: BooleanConstructor;
|
|
1482
|
+
};
|
|
1469
1483
|
itemKey: {
|
|
1470
1484
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
1471
1485
|
default: undefined;
|
|
@@ -1622,6 +1636,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1622
1636
|
node: import("naive-ui").TreeOption | null;
|
|
1623
1637
|
action: "check" | "uncheck";
|
|
1624
1638
|
}) => void;
|
|
1639
|
+
updateTreeSelected: (keys: (string | number)[], _: any, meta: {
|
|
1640
|
+
node: import("naive-ui").TreeOption | null;
|
|
1641
|
+
action: "check" | "uncheck";
|
|
1642
|
+
}) => void;
|
|
1625
1643
|
clearAll: () => void;
|
|
1626
1644
|
updateChecked: (key: string | number, checked: boolean) => void;
|
|
1627
1645
|
notifyCheck: (key: string | number, isChecked?: boolean) => void;
|
|
@@ -2033,6 +2051,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2033
2051
|
type: BooleanConstructor;
|
|
2034
2052
|
default: boolean;
|
|
2035
2053
|
};
|
|
2054
|
+
onlyCheckChildNode: {
|
|
2055
|
+
type: BooleanConstructor;
|
|
2056
|
+
};
|
|
2036
2057
|
itemKey: {
|
|
2037
2058
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
2038
2059
|
default: undefined;
|
|
@@ -2062,6 +2083,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2062
2083
|
forceShowSelectAll: boolean;
|
|
2063
2084
|
onlyForwardCascade: boolean;
|
|
2064
2085
|
hideLeaf: boolean;
|
|
2086
|
+
onlyCheckChildNode: boolean;
|
|
2065
2087
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
|
|
2066
2088
|
showTagHover: boolean;
|
|
2067
2089
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -2167,6 +2189,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2167
2189
|
type: BooleanConstructor;
|
|
2168
2190
|
default: boolean;
|
|
2169
2191
|
};
|
|
2192
|
+
onlyCheckChildNode: {
|
|
2193
|
+
type: BooleanConstructor;
|
|
2194
|
+
default: boolean;
|
|
2195
|
+
};
|
|
2170
2196
|
itemKey: {
|
|
2171
2197
|
type: PropType<(node: ITreeOption) => IKey>;
|
|
2172
2198
|
default: undefined;
|
|
@@ -2285,6 +2311,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2285
2311
|
type: BooleanConstructor;
|
|
2286
2312
|
default: boolean;
|
|
2287
2313
|
};
|
|
2314
|
+
onlyCheckChildNode: {
|
|
2315
|
+
type: BooleanConstructor;
|
|
2316
|
+
default: boolean;
|
|
2317
|
+
};
|
|
2288
2318
|
itemKey: {
|
|
2289
2319
|
type: PropType<(node: ITreeOption) => IKey>;
|
|
2290
2320
|
default: undefined;
|
|
@@ -2321,6 +2351,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2321
2351
|
forceShowSelectAll: boolean;
|
|
2322
2352
|
onlyForwardCascade: boolean;
|
|
2323
2353
|
hideLeaf: boolean;
|
|
2354
|
+
onlyCheckChildNode: boolean;
|
|
2324
2355
|
itemKey: (node: ITreeOption) => IKey;
|
|
2325
2356
|
showTagHover: boolean;
|
|
2326
2357
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|