cnhis-design-vue 3.3.3-beta.26 → 3.3.3-beta.27
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/index.d.ts +1 -1
- package/es/components/iho-chat/src/Index.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +2 -2
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +3 -14
- package/es/components/iho-chat/src/components/ContextMenu.js +4 -10
- package/es/components/iho-chat/src/utils/index.d.ts +1 -0
- package/es/components/iho-chat/src/utils/index.js +12 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +8 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -536,9 +536,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
536
536
|
}>;
|
537
537
|
developMode: boolean;
|
538
538
|
draggable: boolean;
|
539
|
-
isHighlightRow: boolean;
|
540
539
|
idx: number;
|
541
540
|
isHighlight: boolean;
|
541
|
+
isHighlightRow: boolean;
|
542
542
|
isFieldSet: boolean;
|
543
543
|
fieldDescribeMode: "column" | "tooltip";
|
544
544
|
hideExpressionOption: AnyObject[];
|
@@ -565,9 +565,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
565
565
|
}>;
|
566
566
|
developMode: boolean;
|
567
567
|
draggable: boolean;
|
568
|
-
isHighlightRow: boolean;
|
569
568
|
idx: number;
|
570
569
|
isHighlight: boolean;
|
570
|
+
isHighlightRow: boolean;
|
571
571
|
isFieldSet: boolean;
|
572
572
|
fieldDescribeMode: "column" | "tooltip";
|
573
573
|
hideExpressionOption: AnyObject[];
|
@@ -756,9 +756,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
756
756
|
}>;
|
757
757
|
developMode: boolean;
|
758
758
|
draggable: boolean;
|
759
|
-
isHighlightRow: boolean;
|
760
759
|
idx: number;
|
761
760
|
isHighlight: boolean;
|
761
|
+
isHighlightRow: boolean;
|
762
762
|
isFieldSet: boolean;
|
763
763
|
fieldDescribeMode: "column" | "tooltip";
|
764
764
|
hideExpressionOption: AnyObject[];
|
@@ -383,9 +383,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
383
383
|
}>;
|
384
384
|
developMode: boolean;
|
385
385
|
draggable: boolean;
|
386
|
-
isHighlightRow: boolean;
|
387
386
|
idx: number;
|
388
387
|
isHighlight: boolean;
|
388
|
+
isHighlightRow: boolean;
|
389
389
|
isFieldSet: boolean;
|
390
390
|
fieldDescribeMode: "column" | "tooltip";
|
391
391
|
hideExpressionOption: AnyObject[];
|
@@ -1690,7 +1690,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1690
1690
|
renderToolbar: ({ nodes }: import("naive-ui").ImageRenderToolbarProps) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1691
1691
|
[key: string]: any;
|
1692
1692
|
}>[];
|
1693
|
-
formatImage: (obj: string | import("../../shared/types").AnyObject, type: string) => any;
|
1694
1693
|
getHistoryRecord: () => Promise<void>;
|
1695
1694
|
handleSelectLabel: (event: MouseEvent, msgId: string) => void;
|
1696
1695
|
handleContextmenu: (event: MouseEvent, msgId: string) => Promise<void>;
|
@@ -2272,6 +2271,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
2272
2271
|
isAudioOrVideoMessage: typeof import("./src/utils").isAudioOrVideoMessage;
|
2273
2272
|
getAVTime: typeof import("./src/utils").getAVTime;
|
2274
2273
|
getForwardTitle: typeof import("./src/utils").getForwardTitle;
|
2274
|
+
formatJson: typeof import("./src/utils").formatJson;
|
2275
2275
|
MESSAGE_TYPE: typeof import("./src/constants").MESSAGE_TYPE;
|
2276
2276
|
ChatbubbleEllipsesOutline: 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<{}>>, {}>;
|
2277
2277
|
EllipsisHorizontal: 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<{}>>, {}>;
|
@@ -1691,7 +1691,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1691
1691
|
renderToolbar: ({ nodes }: import("naive-ui").ImageRenderToolbarProps) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1692
1692
|
[key: string]: any;
|
1693
1693
|
}>[];
|
1694
|
-
formatImage: (obj: string | AnyObject, type: string) => any;
|
1695
1694
|
getHistoryRecord: () => Promise<void>;
|
1696
1695
|
handleSelectLabel: (event: MouseEvent, msgId: string) => void;
|
1697
1696
|
handleContextmenu: (event: MouseEvent, msgId: string) => Promise<void>;
|
@@ -2273,6 +2272,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2273
2272
|
isAudioOrVideoMessage: typeof import("./utils").isAudioOrVideoMessage;
|
2274
2273
|
getAVTime: typeof import("./utils").getAVTime;
|
2275
2274
|
getForwardTitle: typeof import("./utils").getForwardTitle;
|
2275
|
+
formatJson: typeof import("./utils").formatJson;
|
2276
2276
|
MESSAGE_TYPE: typeof import("./constants").MESSAGE_TYPE;
|
2277
2277
|
ChatbubbleEllipsesOutline: 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<{}>>, {}>;
|
2278
2278
|
EllipsisHorizontal: 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<{}>>, {}>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { CSSProperties } from 'vue';
|
2
2
|
import { ImageRenderToolbarProps } from 'naive-ui';
|
3
3
|
import { AnyObject } from '../../../../shared/types';
|
4
|
-
import { simplifyMessage, isAudioOrVideoMessage, getAVTime, getForwardTitle } from '../utils';
|
4
|
+
import { simplifyMessage, isAudioOrVideoMessage, getAVTime, getForwardTitle, formatJson } from '../utils';
|
5
5
|
import { MESSAGE_TYPE } from '../constants';
|
6
6
|
declare const _default: import("vue").DefineComponent<{}, {
|
7
7
|
chatMainRef: import("vue").Ref<HTMLElement | undefined>;
|
@@ -71,7 +71,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
71
71
|
renderToolbar: ({ nodes }: ImageRenderToolbarProps) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
72
72
|
[key: string]: any;
|
73
73
|
}>[];
|
74
|
-
formatImage: (obj: AnyObject | string, type: string) => any;
|
75
74
|
getHistoryRecord: () => Promise<void>;
|
76
75
|
handleSelectLabel: (event: MouseEvent, msgId: string) => void;
|
77
76
|
handleContextmenu: (event: MouseEvent, msgId: string) => Promise<void>;
|
@@ -653,6 +652,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
653
652
|
isAudioOrVideoMessage: typeof isAudioOrVideoMessage;
|
654
653
|
getAVTime: typeof getAVTime;
|
655
654
|
getForwardTitle: typeof getForwardTitle;
|
655
|
+
formatJson: typeof formatJson;
|
656
656
|
MESSAGE_TYPE: typeof MESSAGE_TYPE;
|
657
657
|
ChatbubbleEllipsesOutline: 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<{}>>, {}>;
|
658
658
|
EllipsisHorizontal: 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<{}>>, {}>;
|
@@ -6,7 +6,7 @@ import { useData } from '../hooks/useData.js';
|
|
6
6
|
import 'stompjs';
|
7
7
|
import 'sockjs-client/dist/sockjs.min.js';
|
8
8
|
import { MESSAGE_TYPE } from '../constants/index.js';
|
9
|
-
import { isAudioOrVideoMessage, simplifyMessage, getForwardTitle, getAVTime, downloadFile } from '../utils/index.js';
|
9
|
+
import { isAudioOrVideoMessage, simplifyMessage, getForwardTitle, formatJson, getAVTime, downloadFile } from '../utils/index.js';
|
10
10
|
import { first, last, isArray, toString } from 'lodash-es';
|
11
11
|
import 'trtc-sdk-v5';
|
12
12
|
import MessageTemplate from './MessageTemplate.vue.js';
|
@@ -142,17 +142,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
142
142
|
}()
|
143
143
|
}), nodes.close];
|
144
144
|
}
|
145
|
-
function formatImage(obj, type) {
|
146
|
-
try {
|
147
|
-
if (typeof obj === "string") {
|
148
|
-
const objParse = JSON.parse(obj);
|
149
|
-
return objParse[type];
|
150
|
-
}
|
151
|
-
return obj[type];
|
152
|
-
} catch (error) {
|
153
|
-
return obj;
|
154
|
-
}
|
155
|
-
}
|
156
145
|
async function getHistoryRecord() {
|
157
146
|
try {
|
158
147
|
if (!pageInfo.hasMore)
|
@@ -490,7 +479,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
490
479
|
}), 128))])], 8, _hoisted_14)) : createCommentVNode("v-if", true), item.content.chatMessageType === unref(MESSAGE_TYPE).IMAGE ? (openBlock(), createBlock(unref(NImage), {
|
491
480
|
key: 4,
|
492
481
|
width: "240",
|
493
|
-
src:
|
482
|
+
src: unref(formatJson)(item.__content, "fileUrl"),
|
494
483
|
onClick: _cache[0] || (_cache[0] = (event) => event.stopPropagation())
|
495
484
|
}, null, 8, ["src"])) : createCommentVNode("v-if", true), unref(isAudioOrVideoMessage)(item.content) ? (openBlock(), createElementBlock(Fragment, {
|
496
485
|
key: 5
|
@@ -515,7 +504,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
515
504
|
"row-gap": "0"
|
516
505
|
}
|
517
506
|
}, {
|
518
|
-
default: withCtx(() => [createElementVNode("span", null, toDisplayString(
|
507
|
+
default: withCtx(() => [createElementVNode("span", null, toDisplayString(unref(formatJson)(item.__content, "fileName")), 1), createElementVNode("span", _hoisted_19, toDisplayString(unref(formatJson)(item.__content, "fileSize")), 1)]),
|
519
508
|
_: 2
|
520
509
|
}, 1024)]),
|
521
510
|
_: 2
|
@@ -7,7 +7,7 @@ import 'stompjs';
|
|
7
7
|
import 'sockjs-client/dist/sockjs.min.js';
|
8
8
|
import { STATUS, MESSAGE_TYPE } from '../constants/index.js';
|
9
9
|
import { recallMessageApi } from '../api/index.js';
|
10
|
-
import { isAudioOrVideoMessage, $message, downloadFile, getFileDetails } from '../utils/index.js';
|
10
|
+
import { isAudioOrVideoMessage, $message, formatJson, downloadFile, getFileDetails } from '../utils/index.js';
|
11
11
|
import 'lodash-es';
|
12
12
|
import 'trtc-sdk-v5';
|
13
13
|
import { emojis } from '../utils/emoji.js';
|
@@ -211,15 +211,9 @@ var ContextMenu = /* @__PURE__ */ defineComponent({
|
|
211
211
|
}
|
212
212
|
return;
|
213
213
|
case "download": {
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
} = content;
|
218
|
-
if (chatMessageType === MESSAGE_TYPE.IMAGE) {
|
219
|
-
url = fileName;
|
220
|
-
fileName = fileName.match(/\/([^\/?#]+)$/)[1];
|
221
|
-
}
|
222
|
-
downloadFile(url, fileName);
|
214
|
+
const fileName = formatJson(__content, "fileName");
|
215
|
+
const fileUrl = formatJson(__content, "fileUrl");
|
216
|
+
downloadFile(fileUrl, fileName);
|
223
217
|
return;
|
224
218
|
}
|
225
219
|
case "withdraw": {
|
@@ -22,3 +22,4 @@ export declare function getFileDetails(msg: string, type: string): any;
|
|
22
22
|
export declare function getFileType(msg: string): string;
|
23
23
|
export declare function getDetail(item: AnyObject, isShowSize?: boolean): string;
|
24
24
|
export declare function showAudioAndVideoRecord(chatMessageType: string): "语音通话" | "视频通话";
|
25
|
+
export declare function formatJson(obj: AnyObject | string, type: string): any;
|
@@ -320,5 +320,16 @@ function showAudioAndVideoRecord(chatMessageType) {
|
|
320
320
|
}
|
321
321
|
}();
|
322
322
|
}
|
323
|
+
function formatJson(obj, type) {
|
324
|
+
try {
|
325
|
+
if (typeof obj === "string") {
|
326
|
+
const objParse = JSON.parse(obj);
|
327
|
+
return objParse[type];
|
328
|
+
}
|
329
|
+
return obj[type];
|
330
|
+
} catch (error) {
|
331
|
+
return obj;
|
332
|
+
}
|
333
|
+
}
|
323
334
|
|
324
|
-
export { $message, base64ToFile, downloadFile, formatSeconds, formatTime, getAVTime, getDetail, getFileDetails, getFileSize, getFileType, getForwardTitle, getRoleName, isAudioOrVideoMessage, isDoctorRole, isGroup, listSort, showAudioAndVideoRecord, simplifyMessage, transformMessage };
|
335
|
+
export { $message, base64ToFile, downloadFile, formatJson, formatSeconds, formatTime, getAVTime, getDetail, getFileDetails, getFileSize, getFileType, getForwardTitle, getRoleName, isAudioOrVideoMessage, isDoctorRole, isGroup, listSort, showAudioAndVideoRecord, simplifyMessage, transformMessage };
|
@@ -188,7 +188,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
188
188
|
"onUpdate:checked": _cache[1] || (_cache[1] = ($event) => isRef(partCheckAll) ? partCheckAll.value = $event : null),
|
189
189
|
indeterminate: unref(partIndeterminate)
|
190
190
|
}, {
|
191
|
-
default: withCtx(() => [createTextVNode(
|
191
|
+
default: withCtx(() => [createTextVNode(function() {
|
192
|
+
var _a, _b, _c;
|
193
|
+
try {
|
194
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.661")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.661")) || "\u5168\u9009\u5F53\u524D";
|
195
|
+
} catch (e) {
|
196
|
+
return "\u5168\u9009\u5F53\u524D";
|
197
|
+
}
|
198
|
+
}())]),
|
192
199
|
_: 1
|
193
200
|
}, 8, ["checked", "indeterminate"])])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_4, [createVNode(unref(NCheckbox), {
|
194
201
|
checked: unref(checkAll),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cnhis-design-vue",
|
3
|
-
"version": "3.3.3-beta.
|
3
|
+
"version": "3.3.3-beta.27",
|
4
4
|
"license": "ISC",
|
5
5
|
"module": "./es/components/index.js",
|
6
6
|
"main": "./es/components/index.js",
|
@@ -73,5 +73,5 @@
|
|
73
73
|
"iOS 7",
|
74
74
|
"last 3 iOS versions"
|
75
75
|
],
|
76
|
-
"gitHead": "
|
76
|
+
"gitHead": "370f6bf59c0deb92555455cbe230758b8d5d8135"
|
77
77
|
}
|