cnhis-design-vue 3.3.3-beta.7 → 3.3.3-release.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/audio-sdk/index.d.ts +13 -11
- package/es/components/audio-sdk/src/Index.vue.d.ts +13 -11
- package/es/components/audio-sdk/src/Index.vue2.js +36 -4
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +1 -1
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +1 -1
- package/es/components/audio-sdk/src/components/recording.vue2.js +17 -3
- package/es/components/base-search/index.d.ts +3 -0
- package/es/components/base-search/src/index.vue.d.ts +3 -0
- package/es/components/big-table/src/components/NoData.vue2.js +8 -1
- package/es/components/big-table/src/hooks/useTableParse.js +8 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +3 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +13 -0
- package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
- package/es/components/classification/index.d.ts +56 -6
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +56 -6
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +56 -6
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +56 -6
- package/es/components/expand-field/index.d.ts +792 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue2.js +8 -1
- package/es/components/expand-field/src/index.vue.d.ts +792 -1
- package/es/components/field-editor/index.d.ts +13 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +13 -0
- package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
- package/es/components/field-editor/src/fields.d.ts +1 -0
- package/es/components/field-editor/src/fields.js +6 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +3 -3
- package/es/components/field-set/src/FieldFilter.vue.d.ts +3 -3
- package/es/components/field-set/src/FieldSet.vue.d.ts +35 -4
- package/es/components/field-set/src/FieldSet.vue2.js +112 -65
- package/es/components/field-set/src/Index.vue2.js +8 -3
- package/es/components/field-set/src/TableStyle.vue2.js +2 -2
- package/es/components/field-set/src/components/table-row.vue.d.ts +3 -3
- package/es/components/field-set/src/constants/index.d.ts +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +39 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +39 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +13 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +8 -1
- package/es/components/form-render/index.d.ts +13 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +13 -0
- package/es/components/form-render/src/FormRender.vue2.js +4 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +13 -0
- package/es/components/form-render/src/components/renderer/formItem.js +8 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
- package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
- package/es/components/form-render/src/utils/business.d.ts +3 -1
- package/es/components/form-render/src/utils/business.js +7 -1
- package/es/components/iho-chat/index.d.ts +18 -1
- package/es/components/iho-chat/src/Index.vue.d.ts +18 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +2 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +22 -10
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +3 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +16 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +112 -53
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
- package/es/components/iho-chat/src/hooks/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
- package/es/components/iho-chat/src/hooks/useDraggable.js +151 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +26 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +13 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +13 -0
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
- package/es/components/quick-search/index.d.ts +2 -0
- package/es/components/quick-search/src/index.vue.d.ts +2 -0
- package/es/components/scale-view/index.d.ts +53 -3
- package/es/components/scale-view/src/ScaleView.vue.d.ts +56 -5
- package/es/components/scale-view/src/ScaleView.vue2.js +79 -4
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +3 -0
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +26 -2
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +3 -0
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +27 -6
- package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
- package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
- package/es/components/scale-view/src/components/ScaleScore.js +45 -3
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +16 -2
- package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
- package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
- package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +18 -3
- package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
- package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +8 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +8 -0
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +2 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
- package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
- package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
- package/es/components/scale-view/src/hooks/use-noData.js +33 -5
- package/es/components/scale-view/src/utils/judge-types.d.ts +2 -1
- package/es/components/scale-view/src/utils/judge-types.js +10 -10
- package/es/components/scale-view/src/utils/watch-form-change.d.ts +13 -0
- package/es/components/scale-view/src/utils/watch-form-change.js +71 -0
- package/es/components/select-person/index.d.ts +792 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +433 -273
- package/es/components/select-person/src/SelectPerson.vue.js +6 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +788 -0
- package/es/components/select-person/src/SelectPersonRole.vue.js +2 -2
- package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
- package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
- package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +214 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
- package/es/components/select-person/src/components/SearchGroupList.vue2.js +145 -0
- package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
- package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
- package/es/components/select-person/src/components/TagItem.vue.js +6 -0
- package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
- package/es/components/select-person/src/index.vue.d.ts +793 -1
- package/es/components/select-person/src/index.vue2.js +21 -4
- package/es/components/select-person/src/types/index.d.ts +35 -0
- package/es/components/select-person/src/types/index.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +3 -0
- package/es/components/select-person/src/utils/index.js +25 -2
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +13 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +54 -6
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +26 -10
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -2
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +37 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +44 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +55 -6
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +6 -3
- 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.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
- 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/DateRangeOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +2 -2
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +20 -3
- package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
- package/es/components/table-filter/src/tool/date.d.ts +3 -0
- package/es/components/table-filter/src/tool/date.js +139 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +11 -8
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +2 -1
- package/es/components/table-filter/src/types/index.d.ts +12 -0
- package/es/components/vod-chunk-upload/index.d.ts +3 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +1 -29
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +109 -11
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +15 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +72 -9
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +3 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +75 -9
- package/es/env.d.ts +25 -25
- package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -453,6 +453,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
453
453
|
businessFormatter: {
|
454
454
|
type: import("vue").PropType<import("..").FormBusinessFormatter>;
|
455
455
|
};
|
456
|
+
nominalAge: {
|
457
|
+
type: BooleanConstructor;
|
458
|
+
default: boolean;
|
459
|
+
};
|
456
460
|
schema: {
|
457
461
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
458
462
|
[key: symbol]: any;
|
@@ -657,6 +661,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
657
661
|
businessFormatter: {
|
658
662
|
type: import("vue").PropType<import("..").FormBusinessFormatter>;
|
659
663
|
};
|
664
|
+
nominalAge: {
|
665
|
+
type: BooleanConstructor;
|
666
|
+
default: boolean;
|
667
|
+
};
|
660
668
|
schema: {
|
661
669
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
662
670
|
[key: symbol]: any;
|
@@ -1222,6 +1230,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
1222
1230
|
businessFormatter: {
|
1223
1231
|
type: import("vue").PropType<import("..").FormBusinessFormatter>;
|
1224
1232
|
};
|
1233
|
+
nominalAge: {
|
1234
|
+
type: BooleanConstructor;
|
1235
|
+
default: boolean;
|
1236
|
+
};
|
1225
1237
|
schema: {
|
1226
1238
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
1227
1239
|
[key: symbol]: any;
|
@@ -1428,6 +1440,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
1428
1440
|
feedbackType: "default" | "tooltip";
|
1429
1441
|
fixMemoLeak: boolean;
|
1430
1442
|
lazyRender: boolean;
|
1443
|
+
nominalAge: boolean;
|
1431
1444
|
operationalFormInit: boolean;
|
1432
1445
|
incrementalRender: boolean;
|
1433
1446
|
}>;
|
@@ -2851,6 +2864,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
2851
2864
|
businessFormatter: {
|
2852
2865
|
type: import("vue").PropType<import("..").FormBusinessFormatter>;
|
2853
2866
|
};
|
2867
|
+
nominalAge: {
|
2868
|
+
type: BooleanConstructor;
|
2869
|
+
default: boolean;
|
2870
|
+
};
|
2854
2871
|
schema: {
|
2855
2872
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
2856
2873
|
[key: symbol]: any;
|
@@ -3055,6 +3072,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
3055
3072
|
businessFormatter: {
|
3056
3073
|
type: import("vue").PropType<import("..").FormBusinessFormatter>;
|
3057
3074
|
};
|
3075
|
+
nominalAge: {
|
3076
|
+
type: BooleanConstructor;
|
3077
|
+
default: boolean;
|
3078
|
+
};
|
3058
3079
|
schema: {
|
3059
3080
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
3060
3081
|
[key: symbol]: any;
|
@@ -3620,6 +3641,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
3620
3641
|
businessFormatter: {
|
3621
3642
|
type: import("vue").PropType<import("..").FormBusinessFormatter>;
|
3622
3643
|
};
|
3644
|
+
nominalAge: {
|
3645
|
+
type: BooleanConstructor;
|
3646
|
+
default: boolean;
|
3647
|
+
};
|
3623
3648
|
schema: {
|
3624
3649
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
3625
3650
|
[key: symbol]: any;
|
@@ -3826,6 +3851,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
3826
3851
|
feedbackType: "default" | "tooltip";
|
3827
3852
|
fixMemoLeak: boolean;
|
3828
3853
|
lazyRender: boolean;
|
3854
|
+
nominalAge: boolean;
|
3829
3855
|
operationalFormInit: boolean;
|
3830
3856
|
incrementalRender: boolean;
|
3831
3857
|
}>;
|
@@ -4227,6 +4253,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
4227
4253
|
businessFormatter: {
|
4228
4254
|
type: import("vue").PropType<import("..").FormBusinessFormatter>;
|
4229
4255
|
};
|
4256
|
+
nominalAge: {
|
4257
|
+
type: BooleanConstructor;
|
4258
|
+
default: boolean;
|
4259
|
+
};
|
4230
4260
|
schema: {
|
4231
4261
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
4232
4262
|
[key: symbol]: any;
|
@@ -4431,6 +4461,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
4431
4461
|
businessFormatter: {
|
4432
4462
|
type: import("vue").PropType<import("..").FormBusinessFormatter>;
|
4433
4463
|
};
|
4464
|
+
nominalAge: {
|
4465
|
+
type: BooleanConstructor;
|
4466
|
+
default: boolean;
|
4467
|
+
};
|
4434
4468
|
schema: {
|
4435
4469
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
4436
4470
|
[key: symbol]: any;
|
@@ -4996,6 +5030,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
4996
5030
|
businessFormatter: {
|
4997
5031
|
type: import("vue").PropType<import("..").FormBusinessFormatter>;
|
4998
5032
|
};
|
5033
|
+
nominalAge: {
|
5034
|
+
type: BooleanConstructor;
|
5035
|
+
default: boolean;
|
5036
|
+
};
|
4999
5037
|
schema: {
|
5000
5038
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
5001
5039
|
[key: symbol]: any;
|
@@ -5202,6 +5240,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
5202
5240
|
feedbackType: "default" | "tooltip";
|
5203
5241
|
fixMemoLeak: boolean;
|
5204
5242
|
lazyRender: boolean;
|
5243
|
+
nominalAge: boolean;
|
5205
5244
|
operationalFormInit: boolean;
|
5206
5245
|
incrementalRender: boolean;
|
5207
5246
|
}>;
|
@@ -456,6 +456,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
456
456
|
businessFormatter: {
|
457
457
|
type: PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
458
458
|
};
|
459
|
+
nominalAge: {
|
460
|
+
type: BooleanConstructor;
|
461
|
+
default: boolean;
|
462
|
+
};
|
459
463
|
schema: {
|
460
464
|
type: PropType<import("@formily/json-schema").Stringify<{
|
461
465
|
[key: symbol]: any;
|
@@ -660,6 +664,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
660
664
|
businessFormatter: {
|
661
665
|
type: PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
662
666
|
};
|
667
|
+
nominalAge: {
|
668
|
+
type: BooleanConstructor;
|
669
|
+
default: boolean;
|
670
|
+
};
|
663
671
|
schema: {
|
664
672
|
type: PropType<import("@formily/json-schema").Stringify<{
|
665
673
|
[key: symbol]: any;
|
@@ -1225,6 +1233,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1225
1233
|
businessFormatter: {
|
1226
1234
|
type: PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
1227
1235
|
};
|
1236
|
+
nominalAge: {
|
1237
|
+
type: BooleanConstructor;
|
1238
|
+
default: boolean;
|
1239
|
+
};
|
1228
1240
|
schema: {
|
1229
1241
|
type: PropType<import("@formily/json-schema").Stringify<{
|
1230
1242
|
[key: symbol]: any;
|
@@ -1431,6 +1443,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1431
1443
|
feedbackType: "default" | "tooltip";
|
1432
1444
|
fixMemoLeak: boolean;
|
1433
1445
|
lazyRender: boolean;
|
1446
|
+
nominalAge: boolean;
|
1434
1447
|
operationalFormInit: boolean;
|
1435
1448
|
incrementalRender: boolean;
|
1436
1449
|
}>;
|
@@ -2854,6 +2867,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2854
2867
|
businessFormatter: {
|
2855
2868
|
type: PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
2856
2869
|
};
|
2870
|
+
nominalAge: {
|
2871
|
+
type: BooleanConstructor;
|
2872
|
+
default: boolean;
|
2873
|
+
};
|
2857
2874
|
schema: {
|
2858
2875
|
type: PropType<import("@formily/json-schema").Stringify<{
|
2859
2876
|
[key: symbol]: any;
|
@@ -3058,6 +3075,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
3058
3075
|
businessFormatter: {
|
3059
3076
|
type: PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
3060
3077
|
};
|
3078
|
+
nominalAge: {
|
3079
|
+
type: BooleanConstructor;
|
3080
|
+
default: boolean;
|
3081
|
+
};
|
3061
3082
|
schema: {
|
3062
3083
|
type: PropType<import("@formily/json-schema").Stringify<{
|
3063
3084
|
[key: symbol]: any;
|
@@ -3623,6 +3644,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
3623
3644
|
businessFormatter: {
|
3624
3645
|
type: PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
3625
3646
|
};
|
3647
|
+
nominalAge: {
|
3648
|
+
type: BooleanConstructor;
|
3649
|
+
default: boolean;
|
3650
|
+
};
|
3626
3651
|
schema: {
|
3627
3652
|
type: PropType<import("@formily/json-schema").Stringify<{
|
3628
3653
|
[key: symbol]: any;
|
@@ -3829,6 +3854,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3829
3854
|
feedbackType: "default" | "tooltip";
|
3830
3855
|
fixMemoLeak: boolean;
|
3831
3856
|
lazyRender: boolean;
|
3857
|
+
nominalAge: boolean;
|
3832
3858
|
operationalFormInit: boolean;
|
3833
3859
|
incrementalRender: boolean;
|
3834
3860
|
}>;
|
@@ -4230,6 +4256,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
4230
4256
|
businessFormatter: {
|
4231
4257
|
type: PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
4232
4258
|
};
|
4259
|
+
nominalAge: {
|
4260
|
+
type: BooleanConstructor;
|
4261
|
+
default: boolean;
|
4262
|
+
};
|
4233
4263
|
schema: {
|
4234
4264
|
type: PropType<import("@formily/json-schema").Stringify<{
|
4235
4265
|
[key: symbol]: any;
|
@@ -4434,6 +4464,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
4434
4464
|
businessFormatter: {
|
4435
4465
|
type: PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
4436
4466
|
};
|
4467
|
+
nominalAge: {
|
4468
|
+
type: BooleanConstructor;
|
4469
|
+
default: boolean;
|
4470
|
+
};
|
4437
4471
|
schema: {
|
4438
4472
|
type: PropType<import("@formily/json-schema").Stringify<{
|
4439
4473
|
[key: symbol]: any;
|
@@ -4999,6 +5033,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
4999
5033
|
businessFormatter: {
|
5000
5034
|
type: PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
5001
5035
|
};
|
5036
|
+
nominalAge: {
|
5037
|
+
type: BooleanConstructor;
|
5038
|
+
default: boolean;
|
5039
|
+
};
|
5002
5040
|
schema: {
|
5003
5041
|
type: PropType<import("@formily/json-schema").Stringify<{
|
5004
5042
|
[key: symbol]: any;
|
@@ -5205,6 +5243,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
5205
5243
|
feedbackType: "default" | "tooltip";
|
5206
5244
|
fixMemoLeak: boolean;
|
5207
5245
|
lazyRender: boolean;
|
5246
|
+
nominalAge: boolean;
|
5208
5247
|
operationalFormInit: boolean;
|
5209
5248
|
incrementalRender: boolean;
|
5210
5249
|
}>;
|
@@ -52,6 +52,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
52
52
|
businessFormatter: {
|
53
53
|
type: import("vue").PropType<import("../../../../components/form-render").FormBusinessFormatter>;
|
54
54
|
};
|
55
|
+
nominalAge: {
|
56
|
+
type: BooleanConstructor;
|
57
|
+
default: boolean;
|
58
|
+
};
|
55
59
|
schema: {
|
56
60
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
57
61
|
[key: symbol]: any;
|
@@ -256,6 +260,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
256
260
|
businessFormatter: {
|
257
261
|
type: import("vue").PropType<import("../../../../components/form-render").FormBusinessFormatter>;
|
258
262
|
};
|
263
|
+
nominalAge: {
|
264
|
+
type: BooleanConstructor;
|
265
|
+
default: boolean;
|
266
|
+
};
|
259
267
|
schema: {
|
260
268
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
261
269
|
[key: symbol]: any;
|
@@ -821,6 +829,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
821
829
|
businessFormatter: {
|
822
830
|
type: import("vue").PropType<import("../../../../components/form-render").FormBusinessFormatter>;
|
823
831
|
};
|
832
|
+
nominalAge: {
|
833
|
+
type: BooleanConstructor;
|
834
|
+
default: boolean;
|
835
|
+
};
|
824
836
|
schema: {
|
825
837
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
826
838
|
[key: symbol]: any;
|
@@ -1027,6 +1039,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
1027
1039
|
feedbackType: "default" | "tooltip";
|
1028
1040
|
fixMemoLeak: boolean;
|
1029
1041
|
lazyRender: boolean;
|
1042
|
+
nominalAge: boolean;
|
1030
1043
|
operationalFormInit: boolean;
|
1031
1044
|
incrementalRender: boolean;
|
1032
1045
|
}>;
|
@@ -1309,6 +1309,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1309
1309
|
businessFormatter: {
|
1310
1310
|
type: PropType<import("../../../../components/form-render").FormBusinessFormatter>;
|
1311
1311
|
};
|
1312
|
+
nominalAge: {
|
1313
|
+
type: BooleanConstructor;
|
1314
|
+
default: boolean;
|
1315
|
+
};
|
1312
1316
|
schema: {
|
1313
1317
|
type: PropType<import("@formily/json-schema").Stringify<{
|
1314
1318
|
[key: symbol]: any;
|
@@ -1513,6 +1517,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1513
1517
|
businessFormatter: {
|
1514
1518
|
type: PropType<import("../../../../components/form-render").FormBusinessFormatter>;
|
1515
1519
|
};
|
1520
|
+
nominalAge: {
|
1521
|
+
type: BooleanConstructor;
|
1522
|
+
default: boolean;
|
1523
|
+
};
|
1516
1524
|
schema: {
|
1517
1525
|
type: PropType<import("@formily/json-schema").Stringify<{
|
1518
1526
|
[key: symbol]: any;
|
@@ -2078,6 +2086,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2078
2086
|
businessFormatter: {
|
2079
2087
|
type: PropType<import("../../../../components/form-render").FormBusinessFormatter>;
|
2080
2088
|
};
|
2089
|
+
nominalAge: {
|
2090
|
+
type: BooleanConstructor;
|
2091
|
+
default: boolean;
|
2092
|
+
};
|
2081
2093
|
schema: {
|
2082
2094
|
type: PropType<import("@formily/json-schema").Stringify<{
|
2083
2095
|
[key: symbol]: any;
|
@@ -2284,6 +2296,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2284
2296
|
feedbackType: "default" | "tooltip";
|
2285
2297
|
fixMemoLeak: boolean;
|
2286
2298
|
lazyRender: boolean;
|
2299
|
+
nominalAge: boolean;
|
2287
2300
|
operationalFormInit: boolean;
|
2288
2301
|
incrementalRender: boolean;
|
2289
2302
|
}>;
|
@@ -280,6 +280,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
280
280
|
businessFormatter: {
|
281
281
|
type: import("vue").PropType<import("../../../../components/form-render").FormBusinessFormatter>;
|
282
282
|
};
|
283
|
+
nominalAge: {
|
284
|
+
type: BooleanConstructor;
|
285
|
+
default: boolean;
|
286
|
+
};
|
283
287
|
schema: {
|
284
288
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
285
289
|
[key: symbol]: any;
|
@@ -484,6 +488,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
484
488
|
businessFormatter: {
|
485
489
|
type: import("vue").PropType<import("../../../../components/form-render").FormBusinessFormatter>;
|
486
490
|
};
|
491
|
+
nominalAge: {
|
492
|
+
type: BooleanConstructor;
|
493
|
+
default: boolean;
|
494
|
+
};
|
487
495
|
schema: {
|
488
496
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
489
497
|
[key: symbol]: any;
|
@@ -1049,6 +1057,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1049
1057
|
businessFormatter: {
|
1050
1058
|
type: import("vue").PropType<import("../../../../components/form-render").FormBusinessFormatter>;
|
1051
1059
|
};
|
1060
|
+
nominalAge: {
|
1061
|
+
type: BooleanConstructor;
|
1062
|
+
default: boolean;
|
1063
|
+
};
|
1052
1064
|
schema: {
|
1053
1065
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
1054
1066
|
[key: symbol]: any;
|
@@ -1255,6 +1267,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1255
1267
|
feedbackType: "default" | "tooltip";
|
1256
1268
|
fixMemoLeak: boolean;
|
1257
1269
|
lazyRender: boolean;
|
1270
|
+
nominalAge: boolean;
|
1258
1271
|
operationalFormInit: boolean;
|
1259
1272
|
incrementalRender: boolean;
|
1260
1273
|
}>;
|
@@ -265,7 +265,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
265
265
|
const dialog = useDialog();
|
266
266
|
async function onNegativeClick() {
|
267
267
|
dialog.warning({
|
268
|
-
title:
|
268
|
+
title: function() {
|
269
|
+
var _a, _b, _c;
|
270
|
+
try {
|
271
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.589")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.589")) || "\u63D0\u793A";
|
272
|
+
} catch (e) {
|
273
|
+
return "\u63D0\u793A";
|
274
|
+
}
|
275
|
+
}(),
|
269
276
|
content: "\u76F4\u63A5\u5173\u95ED\u5F39\u7A97\u4F1A\u4E22\u5931\u5DF2\u7F16\u8F91\u7684\u914D\u7F6E, \u786E\u5B9A\u8981\u5173\u95ED\u5417?",
|
270
277
|
positiveText: function() {
|
271
278
|
var _a, _b, _c;
|
@@ -38,6 +38,10 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
38
38
|
businessFormatter: {
|
39
39
|
type: import("vue").PropType<import("./src/types").FormBusinessFormatter>;
|
40
40
|
};
|
41
|
+
nominalAge: {
|
42
|
+
type: BooleanConstructor;
|
43
|
+
default: boolean;
|
44
|
+
};
|
41
45
|
schema: {
|
42
46
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
43
47
|
[key: symbol]: any;
|
@@ -242,6 +246,10 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
242
246
|
businessFormatter: {
|
243
247
|
type: import("vue").PropType<import("./src/types").FormBusinessFormatter>;
|
244
248
|
};
|
249
|
+
nominalAge: {
|
250
|
+
type: BooleanConstructor;
|
251
|
+
default: boolean;
|
252
|
+
};
|
245
253
|
schema: {
|
246
254
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
247
255
|
[key: symbol]: any;
|
@@ -807,6 +815,10 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
807
815
|
businessFormatter: {
|
808
816
|
type: import("vue").PropType<import("./src/types").FormBusinessFormatter>;
|
809
817
|
};
|
818
|
+
nominalAge: {
|
819
|
+
type: BooleanConstructor;
|
820
|
+
default: boolean;
|
821
|
+
};
|
810
822
|
schema: {
|
811
823
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
812
824
|
[key: symbol]: any;
|
@@ -1013,6 +1025,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
1013
1025
|
feedbackType: "default" | "tooltip";
|
1014
1026
|
fixMemoLeak: boolean;
|
1015
1027
|
lazyRender: boolean;
|
1028
|
+
nominalAge: boolean;
|
1016
1029
|
operationalFormInit: boolean;
|
1017
1030
|
incrementalRender: boolean;
|
1018
1031
|
}>;
|
@@ -33,6 +33,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
33
33
|
businessFormatter: {
|
34
34
|
type: PropType<FormBusinessFormatter>;
|
35
35
|
};
|
36
|
+
nominalAge: {
|
37
|
+
type: BooleanConstructor;
|
38
|
+
default: boolean;
|
39
|
+
};
|
36
40
|
schema: {
|
37
41
|
type: PropType<import("@formily/vue").Stringify<{
|
38
42
|
[key: symbol]: any;
|
@@ -237,6 +241,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
237
241
|
businessFormatter: {
|
238
242
|
type: PropType<FormBusinessFormatter>;
|
239
243
|
};
|
244
|
+
nominalAge: {
|
245
|
+
type: BooleanConstructor;
|
246
|
+
default: boolean;
|
247
|
+
};
|
240
248
|
schema: {
|
241
249
|
type: PropType<import("@formily/vue").Stringify<{
|
242
250
|
[key: symbol]: any;
|
@@ -802,6 +810,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
802
810
|
businessFormatter: {
|
803
811
|
type: PropType<FormBusinessFormatter>;
|
804
812
|
};
|
813
|
+
nominalAge: {
|
814
|
+
type: BooleanConstructor;
|
815
|
+
default: boolean;
|
816
|
+
};
|
805
817
|
schema: {
|
806
818
|
type: PropType<import("@formily/vue").Stringify<{
|
807
819
|
[key: symbol]: any;
|
@@ -1008,6 +1020,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1008
1020
|
feedbackType: "default" | "tooltip";
|
1009
1021
|
fixMemoLeak: boolean;
|
1010
1022
|
lazyRender: boolean;
|
1023
|
+
nominalAge: boolean;
|
1011
1024
|
operationalFormInit: boolean;
|
1012
1025
|
incrementalRender: boolean;
|
1013
1026
|
}>;
|
@@ -36,6 +36,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
36
36
|
businessFormatter: {
|
37
37
|
type: import("vue").PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
38
38
|
};
|
39
|
+
nominalAge: {
|
40
|
+
type: BooleanConstructor;
|
41
|
+
default: boolean;
|
42
|
+
};
|
39
43
|
schema: {
|
40
44
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
41
45
|
[key: symbol]: any;
|
@@ -240,6 +244,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
240
244
|
businessFormatter: {
|
241
245
|
type: import("vue").PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
242
246
|
};
|
247
|
+
nominalAge: {
|
248
|
+
type: BooleanConstructor;
|
249
|
+
default: boolean;
|
250
|
+
};
|
243
251
|
schema: {
|
244
252
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
245
253
|
[key: symbol]: any;
|
@@ -805,6 +813,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
805
813
|
businessFormatter: {
|
806
814
|
type: import("vue").PropType<import("../../../components/form-render").FormBusinessFormatter>;
|
807
815
|
};
|
816
|
+
nominalAge: {
|
817
|
+
type: BooleanConstructor;
|
818
|
+
default: boolean;
|
819
|
+
};
|
808
820
|
schema: {
|
809
821
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
810
822
|
[key: symbol]: any;
|
@@ -1011,6 +1023,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
1011
1023
|
feedbackType: "default" | "tooltip";
|
1012
1024
|
fixMemoLeak: boolean;
|
1013
1025
|
lazyRender: boolean;
|
1026
|
+
nominalAge: boolean;
|
1014
1027
|
operationalFormInit: boolean;
|
1015
1028
|
incrementalRender: boolean;
|
1016
1029
|
}>;
|
@@ -133,7 +133,14 @@ const script = /* @__PURE__ */ defineComponent({
|
|
133
133
|
}, {
|
134
134
|
default: () => [createVNode("span", {
|
135
135
|
"style": "display:inline-block;margin-left:4px"
|
136
|
-
}, [createTextVNode(
|
136
|
+
}, [createTextVNode(function() {
|
137
|
+
var _a, _b, _c;
|
138
|
+
try {
|
139
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.589")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.589")) || "\u63D0\u793A";
|
140
|
+
} catch (e) {
|
141
|
+
return "\u63D0\u793A";
|
142
|
+
}
|
143
|
+
}())])]
|
137
144
|
}),
|
138
145
|
default: () => {
|
139
146
|
var _a, _b;
|
@@ -2,12 +2,18 @@ import { Form } from '@formily/core';
|
|
2
2
|
import { FieldItem, FormBusinessFormatter } from '../../../../components/form-render';
|
3
3
|
import { FIELD_BUSINESS_TYPE } from '../constants';
|
4
4
|
export declare class BusinessCollector {
|
5
|
-
|
5
|
+
options: {
|
6
|
+
businessFormatter?: FormBusinessFormatter;
|
7
|
+
nominalAge?: boolean;
|
8
|
+
};
|
6
9
|
triggerDisabled: boolean | string;
|
7
10
|
private readonly typeLockMap;
|
8
11
|
private readonly typeCollector;
|
9
12
|
private readonly fieldNameCollector;
|
10
|
-
constructor(
|
13
|
+
constructor(options: {
|
14
|
+
businessFormatter?: FormBusinessFormatter;
|
15
|
+
nominalAge?: boolean;
|
16
|
+
});
|
11
17
|
private formatter;
|
12
18
|
collect(type: FIELD_BUSINESS_TYPE, fieldItem: FieldItem): void;
|
13
19
|
getField(type: FIELD_BUSINESS_TYPE): FieldItem | undefined;
|
@@ -21,5 +27,8 @@ export declare class BusinessCollector {
|
|
21
27
|
trigger(formModel: Form, fieldName: string, triggerType?: 'change' | 'blur'): Map<FIELD_BUSINESS_TYPE, number> | undefined;
|
22
28
|
}
|
23
29
|
export declare function useBusinessBinding(): {
|
24
|
-
create: (
|
30
|
+
create: (options: {
|
31
|
+
businessFormatter?: FormBusinessFormatter;
|
32
|
+
nominalAge?: boolean;
|
33
|
+
}) => BusinessCollector;
|
25
34
|
};
|
@@ -14,8 +14,8 @@ import { isIdCard, parseIdCard, parseAgeFromContext, parseBirthday, parseAge2Bir
|
|
14
14
|
import '../../index.js';
|
15
15
|
|
16
16
|
class BusinessCollector {
|
17
|
-
constructor(
|
18
|
-
this.
|
17
|
+
constructor(options) {
|
18
|
+
this.options = options;
|
19
19
|
this.triggerDisabled = false;
|
20
20
|
this.typeLockMap = /* @__PURE__ */ new Map();
|
21
21
|
this.typeCollector = /* @__PURE__ */ new Map();
|
@@ -23,7 +23,7 @@ class BusinessCollector {
|
|
23
23
|
this.changeHandlerMap = /* @__PURE__ */ new Map([]);
|
24
24
|
}
|
25
25
|
formatter(...args) {
|
26
|
-
return isFunction(this.businessFormatter) ? this.businessFormatter(...args) : args[0].value;
|
26
|
+
return isFunction(this.options.businessFormatter) ? this.options.businessFormatter(...args) : args[0].value;
|
27
27
|
}
|
28
28
|
collect(type, fieldItem) {
|
29
29
|
this.typeCollector.set(type, fieldItem);
|
@@ -99,7 +99,7 @@ function useBusinessBinding() {
|
|
99
99
|
const {
|
100
100
|
age,
|
101
101
|
ageUnit
|
102
|
-
} = parseAgeFromContext(info);
|
102
|
+
} = parseAgeFromContext(info, this.options.nominalAge);
|
103
103
|
ageUnit != null && this.setValueByType(formModel, FIELD_BUSINESS_TYPE.AGE_UNIT, ageUnit, FIELD_BUSINESS_TYPE.ID_CARD);
|
104
104
|
age != null && this.setValueByType(formModel, FIELD_BUSINESS_TYPE.AGE, age, FIELD_BUSINESS_TYPE.ID_CARD);
|
105
105
|
info.sex != null && this.setValueByType(formModel, FIELD_BUSINESS_TYPE.SEX, info.sex, FIELD_BUSINESS_TYPE.ID_CARD);
|
@@ -112,7 +112,7 @@ function useBusinessBinding() {
|
|
112
112
|
const {
|
113
113
|
age,
|
114
114
|
ageUnit
|
115
|
-
} = parseAgeFromContext(parseBirthday(birthday));
|
115
|
+
} = parseAgeFromContext(parseBirthday(birthday), this.options.nominalAge);
|
116
116
|
this.setValueByType(formModel, FIELD_BUSINESS_TYPE.AGE_UNIT, ageUnit, FIELD_BUSINESS_TYPE.BIRTHDAY);
|
117
117
|
this.setValueByType(formModel, FIELD_BUSINESS_TYPE.AGE, age, FIELD_BUSINESS_TYPE.BIRTHDAY);
|
118
118
|
}
|
@@ -127,8 +127,8 @@ function useBusinessBinding() {
|
|
127
127
|
this.setValueByType(formModel, FIELD_BUSINESS_TYPE.BIRTHDAY, parseAge2Birthday(+age, ageUnit, getBirthdayFormat.call(this)), from);
|
128
128
|
};
|
129
129
|
}
|
130
|
-
function create(
|
131
|
-
return new BusinessCollector(
|
130
|
+
function create(options) {
|
131
|
+
return new BusinessCollector(options).registerChangeBusiness(FIELD_BUSINESS_TYPE.ID_CARD, handlerIdCardType).registerChangeBusiness(FIELD_BUSINESS_TYPE.AGE_UNIT, createHandlerAgeType(FIELD_BUSINESS_TYPE.AGE_UNIT)).registerChangeBusiness(FIELD_BUSINESS_TYPE.AGE, createHandlerAgeType(FIELD_BUSINESS_TYPE.AGE)).registerChangeBusiness(FIELD_BUSINESS_TYPE.BIRTHDAY, handlerBirthdayType);
|
132
132
|
}
|
133
133
|
return {
|
134
134
|
create
|
@@ -41,7 +41,7 @@ function useFormContext(props, emit) {
|
|
41
41
|
scope: Object.assign({}, usePresetScope(), props.scope)
|
42
42
|
}).SchemaField;
|
43
43
|
provide(InjectionSchemaField, SchemaField);
|
44
|
-
const businessCollector = useBusinessBinding().create(props
|
44
|
+
const businessCollector = useBusinessBinding().create(props);
|
45
45
|
provide(InjectionBusinessCollector, businessCollector);
|
46
46
|
const changeContextCollector = useChangeContext().create();
|
47
47
|
provide(InjectionChangeContextCollector, changeContextCollector);
|
@@ -43,7 +43,14 @@ function useFormValidator() {
|
|
43
43
|
regular_error_tip
|
44
44
|
}) => {
|
45
45
|
const pattern = regular_expression || (validate == null ? void 0 : validate.regular_expression) || "";
|
46
|
-
const message = regular_error_tip || (validate == null ? void 0 : validate.regular_error_tip) || (validate == null ? void 0 : validate.message) ||
|
46
|
+
const message = regular_error_tip || (validate == null ? void 0 : validate.regular_error_tip) || (validate == null ? void 0 : validate.message) || function() {
|
47
|
+
var _a, _b, _c;
|
48
|
+
try {
|
49
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.581")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.581")) || "\u683C\u5F0F\u9519\u8BEF";
|
50
|
+
} catch (e) {
|
51
|
+
return "\u683C\u5F0F\u9519\u8BEF";
|
52
|
+
}
|
53
|
+
}();
|
47
54
|
return {
|
48
55
|
pattern,
|
49
56
|
message
|
@@ -7,7 +7,9 @@ export declare function isIdCard(idCardNo: string): boolean;
|
|
7
7
|
export declare function isMobile(mobile: string): boolean;
|
8
8
|
export declare function parseBirthday(birthday: string): AgeContext;
|
9
9
|
export declare function parseAge2Birthday(age: number, ageUnit: string, formatter?: string): string;
|
10
|
-
export declare function parseAgeFromContext(context: AgeContext
|
10
|
+
export declare function parseAgeFromContext(context: AgeContext & {
|
11
|
+
birthday?: string;
|
12
|
+
}, nominalAge?: boolean): {
|
11
13
|
ageUnit: FIELD_AGE_UNIT;
|
12
14
|
age: number;
|
13
15
|
};
|