cnhis-design-vue 2.1.29 → 2.1.30
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/CHANGELOG.md +19 -1
- package/es/affix/index.js +8 -8
- package/es/age/index.js +10 -10
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +164 -164
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +31 -31
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +9 -9
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +1 -1
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +8 -8
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +3 -3
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +21 -30
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +62 -62
- package/es/index/index.js +1283 -1085
- package/es/index/style.css +1 -1
- package/es/input/index.js +9 -9
- package/es/input-number/index.js +8 -8
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +9 -9
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +759 -562
- package/es/multi-chat/style.css +1 -1
- package/es/multi-chat-client/index.js +352 -220
- package/es/multi-chat-client/style.css +1 -1
- package/es/multi-chat-history/index.js +278 -38
- package/es/multi-chat-history/style.css +1 -1
- package/es/multi-chat-record/index.js +54 -18
- package/es/multi-chat-setting/index.js +75 -33
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-view/index.js +33 -33
- package/es/select/index.js +11 -11
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +36 -28
- package/es/select-person/style.css +1 -1
- package/es/shortcut-setter/index.js +10 -10
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +74 -74
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/utils/UniRTCv2.js +77 -11
- package/es/utils/trtc.js +19025 -0
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +26349 -6267
- package/lib/cui.umd.js +26349 -6267
- package/lib/cui.umd.min.js +149 -147
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +3044 -3044
- package/packages/big-table/src/utils/batchEditing.js +610 -610
- package/packages/big-table/src/utils/bigTableProps.js +95 -95
- package/packages/button/src/ButtonPrint/components/IdentityVerification.vue +181 -181
- package/packages/button/src/ButtonPrint/index.vue +739 -739
- package/packages/fabric-chart/src/components/TimeScaleValue.vue +113 -113
- package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +3 -11
- package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +135 -135
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +558 -558
- package/packages/fabric-chart/src/fabric-chart2/FabricTop.vue +172 -172
- package/packages/multi-chat/chat/audio.vue +18 -5
- package/packages/multi-chat/chat/chatFooter.vue +1594 -1594
- package/packages/multi-chat/chat/chatHeader.vue +4 -1
- package/packages/multi-chat/chat/chatHistory.vue +10 -2
- package/packages/multi-chat/chat/chatMain.vue +5 -0
- package/packages/multi-chat/chat/index.vue +29 -0
- package/packages/multi-chat/chat/mixins/uniRTCAPI.js +10 -7
- package/packages/multi-chat/chat/multiVideo.vue +16 -4
- package/packages/multi-chat/chat/quickReply.vue +439 -439
- package/packages/multi-chat/chat/scrollList.vue +9 -3
- package/packages/multi-chat/components/avatar.vue +64 -26
- package/packages/multi-chat/setting/baseInfo/index.vue +1316 -1316
- package/packages/multi-chat/store/actions.js +8 -4
- package/packages/multi-chat/store/state.js +112 -112
- package/packages/multi-chat/utils/index.js +25 -0
- package/packages/multi-chat/utils/rtc-client.js +23 -3
- package/packages/scale-view/formitem/r-choice.vue +714 -714
- package/packages/scale-view/scaleView.vue +2010 -2010
- package/packages/select-person/select-person.vue +9 -4
- package/packages/table-filter/src/components/c-tree-select/tree-select.vue +336 -336
- package/packages/table-filter/src/components/multi-select/multi-select.vue +219 -219
- package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +340 -340
- package/packages/table-filter/src/components/search-condition/SearchCondition.vue +1825 -1825
- package/packages/table-filter/src/const/dataOptions.js +43 -43
- package/src/directive/preventReClick.js +12 -12
- package/src/utils/UniRTCv2.js +46 -13
- package/src/utils/trtc.js +1 -0
|
@@ -47,7 +47,8 @@ export default {
|
|
|
47
47
|
'clientParams',
|
|
48
48
|
'serviceId',
|
|
49
49
|
'msgList',
|
|
50
|
-
'queueItem'
|
|
50
|
+
'queueItem',
|
|
51
|
+
'sdkInfo'
|
|
51
52
|
]),
|
|
52
53
|
foldTheme() {
|
|
53
54
|
return this.theme === 'fold';
|
|
@@ -823,7 +824,10 @@ export default {
|
|
|
823
824
|
// if (item.type == 2) {
|
|
824
825
|
// return item.toName;
|
|
825
826
|
// }
|
|
826
|
-
|
|
827
|
+
let name = ''
|
|
828
|
+
if (item.params) {
|
|
829
|
+
name = JSON.parse(item.params || {})?.name || "";
|
|
830
|
+
}
|
|
827
831
|
return item.titleSetting || item.name || name;
|
|
828
832
|
},
|
|
829
833
|
formatTime(item) {
|
|
@@ -910,8 +914,10 @@ export default {
|
|
|
910
914
|
value: handleInfiniteOnLoad
|
|
911
915
|
}
|
|
912
916
|
];
|
|
917
|
+
const _this = this
|
|
918
|
+
// 默认不显示在线状态,只有南通瑞慈显示
|
|
913
919
|
function getAvatar(item) {
|
|
914
|
-
return <Avatar className="avatar" src={item.portrait} name={item.name || item.toName || item.title || item.titleSetting} len={2} />;
|
|
920
|
+
return <Avatar className="avatar" src={item.portrait} name={item.name || item.toName || item.title || item.titleSetting} len={2} status={item.onlineStatus} isShowStatus={_this.currentTab === 'session' && _this.sdkInfo?.vendor == 3} />;
|
|
915
921
|
}
|
|
916
922
|
function getContent(item, filters, fold, classifyIcon) {
|
|
917
923
|
const { formatName, formatCount } = filters;
|
|
@@ -25,6 +25,14 @@ export default {
|
|
|
25
25
|
name: {
|
|
26
26
|
type: String,
|
|
27
27
|
default: ''
|
|
28
|
+
},
|
|
29
|
+
status: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ''
|
|
32
|
+
},
|
|
33
|
+
isShowStatus: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
28
36
|
}
|
|
29
37
|
},
|
|
30
38
|
render(_h, { props }) {
|
|
@@ -32,45 +40,75 @@ export default {
|
|
|
32
40
|
const size = props.size + 'px';
|
|
33
41
|
const className = props.className;
|
|
34
42
|
const customStyle = props.customStyle;
|
|
43
|
+
const isShowStatus = props.isShowStatus;
|
|
44
|
+
const onlineStatus = props.status === 'ON-LINE' ? 'online' : 'offline';
|
|
35
45
|
let name = '';
|
|
36
46
|
if (!src) {
|
|
37
47
|
name = (props.name || '').slice(-1 * props.len);
|
|
38
48
|
}
|
|
39
49
|
return src ? (
|
|
40
|
-
<
|
|
50
|
+
<div class="avatar-wrap">
|
|
51
|
+
<img class={['avatar-logo', className]} src={src} style={`width:${size};height:${size};${customStyle}`}></img>
|
|
52
|
+
{isShowStatus ? <span class={['user-status', onlineStatus]}></span> : ''}
|
|
53
|
+
</div>
|
|
41
54
|
) : (
|
|
42
|
-
<div class=
|
|
43
|
-
<div class=
|
|
55
|
+
<div class="avatar-wrap">
|
|
56
|
+
<div class={['avatar-logo', className]} style={`width:${size};${customStyle}`}>
|
|
57
|
+
<div class="avatar-logo-content" data-name={name}></div>
|
|
58
|
+
</div>
|
|
59
|
+
{isShowStatus ? <span class={['user-status', onlineStatus]}></span> : ''}
|
|
44
60
|
</div>
|
|
45
61
|
);
|
|
46
62
|
}
|
|
47
63
|
};
|
|
48
64
|
</script>
|
|
49
65
|
<style lang="less" scoped>
|
|
50
|
-
.avatar-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
66
|
+
.avatar-wrap {
|
|
67
|
+
position: relative;
|
|
68
|
+
.user-status {
|
|
69
|
+
// display: inline-block;
|
|
70
|
+
display: none;
|
|
71
|
+
width: 12px;
|
|
72
|
+
height: 12px;
|
|
73
|
+
border-radius: 50%;
|
|
74
|
+
border: 1px solid #fff;
|
|
75
|
+
position: absolute;
|
|
76
|
+
background-color: #ccc;
|
|
77
|
+
right: 22px;
|
|
78
|
+
bottom: 2px;
|
|
79
|
+
&.online {
|
|
80
|
+
background-color: rgb(12, 198, 133);
|
|
81
|
+
}
|
|
82
|
+
&.offline {
|
|
83
|
+
background-color: rgb(217, 0, 27);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.avatar-logo {
|
|
87
|
+
width: 50px;
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
font-size: 18px;
|
|
90
|
+
line-height: 1;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
display: inline-block;
|
|
93
|
+
vertical-align: middle;
|
|
94
|
+
&-content {
|
|
95
|
+
width: 100%;
|
|
96
|
+
padding-top: 100%;
|
|
97
|
+
height: 0;
|
|
98
|
+
text-align: center;
|
|
99
|
+
position: relative;
|
|
100
|
+
color: #fff;
|
|
101
|
+
background-color: #5585f5;
|
|
102
|
+
&::after {
|
|
103
|
+
content: attr(data-name);
|
|
104
|
+
position: absolute;
|
|
105
|
+
left: 50%;
|
|
106
|
+
top: 50%;
|
|
107
|
+
transform: translate(-50%, -50%);
|
|
108
|
+
white-space: nowrap;
|
|
109
|
+
}
|
|
73
110
|
}
|
|
74
111
|
}
|
|
75
112
|
}
|
|
113
|
+
|
|
76
114
|
</style>
|