cnhis-design-vue 3.3.3-beta.49 → 3.3.3-beta.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +6 -2
- package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +1 -0
- package/es/components/iho-chat/src/utils/index.js +7 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/scale-view/index.d.ts +13 -0
- package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
- package/es/components/vertify/index.d.ts +1 -0
- package/es/components/vertify/index.js +1 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
- package/es/components/vertify/src/components/IdentityVerification.vue2.js +213 -0
- package/es/components/vertify/src/utils/dialog.d.ts +7 -0
- package/es/components/vertify/src/utils/dialog.js +73 -0
- package/es/components/vertify/src/utils/index.d.ts +11 -0
- package/es/components/vertify/src/utils/index.js +24 -0
- package/es/components/vertify/style/index.css +1 -0
- package/es/components/vod-chunk-upload/index.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +19 -2
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +104 -75
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +20 -3
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +6 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +6 -1
- package/es/components/vod-chunk-upload/style/index.css +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -539,9 +539,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
539
539
|
}>;
|
540
540
|
developMode: boolean;
|
541
541
|
draggable: boolean;
|
542
|
+
isHighlightRow: boolean;
|
542
543
|
idx: number;
|
543
544
|
isHighlight: boolean;
|
544
|
-
isHighlightRow: boolean;
|
545
545
|
isFieldSet: boolean;
|
546
546
|
fieldDescribeMode: "column" | "tooltip";
|
547
547
|
hideExpressionOption: AnyObject[];
|
@@ -568,9 +568,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
568
568
|
}>;
|
569
569
|
developMode: boolean;
|
570
570
|
draggable: boolean;
|
571
|
+
isHighlightRow: boolean;
|
571
572
|
idx: number;
|
572
573
|
isHighlight: boolean;
|
573
|
-
isHighlightRow: boolean;
|
574
574
|
isFieldSet: boolean;
|
575
575
|
fieldDescribeMode: "column" | "tooltip";
|
576
576
|
hideExpressionOption: AnyObject[];
|
@@ -759,9 +759,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
759
759
|
}>;
|
760
760
|
developMode: boolean;
|
761
761
|
draggable: boolean;
|
762
|
+
isHighlightRow: boolean;
|
762
763
|
idx: number;
|
763
764
|
isHighlight: boolean;
|
764
|
-
isHighlightRow: boolean;
|
765
765
|
isFieldSet: boolean;
|
766
766
|
fieldDescribeMode: "column" | "tooltip";
|
767
767
|
hideExpressionOption: AnyObject[];
|
@@ -384,9 +384,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
384
384
|
}>;
|
385
385
|
developMode: boolean;
|
386
386
|
draggable: boolean;
|
387
|
+
isHighlightRow: boolean;
|
387
388
|
idx: number;
|
388
389
|
isHighlight: boolean;
|
389
|
-
isHighlightRow: boolean;
|
390
390
|
isFieldSet: boolean;
|
391
391
|
fieldDescribeMode: "column" | "tooltip";
|
392
392
|
hideExpressionOption: AnyObject[];
|
@@ -6,7 +6,7 @@ import 'stompjs';
|
|
6
6
|
import 'sockjs-client/dist/sockjs.min.js';
|
7
7
|
import { MESSAGE_TYPE, AV_STATUS } from '../constants/index.js';
|
8
8
|
import { uploadFileApi } from '../api/index.js';
|
9
|
-
import { simplifyMessage, base64ToFile, removeImgBySrc } from '../utils/index.js';
|
9
|
+
import { simplifyMessage, base64ToFile, removeImgBySrc, ensureLeadingSlashIfRelative } from '../utils/index.js';
|
10
10
|
import { xor, uniq, isObject, trim, cloneDeep } from 'lodash-es';
|
11
11
|
import 'trtc-sdk-v5';
|
12
12
|
import { emojis } from '../utils/emoji.js';
|
@@ -172,7 +172,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
172
172
|
const formData = new FormData();
|
173
173
|
formData.append("sender", state.userInfo.id);
|
174
174
|
formData.append("file", file);
|
175
|
-
|
175
|
+
const data = await uploadFileApi(formData);
|
176
|
+
if (data == null ? void 0 : data.fileUrl) {
|
177
|
+
data.fileUrl = ensureLeadingSlashIfRelative(data.fileUrl);
|
178
|
+
}
|
179
|
+
return data;
|
176
180
|
} catch (error) {
|
177
181
|
return "";
|
178
182
|
}
|
@@ -175,7 +175,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
175
175
|
};
|
176
176
|
const download = () => {
|
177
177
|
downloadFile(JSON.stringify({
|
178
|
-
fileUrl: currentImageData.value.
|
178
|
+
fileUrl: currentImageData.value.fileUrl,
|
179
179
|
fileName: currentImageData.value.fileName
|
180
180
|
}));
|
181
181
|
};
|
@@ -22,3 +22,4 @@ export declare function getDetail(item: AnyObject, isShowSize?: boolean): string
|
|
22
22
|
export declare function showAudioAndVideoRecord(chatMessageType: string): "语音通话" | "视频通话";
|
23
23
|
export declare function formatJsonstr(obj: AnyObject | string, type: string): any;
|
24
24
|
export declare function removeImgBySrc(htmlString: string, targetSrc: string): string;
|
25
|
+
export declare function ensureLeadingSlashIfRelative(str?: string): string;
|
@@ -308,5 +308,11 @@ function removeImgBySrc(htmlString, targetSrc) {
|
|
308
308
|
function escapeRegExp(str) {
|
309
309
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
310
310
|
}
|
311
|
+
function ensureLeadingSlashIfRelative(str = "") {
|
312
|
+
if (!/^[a-z]+:\/\//i.test(str) && !str.startsWith("/")) {
|
313
|
+
return "/" + str;
|
314
|
+
}
|
315
|
+
return str;
|
316
|
+
}
|
311
317
|
|
312
|
-
export { $message, base64ToFile, downloadFile, formatJsonstr, formatSeconds, formatTime, getAVTime, getDetail, getFileType, getForwardTitle, getRoleName, isAudioOrVideoMessage, isDoctorRole, isGroup, listSort, removeImgBySrc, showAudioAndVideoRecord, simplifyMessage, transformMessage };
|
318
|
+
export { $message, base64ToFile, downloadFile, ensureLeadingSlashIfRelative, formatJsonstr, formatSeconds, formatTime, getAVTime, getDetail, getFileType, getForwardTitle, getRoleName, isAudioOrVideoMessage, isDoctorRole, isGroup, listSort, removeImgBySrc, showAudioAndVideoRecord, simplifyMessage, transformMessage };
|