cnhis-design-vue 3.3.3-beta.19 → 3.3.3-beta.22
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/base-search/index.d.ts +3 -0
- package/es/components/base-search/src/index.vue.d.ts +3 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +13 -0
- 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/field-editor/index.d.ts +13 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +13 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
- 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-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/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/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 +14 -9
- 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/quick-search/index.d.ts +2 -0
- package/es/components/quick-search/src/index.vue.d.ts +2 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +2 -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/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -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);
|
@@ -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
|
};
|
@@ -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 = [];
|
@@ -195,7 +196,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
195
196
|
innerText = "",
|
196
197
|
outerText = ""
|
197
198
|
} = inputRef.value || {};
|
198
|
-
if (
|
199
|
+
if (sendBtnDisabled.value)
|
199
200
|
return console.log("\u8BF7\u8F93\u5165\u5185\u5BB9");
|
200
201
|
let chatMessageType = MESSAGE_TYPE.TEXT;
|
201
202
|
let msg = "";
|
@@ -585,14 +586,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
585
586
|
}, {
|
586
587
|
trigger: withCtx(() => [createVNode(unref(NButton), {
|
587
588
|
quaternary: "",
|
588
|
-
size: "tiny"
|
589
|
+
size: "tiny",
|
590
|
+
disabled: unref(callBtnDisabled)
|
589
591
|
}, {
|
590
592
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
591
593
|
size: "18",
|
592
594
|
component: unref(CallOutline)
|
593
595
|
}, null, 8, ["component"])]),
|
594
596
|
_: 1
|
595
|
-
})]),
|
597
|
+
}, 8, ["disabled"])]),
|
596
598
|
default: withCtx(() => [createTextVNode(function() {
|
597
599
|
var _a, _b, _c;
|
598
600
|
try {
|
@@ -612,14 +614,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
612
614
|
}, {
|
613
615
|
trigger: withCtx(() => [createVNode(unref(NButton), {
|
614
616
|
quaternary: "",
|
615
|
-
size: "tiny"
|
617
|
+
size: "tiny",
|
618
|
+
disabled: unref(callBtnDisabled)
|
616
619
|
}, {
|
617
620
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
618
621
|
size: "20",
|
619
622
|
component: unref(VideocamOutline)
|
620
623
|
}, null, 8, ["component"])]),
|
621
624
|
_: 1
|
622
|
-
})]),
|
625
|
+
}, 8, ["disabled"])]),
|
623
626
|
default: withCtx(() => [createTextVNode(function() {
|
624
627
|
var _a, _b, _c;
|
625
628
|
try {
|
@@ -639,6 +642,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
639
642
|
trigger: withCtx(() => [createVNode(unref(NButton), {
|
640
643
|
quaternary: "",
|
641
644
|
size: "tiny",
|
645
|
+
disabled: unref(callBtnDisabled),
|
642
646
|
onClick: _cache[9] || (_cache[9] = () => handleCall(unref(MESSAGE_TYPE).AUDIO))
|
643
647
|
}, {
|
644
648
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
@@ -646,7 +650,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
646
650
|
component: unref(CallOutline)
|
647
651
|
}, null, 8, ["component"])]),
|
648
652
|
_: 1
|
649
|
-
})]),
|
653
|
+
}, 8, ["disabled"])]),
|
650
654
|
default: withCtx(() => [createTextVNode(function() {
|
651
655
|
var _a, _b, _c;
|
652
656
|
try {
|
@@ -662,6 +666,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
662
666
|
trigger: withCtx(() => [createVNode(unref(NButton), {
|
663
667
|
quaternary: "",
|
664
668
|
size: "tiny",
|
669
|
+
disabled: unref(callBtnDisabled),
|
665
670
|
onClick: _cache[10] || (_cache[10] = () => handleCall(unref(MESSAGE_TYPE).VIDEO))
|
666
671
|
}, {
|
667
672
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
@@ -669,7 +674,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
669
674
|
component: unref(VideocamOutline)
|
670
675
|
}, null, 8, ["component"])]),
|
671
676
|
_: 1
|
672
|
-
})]),
|
677
|
+
}, 8, ["disabled"])]),
|
673
678
|
default: withCtx(() => [createTextVNode(function() {
|
674
679
|
var _a, _b, _c;
|
675
680
|
try {
|
@@ -689,7 +694,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
689
694
|
}, null, 40, _hoisted_22), [[vShow, unref(state).id]]), createElementVNode("div", _hoisted_23, [_hoisted_24, createVNode(unref(NButton), {
|
690
695
|
type: "primary",
|
691
696
|
round: "",
|
692
|
-
disabled: unref(
|
697
|
+
disabled: unref(sendBtnDisabled),
|
693
698
|
onClick: handleMsgSend
|
694
699
|
}, {
|
695
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;
|