cnhis-design-vue 3.3.2-release.0 → 3.3.2-release.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/audio-sdk/index.d.ts +173 -146
- package/es/components/audio-sdk/src/Index.vue.d.ts +174 -147
- package/es/components/audio-sdk/src/Index.vue2.js +131 -53
- package/es/components/audio-sdk/src/audioSDK.d.ts +29 -26
- package/es/components/audio-sdk/src/audioSDK.js +123 -42
- package/es/components/audio-sdk/src/components/readyCountdown.vue.d.ts +31 -0
- package/es/components/audio-sdk/src/components/readyCountdown.vue.js +6 -0
- package/es/components/audio-sdk/src/components/readyCountdown.vue2.js +46 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +138 -10
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +139 -11
- package/es/components/audio-sdk/src/components/recording.vue2.js +318 -74
- package/es/components/audio-sdk/src/hooks/useChartAudioContext.d.ts +24 -0
- package/es/components/audio-sdk/src/hooks/useChartAudioContext.js +176 -0
- package/es/components/audio-sdk/src/svgs/Close.vue.js +26 -0
- package/es/components/audio-sdk/src/svgs/Continue.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Enlarge.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Pause.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/WaveView.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Zoom.vue.js +27 -0
- package/es/components/audio-sdk/src/types/index.d.ts +42 -0
- package/es/components/audio-sdk/src/types/index.js +10 -0
- package/es/components/audio-sdk/src/utils/recordingModal.d.ts +9 -3
- package/es/components/audio-sdk/src/utils/recordingModal.js +57 -32
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/src/index.vue2.js +30 -18
- package/es/components/big-table/src/BigTable.vue2.js +191 -133
- package/es/components/big-table/src/components/NoData.vue2.js +16 -4
- package/es/components/big-table/src/components/edit-form/edit-date.js +12 -6
- package/es/components/big-table/src/components/edit-form/edit-input.js +8 -2
- package/es/components/big-table/src/components/edit-form/edit-select.js +21 -17
- package/es/components/big-table/src/components/edit-form/edit-time.js +11 -4
- package/es/components/big-table/src/components/input-button.vue2.js +8 -4
- package/es/components/big-table/src/hooks/useNestTable.js +18 -4
- package/es/components/big-table/src/hooks/useTableParse.js +16 -3
- package/es/components/body-select/src/index.vue2.js +24 -4
- package/es/components/button-print/index.d.ts +12 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +12 -4
- package/es/components/button-print/src/ButtonPrint.vue2.js +52 -11
- package/es/components/button-print/src/components/EditFormat.vue2.js +16 -8
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -2
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +104 -49
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +7 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +244 -95
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +5 -2
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +92 -32
- package/es/components/button-print/src/components/Preview.vue.d.ts +5 -2
- package/es/components/button-print/src/components/Preview.vue2.js +14 -4
- package/es/components/button-print/src/utils/dialog.js +26 -8
- package/es/components/button-print/src/utils/print.d.ts +5 -5
- package/es/components/button-print/src/utils/print.js +108 -21
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +8 -2
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +16 -4
- package/es/components/card-reader-sdk-cn/src/henan/index.js +38 -11
- package/es/components/card-render/src/components/index.d.ts +23 -23
- package/es/components/classification/src/components/search-filter/index.vue2.js +24 -10
- package/es/components/classification/src/components/set-classification/index.vue2.js +24 -7
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/classification/src/components/table-modal/index.vue2.js +324 -165
- package/es/components/classification/src/index.vue2.js +261 -69
- package/es/components/default-page/src/constants/index.js +144 -19
- package/es/components/default-page/src/index.vue2.js +8 -2
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +75 -51
- package/es/components/expand-field/src/components/FormItemPerson.vue2.js +46 -38
- package/es/components/expand-field/src/components/PersonModal.vue2.js +62 -50
- package/es/components/expand-field/src/components/form.vue2.js +783 -412
- package/es/components/expand-field/src/index.vue2.js +88 -22
- package/es/components/expand-field/src/utils/constant.js +88 -12
- package/es/components/fabric-chart/src/components/PopupMenu.js +32 -15
- package/es/components/fabric-chart/src/constants/index.js +72 -10
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +18 -4
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +8 -2
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +32 -5
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -2
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +63 -41
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +5 -1
- package/es/components/fabric-chart/src/hooks/useCommon.js +24 -4
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +4 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +19 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +2 -2
- package/es/components/field-editor/src/fields.js +232 -30
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldColor.vue2.js +88 -21
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +32 -16
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +210 -57
- package/es/components/field-set/src/Index.vue2.js +40 -6
- package/es/components/field-set/src/TableStyle.vue2.js +48 -13
- package/es/components/field-set/src/components/condition.vue2.js +26 -10
- package/es/components/field-set/src/components/edit-dialog.vue2.js +148 -68
- package/es/components/field-set/src/components/edit-filter.vue2.js +24 -4
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue2.js +123 -42
- package/es/components/field-set/src/constants/filter.js +328 -42
- package/es/components/field-set/src/constants/index.js +504 -64
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +91 -46
- package/es/components/form-config/src/constants/index.js +80 -11
- package/es/components/form-config/src/hooks/useLocale.js +240 -31
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +8 -4
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +8 -4
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +8 -2
- package/es/components/form-render/src/components/renderer/input.js +3 -2
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +8 -4
- package/es/components/form-render/src/components/renderer/remoteSearch.js +8 -2
- package/es/components/form-render/src/components/renderer/switch.js +24 -4
- package/es/components/form-render/src/components/renderer/textarea.js +5 -4
- package/es/components/form-render/src/utils/schema.js +26 -6
- package/es/components/iho-chat/src/Index.vue2.js +42 -38
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +108 -33
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +132 -90
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +110 -48
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +40 -20
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +55 -23
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +77 -45
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +256 -208
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +306 -208
- package/es/components/iho-chat/src/components/ContextMenu.js +50 -9
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +16 -4
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +8 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +104 -18
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +67 -12
- package/es/components/iho-chat/src/components/SelectLabel.vue2.js +47 -43
- package/es/components/iho-chat/src/components/SiderList.vue2.js +68 -38
- package/es/components/iho-chat/src/components/Video.vue2.js +38 -11
- package/es/components/iho-chat/src/hooks/useVideo.js +15 -4
- package/es/components/iho-chat/src/utils/index.js +79 -14
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +8 -2
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +40 -15
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +40 -15
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +50 -20
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +16 -8
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +10 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +42 -15
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +17 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +18 -12
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +144 -25
- package/es/components/keyboard/src/Keyboard.vue2.js +20 -8
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +51 -37
- package/es/components/map/src/Map.vue2.js +8 -4
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +16 -8
- package/es/components/quick-search/src/index.vue2.js +176 -131
- package/es/components/recommend-search/src/components/BaseSearch.js +14 -8
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +28 -8
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +18 -5
- package/es/components/scale-view/src/ScaleView.vue2.js +17 -9
- package/es/components/scale-view/src/components/NoData.vue2.js +16 -4
- package/es/components/scale-view/src/components/formitem/r-cascader.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +24 -6
- package/es/components/scale-view/src/components/formitem/r-input.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-map.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-radio.js +24 -6
- package/es/components/scale-view/src/components/formitem/r-select.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-sign.js +32 -11
- package/es/components/scale-view/src/components/formitem/standard-modal.js +16 -3
- package/es/components/scale-view/src/hooks/scaleview-computed.js +24 -5
- package/es/components/scale-view/src/hooks/scaleview-methods.js +16 -4
- package/es/components/scale-view/src/hooks/scaleview-submit.js +16 -3
- package/es/components/scale-view/src/hooks/scaleview-validate.js +40 -9
- package/es/components/search-cascader/src/SearchCascader.vue2.js +20 -14
- package/es/components/select-label/src/LabelFormContent.vue2.js +53 -21
- package/es/components/select-label/src/SelectLabel.vue2.js +81 -51
- package/es/components/select-label/src/components/label-classify.vue2.js +28 -11
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +18 -5
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +34 -8
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +18 -5
- package/es/components/select-person/src/SelectPerson.vue2.js +214 -141
- package/es/components/select-person/src/SelectPersonType.vue2.js +127 -102
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +9 -2
- package/es/components/select-person/src/index.vue2.js +20 -7
- package/es/components/slider-tree/src/index.vue2.js +16 -3
- package/es/components/table-export-field/index.d.ts +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +187 -113
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +147 -88
- package/es/components/table-export-field/src/index.vue.d.ts +1 -0
- package/es/components/table-export-field/src/index.vue2.js +28 -12
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +32 -5
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +264 -34
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +214 -135
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +16 -3
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +9 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +39 -6
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +18 -5
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +29 -18
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +16 -3
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +8 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +195 -130
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +26 -7
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -6
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +34 -8
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +21 -8
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +8 -4
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +19 -6
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +16 -3
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +24 -10
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1648 -207
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +8 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +16 -3
- package/es/components/table-filter/src/tool/baseOptions.js +144 -19
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +32 -16
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +22 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +8 -4
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +16 -8
- 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/hooks/selectHooks/useSelectAllowModify.js +2 -2
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/audio-sdk/src/components/recording-modal.vue.js +0 -6
- package/es/components/audio-sdk/src/components/recording-modal.vue2.js +0 -40
- package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +0 -4
- 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/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
@@ -2,50 +2,259 @@ import { deepMerge } from '../../../../shared/utils/index.js';
|
|
2
2
|
import { property } from 'lodash-es';
|
3
3
|
import { reactive } from 'vue';
|
4
4
|
|
5
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
|
6
5
|
const formConfigLocale = reactive({
|
7
6
|
materialArea: {
|
8
|
-
areaName: (
|
9
|
-
|
7
|
+
areaName: function() {
|
8
|
+
var _a, _b, _c;
|
9
|
+
try {
|
10
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.1")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.1")) || "\u7269\u6599\u533A";
|
11
|
+
} catch (e) {
|
12
|
+
return "\u7269\u6599\u533A";
|
13
|
+
}
|
14
|
+
}(),
|
15
|
+
createMaterialPlaceholder: function() {
|
16
|
+
var _a, _b, _c;
|
17
|
+
try {
|
18
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.2")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.2")) || "\u8BF7\u9009\u62E9\u989D\u5916\u7269\u6599";
|
19
|
+
} catch (e) {
|
20
|
+
return "\u8BF7\u9009\u62E9\u989D\u5916\u7269\u6599";
|
21
|
+
}
|
22
|
+
}(),
|
10
23
|
toString() {
|
11
24
|
return this.areaName;
|
12
25
|
}
|
13
26
|
},
|
14
27
|
layoutArea: {
|
15
|
-
areaName: (
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
28
|
+
areaName: function() {
|
29
|
+
var _a, _b, _c;
|
30
|
+
try {
|
31
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.3")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.3")) || "\u5E03\u5C40\u533A";
|
32
|
+
} catch (e) {
|
33
|
+
return "\u5E03\u5C40\u533A";
|
34
|
+
}
|
35
|
+
}(),
|
36
|
+
linebreak: function() {
|
37
|
+
var _a, _b, _c;
|
38
|
+
try {
|
39
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.4")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.4")) || "\u5206\u884C\u7B26";
|
40
|
+
} catch (e) {
|
41
|
+
return "\u5206\u884C\u7B26";
|
42
|
+
}
|
43
|
+
}(),
|
44
|
+
linebar: function() {
|
45
|
+
var _a, _b, _c;
|
46
|
+
try {
|
47
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.5")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.5")) || "\u5206\u7EBF\u680F";
|
48
|
+
} catch (e) {
|
49
|
+
return "\u5206\u7EBF\u680F";
|
50
|
+
}
|
51
|
+
}(),
|
52
|
+
createLinebreak: function() {
|
53
|
+
var _a, _b, _c;
|
54
|
+
try {
|
55
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.6")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.6")) || "\u65B0\u5EFA\u5206\u884C\u7B26";
|
56
|
+
} catch (e) {
|
57
|
+
return "\u65B0\u5EFA\u5206\u884C\u7B26";
|
58
|
+
}
|
59
|
+
}(),
|
60
|
+
createLinebar: function() {
|
61
|
+
var _a, _b, _c;
|
62
|
+
try {
|
63
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.7")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.7")) || "\u65B0\u5EFA\u5206\u7EBF\u680F";
|
64
|
+
} catch (e) {
|
65
|
+
return "\u65B0\u5EFA\u5206\u7EBF\u680F";
|
66
|
+
}
|
67
|
+
}(),
|
20
68
|
toString() {
|
21
69
|
return this.areaName;
|
22
70
|
}
|
23
71
|
},
|
24
72
|
configArea: {
|
25
|
-
areaName: (
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
73
|
+
areaName: function() {
|
74
|
+
var _a, _b, _c;
|
75
|
+
try {
|
76
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.8")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.8")) || "\u914D\u7F6E\u533A";
|
77
|
+
} catch (e) {
|
78
|
+
return "\u914D\u7F6E\u533A";
|
79
|
+
}
|
80
|
+
}(),
|
81
|
+
field: function() {
|
82
|
+
var _a, _b, _c;
|
83
|
+
try {
|
84
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.9")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.9")) || "\u5B57\u6BB5";
|
85
|
+
} catch (e) {
|
86
|
+
return "\u5B57\u6BB5";
|
87
|
+
}
|
88
|
+
}(),
|
89
|
+
name: function() {
|
90
|
+
var _a, _b, _c;
|
91
|
+
try {
|
92
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.10")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.10")) || "\u540D\u79F0";
|
93
|
+
} catch (e) {
|
94
|
+
return "\u540D\u79F0";
|
95
|
+
}
|
96
|
+
}(),
|
97
|
+
alias: function() {
|
98
|
+
var _a, _b, _c;
|
99
|
+
try {
|
100
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.11")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.11")) || "\u522B\u540D";
|
101
|
+
} catch (e) {
|
102
|
+
return "\u522B\u540D";
|
103
|
+
}
|
104
|
+
}(),
|
105
|
+
defaultValue: function() {
|
106
|
+
var _a, _b, _c;
|
107
|
+
try {
|
108
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.12")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.12")) || "\u9ED8\u8BA4\u503C";
|
109
|
+
} catch (e) {
|
110
|
+
return "\u9ED8\u8BA4\u503C";
|
111
|
+
}
|
112
|
+
}(),
|
113
|
+
width: function() {
|
114
|
+
var _a, _b, _c;
|
115
|
+
try {
|
116
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.13")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.13")) || "\u5BBD\u5EA6";
|
117
|
+
} catch (e) {
|
118
|
+
return "\u5BBD\u5EA6";
|
119
|
+
}
|
120
|
+
}(),
|
121
|
+
describeText: function() {
|
122
|
+
var _a, _b, _c;
|
123
|
+
try {
|
124
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.14")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.14")) || "\u8BF4\u660E\u6587\u672C";
|
125
|
+
} catch (e) {
|
126
|
+
return "\u8BF4\u660E\u6587\u672C";
|
127
|
+
}
|
128
|
+
}(),
|
129
|
+
tips: function() {
|
130
|
+
var _a, _b, _c;
|
131
|
+
try {
|
132
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.15")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.15")) || "\u95EE\u53F7\u63D0\u793A";
|
133
|
+
} catch (e) {
|
134
|
+
return "\u95EE\u53F7\u63D0\u793A";
|
135
|
+
}
|
136
|
+
}(),
|
137
|
+
isRequired: function() {
|
138
|
+
var _a, _b, _c;
|
139
|
+
try {
|
140
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.16")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.16")) || "\u662F\u5426\u5FC5\u586B";
|
141
|
+
} catch (e) {
|
142
|
+
return "\u662F\u5426\u5FC5\u586B";
|
143
|
+
}
|
144
|
+
}(),
|
145
|
+
isEditable: function() {
|
146
|
+
var _a, _b, _c;
|
147
|
+
try {
|
148
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.17")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.17")) || "\u662F\u5426\u53EF\u7F16\u8F91";
|
149
|
+
} catch (e) {
|
150
|
+
return "\u662F\u5426\u53EF\u7F16\u8F91";
|
151
|
+
}
|
152
|
+
}(),
|
153
|
+
isExpand: function() {
|
154
|
+
var _a, _b, _c;
|
155
|
+
try {
|
156
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.18")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.18")) || "\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00";
|
157
|
+
} catch (e) {
|
158
|
+
return "\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00";
|
159
|
+
}
|
160
|
+
}(),
|
161
|
+
isFoldAble: function() {
|
162
|
+
var _a, _b, _c;
|
163
|
+
try {
|
164
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.19")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.19")) || "\u662F\u5426\u53EF\u6298\u53E0";
|
165
|
+
} catch (e) {
|
166
|
+
return "\u662F\u5426\u53EF\u6298\u53E0";
|
167
|
+
}
|
168
|
+
}(),
|
169
|
+
isShow: function() {
|
170
|
+
var _a, _b, _c;
|
171
|
+
try {
|
172
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.20")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.20")) || "\u662F\u5426\u663E\u793A";
|
173
|
+
} catch (e) {
|
174
|
+
return "\u662F\u5426\u663E\u793A";
|
175
|
+
}
|
176
|
+
}(),
|
177
|
+
modifyOptionTitle: function() {
|
178
|
+
var _a, _b, _c;
|
179
|
+
try {
|
180
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.21")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.21")) || "\u4FEE\u6539\u9009\u9879\u6587\u672C";
|
181
|
+
} catch (e) {
|
182
|
+
return "\u4FEE\u6539\u9009\u9879\u6587\u672C";
|
183
|
+
}
|
184
|
+
}(),
|
185
|
+
modifyOptionName: function() {
|
186
|
+
var _a, _b, _c;
|
187
|
+
try {
|
188
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.22")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.22")) || "\u503C";
|
189
|
+
} catch (e) {
|
190
|
+
return "\u503C";
|
191
|
+
}
|
192
|
+
}(),
|
193
|
+
modifyOptionOriginText: function() {
|
194
|
+
var _a, _b, _c;
|
195
|
+
try {
|
196
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.23")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.23")) || "\u539F\u6587\u672C";
|
197
|
+
} catch (e) {
|
198
|
+
return "\u539F\u6587\u672C";
|
199
|
+
}
|
200
|
+
}(),
|
201
|
+
modifyOptionNewText: function() {
|
202
|
+
var _a, _b, _c;
|
203
|
+
try {
|
204
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.24")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.24")) || "\u8C03\u6574\u540E\u6587\u672C";
|
205
|
+
} catch (e) {
|
206
|
+
return "\u8C03\u6574\u540E\u6587\u672C";
|
207
|
+
}
|
208
|
+
}(),
|
209
|
+
rowsHeight: function() {
|
210
|
+
var _a, _b, _c;
|
211
|
+
try {
|
212
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.25")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.25")) || "\u9AD8\u5EA6";
|
213
|
+
} catch (e) {
|
214
|
+
return "\u9AD8\u5EA6";
|
215
|
+
}
|
216
|
+
}(),
|
217
|
+
rowsTips: function() {
|
218
|
+
var _a, _b, _c;
|
219
|
+
try {
|
220
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.26")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.26")) || "\u9ED8\u8BA4\u4E3A3\u884C\u9AD8\u5EA6\uFF0C\u53EF\u8C03\u6574\u4E3A1-10\u884C\u9AD8\u5EA6";
|
221
|
+
} catch (e) {
|
222
|
+
return "\u9ED8\u8BA4\u4E3A3\u884C\u9AD8\u5EA6\uFF0C\u53EF\u8C03\u6574\u4E3A1-10\u884C\u9AD8\u5EA6";
|
223
|
+
}
|
224
|
+
}(),
|
44
225
|
confirm: "\u662F\u5426\u5728\u4FEE\u6539\u503C\u540E\u5F39\u7A97\u63D0\u9192",
|
45
|
-
positiveBtn: (
|
46
|
-
|
47
|
-
|
48
|
-
|
226
|
+
positiveBtn: function() {
|
227
|
+
var _a, _b, _c;
|
228
|
+
try {
|
229
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
|
230
|
+
} catch (e) {
|
231
|
+
return "\u786E\u5B9A";
|
232
|
+
}
|
233
|
+
}(),
|
234
|
+
negativeBtn: function() {
|
235
|
+
var _a, _b, _c;
|
236
|
+
try {
|
237
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
|
238
|
+
} catch (e) {
|
239
|
+
return "\u53D6\u6D88";
|
240
|
+
}
|
241
|
+
}(),
|
242
|
+
fullLine: function() {
|
243
|
+
var _a, _b, _c;
|
244
|
+
try {
|
245
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.29")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.29")) || "\u6574\u884C";
|
246
|
+
} catch (e) {
|
247
|
+
return "\u6574\u884C";
|
248
|
+
}
|
249
|
+
}(),
|
250
|
+
halfLine: function() {
|
251
|
+
var _a, _b, _c;
|
252
|
+
try {
|
253
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.30")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.30")) || "\u534A\u884C";
|
254
|
+
} catch (e) {
|
255
|
+
return "\u534A\u884C";
|
256
|
+
}
|
257
|
+
}(),
|
49
258
|
toString() {
|
50
259
|
return this.areaName;
|
51
260
|
}
|
package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js
CHANGED
@@ -52,10 +52,14 @@ function useCombination(props) {
|
|
52
52
|
icon: () => createVNode(NIcon, {
|
53
53
|
"component": AddCircleOutline
|
54
54
|
}, null),
|
55
|
-
default: () => {
|
56
|
-
var _a2;
|
57
|
-
|
58
|
-
|
55
|
+
default: () => function() {
|
56
|
+
var _a2, _b, _c;
|
57
|
+
try {
|
58
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.279")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.279")) || "\u65B0\u589E";
|
59
|
+
} catch (e) {
|
60
|
+
return "\u65B0\u589E";
|
61
|
+
}
|
62
|
+
}()
|
59
63
|
})]);
|
60
64
|
}
|
61
65
|
function renderRemoveBtn(attrs, idx) {
|
@@ -161,10 +161,14 @@ const script = /* @__PURE__ */ defineComponent({
|
|
161
161
|
icon: () => createVNode(NIcon, {
|
162
162
|
"component": AddCircleOutline
|
163
163
|
}, null),
|
164
|
-
default: () => {
|
165
|
-
var _a;
|
166
|
-
|
167
|
-
|
164
|
+
default: () => function() {
|
165
|
+
var _a, _b, _c;
|
166
|
+
try {
|
167
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.279")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.279")) || "\u65B0\u589E";
|
168
|
+
} catch (e) {
|
169
|
+
return "\u65B0\u589E";
|
170
|
+
}
|
171
|
+
}()
|
168
172
|
})]), range(currentGroupNum.value).map((_, idx) => createVNode("section", {
|
169
173
|
"class": "form-render__combinationContentJson"
|
170
174
|
}, [createVNode(FormRenderComponent, {
|
@@ -47,7 +47,6 @@ const tableScript = /* @__PURE__ */ defineComponent({
|
|
47
47
|
setup(props, {
|
48
48
|
emit
|
49
49
|
}) {
|
50
|
-
var _a;
|
51
50
|
const {
|
52
51
|
field
|
53
52
|
} = useFormField();
|
@@ -101,7 +100,14 @@ const tableScript = /* @__PURE__ */ defineComponent({
|
|
101
100
|
}
|
102
101
|
}
|
103
102
|
const fieldListWithOperation = fieldList.concat({
|
104
|
-
alias: (
|
103
|
+
alias: function() {
|
104
|
+
var _a, _b, _c;
|
105
|
+
try {
|
106
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.241")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.241")) || "\u64CD\u4F5C";
|
107
|
+
} catch (e) {
|
108
|
+
return "\u64CD\u4F5C";
|
109
|
+
}
|
110
|
+
}(),
|
105
111
|
columnName: "operation",
|
106
112
|
width: 60,
|
107
113
|
isFixed: 2,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, inject, computed, ref, watch, createVNode, createTextVNode, nextTick } from 'vue';
|
2
|
-
import { LifeCycleTypes } from '@formily/core';
|
2
|
+
import { isField, LifeCycleTypes } from '@formily/core';
|
3
3
|
import '../../../index.js';
|
4
4
|
import { InjectionFormGlobalProps } from '../../constants/index.js';
|
5
5
|
import { createInputSlot } from '../../utils/index.js';
|
@@ -44,6 +44,7 @@ const script = /* @__PURE__ */ defineComponent({
|
|
44
44
|
const valueRef = computed({
|
45
45
|
get: () => props.value,
|
46
46
|
set(value) {
|
47
|
+
isField(field.value) && field.value.modify();
|
47
48
|
emit("update:value", value);
|
48
49
|
field.value.notify(LifeCycleTypes.ON_FIELD_INPUT_VALUE_CHANGE);
|
49
50
|
}
|
@@ -53,7 +54,7 @@ const script = /* @__PURE__ */ defineComponent({
|
|
53
54
|
return props.eventType === "change" || ((_a = getFieldItem()) == null ? void 0 : _a.confirmBeforeValueChange);
|
54
55
|
});
|
55
56
|
const key = ref(1);
|
56
|
-
watch([valueRef, () => props.updateKey], (n, o) => {
|
57
|
+
watch([valueRef, () => props.updateKey], ([n], [o]) => {
|
57
58
|
if (n === void 0 && o !== void 0 || isChangeMode.value)
|
58
59
|
key.value++;
|
59
60
|
});
|
@@ -155,10 +155,14 @@ function createComponent(name, Wrapper, Item) {
|
|
155
155
|
"onUpdate:checked": ($event) => selectAllState.value = $event,
|
156
156
|
"indeterminate": indeterminate.value
|
157
157
|
}, {
|
158
|
-
default: () => {
|
159
|
-
var _a;
|
160
|
-
|
161
|
-
|
158
|
+
default: () => function() {
|
159
|
+
var _a, _b, _c;
|
160
|
+
try {
|
161
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.37")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.37")) || "\u5168\u9009";
|
162
|
+
} catch (e) {
|
163
|
+
return "\u5168\u9009";
|
164
|
+
}
|
165
|
+
}()
|
162
166
|
});
|
163
167
|
}
|
164
168
|
const {
|
@@ -212,9 +212,15 @@ const script = /* @__PURE__ */ defineComponent({
|
|
212
212
|
"renderTag": renderTag
|
213
213
|
}, {
|
214
214
|
empty() {
|
215
|
-
var _a;
|
216
215
|
return props.useLoading && loading.value ? createVNode(NSpin, null, null) : createVNode(NEmpty, {
|
217
|
-
"description": (
|
216
|
+
"description": function() {
|
217
|
+
var _a, _b, _c;
|
218
|
+
try {
|
219
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.380")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.380")) || "\u65E0\u6570\u636E";
|
220
|
+
} catch (e) {
|
221
|
+
return "\u65E0\u6570\u636E";
|
222
|
+
}
|
223
|
+
}()
|
218
224
|
}, null);
|
219
225
|
},
|
220
226
|
...slots
|
@@ -76,7 +76,6 @@ const script = /* @__PURE__ */ defineComponent({
|
|
76
76
|
emit("update:value", uncheckedValue.value);
|
77
77
|
}
|
78
78
|
function renderSwitch() {
|
79
|
-
var _a, _b, _c;
|
80
79
|
return [createVNode(NSwitch, mergeProps({
|
81
80
|
"value": valueRef.value,
|
82
81
|
"onUpdate:value": ($event) => valueRef.value = $event
|
@@ -88,9 +87,30 @@ const script = /* @__PURE__ */ defineComponent({
|
|
88
87
|
"onUpdate:show": ($event) => showModal.value = $event,
|
89
88
|
"display-directive": "show",
|
90
89
|
"preset": "dialog",
|
91
|
-
"title": (
|
92
|
-
|
93
|
-
|
90
|
+
"title": function() {
|
91
|
+
var _a, _b, _c;
|
92
|
+
try {
|
93
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4";
|
94
|
+
} catch (e) {
|
95
|
+
return "\u786E\u8BA4";
|
96
|
+
}
|
97
|
+
}(),
|
98
|
+
"positive-text": function() {
|
99
|
+
var _a, _b, _c;
|
100
|
+
try {
|
101
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4";
|
102
|
+
} catch (e) {
|
103
|
+
return "\u786E\u8BA4";
|
104
|
+
}
|
105
|
+
}(),
|
106
|
+
"negative-text": function() {
|
107
|
+
var _a, _b, _c;
|
108
|
+
try {
|
109
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
|
110
|
+
} catch (e) {
|
111
|
+
return "\u53D6\u6D88";
|
112
|
+
}
|
113
|
+
}(),
|
94
114
|
"content": reminderContent.value,
|
95
115
|
"onPositiveClick": onComfirm
|
96
116
|
}, null) : null];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, computed, ref, watch, inject, createVNode, mergeProps } from 'vue';
|
2
|
-
import { LifeCycleTypes } from '@formily/core';
|
2
|
+
import { isField, LifeCycleTypes } from '@formily/core';
|
3
3
|
import '../../../index.js';
|
4
4
|
import { InjectionFormGlobalProps } from '../../constants/index.js';
|
5
5
|
import '../../../../../shared/utils/index.js';
|
@@ -41,8 +41,9 @@ const script = /* @__PURE__ */ defineComponent({
|
|
41
41
|
} = useFormField();
|
42
42
|
const valueRef = computed({
|
43
43
|
get: () => props.value,
|
44
|
-
set: (
|
45
|
-
|
44
|
+
set: (value) => {
|
45
|
+
isField(field.value) && field.value.modify();
|
46
|
+
emit("update:value", value);
|
46
47
|
field.value.notify(LifeCycleTypes.ON_FIELD_INPUT_VALUE_CHANGE);
|
47
48
|
}
|
48
49
|
});
|
@@ -51,7 +52,7 @@ const script = /* @__PURE__ */ defineComponent({
|
|
51
52
|
return props.eventType === "change" || ((_a = getFieldItem()) == null ? void 0 : _a.confirmBeforeValueChange);
|
52
53
|
});
|
53
54
|
const key = ref(1);
|
54
|
-
watch([valueRef, () => props.updateKey], (n, o) => {
|
55
|
+
watch([valueRef, () => props.updateKey], ([n], [o]) => {
|
55
56
|
if (n === void 0 && o !== void 0 || isChangeMode.value)
|
56
57
|
key.value++;
|
57
58
|
});
|
@@ -100,11 +100,31 @@ function assignUpdateValue(props, field) {
|
|
100
100
|
if (confirm && $dialog && !isEmptyValue(oldValue) && oldValue !== value) {
|
101
101
|
try {
|
102
102
|
await new Promise((resolve, reject) => {
|
103
|
-
var _a, _b, _c;
|
104
103
|
const params = {
|
105
|
-
title: (
|
106
|
-
|
107
|
-
|
104
|
+
title: function() {
|
105
|
+
var _a, _b, _c;
|
106
|
+
try {
|
107
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.228")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.228")) || "\u8B66\u544A";
|
108
|
+
} catch (e) {
|
109
|
+
return "\u8B66\u544A";
|
110
|
+
}
|
111
|
+
}(),
|
112
|
+
positiveText: function() {
|
113
|
+
var _a, _b, _c;
|
114
|
+
try {
|
115
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
|
116
|
+
} catch (e) {
|
117
|
+
return "\u786E\u5B9A";
|
118
|
+
}
|
119
|
+
}(),
|
120
|
+
negativeText: function() {
|
121
|
+
var _a, _b, _c;
|
122
|
+
try {
|
123
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
|
124
|
+
} catch (e) {
|
125
|
+
return "\u53D6\u6D88";
|
126
|
+
}
|
127
|
+
}(),
|
108
128
|
onPositiveClick: resolve,
|
109
129
|
onNegativeClick: reject,
|
110
130
|
content: confirmText != null ? confirmText : DEFAULT_TEXT,
|
@@ -113,11 +133,11 @@ function assignUpdateValue(props, field) {
|
|
113
133
|
const _content = params.content;
|
114
134
|
isFunction(_content) && (params.content = () => _content(valueMap));
|
115
135
|
isString(_content) && (params.content = parseEnhanceText(_content).reduce((res, item) => {
|
116
|
-
var
|
136
|
+
var _a;
|
117
137
|
if (item.type === "text")
|
118
138
|
res += item.content;
|
119
139
|
if (item.type === "widget")
|
120
|
-
res += (
|
140
|
+
res += (_a = valueMap[item.content]) != null ? _a : field.value;
|
121
141
|
return res;
|
122
142
|
}, ""));
|
123
143
|
$dialog.warning(params);
|
@@ -108,48 +108,52 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
108
108
|
abstract: "",
|
109
109
|
namespace: "iho-chat__popover"
|
110
110
|
}, {
|
111
|
-
default: withCtx(() => {
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
111
|
+
default: withCtx(() => [loading.value ? (openBlock(), createBlock(unref(NSpin), {
|
112
|
+
key: 0,
|
113
|
+
stroke: "#5585f5"
|
114
|
+
})) : (openBlock(), createElementBlock(Fragment, {
|
115
|
+
key: 1
|
116
|
+
}, [__props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(ChatSearch), createVNode(ChatAdd, {
|
117
|
+
title: function() {
|
118
|
+
var _a, _b, _c;
|
119
|
+
try {
|
120
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.31")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.31")) || "\u53D1\u8D77\u7FA4\u804A";
|
121
|
+
} catch (e) {
|
122
|
+
return "\u53D1\u8D77\u7FA4\u804A";
|
123
|
+
}
|
124
|
+
}(),
|
125
|
+
mode: "create",
|
126
|
+
"default-value": [unref(state).userInfo]
|
127
|
+
}, null, 8, ["default-value"]), createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "toolbar")])])) : createCommentVNode("v-if", true), createVNode(unref(NLayout), {
|
128
|
+
class: "iho-chat__body",
|
129
|
+
"has-sider": ""
|
130
|
+
}, {
|
131
|
+
default: withCtx(() => [createVNode(SiderList), createVNode(unref(NLayoutContent), {
|
132
|
+
class: "chat-content",
|
133
|
+
style: normalizeStyle({
|
134
|
+
"--c-pointer-events": unref(isEnded) ? "none" : "unset",
|
135
|
+
"--c-cursor": unref(isEnded) ? "not-allowed" : "unset"
|
136
|
+
})
|
125
137
|
}, {
|
126
|
-
default: withCtx(() => [createVNode(
|
127
|
-
|
128
|
-
|
129
|
-
"--c-pointer-events": unref(isEnded) ? "none" : "unset",
|
130
|
-
"--c-cursor": unref(isEnded) ? "not-allowed" : "unset"
|
131
|
-
})
|
132
|
-
}, {
|
133
|
-
default: withCtx(() => [createVNode(ChatHeader, null, {
|
134
|
-
header: withCtx(() => [renderSlot(_ctx.$slots, "chatHeader", {
|
135
|
-
session: unref(state).currentSessionItem
|
136
|
-
})]),
|
137
|
-
_: 3
|
138
|
-
}), createVNode(ChatMain), createVNode(ChatFooter, null, {
|
139
|
-
footer: withCtx(() => [renderSlot(_ctx.$slots, "chatFooter", {
|
140
|
-
session: unref(state).currentSessionItem
|
141
|
-
})]),
|
142
|
-
_: 3
|
138
|
+
default: withCtx(() => [createVNode(ChatHeader, null, {
|
139
|
+
header: withCtx(() => [renderSlot(_ctx.$slots, "chatHeader", {
|
140
|
+
session: unref(state).currentSessionItem
|
143
141
|
})]),
|
144
142
|
_: 3
|
145
|
-
},
|
143
|
+
}), createVNode(ChatMain), createVNode(ChatFooter, null, {
|
144
|
+
footer: withCtx(() => [renderSlot(_ctx.$slots, "chatFooter", {
|
145
|
+
session: unref(state).currentSessionItem
|
146
|
+
})]),
|
147
|
+
_: 3
|
148
|
+
})]),
|
146
149
|
_: 3
|
147
|
-
}
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
150
|
+
}, 8, ["style"]), renderSlot(_ctx.$slots, "external")]),
|
151
|
+
_: 3
|
152
|
+
}), unref(state).showVideo ? (openBlock(), createBlock(Video, {
|
153
|
+
key: 1
|
154
|
+
})) : createCommentVNode("v-if", true), unref(state).showMultipleVideo ? (openBlock(), createBlock(MultipleVideo, {
|
155
|
+
key: 2
|
156
|
+
})) : createCommentVNode("v-if", true), createVNode(PersonProfile)], 64))]),
|
153
157
|
_: 3
|
154
158
|
})], 4)) : createCommentVNode("v-if", true);
|
155
159
|
};
|