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
@@ -174,7 +174,13 @@ function parseAge2Birthday(age, ageUnit, formatter = "yyyy-MM-dd HH:mm") {
|
|
174
174
|
return date;
|
175
175
|
}
|
176
176
|
}
|
177
|
-
function parseAgeFromContext(context) {
|
177
|
+
function parseAgeFromContext(context, nominalAge) {
|
178
|
+
if (nominalAge && context.birthday) {
|
179
|
+
return {
|
180
|
+
ageUnit: FIELD_AGE_UNIT.YEAR,
|
181
|
+
age: Math.max(new Date().getFullYear() - new Date(context.birthday).getFullYear(), 1)
|
182
|
+
};
|
183
|
+
}
|
178
184
|
const result = context.minutes < 60 ? {
|
179
185
|
ageUnit: FIELD_AGE_UNIT.MINUTE,
|
180
186
|
age: context.minutes
|
@@ -2330,8 +2330,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
2330
2330
|
options: import("../../shared/types").AnyObject[];
|
2331
2331
|
defaultValue: import("../../shared/types").AnyObject[];
|
2332
2332
|
}>;
|
2333
|
-
|
2333
|
+
sendBtnDisabled: import("vue").ComputedRef<boolean>;
|
2334
2334
|
isForwardDisabled: import("vue").ComputedRef<boolean>;
|
2335
|
+
callBtnDisabled: import("vue").ComputedRef<boolean>;
|
2335
2336
|
handleCall: (chatMessageType: string, checkedIds?: string[]) => void;
|
2336
2337
|
handleKeyDown: (event: KeyboardEvent) => void;
|
2337
2338
|
isWrap: (event: KeyboardEvent) => boolean;
|
@@ -3046,8 +3047,22 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
3046
3047
|
handleRemoteVideoAvailable: import("../../shared/types").AnyFn;
|
3047
3048
|
}) => void;
|
3048
3049
|
isConnect: import("vue").Ref<boolean>;
|
3050
|
+
wrapperRef: import("vue").Ref<HTMLElement | null>;
|
3051
|
+
handleRef: import("vue").Ref<HTMLElement | null>;
|
3052
|
+
isMaxSize: import("vue").Ref<boolean>;
|
3053
|
+
miniWrapperRef: import("vue").Ref<HTMLElement | null>;
|
3049
3054
|
callUser: import("vue").ComputedRef<any>;
|
3050
3055
|
title: import("vue").ComputedRef<string>;
|
3056
|
+
style: import("vue").Ref<{
|
3057
|
+
left: string;
|
3058
|
+
top: string;
|
3059
|
+
}>;
|
3060
|
+
changePosition: (position?: ("center" | "top-right") | undefined) => void;
|
3061
|
+
miniStyle: import("vue").Ref<{
|
3062
|
+
left: string;
|
3063
|
+
top: string;
|
3064
|
+
}>;
|
3065
|
+
changeMiniPosition: (position?: ("center" | "top-right") | undefined) => void;
|
3051
3066
|
handleAddPerson: ({ checkedIds, checkedOptions }: {
|
3052
3067
|
checkedIds: string[];
|
3053
3068
|
checkedOptions: import("../../shared/types").AnyObject[];
|
@@ -3062,6 +3077,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
3062
3077
|
handleRemoteUserExit: (event: any) => void;
|
3063
3078
|
handleError: (error: any) => void;
|
3064
3079
|
NButton: any;
|
3080
|
+
NAvatar: any;
|
3065
3081
|
NIcon: any;
|
3066
3082
|
ChatAdd: import("vue").DefineComponent<{
|
3067
3083
|
title: {
|
@@ -3264,6 +3280,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
3264
3280
|
PersonAdd: 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<{}>>, {}>;
|
3265
3281
|
MicOff: 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<{}>>, {}>;
|
3266
3282
|
Close: 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<{}>>, {}>;
|
3283
|
+
ResizeOutline: 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<{}>>, {}>;
|
3267
3284
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
3268
3285
|
PersonProfile: import("vue").DefineComponent<{}, {
|
3269
3286
|
state: {
|
@@ -2331,8 +2331,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
2331
2331
|
options: AnyObject[];
|
2332
2332
|
defaultValue: AnyObject[];
|
2333
2333
|
}>;
|
2334
|
-
|
2334
|
+
sendBtnDisabled: import("vue").ComputedRef<boolean>;
|
2335
2335
|
isForwardDisabled: import("vue").ComputedRef<boolean>;
|
2336
|
+
callBtnDisabled: import("vue").ComputedRef<boolean>;
|
2336
2337
|
handleCall: (chatMessageType: string, checkedIds?: string[]) => void;
|
2337
2338
|
handleKeyDown: (event: KeyboardEvent) => void;
|
2338
2339
|
isWrap: (event: KeyboardEvent) => boolean;
|
@@ -3047,8 +3048,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
3047
3048
|
handleRemoteVideoAvailable: import("../../../shared/types").AnyFn;
|
3048
3049
|
}) => void;
|
3049
3050
|
isConnect: import("vue").Ref<boolean>;
|
3051
|
+
wrapperRef: import("vue").Ref<HTMLElement | null>;
|
3052
|
+
handleRef: import("vue").Ref<HTMLElement | null>;
|
3053
|
+
isMaxSize: import("vue").Ref<boolean>;
|
3054
|
+
miniWrapperRef: import("vue").Ref<HTMLElement | null>;
|
3050
3055
|
callUser: import("vue").ComputedRef<any>;
|
3051
3056
|
title: import("vue").ComputedRef<string>;
|
3057
|
+
style: import("vue").Ref<{
|
3058
|
+
left: string;
|
3059
|
+
top: string;
|
3060
|
+
}>;
|
3061
|
+
changePosition: (position?: ("center" | "top-right") | undefined) => void;
|
3062
|
+
miniStyle: import("vue").Ref<{
|
3063
|
+
left: string;
|
3064
|
+
top: string;
|
3065
|
+
}>;
|
3066
|
+
changeMiniPosition: (position?: ("center" | "top-right") | undefined) => void;
|
3052
3067
|
handleAddPerson: ({ checkedIds, checkedOptions }: {
|
3053
3068
|
checkedIds: string[];
|
3054
3069
|
checkedOptions: AnyObject[];
|
@@ -3063,6 +3078,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3063
3078
|
handleRemoteUserExit: (event: any) => void;
|
3064
3079
|
handleError: (error: any) => void;
|
3065
3080
|
NButton: any;
|
3081
|
+
NAvatar: any;
|
3066
3082
|
NIcon: any;
|
3067
3083
|
ChatAdd: import("vue").DefineComponent<{
|
3068
3084
|
title: {
|
@@ -3265,6 +3281,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3265
3281
|
PersonAdd: 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<{}>>, {}>;
|
3266
3282
|
MicOff: 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<{}>>, {}>;
|
3267
3283
|
Close: 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<{}>>, {}>;
|
3284
|
+
ResizeOutline: 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<{}>>, {}>;
|
3268
3285
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
3269
3286
|
PersonProfile: import("vue").DefineComponent<{}, {
|
3270
3287
|
state: {
|
@@ -53,8 +53,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
53
53
|
options: AnyObject[];
|
54
54
|
defaultValue: AnyObject[];
|
55
55
|
}>;
|
56
|
-
|
56
|
+
sendBtnDisabled: import("vue").ComputedRef<boolean>;
|
57
57
|
isForwardDisabled: import("vue").ComputedRef<boolean>;
|
58
|
+
callBtnDisabled: import("vue").ComputedRef<boolean>;
|
58
59
|
handleCall: (chatMessageType: string, checkedIds?: string[]) => void;
|
59
60
|
handleKeyDown: (event: KeyboardEvent) => void;
|
60
61
|
isWrap: (event: KeyboardEvent) => boolean;
|
@@ -109,8 +109,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
109
109
|
defaultValue: [state.userInfo]
|
110
110
|
};
|
111
111
|
});
|
112
|
-
const
|
112
|
+
const sendBtnDisabled = computed(() => !content.value.replace(/( |\s|<br>)+/g, ""));
|
113
113
|
const isForwardDisabled = computed(() => !state.msgList.some((msgItem) => msgItem.checked));
|
114
|
+
const callBtnDisabled = computed(() => state.showVideo || state.showMultipleVideo);
|
114
115
|
function handleCall(chatMessageType, checkedIds = []) {
|
115
116
|
const uuid = uuidGenerator();
|
116
117
|
const _checkedIds = [];
|
@@ -175,7 +176,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
175
176
|
} = options.file;
|
176
177
|
const data = await doUpdateFile(file);
|
177
178
|
if (!data)
|
178
|
-
return console.log(
|
179
|
+
return console.log(function() {
|
180
|
+
var _a, _b, _c;
|
181
|
+
try {
|
182
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.641")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.641")) || "\u4E0A\u4F20\u5931\u8D25";
|
183
|
+
} catch (e) {
|
184
|
+
return "\u4E0A\u4F20\u5931\u8D25";
|
185
|
+
}
|
186
|
+
}());
|
179
187
|
doSendMessage({
|
180
188
|
chatMessageType,
|
181
189
|
msg: isObject(data) ? JSON.stringify(data) : chatMessageType === MESSAGE_TYPE.FILE ? name : data,
|
@@ -188,7 +196,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
188
196
|
innerText = "",
|
189
197
|
outerText = ""
|
190
198
|
} = inputRef.value || {};
|
191
|
-
if (
|
199
|
+
if (sendBtnDisabled.value)
|
192
200
|
return console.log("\u8BF7\u8F93\u5165\u5185\u5BB9");
|
193
201
|
let chatMessageType = MESSAGE_TYPE.TEXT;
|
194
202
|
let msg = "";
|
@@ -578,14 +586,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
578
586
|
}, {
|
579
587
|
trigger: withCtx(() => [createVNode(unref(NButton), {
|
580
588
|
quaternary: "",
|
581
|
-
size: "tiny"
|
589
|
+
size: "tiny",
|
590
|
+
disabled: unref(callBtnDisabled)
|
582
591
|
}, {
|
583
592
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
584
593
|
size: "18",
|
585
594
|
component: unref(CallOutline)
|
586
595
|
}, null, 8, ["component"])]),
|
587
596
|
_: 1
|
588
|
-
})]),
|
597
|
+
}, 8, ["disabled"])]),
|
589
598
|
default: withCtx(() => [createTextVNode(function() {
|
590
599
|
var _a, _b, _c;
|
591
600
|
try {
|
@@ -605,14 +614,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
605
614
|
}, {
|
606
615
|
trigger: withCtx(() => [createVNode(unref(NButton), {
|
607
616
|
quaternary: "",
|
608
|
-
size: "tiny"
|
617
|
+
size: "tiny",
|
618
|
+
disabled: unref(callBtnDisabled)
|
609
619
|
}, {
|
610
620
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
611
621
|
size: "20",
|
612
622
|
component: unref(VideocamOutline)
|
613
623
|
}, null, 8, ["component"])]),
|
614
624
|
_: 1
|
615
|
-
})]),
|
625
|
+
}, 8, ["disabled"])]),
|
616
626
|
default: withCtx(() => [createTextVNode(function() {
|
617
627
|
var _a, _b, _c;
|
618
628
|
try {
|
@@ -632,6 +642,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
632
642
|
trigger: withCtx(() => [createVNode(unref(NButton), {
|
633
643
|
quaternary: "",
|
634
644
|
size: "tiny",
|
645
|
+
disabled: unref(callBtnDisabled),
|
635
646
|
onClick: _cache[9] || (_cache[9] = () => handleCall(unref(MESSAGE_TYPE).AUDIO))
|
636
647
|
}, {
|
637
648
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
@@ -639,7 +650,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
639
650
|
component: unref(CallOutline)
|
640
651
|
}, null, 8, ["component"])]),
|
641
652
|
_: 1
|
642
|
-
})]),
|
653
|
+
}, 8, ["disabled"])]),
|
643
654
|
default: withCtx(() => [createTextVNode(function() {
|
644
655
|
var _a, _b, _c;
|
645
656
|
try {
|
@@ -655,6 +666,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
655
666
|
trigger: withCtx(() => [createVNode(unref(NButton), {
|
656
667
|
quaternary: "",
|
657
668
|
size: "tiny",
|
669
|
+
disabled: unref(callBtnDisabled),
|
658
670
|
onClick: _cache[10] || (_cache[10] = () => handleCall(unref(MESSAGE_TYPE).VIDEO))
|
659
671
|
}, {
|
660
672
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
@@ -662,7 +674,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
662
674
|
component: unref(VideocamOutline)
|
663
675
|
}, null, 8, ["component"])]),
|
664
676
|
_: 1
|
665
|
-
})]),
|
677
|
+
}, 8, ["disabled"])]),
|
666
678
|
default: withCtx(() => [createTextVNode(function() {
|
667
679
|
var _a, _b, _c;
|
668
680
|
try {
|
@@ -682,7 +694,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
682
694
|
}, null, 40, _hoisted_22), [[vShow, unref(state).id]]), createElementVNode("div", _hoisted_23, [_hoisted_24, createVNode(unref(NButton), {
|
683
695
|
type: "primary",
|
684
696
|
round: "",
|
685
|
-
disabled: unref(
|
697
|
+
disabled: unref(sendBtnDisabled),
|
686
698
|
onClick: handleMsgSend
|
687
699
|
}, {
|
688
700
|
default: withCtx(() => [createTextVNode(function() {
|
@@ -218,14 +218,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
218
218
|
}, {
|
219
219
|
trigger: withCtx(() => [createVNode(unref(NButton), {
|
220
220
|
quaternary: "",
|
221
|
-
size: "tiny"
|
221
|
+
size: "tiny",
|
222
|
+
disabled: unref(state).showVideo || unref(state).showMultipleVideo
|
222
223
|
}, {
|
223
224
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
224
225
|
size: "18",
|
225
226
|
component: unref(CloseOutline)
|
226
227
|
}, null, 8, ["component"])]),
|
227
228
|
_: 1
|
228
|
-
})]),
|
229
|
+
}, 8, ["disabled"])]),
|
229
230
|
default: withCtx(() => [createTextVNode(" \u7ED3\u675F\u804A\u5929 ")]),
|
230
231
|
_: 1
|
231
232
|
})]),
|
@@ -67,8 +67,22 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
67
67
|
handleRemoteVideoAvailable: import("../../../../shared/types").AnyFn;
|
68
68
|
}) => void;
|
69
69
|
isConnect: import("vue").Ref<boolean>;
|
70
|
+
wrapperRef: import("vue").Ref<HTMLElement | null>;
|
71
|
+
handleRef: import("vue").Ref<HTMLElement | null>;
|
72
|
+
isMaxSize: import("vue").Ref<boolean>;
|
73
|
+
miniWrapperRef: import("vue").Ref<HTMLElement | null>;
|
70
74
|
callUser: import("vue").ComputedRef<any>;
|
71
75
|
title: import("vue").ComputedRef<string>;
|
76
|
+
style: import("vue").Ref<{
|
77
|
+
left: string;
|
78
|
+
top: string;
|
79
|
+
}>;
|
80
|
+
changePosition: (position?: ("center" | "top-right") | undefined) => void;
|
81
|
+
miniStyle: import("vue").Ref<{
|
82
|
+
left: string;
|
83
|
+
top: string;
|
84
|
+
}>;
|
85
|
+
changeMiniPosition: (position?: ("center" | "top-right") | undefined) => void;
|
72
86
|
handleAddPerson: ({ checkedIds, checkedOptions }: {
|
73
87
|
checkedIds: string[];
|
74
88
|
checkedOptions: AnyObject[];
|
@@ -83,6 +97,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
83
97
|
handleRemoteUserExit: (event: any) => void;
|
84
98
|
handleError: (error: any) => void;
|
85
99
|
NButton: any;
|
100
|
+
NAvatar: any;
|
86
101
|
NIcon: any;
|
87
102
|
ChatAdd: import("vue").DefineComponent<{
|
88
103
|
title: {
|
@@ -285,5 +300,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
285
300
|
PersonAdd: 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<{}>>, {}>;
|
286
301
|
MicOff: 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<{}>>, {}>;
|
287
302
|
Close: 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<{}>>, {}>;
|
303
|
+
ResizeOutline: 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<{}>>, {}>;
|
288
304
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
289
305
|
export default _default;
|