cnhis-design-vue 0.2.45-beta → 0.2.48-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/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 +66 -66
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +28 -28
- 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 +9 -9
- 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 +509 -492
- 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 +136 -130
- package/es/multi-chat/style.css +1 -1
- package/es/multi-chat-client/index.js +105 -99
- package/es/multi-chat-client/style.css +1 -1
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +14 -14
- package/es/multi-chat-setting/index.js +22 -22
- 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 +23 -23
- package/es/select/index.js +11 -11
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +2 -2
- 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 +116 -105
- package/es/table-filter/style.css +1 -1
- 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/utils-map.js +6 -1
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +626 -557
- package/lib/cui.umd.js +626 -557
- package/lib/cui.umd.min.js +64 -64
- package/package.json +3 -3
- package/packages/multi-chat/chat/chatMain.vue +8 -2
- package/packages/multi-chat/chat/index.vue +1 -1
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +10 -7
- package/packages/table-filter/src/components/search-condition/SearchCondition.vue +12 -3
- package/src/utils/utils-map.js +5 -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.48-beta",
|
|
4
4
|
"description": "基于 Ant Desgin Vue 的UI库",
|
|
5
5
|
"keyword": "cnhis-design-vue vue cnhis",
|
|
6
6
|
"homepage": "http://dv.cnhis.com/",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"stompjs": "^2.3.3",
|
|
43
43
|
"text-security": "^3.2.1",
|
|
44
44
|
"trtc-js-sdk": "^4.11.4",
|
|
45
|
-
"v-viewer": "1.5.1",
|
|
45
|
+
"v-viewer": "^1.5.1",
|
|
46
46
|
"video.js": "^7.8.4",
|
|
47
47
|
"vue-dom-portal": "^0.1.6",
|
|
48
48
|
"vue-highlightjs": "^1.3.3",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"vue-resize-directive": "^1.2.0",
|
|
51
51
|
"vue-simple-uploader": "^0.7.6",
|
|
52
52
|
"vuedraggable": "^2.24.3",
|
|
53
|
-
"vxe-table-plugin-antd": "^1.11.3",
|
|
54
53
|
"vxe-table": "^3.4.1",
|
|
54
|
+
"vxe-table-plugin-antd": "^1.11.3",
|
|
55
55
|
"wangeditor": "^4.7.5",
|
|
56
56
|
"xe-utils": "^3.4.0"
|
|
57
57
|
},
|
|
@@ -248,6 +248,9 @@ export default {
|
|
|
248
248
|
},
|
|
249
249
|
isShowPortraitPanel: {
|
|
250
250
|
type: Boolean
|
|
251
|
+
},
|
|
252
|
+
activatedTime: {
|
|
253
|
+
type: Number
|
|
251
254
|
}
|
|
252
255
|
},
|
|
253
256
|
data() {
|
|
@@ -392,7 +395,7 @@ export default {
|
|
|
392
395
|
if (!matchItem) return 3;
|
|
393
396
|
if (!+matchItem.value) return 3;
|
|
394
397
|
return +matchItem.value;
|
|
395
|
-
}
|
|
398
|
+
},
|
|
396
399
|
},
|
|
397
400
|
created() {
|
|
398
401
|
this.attachEvent();
|
|
@@ -501,7 +504,7 @@ export default {
|
|
|
501
504
|
if (!target) return;
|
|
502
505
|
let top = target.scrollHeight;
|
|
503
506
|
if (scrollTo === 'current') {
|
|
504
|
-
|
|
507
|
+
top = target.scrollHeight - this.scrollHeight;
|
|
505
508
|
}
|
|
506
509
|
target.scrollTo({
|
|
507
510
|
left: 0,
|
|
@@ -1043,6 +1046,9 @@ export default {
|
|
|
1043
1046
|
}
|
|
1044
1047
|
}
|
|
1045
1048
|
},
|
|
1049
|
+
activatedTime(value) {
|
|
1050
|
+
this.setScrollTo('bottom');
|
|
1051
|
+
},
|
|
1046
1052
|
/**
|
|
1047
1053
|
* 图片懒加载处理
|
|
1048
1054
|
*/
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
<a-row style="width: 100%;height: 100%;overflow: hidden;">
|
|
184
184
|
<a-col :span="mainSpan" style="height: 100%;position: relative">
|
|
185
185
|
<a-layout>
|
|
186
|
-
<chat-main :isShowPortraitPanel="isShowPortraitPanel" :hideHeader="hideHeader">
|
|
186
|
+
<chat-main :isShowPortraitPanel="isShowPortraitPanel" :hideHeader="hideHeader" v-bind="$attrs">
|
|
187
187
|
<a-alert v-if="reConnention >= 60" type="warning" message="网络质量不佳,请检查网络后重试!" show-icon>
|
|
188
188
|
<a-icon type="exclamation-circle" slot="icon" />
|
|
189
189
|
</a-alert>
|
|
@@ -1041,15 +1041,18 @@ export default create({
|
|
|
1041
1041
|
'div',
|
|
1042
1042
|
{
|
|
1043
1043
|
directives: [
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1044
|
+
{
|
|
1045
|
+
name: 'drag-move',
|
|
1046
|
+
value: {
|
|
1047
|
+
target: 'ant-modal-confirm-body'
|
|
1048
|
+
}
|
|
1048
1049
|
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1050
|
+
],
|
|
1051
|
+
domProps: {
|
|
1052
|
+
innerHTML: settingObj.tipsMsg || `是否确认${btn.name}`
|
|
1053
|
+
}
|
|
1051
1054
|
},
|
|
1052
|
-
settingObj.tipsMsg || `是否确认${btn.name}`
|
|
1055
|
+
// settingObj.tipsMsg || `是否确认${btn.name}`
|
|
1053
1056
|
),
|
|
1054
1057
|
okText: '确定',
|
|
1055
1058
|
cancelText: '取消',
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
</div>
|
|
223
223
|
</div>
|
|
224
224
|
</div>
|
|
225
|
-
<SearchFilter v-bind="$attrs" :visible="relationVisible" @saveAdd="relationSave" @cancelSaveAdd="relationCancel" :actionList_prop="relationAction" :searchFieldList="relationSearchFieldList" />
|
|
225
|
+
<SearchFilter v-bind="$attrs" :visible="relationVisible" openType="relationTable" @saveAdd="relationSave" @cancelSaveAdd="relationCancel" :actionList_prop="relationAction" :searchFieldList="relationSearchFieldList" />
|
|
226
226
|
</div>
|
|
227
227
|
</template>
|
|
228
228
|
|
|
@@ -299,6 +299,10 @@ export default create({
|
|
|
299
299
|
hideAddBtn: {
|
|
300
300
|
type: Boolean,
|
|
301
301
|
default: false
|
|
302
|
+
},
|
|
303
|
+
openType:{
|
|
304
|
+
type: String,
|
|
305
|
+
default: ""
|
|
302
306
|
}
|
|
303
307
|
},
|
|
304
308
|
data() {
|
|
@@ -446,7 +450,7 @@ export default create({
|
|
|
446
450
|
}
|
|
447
451
|
}
|
|
448
452
|
let { relationTableList = [] } = this.$attrs;
|
|
449
|
-
this.relationTableList = relationTableList;
|
|
453
|
+
this.relationTableList = this.openType === 'relationTable' ? []: relationTableList;
|
|
450
454
|
this.init();
|
|
451
455
|
this.backShow(this.actionList_prop);
|
|
452
456
|
this.showItemName && this.getParentNames();
|
|
@@ -474,7 +478,7 @@ export default create({
|
|
|
474
478
|
});
|
|
475
479
|
this.parentNames = parentNames;
|
|
476
480
|
},
|
|
477
|
-
init() {
|
|
481
|
+
init(config={}) {
|
|
478
482
|
let mySearchFieldList = JSON.parse(JSON.stringify(this.searchFieldList)).filter(i => i.columnName !== 'operatorColumn' && i.isMerge != 1);
|
|
479
483
|
if (mySearchFieldList && mySearchFieldList.length > 0) {
|
|
480
484
|
if (this.isPersonalizedHome) {
|
|
@@ -513,6 +517,11 @@ export default create({
|
|
|
513
517
|
this.actionList = [];
|
|
514
518
|
this.className = '';
|
|
515
519
|
this.teaValue = '';
|
|
520
|
+
|
|
521
|
+
let isInitNoAdd = 'initNoAdd' == config?.type || "";
|
|
522
|
+
|
|
523
|
+
if(isInitNoAdd) return;
|
|
524
|
+
|
|
516
525
|
this.addAction();
|
|
517
526
|
}
|
|
518
527
|
},
|
package/src/utils/utils-map.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const _toString = Object.prototype.toString;
|
|
2
2
|
import moment from 'moment';
|
|
3
3
|
import { Message } from 'ant-design-vue';
|
|
4
|
+
import XEUtils from 'xe-utils';
|
|
4
5
|
export default {
|
|
5
6
|
isJSON(str) {
|
|
6
7
|
if (typeof str == 'string') {
|
|
@@ -309,7 +310,7 @@ export default {
|
|
|
309
310
|
var plsList = pls.slice(1);
|
|
310
311
|
var f = plsList.find(v => v || v == 0);
|
|
311
312
|
var res = p[k][pls[0]];
|
|
312
|
-
res =
|
|
313
|
+
res = XEUtils.notEmpty(res) ? res : '';
|
|
313
314
|
return res || f || noval;
|
|
314
315
|
});
|
|
315
316
|
};
|
|
@@ -329,6 +330,9 @@ export default {
|
|
|
329
330
|
}
|
|
330
331
|
return str;
|
|
331
332
|
},
|
|
333
|
+
notEmpty(text) {
|
|
334
|
+
return XEUtils.isBoolean(text) || String(text) === "0" || !!text;
|
|
335
|
+
},
|
|
332
336
|
|
|
333
337
|
paramsToPrintValue(item) {
|
|
334
338
|
if (this.isEmpty(item)) return;
|