cnhis-design-vue 0.1.86-beta → 0.1.90-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/age/index.js +2 -2
- package/es/big-table/index.js +21 -21
- package/es/button/index.js +2 -2
- package/es/captcha/index.js +3 -3
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +54 -26
- package/es/editor/style.css +1 -1
- package/es/fabric-chart/index.js +9 -9
- package/es/index/index.js +589 -365
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +374 -171
- package/es/multi-chat/style.css +1 -1
- package/es/multi-chat-client/index.js +333 -136
- 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 +4 -4
- package/es/multi-chat-setting/index.js +30 -23
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-view/index.js +45 -45
- package/es/scale-view/style.css +1 -1
- package/es/select/index.js +3 -3
- package/es/select-label/index.js +2 -2
- package/es/select-person/index.js +2 -2
- package/es/table-filter/index.js +58 -51
- package/es/table-filter/style.css +1 -1
- package/es/tag/index.js +1 -1
- package/es/utils/utils-map.js +3 -1
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +736 -498
- package/lib/cui.umd.js +736 -498
- package/lib/cui.umd.min.js +30 -30
- package/lib/img/no-data2.3879f4a8.png +0 -0
- package/package.json +2 -2
- package/packages/editor/src/Editor.vue +14 -3
- package/packages/multi-chat/chat/chatHeader.vue +36 -33
- package/packages/multi-chat/chat/index.vue +88 -66
- package/packages/multi-chat/chat/scrollList.vue +3 -1
- package/packages/multi-chat/components/chat-tabs-header.vue +1 -1
- package/packages/multi-chat/components/user-status.vue +193 -0
- package/packages/multi-chat/img/no-data2.png +0 -0
- package/packages/multi-chat/store/getters.js +3 -0
- package/packages/multi-chat/store/mutation.js +4 -1
- package/packages/multi-chat/store/state.js +2 -1
- package/packages/scale-view/scaleView.vue +1 -1
- package/packages/table-filter/src/components/multi-select/multi-select.vue +1 -1
- package/packages/table-filter/src/quick-search/QuickSearch.vue +11 -4
- package/src/utils/utils-map.js +6 -6
- package/lib/img/no-data2.0ca9388b.png +0 -0
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
v-model="v.isSelect"
|
|
57
57
|
@change="handleLabelChange($event, v, item)"
|
|
58
58
|
:key="i"
|
|
59
|
-
:style="
|
|
59
|
+
:style="handleLabelColor(v)"
|
|
60
60
|
>
|
|
61
61
|
<a-tooltip placement="topLeft">
|
|
62
62
|
<template slot="title">
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
v-model="item.BIRTHDAY.unit"
|
|
298
298
|
defaultValue="YEAR"
|
|
299
299
|
showSearch
|
|
300
|
-
:filterOption="
|
|
300
|
+
:filterOption="filterOption"
|
|
301
301
|
allowClear
|
|
302
302
|
>
|
|
303
303
|
<a-select-option
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
v-model="v.isSelect"
|
|
396
396
|
@change="handleLabelChange($event, v, item)"
|
|
397
397
|
:key="i"
|
|
398
|
-
:class="['label-tag-' +
|
|
398
|
+
:class="['label-tag-' + handleLabelColorClass(v)]"
|
|
399
399
|
>
|
|
400
400
|
<a-tooltip placement="topLeft">
|
|
401
401
|
<template slot="title">
|
|
@@ -717,6 +717,7 @@ import { durationMixin, $utils, filterApiFn } from '../mixins/mixins';
|
|
|
717
717
|
import vexutils from '@/utils/vexutils';
|
|
718
718
|
import wordBookutils from '../mixins/wordBookutils';
|
|
719
719
|
import create from '@/core/create';
|
|
720
|
+
import utils from '@/utils/utils-map';
|
|
720
721
|
export default create({
|
|
721
722
|
name: "quick-search",
|
|
722
723
|
mixins: [durationMixin, $utils, filterApiFn, tableSearchCon],
|
|
@@ -896,6 +897,12 @@ export default create({
|
|
|
896
897
|
},
|
|
897
898
|
created() {},
|
|
898
899
|
methods: {
|
|
900
|
+
filterOption(...arg) {
|
|
901
|
+
return utils.filterOption(...arg);
|
|
902
|
+
},
|
|
903
|
+
handleLabelColor(...arg) {
|
|
904
|
+
return utils.handleLabelColor(...arg);
|
|
905
|
+
},
|
|
899
906
|
init() {
|
|
900
907
|
this.quickSearch = [];
|
|
901
908
|
this.relationQuickSearch = [];
|
|
@@ -1620,7 +1627,7 @@ export default create({
|
|
|
1620
1627
|
this.$set(el, 'labelList', labelList);
|
|
1621
1628
|
},
|
|
1622
1629
|
|
|
1623
|
-
|
|
1630
|
+
handleLabelColorClass(item) {
|
|
1624
1631
|
return item?.color?.split("-")[1] || "yellow";
|
|
1625
1632
|
},
|
|
1626
1633
|
|
package/src/utils/utils-map.js
CHANGED
|
@@ -45,7 +45,7 @@ export default {
|
|
|
45
45
|
return _toString.call(val) === '[object Number]';
|
|
46
46
|
},
|
|
47
47
|
|
|
48
|
-
parseCondition() {},
|
|
48
|
+
parseCondition() { },
|
|
49
49
|
|
|
50
50
|
toDateString(time, format) {
|
|
51
51
|
return moment(time).format(format);
|
|
@@ -89,7 +89,7 @@ export default {
|
|
|
89
89
|
},
|
|
90
90
|
|
|
91
91
|
filterOption(input, option) {
|
|
92
|
-
return option.componentOptions.children[0]
|
|
92
|
+
return option.componentOptions.children[0]?.text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
93
93
|
},
|
|
94
94
|
|
|
95
95
|
// color 获取 alpha
|
|
@@ -262,7 +262,7 @@ export default {
|
|
|
262
262
|
let result = [];
|
|
263
263
|
let resultStr = '';
|
|
264
264
|
const getVal = (t, i, r) => {
|
|
265
|
-
return t.replace(r, function() {
|
|
265
|
+
return t.replace(r, function () {
|
|
266
266
|
let pKey = arguments[1];
|
|
267
267
|
return list[i][pKey] || '';
|
|
268
268
|
});
|
|
@@ -291,7 +291,7 @@ export default {
|
|
|
291
291
|
};
|
|
292
292
|
const that = this;
|
|
293
293
|
const getVal = (t, r, k) => {
|
|
294
|
-
return t.replace(r, function() {
|
|
294
|
+
return t.replace(r, function () {
|
|
295
295
|
var pKey = arguments[1];
|
|
296
296
|
var pls = pKey.split('!');
|
|
297
297
|
var plsList = pls.slice(1);
|
|
@@ -381,7 +381,7 @@ export default {
|
|
|
381
381
|
debounce(func, wait, immediate) {
|
|
382
382
|
let timeout, args, context, timestamp, result;
|
|
383
383
|
|
|
384
|
-
const later = function() {
|
|
384
|
+
const later = function () {
|
|
385
385
|
// 据上一次触发时间间隔
|
|
386
386
|
const last = +new Date() - timestamp;
|
|
387
387
|
|
|
@@ -398,7 +398,7 @@ export default {
|
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
400
|
|
|
401
|
-
return function(...args) {
|
|
401
|
+
return function (...args) {
|
|
402
402
|
context = this;
|
|
403
403
|
timestamp = +new Date();
|
|
404
404
|
const callNow = immediate && !timeout;
|
|
Binary file
|