cnhis-design-vue 0.2.20-beta → 0.2.24-beta
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/lib/cui.common.js +1231 -2422
- package/lib/cui.umd.js +1231 -2422
- package/lib/cui.umd.min.js +63 -63
- package/package.json +2 -2
- package/packages/big-table/src/BigTable.vue +1 -0
- package/packages/big-table/src/assets/style/table-base.less +5 -0
- package/packages/big-table/src/components/TextOverTooltip.vue +1 -1
- package/packages/multi-chat/chat/index.vue +1 -1
- package/packages/multi-chat/components/user-status.vue +1 -1
- package/packages/scale-view/answerParse.vue +4 -4
- package/packages/select-label/label-classify.vue +129 -0
- package/packages/select-label/labelFormContent.vue +263 -130
- package/packages/select-label/select-label.vue +111 -18
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +2 -1
- package/packages/table-filter/src/components/search-modal/set-classification.vue +19 -1
- package/packages/table-filter/src/mixins/mixins.js +10 -2
- package/packages/table-filter/src/quick-search/QuickSearch.vue +16 -7
- package/es/affix/index.js +0 -3008
- package/es/age/index.js +0 -3767
- package/es/age/style.css +0 -1
- package/es/alert/index.js +0 -3008
- package/es/anchor/index.js +0 -3021
- package/es/auto-complete/index.js +0 -3008
- package/es/avatar/index.js +0 -3008
- package/es/back-top/index.js +0 -3008
- package/es/badge/index.js +0 -3008
- package/es/base/index.js +0 -2896
- package/es/big-table/index.js +0 -19626
- package/es/big-table/style.css +0 -1
- package/es/breadcrumb/index.js +0 -3032
- package/es/button/index.js +0 -9128
- package/es/button/style.css +0 -1
- package/es/calendar/index.js +0 -3008
- package/es/captcha/index.js +0 -3618
- package/es/captcha/style.css +0 -1
- package/es/card/index.js +0 -3032
- package/es/carousel/index.js +0 -3008
- package/es/cascader/index.js +0 -3008
- package/es/checkbox/index.js +0 -3344
- package/es/checkbox/style.css +0 -1
- package/es/col/index.js +0 -3009
- package/es/collapse/index.js +0 -3021
- package/es/color-picker/index.js +0 -3532
- package/es/color-picker/style.css +0 -1
- package/es/comment/index.js +0 -3008
- package/es/config-provider/index.js +0 -3008
- package/es/date-picker/index.js +0 -3043
- package/es/descriptions/index.js +0 -3021
- package/es/divider/index.js +0 -3008
- package/es/drag-layout/index.js +0 -4814
- package/es/drag-layout/style.css +0 -1
- package/es/drawer/index.js +0 -3008
- package/es/dropdown/index.js +0 -3008
- package/es/editor/index.js +0 -3273
- package/es/editor/style.css +0 -1
- package/es/empty/index.js +0 -3008
- package/es/fabric-chart/index.js +0 -9844
- package/es/fabric-chart/style.css +0 -1
- package/es/form/index.js +0 -3019
- package/es/form-model/index.js +0 -3018
- package/es/grid/index.js +0 -3776
- package/es/icon/index.js +0 -2962
- package/es/img/calling.ba1a517f.png +0 -0
- package/es/img/failure.96c6f004.png +0 -0
- package/es/img/no-permission.3aa0dddb.png +0 -0
- package/es/img/nodata.bbccf960.png +0 -0
- package/es/index/index.js +0 -110944
- package/es/index/style.css +0 -1
- package/es/input/index.js +0 -4384
- package/es/input/style.css +0 -1
- package/es/input-number/index.js +0 -3008
- package/es/keep-cache/index.js +0 -3288
- package/es/layout/index.js +0 -3054
- package/es/list/index.js +0 -3032
- package/es/locale-provider/index.js +0 -3008
- package/es/map/index.js +0 -3677
- package/es/map/style.css +0 -1
- package/es/media/msgTip.6865f0c7.mp3 +0 -0
- package/es/mentions/index.js +0 -3021
- package/es/menu/index.js +0 -3054
- package/es/message/index.js +0 -2896
- package/es/modal/index.js +0 -2962
- package/es/multi-chat/index.js +0 -24268
- package/es/multi-chat/style.css +0 -1
- package/es/multi-chat-client/index.js +0 -18293
- package/es/multi-chat-client/style.css +0 -1
- package/es/multi-chat-history/index.js +0 -4571
- package/es/multi-chat-history/style.css +0 -1
- package/es/multi-chat-record/index.js +0 -4831
- package/es/multi-chat-record/style.css +0 -1
- package/es/multi-chat-setting/index.js +0 -13452
- package/es/multi-chat-setting/style.css +0 -1
- package/es/multi-chat-sip/index.js +0 -3313
- package/es/multi-chat-sip/style.css +0 -1
- package/es/notification/index.js +0 -2896
- package/es/page-header/index.js +0 -3008
- package/es/pagination/index.js +0 -3008
- package/es/popconfirm/index.js +0 -3008
- package/es/popover/index.js +0 -3008
- package/es/progress/index.js +0 -3008
- package/es/radio/index.js +0 -3335
- package/es/radio/style.css +0 -1
- package/es/rate/index.js +0 -3008
- package/es/result/index.js +0 -3008
- package/es/row/index.js +0 -3008
- package/es/scale-view/index.js +0 -18009
- package/es/scale-view/style.css +0 -1
- package/es/select/index.js +0 -4567
- package/es/select/style.css +0 -1
- package/es/select-label/index.js +0 -5226
- package/es/select-label/style.css +0 -1
- package/es/select-person/index.js +0 -5427
- package/es/select-person/style.css +0 -1
- package/es/skeleton/index.js +0 -3008
- package/es/slider/index.js +0 -3008
- package/es/space/index.js +0 -3008
- package/es/spin/index.js +0 -3008
- package/es/statistic/index.js +0 -3021
- package/es/steps/index.js +0 -3021
- package/es/switch/index.js +0 -3008
- package/es/table-filter/index.js +0 -24120
- package/es/table-filter/style.css +0 -1
- package/es/tabs/index.js +0 -3021
- package/es/tag/index.js +0 -3909
- package/es/tag/style.css +0 -1
- package/es/time-picker/index.js +0 -3008
- package/es/timeline/index.js +0 -3018
- package/es/tooltip/index.js +0 -3008
- package/es/transfer/index.js +0 -3008
- package/es/tree/index.js +0 -3021
- package/es/tree-select/index.js +0 -3021
- package/es/upload/index.js +0 -3008
- package/es/utils/UniRTCv2.js +0 -586
- package/es/utils/chatFetch.js +0 -85
- package/es/utils/clickoutside.js +0 -76
- package/es/utils/crypto.js +0 -40
- package/es/utils/kty-sdk.js +0 -1030
- package/es/utils/kty.min-1.0.0.js +0 -6
- package/es/utils/sip-device.js +0 -112
- package/es/utils/time-domain.js +0 -195
- package/es/utils/utils-map.js +0 -530
- package/es/utils/vexutils.js +0 -963
- package/es/verification-code/index.js +0 -3487
- package/es/verification-code/style.css +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.24-beta",
|
|
4
4
|
"description": "基于 Ant Desgin Vue 的UI库",
|
|
5
5
|
"keyword": "cnhis-design-vue vue cnhis",
|
|
6
6
|
"homepage": "http://dv.cnhis.com/",
|
|
@@ -93,4 +93,4 @@
|
|
|
93
93
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
}
|
|
96
|
+
}
|
|
@@ -2149,6 +2149,7 @@ export default create({
|
|
|
2149
2149
|
if (!imageArr || !imageArr.length) return curSrc;
|
|
2150
2150
|
let matchItem = imageArr.find(item => item.type === type);
|
|
2151
2151
|
if (!matchItem) return curSrc;
|
|
2152
|
+
if(matchItem.suffix) return curSrc + matchItem.suffix
|
|
2152
2153
|
let h = matchItem.h;
|
|
2153
2154
|
let w = matchItem.w;
|
|
2154
2155
|
if (matchItem.h === 'adaptive' && matchItem.w != 'adaptive') {
|
|
@@ -189,6 +189,7 @@ body {
|
|
|
189
189
|
.vxe-header--column .vxe-cell--title {
|
|
190
190
|
height: 100%;
|
|
191
191
|
line-height: unset;
|
|
192
|
+
width: 100%;
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
.vxe-table--footer-wrapper.body--wrapper,
|
|
@@ -219,6 +220,10 @@ body {
|
|
|
219
220
|
/deep/ .filter-box {
|
|
220
221
|
display: flex;
|
|
221
222
|
align-items: center;
|
|
223
|
+
width: 100%;
|
|
224
|
+
.text-over-tooltip-components {
|
|
225
|
+
max-width: calc(100% - 20px);
|
|
226
|
+
}
|
|
222
227
|
.vxe-filter--btn {
|
|
223
228
|
border-top-color: #c0c4cc;
|
|
224
229
|
border-right-color: #c0c4cc;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
</a-tabs>
|
|
132
132
|
<div v-if="isNormalStyle" class="footer-operate">
|
|
133
133
|
<!-- 状态切换 -->
|
|
134
|
-
<UserStatus v-if="hideHeader"
|
|
134
|
+
<UserStatus v-if="hideHeader" placement="topCenter" />
|
|
135
135
|
<div class="footer-operate-right">
|
|
136
136
|
<span v-if="showSetting" class="setting-span">
|
|
137
137
|
<svg-icon icon-class="a-xitongtubiaoliaotianshezhi" @click="handleSetting" />
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<svg-icon v-if="statusIcon" :icon-class="statusIcon" style="font-size: 16px"></svg-icon>
|
|
19
19
|
<img v-else :src="getImg(status)" height="16" />
|
|
20
20
|
{{ statusDesc }}
|
|
21
|
-
<a-icon type="
|
|
21
|
+
<a-icon type="up" />
|
|
22
22
|
</div>
|
|
23
23
|
<a-menu slot="overlay">
|
|
24
24
|
<a-menu-item v-for="{ title, status, description, icon } in statusList" :key="status" @click="handleStatusChange(status)">
|
|
@@ -27,11 +27,11 @@ export default {
|
|
|
27
27
|
},
|
|
28
28
|
|
|
29
29
|
computed: {
|
|
30
|
+
questionScore() {
|
|
31
|
+
return this.item?.questionScore;
|
|
32
|
+
},
|
|
30
33
|
answerSuccess() {
|
|
31
|
-
|
|
32
|
-
// let { questionScore, maxScore } = this.item?.scoreConfigs || {};
|
|
33
|
-
// if (questionScore && questionScore == maxScore) return true;
|
|
34
|
-
return questionScore > 0;
|
|
34
|
+
return this.questionScore > 0;
|
|
35
35
|
},
|
|
36
36
|
answerIcon() {
|
|
37
37
|
return this.answerSuccess ? "xitongtubiaodui" : "xitongtubiaocuo";
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="edit-content">
|
|
3
|
+
<!-- disable -->
|
|
4
|
+
<div v-if="!itemList" class="label-disable-wrap">
|
|
5
|
+
<p class="label-disable-title">无可选标签</p>
|
|
6
|
+
<p class="label-disable-desc">请联系管理员进行标签管理设置</p>
|
|
7
|
+
</div>
|
|
8
|
+
<!-- -->
|
|
9
|
+
<div v-else class="label-content">
|
|
10
|
+
<a-checkable-tag
|
|
11
|
+
v-for="item in itemList"
|
|
12
|
+
v-model="item.isSelect"
|
|
13
|
+
@change="handleLabelChange($event, item, classifyItem)"
|
|
14
|
+
:key="item.labelId"
|
|
15
|
+
:style="handleLabelColor(item)"
|
|
16
|
+
:class="{ 'sys-label-tag': item.isPublic && item.isPublic == 1 }"
|
|
17
|
+
>
|
|
18
|
+
<a-tooltip placement="topLeft">
|
|
19
|
+
<template slot="title">
|
|
20
|
+
<span>{{ item.labelName }}</span>
|
|
21
|
+
</template>
|
|
22
|
+
{{ item.labelName }}
|
|
23
|
+
</a-tooltip>
|
|
24
|
+
|
|
25
|
+
<template v-if="sourceType != 'guage'">
|
|
26
|
+
<a-icon class="label-close" v-show="!(item.isPublic && item.isPublic == 1)" type="close" @click.native.stop="handleDelLabel(item, classifyItem)" />
|
|
27
|
+
</template>
|
|
28
|
+
</a-checkable-tag>
|
|
29
|
+
<template v-if="classifyItem.allowCreateByPersonal == 1 ">
|
|
30
|
+
<a-button v-if="isEdit && !classifyItem.isNoAdd && sourceType != 'guage'" type="dashed" class="label-add" v-show="!classifyItem.showAdd" @click="handleAddLabel($event, classifyItem)">
|
|
31
|
+
<a-icon type="plus" />
|
|
32
|
+
<!-- {{ $t("1.1.2") }} -->
|
|
33
|
+
标签
|
|
34
|
+
</a-button>
|
|
35
|
+
<!-- 是否允许新增个人标签 allowCreateByPersonal -->
|
|
36
|
+
<a-input v-if="isEdit && !classifyItem.isNoAdd && sourceType != 'guage'" class="label-add add-input" v-model.trim="classifyItem.addVal" v-show="classifyItem.showAdd" @blur="hanldeBlur($event, classifyItem)">
|
|
37
|
+
<a-icon slot="suffix" type="close" @click.native.stop="clearaddVal($event, classifyItem)" />
|
|
38
|
+
</a-input>
|
|
39
|
+
</template>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script>
|
|
45
|
+
import { Tooltip, Icon, Button, Input, Tag, Tabs, Anchor } from 'ant-design-vue';
|
|
46
|
+
import create from '@/core/create';
|
|
47
|
+
export default create({
|
|
48
|
+
name: 'label-classify',
|
|
49
|
+
data() {
|
|
50
|
+
return {};
|
|
51
|
+
},
|
|
52
|
+
props: {
|
|
53
|
+
classifyItem:{
|
|
54
|
+
type: Object,
|
|
55
|
+
default:()=>({})
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
handleLabelChange: {
|
|
59
|
+
type: Function,
|
|
60
|
+
default: ()=>{}
|
|
61
|
+
},
|
|
62
|
+
handleLabelColor: {
|
|
63
|
+
type: Function,
|
|
64
|
+
default: ()=>{}
|
|
65
|
+
},
|
|
66
|
+
handleDelLabel: {
|
|
67
|
+
type: Function,
|
|
68
|
+
default: ()=>{}
|
|
69
|
+
},
|
|
70
|
+
handleAddLabel : {
|
|
71
|
+
type: Function,
|
|
72
|
+
default: ()=>{}
|
|
73
|
+
},
|
|
74
|
+
hanldeBlur: {
|
|
75
|
+
type: Function,
|
|
76
|
+
default: ()=>{}
|
|
77
|
+
},
|
|
78
|
+
clearaddVal: {
|
|
79
|
+
type: Function,
|
|
80
|
+
default: ()=>{}
|
|
81
|
+
},
|
|
82
|
+
isEdit:{
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: false
|
|
85
|
+
},
|
|
86
|
+
sourceType: String,
|
|
87
|
+
|
|
88
|
+
},
|
|
89
|
+
computed: {
|
|
90
|
+
itemList(){
|
|
91
|
+
return this?.classifyItem?.itemList || [];
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
watch: {},
|
|
95
|
+
beforeCreate() {},
|
|
96
|
+
created() {},
|
|
97
|
+
beforeMount() {},
|
|
98
|
+
mounted() {},
|
|
99
|
+
beforeUpdate() {},
|
|
100
|
+
updated() {},
|
|
101
|
+
beforeDestroy() {},
|
|
102
|
+
destroyed() {},
|
|
103
|
+
activated() {},
|
|
104
|
+
methods: {},
|
|
105
|
+
components: {
|
|
106
|
+
[Input.name]: Input,
|
|
107
|
+
[Icon.name]: Icon,
|
|
108
|
+
[Tabs.name]: Tabs,
|
|
109
|
+
[Tabs.TabPane.name]: Tabs.TabPane,
|
|
110
|
+
[Anchor.name]: Anchor,
|
|
111
|
+
[Anchor.Link.name]: Anchor.Link,
|
|
112
|
+
[Tooltip.name]: Tooltip,
|
|
113
|
+
[Button.name]: Button,
|
|
114
|
+
[Tag.name]: Tag,
|
|
115
|
+
[Tag.CheckableTag.name]: Tag.CheckableTag
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
</script>
|
|
119
|
+
|
|
120
|
+
<style lang="less" scoped>
|
|
121
|
+
.label-disable-wrap {
|
|
122
|
+
text-align: center;
|
|
123
|
+
}
|
|
124
|
+
.label-content {
|
|
125
|
+
/deep/ .ant-tag {
|
|
126
|
+
border: 1px solid #f1f1f1;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
</style>
|