cnhis-design-vue 3.3.3-release.9 → 3.4.0-beta.1
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/components/big-table/src/hooks/useBatchEditing.js +25 -24
- package/es/components/button-print/index.d.ts +98 -8
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +98 -8
- package/es/components/button-print/src/ButtonPrint.vue2.js +12 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +11 -2
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +3 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +44 -6
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +194 -41
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +29 -2
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +34 -5
- package/es/components/button-print/src/utils/print.d.ts +7 -5
- package/es/components/button-print/src/utils/print.js +183 -7
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/calendar/src/Calendar.vue2.js +15 -5
- package/es/components/callback/src/components/render/popupMaps.d.ts +5 -0
- package/es/components/card-render/src/components/index.d.ts +23 -23
- package/es/components/classification/index.d.ts +258 -5
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +258 -5
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +258 -5
- package/es/components/classification/src/index.vue.d.ts +258 -5
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +6 -2
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
- package/es/components/field-editor/index.d.ts +5 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +5 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +4 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +4 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +2 -1
- package/es/components/field-set/src/components/table-row.vue2.js +21 -6
- package/es/components/field-set/src/constants/index.js +4 -4
- package/es/components/field-set/src/types/index.d.ts +2 -1
- package/es/components/form-config/index.d.ts +63 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +63 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +50 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +4 -4
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +5 -0
- package/es/components/form-config/src/constants/index.d.ts +31 -1
- package/es/components/form-config/src/constants/index.js +150 -1
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -2
- package/es/components/form-config/src/hooks/useConfigurationField.js +53 -6
- package/es/components/form-config/src/hooks/useLocale.d.ts +6 -0
- package/es/components/form-config/src/hooks/useLocale.js +34 -0
- package/es/components/form-config/src/types/index.d.ts +12 -0
- package/es/components/form-render/index.d.ts +5 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +5 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -0
- package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
- package/es/components/form-render/src/components/renderer/date.js +12 -10
- package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +10 -3
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +4 -2
- 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 +9 -3
- package/es/components/form-render/src/constants/index.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +5 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFieldNormalize.js +15 -0
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.d.ts +1 -2
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +897 -97
- package/es/components/iho-chat/src/Index.vue.d.ts +897 -97
- package/es/components/iho-chat/src/Index.vue2.js +14 -6
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +179 -6
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +48 -28
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +61 -5
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +106 -44
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +327 -13
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +18 -17
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +232 -17
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +299 -272
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +49 -3
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +48 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +33 -18
- package/es/components/iho-chat/src/components/ImageLightbox.vue.d.ts +104 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue.js +6 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +307 -0
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +51 -4
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +77 -31
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +223 -98
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +44 -26
- package/es/components/iho-chat/src/components/Video.vue2.js +56 -49
- package/es/components/iho-chat/src/hooks/useData.d.ts +51 -4
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +83 -16
- package/es/components/iho-chat/src/hooks/useVideo.js +439 -43
- package/es/components/iho-chat/src/types/index.d.ts +37 -1
- package/es/components/iho-chat/src/utils/emoji.d.ts +1 -1
- package/es/components/iho-chat/src/utils/emoji.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +2 -0
- package/es/components/iho-chat/src/utils/index.js +14 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +0 -22
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +36 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +2 -1
- package/es/components/info-header/index.d.ts +24 -17
- package/es/components/info-header/src/InfoHeader.vue.d.ts +24 -17
- package/es/components/info-header/src/InfoHeader.vue2.js +2 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +56 -22
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +4 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -17
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -0
- package/es/components/info-header/src/constants/index.d.ts +1 -1
- package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +1 -2
- package/es/components/keyboard/index.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
- package/es/components/keyboard/src/types.d.ts +17 -0
- package/es/components/keyboard/src/types.js +1 -0
- package/es/components/scale-view/index.d.ts +13 -0
- package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
- package/es/components/search-cascader/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +8 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
- package/es/components/shortcut-provider/src/types/index.d.ts +1 -0
- package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/utils/index.js +3 -1
- package/es/components/shortcut-setter/index.d.ts +5 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -0
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +246 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +8 -2
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +104 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +250 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +116 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +43 -4
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +117 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +45 -8
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +233 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +74 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +258 -5
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +15 -6
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -3
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +38 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -3
- package/es/components/table-filter/src/hooks/useAdvanced.js +5 -4
- package/es/components/table-filter/src/tool/baseOptions.js +8 -1
- package/es/components/table-filter/src/types/enums.d.ts +5 -0
- package/es/components/table-filter/src/types/enums.js +6 -1
- package/es/components/time-picker/index.d.ts +36 -4
- package/es/components/time-picker/src/TimePicker.vue.d.ts +36 -4
- package/es/components/time-picker/src/TimePicker.vue2.js +98 -13
- package/es/components/vertify/index.d.ts +1 -0
- package/es/components/vertify/index.js +1 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
- package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
- package/es/components/vertify/src/utils/dialog.d.ts +7 -0
- package/es/components/vertify/src/utils/dialog.js +73 -0
- package/es/components/vertify/src/utils/index.d.ts +11 -0
- package/es/components/vertify/src/utils/index.js +24 -0
- package/es/components/vod-chunk-upload/index.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +19 -2
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +104 -75
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +20 -3
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +6 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +6 -1
- package/es/components/vod-chunk-upload/style/index.css +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/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/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/hooks/useDateTime.d.ts +1 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +3 -3
- package/es/shared/package.json.js +2 -2
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/package.json +5 -5
- 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
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
33
33
|
};
|
34
34
|
encrypted: {
|
35
35
|
type: BooleanConstructor;
|
36
|
-
required:
|
36
|
+
required: false;
|
37
37
|
};
|
38
38
|
}, {
|
39
39
|
props: {
|
@@ -43,10 +43,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
43
43
|
minColumnWidth: string | number;
|
44
44
|
rootSlot: Record<string, AnyFn>;
|
45
45
|
formProps: Partial<FormRenderProps>;
|
46
|
-
encrypted
|
46
|
+
encrypted?: boolean | undefined;
|
47
47
|
};
|
48
48
|
themeOverrides: import("naive-ui").GlobalThemeOverrides;
|
49
|
-
globEmit: ((eventName:
|
49
|
+
globEmit: ((eventName: "openPatientInfo" | "fieldSet" | "update:compact" | "formChange", ...payload: any[]) => void) | undefined;
|
50
50
|
hasForm: import("vue").ComputedRef<boolean>;
|
51
51
|
initialData: import("vue").ComputedRef<Record<string, any>>;
|
52
52
|
onFormChange: (payload: FormChangePayload) => void;
|
@@ -54,17 +54,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
54
54
|
columnNum: import("vue").Ref<number>;
|
55
55
|
infoRef: import("vue").Ref<HTMLElement | undefined>;
|
56
56
|
maxColumnWidth: import("vue").Ref<number>;
|
57
|
-
descriptionWidthList: import("vue").Ref<
|
58
|
-
toString: (radix?: number | undefined) => string;
|
59
|
-
toFixed: (fractionDigits?: number | undefined) => string;
|
60
|
-
toExponential: (fractionDigits?: number | undefined) => string;
|
61
|
-
toPrecision: (precision?: number | undefined) => string;
|
62
|
-
valueOf: () => number;
|
63
|
-
toLocaleString: {
|
64
|
-
(locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): string;
|
65
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined): string;
|
66
|
-
};
|
67
|
-
}[]>;
|
57
|
+
descriptionWidthList: import("vue").Ref<number[]>;
|
68
58
|
updateColumn: () => Promise<void>;
|
69
59
|
timer: any;
|
70
60
|
stopInterval: () => void;
|
@@ -107,7 +97,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
107
97
|
};
|
108
98
|
encrypted: {
|
109
99
|
type: BooleanConstructor;
|
110
|
-
required:
|
100
|
+
required: false;
|
111
101
|
};
|
112
102
|
}, {
|
113
103
|
descriptionStyle: {
|
@@ -296,6 +286,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
296
286
|
feedbackType: "default" | "tooltip";
|
297
287
|
fixMemoLeak: boolean;
|
298
288
|
lazyRender: boolean;
|
289
|
+
linebreaksToTitle: boolean;
|
299
290
|
dialogFn: any;
|
300
291
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
301
292
|
[key: symbol]: any;
|
@@ -631,12 +622,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
631
622
|
};
|
632
623
|
encrypted: {
|
633
624
|
type: BooleanConstructor;
|
634
|
-
required:
|
625
|
+
required: false;
|
635
626
|
};
|
636
627
|
}>>, {
|
637
628
|
infoList: unknown[];
|
638
629
|
labelField: string;
|
639
630
|
valueField: string;
|
631
|
+
encrypted: boolean;
|
640
632
|
descriptionWidthList: unknown[];
|
641
633
|
columnNum: number;
|
642
634
|
inForm: boolean;
|
@@ -853,6 +845,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
853
845
|
type: BooleanConstructor;
|
854
846
|
};
|
855
847
|
lazyRender: BooleanConstructor;
|
848
|
+
linebreaksToTitle: BooleanConstructor;
|
856
849
|
dialogFn: {};
|
857
850
|
}, {
|
858
851
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -1061,6 +1054,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1061
1054
|
type: BooleanConstructor;
|
1062
1055
|
};
|
1063
1056
|
lazyRender: BooleanConstructor;
|
1057
|
+
linebreaksToTitle: BooleanConstructor;
|
1064
1058
|
dialogFn: {};
|
1065
1059
|
}>> & {
|
1066
1060
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
@@ -1238,6 +1232,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1238
1232
|
feedbackType: "default" | "tooltip";
|
1239
1233
|
fixMemoLeak: boolean;
|
1240
1234
|
lazyRender: boolean;
|
1235
|
+
linebreaksToTitle: boolean;
|
1241
1236
|
dialogFn: any;
|
1242
1237
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
1243
1238
|
[key: symbol]: any;
|
@@ -1630,6 +1625,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1630
1625
|
type: BooleanConstructor;
|
1631
1626
|
};
|
1632
1627
|
lazyRender: BooleanConstructor;
|
1628
|
+
linebreaksToTitle: BooleanConstructor;
|
1633
1629
|
dialogFn: {};
|
1634
1630
|
}>> & {
|
1635
1631
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
@@ -1664,6 +1660,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1664
1660
|
feedbackType: "default" | "tooltip";
|
1665
1661
|
fixMemoLeak: boolean;
|
1666
1662
|
lazyRender: boolean;
|
1663
|
+
linebreaksToTitle: boolean;
|
1667
1664
|
nominalAge: boolean;
|
1668
1665
|
operationalFormInit: boolean;
|
1669
1666
|
incrementalRender: boolean;
|
@@ -1701,7 +1698,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1701
1698
|
};
|
1702
1699
|
encrypted: {
|
1703
1700
|
type: BooleanConstructor;
|
1704
|
-
required:
|
1701
|
+
required: false;
|
1705
1702
|
};
|
1706
1703
|
}>>, {
|
1707
1704
|
infoList: unknown[];
|
@@ -1709,5 +1706,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1709
1706
|
valueField: string;
|
1710
1707
|
minColumnWidth: string | number;
|
1711
1708
|
formProps: Record<string, any>;
|
1709
|
+
encrypted: boolean;
|
1712
1710
|
}>;
|
1713
1711
|
export default _default;
|
@@ -260,6 +260,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
260
260
|
type: BooleanConstructor;
|
261
261
|
};
|
262
262
|
lazyRender: BooleanConstructor;
|
263
|
+
linebreaksToTitle: BooleanConstructor;
|
263
264
|
dialogFn: {};
|
264
265
|
}, {
|
265
266
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -468,6 +469,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
468
469
|
type: BooleanConstructor;
|
469
470
|
};
|
470
471
|
lazyRender: BooleanConstructor;
|
472
|
+
linebreaksToTitle: BooleanConstructor;
|
471
473
|
dialogFn: {};
|
472
474
|
}>> & {
|
473
475
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
@@ -645,6 +647,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
645
647
|
feedbackType: "default" | "tooltip";
|
646
648
|
fixMemoLeak: boolean;
|
647
649
|
lazyRender: boolean;
|
650
|
+
linebreaksToTitle: boolean;
|
648
651
|
dialogFn: any;
|
649
652
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
650
653
|
[key: symbol]: any;
|
@@ -1037,6 +1040,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1037
1040
|
type: BooleanConstructor;
|
1038
1041
|
};
|
1039
1042
|
lazyRender: BooleanConstructor;
|
1043
|
+
linebreaksToTitle: BooleanConstructor;
|
1040
1044
|
dialogFn: {};
|
1041
1045
|
}>> & {
|
1042
1046
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
@@ -1071,6 +1075,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1071
1075
|
feedbackType: "default" | "tooltip";
|
1072
1076
|
fixMemoLeak: boolean;
|
1073
1077
|
lazyRender: boolean;
|
1078
|
+
linebreaksToTitle: boolean;
|
1074
1079
|
nominalAge: boolean;
|
1075
1080
|
operationalFormInit: boolean;
|
1076
1081
|
incrementalRender: boolean;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { InjectionKey, Ref } from 'vue';
|
2
2
|
import { FormRenderExpose } from '../../../../components/form-render';
|
3
3
|
export declare const InjectionInfoHeaderFormRef: InjectionKey<Ref<undefined | FormRenderExpose>>;
|
4
|
-
export declare const InjectionInfoHeaderEmit: InjectionKey<(eventName:
|
4
|
+
export declare const InjectionInfoHeaderEmit: InjectionKey<(eventName: 'openPatientInfo' | 'fieldSet' | 'update:compact' | 'formChange', ...payload: any[]) => void>;
|
@@ -92,12 +92,16 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
|
|
92
92
|
popoverRef: import("vue").Ref<any>;
|
93
93
|
englishKeyboardRef: import("vue").Ref<HTMLDivElement | undefined>;
|
94
94
|
keyboardDragRef: import("vue").Ref<HTMLElement | undefined>;
|
95
|
+
numberPanelRef: import("vue").Ref<import("./src/types").KeyboardInstance | undefined>;
|
95
96
|
currentValue: import("vue").Ref<any>;
|
97
|
+
draggableInstance: null;
|
96
98
|
_style: import("vue").ComputedRef<string> | undefined;
|
97
99
|
init: () => import("vue").ComputedRef<string> | undefined;
|
98
100
|
keydown: (key: string | number) => void;
|
99
101
|
onChange: (value: number) => void;
|
100
102
|
select: () => void;
|
103
|
+
setPosition: (position: import("@vueuse/core").Position) => void;
|
104
|
+
getPosition: () => import("@vueuse/core").Position;
|
101
105
|
NPopover: any;
|
102
106
|
NInputNumber: any;
|
103
107
|
NIcon: any;
|
@@ -185,6 +189,7 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
|
|
185
189
|
denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
|
186
190
|
keyboardRef: import("vue").Ref<HTMLElement | null>;
|
187
191
|
inputRef: any;
|
192
|
+
draggableInstance: null;
|
188
193
|
style: import("vue").ComputedRef<string> | undefined;
|
189
194
|
init: () => import("vue").ComputedRef<string> | undefined;
|
190
195
|
setFocus: () => Promise<void>;
|
@@ -196,6 +201,9 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
|
|
196
201
|
calculateFraction: () => void;
|
197
202
|
setInputStatus: (valueRef: import("vue").Ref<string>, statusRef: import("vue").Ref<string>, isInteger?: boolean | undefined) => true | undefined;
|
198
203
|
setInputValueStatus: () => void;
|
204
|
+
safeEval: (expression: string) => number;
|
205
|
+
setPosition: (position: import("@vueuse/core").Position) => void;
|
206
|
+
getPosition: () => import("@vueuse/core").Position;
|
199
207
|
NIcon: any;
|
200
208
|
NSpace: any;
|
201
209
|
ArrowUndoSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -341,3 +349,4 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
|
|
341
349
|
moveOffset: import("@vueuse/core").Position;
|
342
350
|
}>>;
|
343
351
|
export default Keyboard;
|
352
|
+
export type { KeyboardInstance } from './src/types';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
2
|
import { Position } from '@vueuse/core';
|
3
|
+
import type { KeyboardInstance } from './types';
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
4
5
|
mode: {
|
5
6
|
type: PropType<"number" | "day" | "dose" | "english">;
|
@@ -93,12 +94,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
93
94
|
popoverRef: import("vue").Ref<any>;
|
94
95
|
englishKeyboardRef: import("vue").Ref<HTMLDivElement | undefined>;
|
95
96
|
keyboardDragRef: import("vue").Ref<HTMLElement | undefined>;
|
97
|
+
numberPanelRef: import("vue").Ref<KeyboardInstance | undefined>;
|
96
98
|
currentValue: import("vue").Ref<any>;
|
99
|
+
draggableInstance: null;
|
97
100
|
_style: import("vue").ComputedRef<string> | undefined;
|
98
101
|
init: () => import("vue").ComputedRef<string> | undefined;
|
99
102
|
keydown: (key: string | number) => void;
|
100
103
|
onChange: (value: number) => void;
|
101
104
|
select: () => void;
|
105
|
+
setPosition: (position: Position) => void;
|
106
|
+
getPosition: () => Position;
|
102
107
|
NPopover: any;
|
103
108
|
NInputNumber: any;
|
104
109
|
NIcon: any;
|
@@ -186,6 +191,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
186
191
|
denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
|
187
192
|
keyboardRef: import("vue").Ref<HTMLElement | null>;
|
188
193
|
inputRef: any;
|
194
|
+
draggableInstance: null;
|
189
195
|
style: import("vue").ComputedRef<string> | undefined;
|
190
196
|
init: () => import("vue").ComputedRef<string> | undefined;
|
191
197
|
setFocus: () => Promise<void>;
|
@@ -197,6 +203,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
197
203
|
calculateFraction: () => void;
|
198
204
|
setInputStatus: (valueRef: import("vue").Ref<string>, statusRef: import("vue").Ref<string>, isInteger?: boolean | undefined) => true | undefined;
|
199
205
|
setInputValueStatus: () => void;
|
206
|
+
safeEval: (expression: string) => number;
|
207
|
+
setPosition: (position: Position) => void;
|
208
|
+
getPosition: () => Position;
|
200
209
|
NIcon: any;
|
201
210
|
NSpace: any;
|
202
211
|
ArrowUndoSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -94,28 +94,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
94
94
|
const popoverRef = ref();
|
95
95
|
const englishKeyboardRef = ref();
|
96
96
|
const keyboardDragRef = ref();
|
97
|
+
const numberPanelRef = ref();
|
97
98
|
const currentValue = ref();
|
99
|
+
let draggableInstance = null;
|
98
100
|
const _style = init();
|
99
101
|
function init() {
|
100
102
|
if (props.defaultValue) {
|
101
103
|
currentValue.value = props.defaultValue;
|
102
104
|
}
|
103
105
|
if (isDefault.value && props.drag) {
|
104
|
-
|
105
|
-
x,
|
106
|
-
y,
|
107
|
-
style: style2
|
108
|
-
} = useDraggable(englishKeyboardRef, {
|
106
|
+
draggableInstance = useDraggable(englishKeyboardRef, {
|
109
107
|
initialValue: props.positionInitialValue,
|
110
108
|
preventDefault: true,
|
111
109
|
handle: keyboardDragRef,
|
112
|
-
onMove: (position
|
110
|
+
onMove: (position) => {
|
113
111
|
var _a, _b, _c, _d;
|
114
112
|
position.x += (_b = (_a = props.moveOffset) == null ? void 0 : _a.x) != null ? _b : 0;
|
115
113
|
position.y += (_d = (_c = props.moveOffset) == null ? void 0 : _c.y) != null ? _d : 0;
|
116
114
|
}
|
117
115
|
});
|
118
|
-
return
|
116
|
+
return draggableInstance.style;
|
119
117
|
}
|
120
118
|
}
|
121
119
|
function keydown(key) {
|
@@ -134,8 +132,32 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
134
132
|
function select() {
|
135
133
|
toSelectInputContent.value = Date.now();
|
136
134
|
}
|
135
|
+
function setPosition(position) {
|
136
|
+
if (draggableInstance) {
|
137
|
+
draggableInstance.x.value = position.x;
|
138
|
+
draggableInstance.y.value = position.y;
|
139
|
+
} else if (numberPanelRef.value) {
|
140
|
+
numberPanelRef.value.setPosition(position);
|
141
|
+
}
|
142
|
+
}
|
143
|
+
function getPosition() {
|
144
|
+
if (draggableInstance) {
|
145
|
+
return {
|
146
|
+
x: draggableInstance.x.value,
|
147
|
+
y: draggableInstance.y.value
|
148
|
+
};
|
149
|
+
} else if (numberPanelRef.value) {
|
150
|
+
return numberPanelRef.value.getPosition();
|
151
|
+
}
|
152
|
+
return {
|
153
|
+
x: 0,
|
154
|
+
y: 0
|
155
|
+
};
|
156
|
+
}
|
137
157
|
expose({
|
138
|
-
select
|
158
|
+
select,
|
159
|
+
setPosition,
|
160
|
+
getPosition
|
139
161
|
});
|
140
162
|
return (_ctx, _cache) => {
|
141
163
|
return !unref(isDefault) && !__props.panel ? (openBlock(), createBlock(unref(NPopover), {
|
@@ -162,7 +184,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
162
184
|
}, null, 8, ["mode", "defaultValue"])]),
|
163
185
|
_: 1
|
164
186
|
}, 8, ["style"])) : !unref(isDefault) && __props.panel ? (openBlock(), createBlock(NumberPanel, mergeProps({
|
165
|
-
key: 1
|
187
|
+
key: 1,
|
188
|
+
ref_key: "numberPanelRef",
|
189
|
+
ref: numberPanelRef
|
166
190
|
}, unref(moveNumberPaneOptions), {
|
167
191
|
style: unref(cssVars)
|
168
192
|
}), null, 16, ["style"])) : (openBlock(), createElementBlock("div", {
|
@@ -81,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
81
81
|
denominatorValueStatus: Ref<FormValidationStatus>;
|
82
82
|
keyboardRef: Ref<HTMLElement | null>;
|
83
83
|
inputRef: any;
|
84
|
+
draggableInstance: null;
|
84
85
|
style: import("vue").ComputedRef<string> | undefined;
|
85
86
|
init: () => import("vue").ComputedRef<string> | undefined;
|
86
87
|
setFocus: () => Promise<void>;
|
@@ -92,6 +93,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
93
|
calculateFraction: () => void;
|
93
94
|
setInputStatus: (valueRef: Ref<string>, statusRef: Ref<string>, isInteger?: boolean) => true | undefined;
|
94
95
|
setInputValueStatus: () => void;
|
96
|
+
safeEval: (expression: string) => number;
|
97
|
+
setPosition: (position: Position) => void;
|
98
|
+
getPosition: () => Position;
|
95
99
|
NIcon: any;
|
96
100
|
NSpace: any;
|
97
101
|
ArrowUndoSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -54,6 +54,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
54
54
|
},
|
55
55
|
emits: ["change"],
|
56
56
|
setup(__props, {
|
57
|
+
expose,
|
57
58
|
emit
|
58
59
|
}) {
|
59
60
|
const props = __props;
|
@@ -76,25 +77,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
76
77
|
const denominatorValueStatus = ref("success");
|
77
78
|
const keyboardRef = ref(null);
|
78
79
|
const inputRef = ref(null);
|
80
|
+
let draggableInstance = null;
|
79
81
|
const style = init();
|
80
82
|
function init() {
|
81
83
|
if (props.defaultValue) {
|
82
84
|
inputValue.value = props.defaultValue.toString();
|
83
85
|
}
|
84
86
|
if (props.drag) {
|
85
|
-
|
86
|
-
x,
|
87
|
-
y,
|
88
|
-
style: style2
|
89
|
-
} = useDraggable(keyboardRef, {
|
87
|
+
draggableInstance = useDraggable(keyboardRef, {
|
90
88
|
initialValue: props.positionInitialValue,
|
91
|
-
onMove: (position
|
89
|
+
onMove: (position) => {
|
92
90
|
var _a, _b, _c, _d;
|
93
91
|
position.x += (_b = (_a = props.moveOffset) == null ? void 0 : _a.x) != null ? _b : 0;
|
94
92
|
position.y += (_d = (_c = props.moveOffset) == null ? void 0 : _c.y) != null ? _d : 0;
|
95
93
|
}
|
96
94
|
});
|
97
|
-
return
|
95
|
+
return draggableInstance.style;
|
98
96
|
}
|
99
97
|
}
|
100
98
|
async function setFocus() {
|
@@ -114,7 +112,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
114
112
|
inputValueStatus.value = "error";
|
115
113
|
return;
|
116
114
|
}
|
117
|
-
|
115
|
+
const result = safeEval(inputValue.value);
|
116
|
+
emit("change", result);
|
118
117
|
setFocus();
|
119
118
|
break;
|
120
119
|
}
|
@@ -134,7 +133,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
134
133
|
return;
|
135
134
|
keydown("Enter");
|
136
135
|
}
|
137
|
-
async function updateValue(
|
136
|
+
async function updateValue(key) {
|
138
137
|
var _a, _b, _c;
|
139
138
|
const inputRefS = (_c = (_b = (_a = inputRef.value) == null ? void 0 : _a.$childrenRefs) == null ? void 0 : _b.$refs) == null ? void 0 : _c.inputElRef;
|
140
139
|
const {
|
@@ -142,18 +141,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
142
141
|
selectionEnd
|
143
142
|
} = inputRefS;
|
144
143
|
const arr = inputValue.value.split("");
|
145
|
-
if (
|
144
|
+
if (key === "Undo") {
|
146
145
|
const num = selectionStart === selectionEnd ? 1 : selectionEnd - selectionStart;
|
147
146
|
const startIdx = selectionStart === selectionEnd ? selectionStart - 1 : selectionStart;
|
148
147
|
if (inputValue.value && startIdx > -1)
|
149
148
|
arr.splice(startIdx, num);
|
150
149
|
} else {
|
151
|
-
arr.splice(selectionStart, selectionEnd - selectionStart,
|
150
|
+
arr.splice(selectionStart, selectionEnd - selectionStart, key);
|
152
151
|
}
|
153
152
|
inputValue.value = arr.join("");
|
154
153
|
await nextTick();
|
155
154
|
inputRefS.focus();
|
156
|
-
const selectionIdx =
|
155
|
+
const selectionIdx = key === "Undo" ? !selectionStart ? 0 : selectionEnd > selectionStart ? selectionStart : selectionStart - 1 : selectionStart + 1;
|
157
156
|
inputRefS.setSelectionRange(selectionIdx, selectionIdx);
|
158
157
|
setInputValueStatus();
|
159
158
|
}
|
@@ -211,6 +210,40 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
211
210
|
function setInputValueStatus() {
|
212
211
|
inputValueStatus.value = !inputValue.value ? "error" : "success";
|
213
212
|
}
|
213
|
+
function safeEval(expression) {
|
214
|
+
const cleanExpression = expression.replace(/\b0+(\d)/g, "$1").replace(/\b0+\./g, "0.");
|
215
|
+
if (/^\d*\.?\d*$/.test(cleanExpression)) {
|
216
|
+
return parseFloat(cleanExpression) || 0;
|
217
|
+
}
|
218
|
+
try {
|
219
|
+
return new Function("return " + cleanExpression)();
|
220
|
+
} catch (error) {
|
221
|
+
console.error("Expression evaluation error:", error);
|
222
|
+
return 0;
|
223
|
+
}
|
224
|
+
}
|
225
|
+
function setPosition(position) {
|
226
|
+
if (draggableInstance) {
|
227
|
+
draggableInstance.x.value = position.x;
|
228
|
+
draggableInstance.y.value = position.y;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
function getPosition() {
|
232
|
+
if (draggableInstance) {
|
233
|
+
return {
|
234
|
+
x: draggableInstance.x.value,
|
235
|
+
y: draggableInstance.y.value
|
236
|
+
};
|
237
|
+
}
|
238
|
+
return {
|
239
|
+
x: 0,
|
240
|
+
y: 0
|
241
|
+
};
|
242
|
+
}
|
243
|
+
expose({
|
244
|
+
setPosition,
|
245
|
+
getPosition
|
246
|
+
});
|
214
247
|
watch(() => props.value, (value) => inputValue.value = (value || "").toString(), {
|
215
248
|
immediate: true
|
216
249
|
});
|
@@ -238,12 +271,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
238
271
|
class: "margin-offset",
|
239
272
|
"wrap-item": false
|
240
273
|
}, {
|
241
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(numberKeys), (
|
274
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(numberKeys), (key) => {
|
242
275
|
return openBlock(), createElementBlock("span", {
|
243
|
-
key
|
244
|
-
class: normalizeClass(
|
245
|
-
onClick: ($event) => keydown(
|
246
|
-
}, toDisplayString(
|
276
|
+
key,
|
277
|
+
class: normalizeClass(key === "0" ? "is-0" : ""),
|
278
|
+
onClick: ($event) => keydown(key)
|
279
|
+
}, toDisplayString(key), 11, _hoisted_2);
|
247
280
|
}), 128))]),
|
248
281
|
_: 1
|
249
282
|
}), createVNode(unref(NSpace), {
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { Position } from '@vueuse/core';
|
2
|
+
export interface KeyboardInstance {
|
3
|
+
/**
|
4
|
+
* 选择输入内容
|
5
|
+
*/
|
6
|
+
select: () => void;
|
7
|
+
/**
|
8
|
+
* 手动设置键盘位置
|
9
|
+
* @param position 目标位置 { x: number, y: number }
|
10
|
+
*/
|
11
|
+
setPosition: (position: Position) => void;
|
12
|
+
/**
|
13
|
+
* 获取当前键盘位置
|
14
|
+
* @returns 当前位置 { x: number, y: number }
|
15
|
+
*/
|
16
|
+
getPosition: () => Position;
|
17
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -92,6 +92,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
92
92
|
type: FunctionConstructor;
|
93
93
|
default: () => Promise<{}>;
|
94
94
|
};
|
95
|
+
chunkUploadApiConfig: {
|
96
|
+
type: ObjectConstructor;
|
97
|
+
default: () => {};
|
98
|
+
};
|
95
99
|
fontSizeObj: {
|
96
100
|
type: ObjectConstructor;
|
97
101
|
default: () => {
|
@@ -256,6 +260,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
256
260
|
type: FunctionConstructor;
|
257
261
|
default: () => Promise<{}>;
|
258
262
|
};
|
263
|
+
chunkUploadApiConfig: {
|
264
|
+
type: ObjectConstructor;
|
265
|
+
default: () => {};
|
266
|
+
};
|
259
267
|
fontSizeObj: {
|
260
268
|
type: ObjectConstructor;
|
261
269
|
default: () => {
|
@@ -914,6 +922,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
914
922
|
type: FunctionConstructor;
|
915
923
|
default: () => Promise<{}>;
|
916
924
|
};
|
925
|
+
chunkUploadApiConfig: {
|
926
|
+
type: ObjectConstructor;
|
927
|
+
default: () => {};
|
928
|
+
};
|
917
929
|
fontSizeObj: {
|
918
930
|
type: ObjectConstructor;
|
919
931
|
default: () => {
|
@@ -978,6 +990,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
978
990
|
uploadFileUrl: string;
|
979
991
|
ak: string;
|
980
992
|
getChunkUploadConfig: Function;
|
993
|
+
chunkUploadApiConfig: Record<string, any>;
|
981
994
|
fontSizeObj: Record<string, any>;
|
982
995
|
hasExtendBtn: boolean;
|
983
996
|
printingHideBtn: boolean;
|
@@ -91,6 +91,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
91
|
type: FunctionConstructor;
|
92
92
|
default: () => Promise<{}>;
|
93
93
|
};
|
94
|
+
chunkUploadApiConfig: {
|
95
|
+
type: ObjectConstructor;
|
96
|
+
default: () => {};
|
97
|
+
};
|
94
98
|
fontSizeObj: {
|
95
99
|
type: ObjectConstructor;
|
96
100
|
default: () => {
|
@@ -255,6 +259,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
255
259
|
type: FunctionConstructor;
|
256
260
|
default: () => Promise<{}>;
|
257
261
|
};
|
262
|
+
chunkUploadApiConfig: {
|
263
|
+
type: ObjectConstructor;
|
264
|
+
default: () => {};
|
265
|
+
};
|
258
266
|
fontSizeObj: {
|
259
267
|
type: ObjectConstructor;
|
260
268
|
default: () => {
|
@@ -913,6 +921,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
913
921
|
type: FunctionConstructor;
|
914
922
|
default: () => Promise<{}>;
|
915
923
|
};
|
924
|
+
chunkUploadApiConfig: {
|
925
|
+
type: ObjectConstructor;
|
926
|
+
default: () => {};
|
927
|
+
};
|
916
928
|
fontSizeObj: {
|
917
929
|
type: ObjectConstructor;
|
918
930
|
default: () => {
|
@@ -977,6 +989,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
977
989
|
uploadFileUrl: string;
|
978
990
|
ak: string;
|
979
991
|
getChunkUploadConfig: Function;
|
992
|
+
chunkUploadApiConfig: Record<string, any>;
|
980
993
|
fontSizeObj: Record<string, any>;
|
981
994
|
hasExtendBtn: boolean;
|
982
995
|
printingHideBtn: boolean;
|
@@ -320,7 +320,8 @@ const ScaleViewComputed = (props, state, config) => {
|
|
320
320
|
const vodChunkUploadProps = computed(() => {
|
321
321
|
return {
|
322
322
|
source: "guage",
|
323
|
-
getChunkUploadConfig: props.getChunkUploadConfig
|
323
|
+
getChunkUploadConfig: props.getChunkUploadConfig,
|
324
|
+
chunkUploadApiConfig: props.chunkUploadApiConfig
|
324
325
|
};
|
325
326
|
});
|
326
327
|
const selectLabelProps = computed(() => {
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { AnyObject } from '../../../../shared/types';
|
2
|
-
export declare function getParentNodeList(node: AnyObject):
|
2
|
+
export declare function getParentNodeList(node: AnyObject): AnyObject[];
|
@@ -733,7 +733,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
733
733
|
"margin-bottom": "20px"
|
734
734
|
}
|
735
735
|
}, {
|
736
|
-
default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("span", _hoisted_3,
|
736
|
+
default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("span", _hoisted_3, [createTextVNode(function() {
|
737
|
+
var _a, _b, _c;
|
738
|
+
try {
|
739
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.39")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.39")) || "\u5DF2\u9009\u62E9";
|
740
|
+
} catch (e) {
|
741
|
+
return "\u5DF2\u9009\u62E9";
|
742
|
+
}
|
743
|
+
}()), createElementVNode("span", null, "\uFF1A" + toDisplayString(unref(caculateTagData).length), 1)])) : createCommentVNode("v-if", true), __props.showClear ? (openBlock(), createElementBlock("span", {
|
737
744
|
key: 1,
|
738
745
|
class: "c-select-person__clear-btn",
|
739
746
|
onClick: clearAll
|
@@ -93,7 +93,7 @@ class ShortcutManager {
|
|
93
93
|
const shortcutItem = Object.values(this.shortcutCache.value).find((item) => item.currentKeySignature === keySignature);
|
94
94
|
if (!shortcutItem || shortcutItem.status !== ShortcutStatus.ACTIVE || shortcutItem.disabled)
|
95
95
|
return;
|
96
|
-
if (isInvalidSignatureAtInput(event) && (!shortcutItem.allowPureNumber || !/^\d$/.test(event.key))) {
|
96
|
+
if (isInvalidSignatureAtInput(event, shortcutItem.allowSpace) && (!shortcutItem.allowPureNumber || !/^\d$/.test(event.key))) {
|
97
97
|
return;
|
98
98
|
}
|
99
99
|
if (isFunction(shortcutItem.beforeTrigger) && !shortcutItem.beforeTrigger(event))
|