cnhis-design-vue 3.3.1-release.5 → 3.3.2-release.0
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 +20 -0
- package/es/components/audio-sdk/src/Index.vue.d.ts +20 -0
- package/es/components/audio-sdk/src/Index.vue2.js +1 -1
- package/es/components/audio-sdk/src/audioSDK.d.ts +1 -0
- package/es/components/audio-sdk/src/audioSDK.js +11 -3
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +10 -0
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +10 -0
- package/es/components/audio-sdk/src/components/recording.vue2.js +5 -0
- package/es/components/audio-sdk/src/constants/index.d.ts +1 -0
- package/es/components/audio-sdk/src/constants/index.js +3 -0
- package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recordingModal.js +13 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +17 -1
- package/es/components/card-render/index.d.ts +4 -4
- package/es/components/card-render/src/CardRender.vue.d.ts +4 -4
- package/es/components/card-render/src/components/index.d.ts +23 -23
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +12 -6
- package/es/components/field-editor/index.d.ts +4 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +4 -0
- package/es/components/form-config/index.d.ts +80 -5
- package/es/components/form-config/src/FormConfig.vue.d.ts +80 -5
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +57 -4
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +16 -1
- package/es/components/form-config/src/constants/index.d.ts +2 -1
- package/es/components/form-config/src/constants/index.js +1 -0
- package/es/components/form-config/src/hooks/useConfigurationField.js +19 -1
- package/es/components/form-config/src/hooks/useLocale.d.ts +1 -0
- package/es/components/form-config/src/hooks/useLocale.js +1 -0
- package/es/components/form-config/src/types/index.d.ts +1 -0
- package/es/components/form-render/index.d.ts +4 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -0
- package/es/components/form-render/src/FormRender.vue2.js +3 -2
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -0
- package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/input.d.ts +16 -4
- package/es/components/form-render/src/components/renderer/input.js +39 -7
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +3 -0
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +9 -8
- package/es/components/form-render/src/components/renderer/text.js +1 -1
- package/es/components/form-render/src/components/renderer/textarea.d.ts +16 -1
- package/es/components/form-render/src/components/renderer/textarea.js +36 -8
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -0
- package/es/components/form-render/src/hooks/useComplexOptions.js +3 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +4 -3
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormField.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormField.js +5 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -0
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +11 -0
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.js +1 -0
- package/es/components/form-render/src/utils/schema.js +60 -15
- package/es/components/guide/src/renderer.d.ts +2 -2
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-table/index.d.ts +13 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +13 -2
- package/es/components/iho-table/src/IhoTable.vue2.js +27 -20
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +6 -0
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +0 -3
- package/es/components/info-header/index.d.ts +13 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -0
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +2 -2
- package/es/components/scale-view/src/hooks/scaleview-init.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +2 -2
- package/es/components/select-person/src/SelectPerson.vue2.js +8 -5
- package/es/components/shortcut-setter/index.d.ts +16 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +16 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +11 -11
- 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/components/CancelRadio/CancelRadio.d.ts +7 -0
- package/es/shared/components/CancelRadio/CancelRadio.js +6 -6
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +76 -77
- package/es/components/ai-chat/index.d.ts +0 -680
- package/es/components/ai-chat/index.js +0 -10
- package/es/components/ai-chat/src/Index.vue.d.ts +0 -682
- package/es/components/ai-chat/src/Index.vue.js +0 -6
- package/es/components/ai-chat/src/Index.vue2.js +0 -175
- package/es/components/ai-chat/src/api/index.d.ts +0 -8
- package/es/components/ai-chat/src/api/index.js +0 -87
- package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +0 -38
- package/es/components/ai-chat/src/components/ChatAudio.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatAudio.vue2.js +0 -103
- package/es/components/ai-chat/src/components/ChatBI.vue.d.ts +0 -101
- package/es/components/ai-chat/src/components/ChatBI.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatBI.vue2.js +0 -73
- package/es/components/ai-chat/src/components/ChatCard.d.ts +0 -43
- package/es/components/ai-chat/src/components/ChatCard.js +0 -403
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +0 -203
- package/es/components/ai-chat/src/components/ChatFooter.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +0 -373
- package/es/components/ai-chat/src/components/ChatMain.d.ts +0 -2
- package/es/components/ai-chat/src/components/ChatMain.js +0 -350
- package/es/components/ai-chat/src/components/ChatMainDefault.d.ts +0 -2
- package/es/components/ai-chat/src/components/ChatMainDefault.js +0 -278
- package/es/components/ai-chat/src/components/ChatPatient.vue.d.ts +0 -59
- package/es/components/ai-chat/src/components/ChatPatient.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatPatient.vue2.js +0 -218
- package/es/components/ai-chat/src/components/ChatPrompt.vue.d.ts +0 -45
- package/es/components/ai-chat/src/components/ChatPrompt.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +0 -143
- package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +0 -57
- package/es/components/ai-chat/src/components/ChatRight.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatRight.vue2.js +0 -190
- package/es/components/ai-chat/src/components/card/JsonCard.d.ts +0 -25
- package/es/components/ai-chat/src/components/card/JsonCard.js +0 -574
- package/es/components/ai-chat/src/components/message-render/CardRender.d.ts +0 -16
- package/es/components/ai-chat/src/components/message-render/CardRender.js +0 -80
- package/es/components/ai-chat/src/components/message-render/FormRender.d.ts +0 -16
- package/es/components/ai-chat/src/components/message-render/FormRender.js +0 -173
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.d.ts +0 -36
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.js +0 -6
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue2.js +0 -96
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.d.ts +0 -105
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.js +0 -6
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue2.js +0 -260
- package/es/components/ai-chat/src/components/svgs/AddIcon.vue.js +0 -18
- package/es/components/ai-chat/src/components/svgs/AudioIcon.vue.js +0 -37
- package/es/components/ai-chat/src/components/svgs/KeyboardIcon.vue.js +0 -20
- package/es/components/ai-chat/src/components/svgs/MicroPhone.vue.js +0 -48
- package/es/components/ai-chat/src/hooks/index.d.ts +0 -2
- package/es/components/ai-chat/src/hooks/index.js +0 -2
- package/es/components/ai-chat/src/hooks/useChartAudioContext.d.ts +0 -18
- package/es/components/ai-chat/src/hooks/useChartAudioContext.js +0 -202
- package/es/components/ai-chat/src/hooks/useData.d.ts +0 -77
- package/es/components/ai-chat/src/hooks/useData.js +0 -289
- package/es/components/ai-chat/src/hooks/useFooterContext.d.ts +0 -38
- package/es/components/ai-chat/src/hooks/useFooterContext.js +0 -218
- package/es/components/ai-chat/src/hooks/useProgram.d.ts +0 -14
- package/es/components/ai-chat/src/hooks/useProgram.js +0 -306
- package/es/components/ai-chat/src/hooks/useSSE.d.ts +0 -9
- package/es/components/ai-chat/src/hooks/useSSE.js +0 -138
- package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +0 -4
- package/es/components/ai-chat/src/hooks/useWebsocket.js +0 -66
- package/es/components/ai-chat/src/types/index.d.ts +0 -45
- package/es/components/ai-chat/src/types/index.js +0 -1
- package/es/components/ai-chat/src/utils/index.d.ts +0 -7
- package/es/components/ai-chat/src/utils/index.js +0 -41
- package/es/components/ai-chat/style/index.css +0 -1
- package/es/shared/assets/img/ai__avatar.png.js +0 -3
- package/es/shared/assets/img/file-emr.png.js +0 -3
- package/es/shared/assets/img/file.png.js +0 -3
- package/es/shared/assets/img/logo.png.js +0 -3
- package/es/shared/assets/img/use.png.js +0 -3
@@ -210,6 +210,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
210
210
|
type: BooleanConstructor;
|
211
211
|
};
|
212
212
|
lazyRender: BooleanConstructor;
|
213
|
+
dialogFn: {};
|
213
214
|
}, {
|
214
215
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
215
216
|
fieldList: {
|
@@ -413,6 +414,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
413
414
|
type: BooleanConstructor;
|
414
415
|
};
|
415
416
|
lazyRender: BooleanConstructor;
|
417
|
+
dialogFn: {};
|
416
418
|
}>> & {
|
417
419
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
418
420
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -589,6 +591,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
589
591
|
feedbackType: "default" | "tooltip";
|
590
592
|
fixMemoLeak: boolean;
|
591
593
|
lazyRender: boolean;
|
594
|
+
dialogFn: any;
|
592
595
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
593
596
|
[key: symbol]: any;
|
594
597
|
[key: `x-${string}`]: any;
|
@@ -976,6 +979,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
976
979
|
type: BooleanConstructor;
|
977
980
|
};
|
978
981
|
lazyRender: BooleanConstructor;
|
982
|
+
dialogFn: {};
|
979
983
|
}>> & {
|
980
984
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
981
985
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -205,6 +205,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
205
205
|
type: BooleanConstructor;
|
206
206
|
};
|
207
207
|
lazyRender: BooleanConstructor;
|
208
|
+
dialogFn: {};
|
208
209
|
}, {
|
209
210
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
210
211
|
fieldList: {
|
@@ -408,6 +409,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
408
409
|
type: BooleanConstructor;
|
409
410
|
};
|
410
411
|
lazyRender: BooleanConstructor;
|
412
|
+
dialogFn: {};
|
411
413
|
}>> & {
|
412
414
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
413
415
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -584,6 +586,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
584
586
|
feedbackType: "default" | "tooltip";
|
585
587
|
fixMemoLeak: boolean;
|
586
588
|
lazyRender: boolean;
|
589
|
+
dialogFn: any;
|
587
590
|
}>) => Record<string, import("@formily/vue").Stringify<{
|
588
591
|
[key: symbol]: any;
|
589
592
|
[key: `x-${string}`]: any;
|
@@ -971,6 +974,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
971
974
|
type: BooleanConstructor;
|
972
975
|
};
|
973
976
|
lazyRender: BooleanConstructor;
|
977
|
+
dialogFn: {};
|
974
978
|
}>> & {
|
975
979
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
976
980
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -192,7 +192,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
192
192
|
fixMemoLeak: {
|
193
193
|
type: Boolean
|
194
194
|
},
|
195
|
-
lazyRender: Boolean
|
195
|
+
lazyRender: Boolean,
|
196
|
+
dialogFn: {}
|
196
197
|
},
|
197
198
|
emits: [
|
198
199
|
"formChange",
|
@@ -307,7 +308,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
307
308
|
const wordbookSettingHandler = useWordbookSetting().create(formModel, changeContextCollector);
|
308
309
|
const {
|
309
310
|
schemaAdaptor
|
310
|
-
} = useFieldListAdaptor(businessCollector, props
|
311
|
+
} = useFieldListAdaptor(businessCollector, props);
|
311
312
|
let _fieldList = props.fieldList || [];
|
312
313
|
let incrementalRenderList = [];
|
313
314
|
const parsedSchema = computed(() => {
|
@@ -208,6 +208,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
208
208
|
type: BooleanConstructor;
|
209
209
|
};
|
210
210
|
lazyRender: BooleanConstructor;
|
211
|
+
dialogFn: {};
|
211
212
|
}, {
|
212
213
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
213
214
|
fieldList: {
|
@@ -411,6 +412,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
411
412
|
type: BooleanConstructor;
|
412
413
|
};
|
413
414
|
lazyRender: BooleanConstructor;
|
415
|
+
dialogFn: {};
|
414
416
|
}>> & {
|
415
417
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
416
418
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -587,6 +589,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
587
589
|
feedbackType: "default" | "tooltip";
|
588
590
|
fixMemoLeak: boolean;
|
589
591
|
lazyRender: boolean;
|
592
|
+
dialogFn: any;
|
590
593
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
591
594
|
[key: symbol]: any;
|
592
595
|
[key: `x-${string}`]: any;
|
@@ -974,6 +977,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
974
977
|
type: BooleanConstructor;
|
975
978
|
};
|
976
979
|
lazyRender: BooleanConstructor;
|
980
|
+
dialogFn: {};
|
977
981
|
}>> & {
|
978
982
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
979
983
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -79,7 +79,7 @@ const script = /* @__PURE__ */ defineComponent({
|
|
79
79
|
const globProps = inject(InjectionFormGlobalProps);
|
80
80
|
const {
|
81
81
|
schemaAdaptor
|
82
|
-
} = useFieldListAdaptor(collector, globProps
|
82
|
+
} = useFieldListAdaptor(collector, globProps);
|
83
83
|
return () => {
|
84
84
|
return createVNode("section", {
|
85
85
|
"class": "form-render__combination"
|
@@ -10,7 +10,7 @@ export declare const DATE: import("vue").DefineComponent<{
|
|
10
10
|
validate: {
|
11
11
|
type: PropType<Partial<{
|
12
12
|
[key: string]: any;
|
13
|
-
obj_type: "password" | "sex" | "age" | "email" | "
|
13
|
+
obj_type: "password" | "sex" | "age" | "email" | "birthday" | "id_card" | "age_unit" | "mobile" | "telephone" | "bank_card" | "website" | "gestational_weeks" | "gestational_stage" | "customer_name";
|
14
14
|
vali_obj: string;
|
15
15
|
max_value: string | number;
|
16
16
|
min_value: string | number;
|
@@ -48,7 +48,7 @@ export declare const DATE: import("vue").DefineComponent<{
|
|
48
48
|
validate: {
|
49
49
|
type: PropType<Partial<{
|
50
50
|
[key: string]: any;
|
51
|
-
obj_type: "password" | "sex" | "age" | "email" | "
|
51
|
+
obj_type: "password" | "sex" | "age" | "email" | "birthday" | "id_card" | "age_unit" | "mobile" | "telephone" | "bank_card" | "website" | "gestational_weeks" | "gestational_stage" | "customer_name";
|
52
52
|
vali_obj: string;
|
53
53
|
max_value: string | number;
|
54
54
|
min_value: string | number;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { PropType } from 'vue';
|
1
2
|
export declare const INPUT: import("vue").DefineComponent<{
|
2
3
|
value: {
|
3
4
|
type: StringConstructor;
|
@@ -10,10 +11,16 @@ export declare const INPUT: import("vue").DefineComponent<{
|
|
10
11
|
};
|
11
12
|
placeholder: StringConstructor;
|
12
13
|
disabled: BooleanConstructor;
|
14
|
+
onChange: {};
|
15
|
+
updateKey: {};
|
16
|
+
eventType: {
|
17
|
+
type: PropType<"change" | "input">;
|
18
|
+
default: string;
|
19
|
+
};
|
13
20
|
password: {
|
14
21
|
type: BooleanConstructor;
|
15
22
|
};
|
16
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
23
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
17
24
|
value: {
|
18
25
|
type: StringConstructor;
|
19
26
|
};
|
@@ -25,12 +32,17 @@ export declare const INPUT: import("vue").DefineComponent<{
|
|
25
32
|
};
|
26
33
|
placeholder: StringConstructor;
|
27
34
|
disabled: BooleanConstructor;
|
35
|
+
onChange: {};
|
36
|
+
updateKey: {};
|
37
|
+
eventType: {
|
38
|
+
type: PropType<"change" | "input">;
|
39
|
+
default: string;
|
40
|
+
};
|
28
41
|
password: {
|
29
42
|
type: BooleanConstructor;
|
30
43
|
};
|
31
|
-
}
|
32
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
33
|
-
}, {
|
44
|
+
}>>, {
|
34
45
|
password: boolean;
|
35
46
|
disabled: boolean;
|
47
|
+
eventType: "change" | "input";
|
36
48
|
}>;
|
@@ -1,12 +1,13 @@
|
|
1
|
-
import { defineComponent, inject,
|
2
|
-
import {
|
1
|
+
import { defineComponent, inject, computed, ref, watch, createVNode, createTextVNode, nextTick } from 'vue';
|
2
|
+
import { LifeCycleTypes } from '@formily/core';
|
3
|
+
import '../../../index.js';
|
3
4
|
import { InjectionFormGlobalProps } from '../../constants/index.js';
|
4
|
-
import { useCommonInjection } from '../../hooks/useCommonInjection.js';
|
5
5
|
import { createInputSlot } from '../../utils/index.js';
|
6
6
|
import { connect, mapProps } from '@formily/vue';
|
7
7
|
import { NInput } from 'naive-ui';
|
8
8
|
import useLocale from 'naive-ui/es/_mixins/use-locale';
|
9
9
|
import { assignUpdateValue, assignClearBindVisited } from '../../utils/schema.js';
|
10
|
+
import { useFormField } from '../../hooks/useFormField.js';
|
10
11
|
|
11
12
|
const script = /* @__PURE__ */ defineComponent({
|
12
13
|
name: "FormInput",
|
@@ -22,17 +23,40 @@ const script = /* @__PURE__ */ defineComponent({
|
|
22
23
|
},
|
23
24
|
placeholder: String,
|
24
25
|
disabled: Boolean,
|
26
|
+
onChange: {},
|
27
|
+
updateKey: {},
|
28
|
+
eventType: {
|
29
|
+
type: String,
|
30
|
+
default: "input"
|
31
|
+
},
|
25
32
|
password: {
|
26
33
|
type: Boolean
|
27
34
|
}
|
28
35
|
},
|
29
|
-
emits: ["update:value"],
|
30
36
|
setup(props, {
|
31
37
|
emit
|
32
38
|
}) {
|
33
39
|
const globProps = inject(InjectionFormGlobalProps);
|
34
|
-
const
|
35
|
-
|
40
|
+
const {
|
41
|
+
getFieldItem,
|
42
|
+
field
|
43
|
+
} = useFormField();
|
44
|
+
const valueRef = computed({
|
45
|
+
get: () => props.value,
|
46
|
+
set(value) {
|
47
|
+
emit("update:value", value);
|
48
|
+
field.value.notify(LifeCycleTypes.ON_FIELD_INPUT_VALUE_CHANGE);
|
49
|
+
}
|
50
|
+
});
|
51
|
+
const isChangeMode = computed(() => {
|
52
|
+
var _a;
|
53
|
+
return props.eventType === "change" || ((_a = getFieldItem()) == null ? void 0 : _a.confirmBeforeValueChange);
|
54
|
+
});
|
55
|
+
const key = ref(1);
|
56
|
+
watch([valueRef, () => props.updateKey], (n, o) => {
|
57
|
+
if (n === void 0 && o !== void 0 || isChangeMode.value)
|
58
|
+
key.value++;
|
59
|
+
});
|
36
60
|
const _slots = createInputSlot(props, (v) => {
|
37
61
|
return [createVNode("i", {
|
38
62
|
"style": {
|
@@ -66,7 +90,15 @@ const script = /* @__PURE__ */ defineComponent({
|
|
66
90
|
"onFocus": onFocus
|
67
91
|
}, [[renderSlotContent("prefix"), valueRef.value ? createVNode("span", null, [valueRef.value]) : createVNode("span", {
|
68
92
|
"class": "form-render__textMode--inputPlaceholder"
|
69
|
-
}, [props.placeholder || ((_a = localeRef.value) == null ? void 0 : _a.placeholder)]), renderSlotContent("suffix")]]) : createVNode(NInput, {
|
93
|
+
}, [props.placeholder || ((_a = localeRef.value) == null ? void 0 : _a.placeholder)]), renderSlotContent("suffix")]]) : isChangeMode.value ? createVNode(NInput, {
|
94
|
+
"ref": inputRef,
|
95
|
+
"type": props.password ? "password" : "text",
|
96
|
+
"key": key.value,
|
97
|
+
"disabled": props.disabled,
|
98
|
+
"placeholder": props.placeholder,
|
99
|
+
"defaultValue": valueRef.value,
|
100
|
+
"onChange": (value) => valueRef.value = value
|
101
|
+
}, _slots.value) : createVNode(NInput, {
|
70
102
|
"ref": inputRef,
|
71
103
|
"type": props.password ? "password" : "text",
|
72
104
|
"key": key.value,
|
@@ -116,8 +116,11 @@ const script = /* @__PURE__ */ defineComponent({
|
|
116
116
|
return;
|
117
117
|
field.value.validator = [{
|
118
118
|
async validator() {
|
119
|
+
var _a;
|
119
120
|
if (!isArray(valueRef.value) || !valueRef.value.length)
|
120
121
|
return;
|
122
|
+
if (((_a = last(valueRef.value)) == null ? void 0 : _a.lvlnr) === (props.wordbook.level_num || Infinity) - 1)
|
123
|
+
return;
|
121
124
|
try {
|
122
125
|
if (await nodeHasChild(last(valueRef.value)))
|
123
126
|
return isString(props.validateLastNode) ? props.validateLastNode : "\u8BF7\u9009\u62E9\u6700\u540E\u4E00\u7EA7\u9009\u9879";
|
@@ -159,6 +159,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
159
159
|
feedbackType: "default" | "tooltip";
|
160
160
|
fixMemoLeak: boolean;
|
161
161
|
lazyRender: boolean;
|
162
|
+
dialogFn: any;
|
162
163
|
}>>;
|
163
164
|
isVerticalLinebar: import("vue").ComputedRef<boolean>;
|
164
165
|
wrapperClass: import("vue").ComputedRef<string[] | "">;
|
@@ -158,6 +158,7 @@ export declare const LINEBAR: import("@vue/runtime-core").DefineComponent<{
|
|
158
158
|
feedbackType: "default" | "tooltip";
|
159
159
|
fixMemoLeak: boolean;
|
160
160
|
lazyRender: boolean;
|
161
|
+
dialogFn: any;
|
161
162
|
}>>;
|
162
163
|
isVerticalLinebar: import("vue").ComputedRef<boolean>;
|
163
164
|
wrapperClass: import("vue").ComputedRef<string[] | "">;
|
@@ -89,12 +89,8 @@ function createComponent(name, Wrapper, Item) {
|
|
89
89
|
return value;
|
90
90
|
}
|
91
91
|
const valueRef = computed({
|
92
|
-
get()
|
93
|
-
|
94
|
-
},
|
95
|
-
set(value) {
|
96
|
-
emit("update:value", value);
|
97
|
-
}
|
92
|
+
get: () => dangerousTypeTransform(props.value),
|
93
|
+
set: (value) => emit("update:value", value)
|
98
94
|
});
|
99
95
|
const {
|
100
96
|
renderComplexOption
|
@@ -165,7 +161,11 @@ function createComponent(name, Wrapper, Item) {
|
|
165
161
|
}
|
166
162
|
});
|
167
163
|
}
|
164
|
+
const {
|
165
|
+
getFieldItem
|
166
|
+
} = useFormField();
|
168
167
|
function renderOption(option) {
|
168
|
+
var _a;
|
169
169
|
let _slot;
|
170
170
|
const childInnerWidthMode = option.__spanPercent && props.childWidthMode === "inner";
|
171
171
|
const style = {
|
@@ -185,6 +185,7 @@ function createComponent(name, Wrapper, Item) {
|
|
185
185
|
"disabled": option.disabled,
|
186
186
|
"currentValue": valueRef.value,
|
187
187
|
"cancelable": props.clearable,
|
188
|
+
"showType": ((_a = getFieldItem()) == null ? void 0 : _a.selected_style) === "CHECK_MARK" ? "checkbox" : "",
|
188
189
|
"onCancel": onCancel,
|
189
190
|
"style": style
|
190
191
|
}, _isSlot(_slot = renderComplexOption({
|
@@ -210,11 +211,11 @@ function createComponent(name, Wrapper, Item) {
|
|
210
211
|
};
|
211
212
|
});
|
212
213
|
const elementStyle = {
|
213
|
-
|
214
|
+
alignItems: props.vertical ? "flex-start" : "center",
|
214
215
|
flexDirection: props.vertical ? "column" : "row",
|
216
|
+
display: "flex",
|
215
217
|
flexWrap: "wrap",
|
216
218
|
justifyItems: "flex-start",
|
217
|
-
alignItems: props.vertical ? "flex-start" : "center",
|
218
219
|
width: "100%"
|
219
220
|
};
|
220
221
|
const _Wrapper = Wrapper;
|
@@ -69,7 +69,7 @@ const script = /* @__PURE__ */ defineComponent({
|
|
69
69
|
const globProps = inject(InjectionFormGlobalProps);
|
70
70
|
const {
|
71
71
|
schemaAdaptor
|
72
|
-
} = useFieldListAdaptor(collector, globProps
|
72
|
+
} = useFieldListAdaptor(collector, globProps);
|
73
73
|
return () => {
|
74
74
|
var _a;
|
75
75
|
if (!hasWidget.value)
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { PropType } from 'vue';
|
1
2
|
export declare const TEXTAREA: import("vue").DefineComponent<{
|
2
3
|
value: {
|
3
4
|
type: StringConstructor;
|
@@ -5,6 +6,12 @@ export declare const TEXTAREA: import("vue").DefineComponent<{
|
|
5
6
|
rows: {
|
6
7
|
type: NumberConstructor;
|
7
8
|
};
|
9
|
+
onChange: {};
|
10
|
+
updateKey: {};
|
11
|
+
eventType: {
|
12
|
+
type: PropType<"change" | "input">;
|
13
|
+
default: string;
|
14
|
+
};
|
8
15
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
9
16
|
value: {
|
10
17
|
type: StringConstructor;
|
@@ -12,6 +19,14 @@ export declare const TEXTAREA: import("vue").DefineComponent<{
|
|
12
19
|
rows: {
|
13
20
|
type: NumberConstructor;
|
14
21
|
};
|
22
|
+
onChange: {};
|
23
|
+
updateKey: {};
|
24
|
+
eventType: {
|
25
|
+
type: PropType<"change" | "input">;
|
26
|
+
default: string;
|
27
|
+
};
|
15
28
|
}>> & {
|
16
29
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
17
|
-
}, {
|
30
|
+
}, {
|
31
|
+
eventType: "change" | "input";
|
32
|
+
}>;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { defineComponent, computed, inject, createVNode, mergeProps } from 'vue';
|
1
|
+
import { defineComponent, computed, ref, watch, inject, createVNode, mergeProps } from 'vue';
|
2
|
+
import { LifeCycleTypes } from '@formily/core';
|
3
|
+
import '../../../index.js';
|
2
4
|
import { InjectionFormGlobalProps } from '../../constants/index.js';
|
3
|
-
import { useCommonInjection } from '../../hooks/useCommonInjection.js';
|
4
5
|
import '../../../../../shared/utils/index.js';
|
5
|
-
import '@formily/core';
|
6
6
|
import '@formily/path';
|
7
7
|
import '@vicons/ionicons5';
|
8
8
|
import '@vue/shared';
|
@@ -12,7 +12,8 @@ import { NInput } from 'naive-ui';
|
|
12
12
|
import './text.js';
|
13
13
|
import '../../utils/business.js';
|
14
14
|
import { assignUpdateValue, assignClearBindVisited } from '../../utils/schema.js';
|
15
|
-
import { connect, mapProps
|
15
|
+
import { connect, mapProps } from '@formily/vue';
|
16
|
+
import { useFormField } from '../../hooks/useFormField.js';
|
16
17
|
|
17
18
|
const script = /* @__PURE__ */ defineComponent({
|
18
19
|
name: "FormTextarea",
|
@@ -22,18 +23,38 @@ const script = /* @__PURE__ */ defineComponent({
|
|
22
23
|
},
|
23
24
|
rows: {
|
24
25
|
type: Number
|
26
|
+
},
|
27
|
+
onChange: {},
|
28
|
+
updateKey: {},
|
29
|
+
eventType: {
|
30
|
+
type: String,
|
31
|
+
default: "input"
|
25
32
|
}
|
26
33
|
},
|
27
34
|
emits: ["update:value"],
|
28
35
|
setup(props, {
|
29
36
|
emit
|
30
37
|
}) {
|
38
|
+
const {
|
39
|
+
getFieldItem,
|
40
|
+
field
|
41
|
+
} = useFormField();
|
31
42
|
const valueRef = computed({
|
32
43
|
get: () => props.value,
|
33
|
-
set: (v) =>
|
44
|
+
set: (v) => {
|
45
|
+
emit("update:value", v);
|
46
|
+
field.value.notify(LifeCycleTypes.ON_FIELD_INPUT_VALUE_CHANGE);
|
47
|
+
}
|
48
|
+
});
|
49
|
+
const isChangeMode = computed(() => {
|
50
|
+
var _a;
|
51
|
+
return props.eventType === "change" || ((_a = getFieldItem()) == null ? void 0 : _a.confirmBeforeValueChange);
|
52
|
+
});
|
53
|
+
const key = ref(1);
|
54
|
+
watch([valueRef, () => props.updateKey], (n, o) => {
|
55
|
+
if (n === void 0 && o !== void 0 || isChangeMode.value)
|
56
|
+
key.value++;
|
34
57
|
});
|
35
|
-
const key = useCommonInjection().injectValueBindKey(valueRef);
|
36
|
-
const field = useField();
|
37
58
|
const globProps = inject(InjectionFormGlobalProps, {});
|
38
59
|
const borderState = computed(() => {
|
39
60
|
var _a, _b, _c;
|
@@ -50,7 +71,14 @@ const script = /* @__PURE__ */ defineComponent({
|
|
50
71
|
};
|
51
72
|
});
|
52
73
|
return () => {
|
53
|
-
|
74
|
+
var _a;
|
75
|
+
return props.eventType === "change" || ((_a = getFieldItem()) == null ? void 0 : _a.confirmBeforeValueChange) ? createVNode(NInput, mergeProps({
|
76
|
+
"type": "textarea"
|
77
|
+
}, rowsProps.value, {
|
78
|
+
"key": key.value,
|
79
|
+
"defaultValue": valueRef.value,
|
80
|
+
"onChange": (value) => valueRef.value = value
|
81
|
+
}), null) : createVNode(NInput, mergeProps({
|
54
82
|
"type": "textarea"
|
55
83
|
}, rowsProps.value, {
|
56
84
|
"key": key.value,
|
@@ -11,6 +11,7 @@ import '@vueuse/core';
|
|
11
11
|
import 'naive-ui';
|
12
12
|
import '../components/renderer/text.js';
|
13
13
|
import { isIdCard, parseIdCard, parseAgeFromContext, parseBirthday, parseAge2Birthday } from '../utils/business.js';
|
14
|
+
import '../../index.js';
|
14
15
|
|
15
16
|
class BusinessCollector {
|
16
17
|
constructor(businessFormatter) {
|
@@ -3,7 +3,7 @@ import { checkInSetupEnv } from '../../../../shared/utils/index.js';
|
|
3
3
|
import { useField, useForm, RecursionField } from '@formily/vue';
|
4
4
|
import { isArray, noop, isEmpty } from 'lodash-es';
|
5
5
|
import '../../index.js';
|
6
|
-
import { InjectionFormUUID, InjectionBusinessCollector } from '../constants/index.js';
|
6
|
+
import { InjectionFormUUID, InjectionBusinessCollector, InjectionFormGlobalProps } from '../constants/index.js';
|
7
7
|
import { renderOptionLabel, renderDescOption } from '../utils/index.js';
|
8
8
|
import { useFieldListAdaptor } from './useFieldListAdaptor.js';
|
9
9
|
import { createObjSchema } from '../utils/schema.js';
|
@@ -60,9 +60,10 @@ const ChildSchemaField = /* @__PURE__ */ defineComponent({
|
|
60
60
|
function prepend(fieldKey) {
|
61
61
|
return `${virtualField}.${fieldKey}`;
|
62
62
|
}
|
63
|
+
const globProps = inject(InjectionFormGlobalProps);
|
63
64
|
const {
|
64
65
|
schemaAdaptor
|
65
|
-
} = useFieldListAdaptor(collector);
|
66
|
+
} = useFieldListAdaptor(collector, globProps);
|
66
67
|
function assignConfig(schema2) {
|
67
68
|
var _a, _b, _c, _d;
|
68
69
|
return Object.assign(schema2, {
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { BusinessCollector, FormRenderProps
|
1
|
+
import { BusinessCollector, FormRenderProps } from '../../../../components/form-render';
|
2
2
|
import { FieldItem } from '../types';
|
3
3
|
/**
|
4
4
|
* @description 胶水层, 将低代码平台中的fieldList转换为JSONSchema
|
5
5
|
*/
|
6
|
-
export declare function useFieldListAdaptor(collector?: BusinessCollector,
|
6
|
+
export declare function useFieldListAdaptor(collector?: BusinessCollector, globProps?: FormRenderProps): {
|
7
7
|
schemaAdaptor: (fieldList: FieldItem[], options?: FormRenderProps) => Record<string, import("@formily/json-schema/esm/types").Stringify<{
|
8
8
|
[key: symbol]: any;
|
9
9
|
[key: `x-${string}`]: any;
|
@@ -17,12 +17,12 @@ function bindUrlProps(schema, item) {
|
|
17
17
|
...pick(item, ["urlConfig", "wordbook"])
|
18
18
|
});
|
19
19
|
}
|
20
|
-
function useFieldListAdaptor(collector,
|
20
|
+
function useFieldListAdaptor(collector, globProps) {
|
21
21
|
const {
|
22
22
|
createValidatorSchema
|
23
23
|
} = useFormValidator();
|
24
24
|
const createStandardSchema = (item) => {
|
25
|
-
var _a;
|
25
|
+
var _a, _b;
|
26
26
|
const result = {
|
27
27
|
name: item.val_key,
|
28
28
|
type: (_a = item.fieldType) != null ? _a : "string",
|
@@ -57,7 +57,8 @@ function useFieldListAdaptor(collector, hooks) {
|
|
57
57
|
"x-decorator": "FORM_ITEM",
|
58
58
|
"x-decorator-props": {
|
59
59
|
fieldItem: item,
|
60
|
-
beforeSetValue:
|
60
|
+
beforeSetValue: (_b = globProps == null ? void 0 : globProps.lifeCycle) == null ? void 0 : _b.beforeSetValue,
|
61
|
+
dialogFn: globProps == null ? void 0 : globProps.dialogFn,
|
61
62
|
span: (item.elem_width || 3) * 2,
|
62
63
|
showLabel: !isPositive(item.hide_title),
|
63
64
|
remark: item.remark,
|
@@ -107,6 +107,7 @@ export declare function useFieldNormalize(): {
|
|
107
107
|
feedbackType: "default" | "tooltip";
|
108
108
|
fixMemoLeak: boolean;
|
109
109
|
lazyRender: boolean;
|
110
|
+
dialogFn: any;
|
110
111
|
}>], import("../../../../shared/utils/tapable").UnsetAdditionalOptions>;
|
111
112
|
FieldListNormalizeWaterfallHook: SyncWaterfallHook<[FieldItem[], Partial<{
|
112
113
|
fieldList: FieldItem[];
|
@@ -214,5 +215,6 @@ export declare function useFieldNormalize(): {
|
|
214
215
|
feedbackType: "default" | "tooltip";
|
215
216
|
fixMemoLeak: boolean;
|
216
217
|
lazyRender: boolean;
|
218
|
+
dialogFn: any;
|
217
219
|
}>], import("../../../../shared/utils/tapable").UnsetAdditionalOptions>;
|
218
220
|
};
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import { GeneralField } from '@formily/core';
|
2
|
+
import { FieldItem } from '../../../../components/form-render';
|
2
3
|
export declare function useFormField<T extends GeneralField>(): {
|
3
4
|
field: import("vue").Ref<T>;
|
4
5
|
title: import("vue").ComputedRef<any>;
|
5
6
|
fieldKey: import("vue").ComputedRef<string>;
|
6
7
|
fieldAddress: import("vue").ComputedRef<string>;
|
8
|
+
getFieldItem(): FieldItem | undefined;
|
7
9
|
};
|
@@ -7,7 +7,11 @@ function useFormField() {
|
|
7
7
|
field,
|
8
8
|
title: computed(() => field.value.title),
|
9
9
|
fieldKey: computed(() => field.value.props.name.toString()),
|
10
|
-
fieldAddress: computed(() => field.value.address.toString())
|
10
|
+
fieldAddress: computed(() => field.value.address.toString()),
|
11
|
+
getFieldItem() {
|
12
|
+
var _a, _b;
|
13
|
+
return (_b = (_a = field.value) == null ? void 0 : _a.decoratorProps) == null ? void 0 : _b.fieldItem;
|
14
|
+
}
|
11
15
|
};
|
12
16
|
}
|
13
17
|
|
@@ -9,6 +9,7 @@ import { isFunction } from '@vueuse/core';
|
|
9
9
|
import 'naive-ui';
|
10
10
|
import '../components/renderer/text.js';
|
11
11
|
import { isIdCard } from '../utils/business.js';
|
12
|
+
import '../../index.js';
|
12
13
|
|
13
14
|
function useFormValidator() {
|
14
15
|
const validateMap = /* @__PURE__ */ new Map([["mobile", ({
|
@@ -138,6 +138,17 @@ export type FieldItem = {
|
|
138
138
|
linebarTextDirection: 'horizontal' | 'vertical';
|
139
139
|
labelColor: string;
|
140
140
|
fieldTitleRed: FormCommonState | boolean;
|
141
|
+
confirmBeforeValueChange: boolean;
|
142
|
+
confirmBeforeValueChangeProps: {
|
143
|
+
content: string | ((params: {
|
144
|
+
fieldName: string;
|
145
|
+
newValue: any;
|
146
|
+
oldValue: any;
|
147
|
+
}) => any);
|
148
|
+
updateOriginValue: boolean;
|
149
|
+
[key: string]: any;
|
150
|
+
};
|
151
|
+
selected_style: 'RADIO_MARK' | 'CHECK_MARK';
|
141
152
|
fieldTitleColor: string;
|
142
153
|
fieldType: SchemaTypes;
|
143
154
|
content: string | FormRenderer | Record<string, FormRenderer>;
|
@@ -10,6 +10,7 @@ import { NTooltip, NIcon } from 'naive-ui';
|
|
10
10
|
import { NESTED_FORM_ITEM_TYPE } from '../constants/index.js';
|
11
11
|
import { TEXT } from '../components/renderer/text.js';
|
12
12
|
export { businessDateParser, isForeignerID, isIdCard, isMobile, parseAge2Birthday, parseAgeFromContext, parseBirthday, parseIdCard, transformDateFormat } from './business.js';
|
13
|
+
import '../../index.js';
|
13
14
|
|
14
15
|
function formRenderLog(message) {
|
15
16
|
console.warn(`[FormRender]: ${message}`);
|