cnhis-design-vue 0.2.27-beta → 0.2.31-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 +45 -44
- package/es/big-table/style.css +1 -1
- package/es/button/index.js +1128 -1103
- package/es/button/style.css +1 -1
- 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 +1 -1
- package/es/fabric-chart/index.js +9 -9
- package/es/index/index.js +1497 -1392
- 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 +79 -53
- package/es/multi-chat-client/index.js +73 -47
- 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 +75 -49
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-view/index.js +164 -118
- package/es/scale-view/style.css +1 -1
- package/es/select/index.js +3 -3
- package/es/select-label/index.js +58 -48
- package/es/select-label/style.css +1 -1
- package/es/select-person/index.js +2 -2
- package/es/table-filter/index.js +1155 -1123
- package/es/table-filter/style.css +1 -1
- package/es/tag/index.js +1 -1
- package/es/utils/utils-map.js +16 -4
- package/es/utils/vexutils.js +15 -1
- package/es/verification-code/index.js +2 -2
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +1 -0
- package/packages/button/src/ButtonPrint/index.vue +13 -14
- package/packages/button/src/ButtonPrint/js/print.es.min.js +1 -1
- package/packages/multi-chat/store/actions.js +22 -4
- package/packages/scale-view/scaleView.vue +44 -20
- package/packages/select-label/labelFormContent.vue +23 -14
- package/packages/select-label/select-label.vue +1 -1
- package/packages/table-filter/src/mixins/mixins.js +13 -1
- package/src/utils/utils-map.js +15 -3
- package/src/utils/vexutils.js +13 -1
|
@@ -80,7 +80,19 @@ export const $utils = {
|
|
|
80
80
|
$utils() {
|
|
81
81
|
return {
|
|
82
82
|
filterOption(input, option) {
|
|
83
|
-
|
|
83
|
+
try {
|
|
84
|
+
let text = option.componentOptions.children[0].text;
|
|
85
|
+
let lowText = text.toLowerCase();
|
|
86
|
+
let lowInput = input.toLowerCase();
|
|
87
|
+
let flag = false;
|
|
88
|
+
var reg = /^[a-zA-Z]+$/;
|
|
89
|
+
if (typeof text === 'string' && reg.test(input) && ''._toPinYin) {
|
|
90
|
+
flag = lowText._toPinYin().indexOf(lowInput) >= 0;
|
|
91
|
+
}
|
|
92
|
+
return flag || lowText.indexOf(lowInput) >= 0;
|
|
93
|
+
} catch (error) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
84
96
|
},
|
|
85
97
|
/**
|
|
86
98
|
* 获取按钮自定义颜色
|
package/src/utils/utils-map.js
CHANGED
|
@@ -89,7 +89,19 @@ export default {
|
|
|
89
89
|
},
|
|
90
90
|
|
|
91
91
|
filterOption(input, option) {
|
|
92
|
-
|
|
92
|
+
try {
|
|
93
|
+
let text = option.componentOptions.children[0].text;
|
|
94
|
+
let lowText = text.toLowerCase();
|
|
95
|
+
let lowInput = input.toLowerCase();
|
|
96
|
+
let flag = false;
|
|
97
|
+
var reg = /^[a-zA-Z]+$/;
|
|
98
|
+
if (typeof text === 'string' && reg.test(input) && ''._toPinYin) {
|
|
99
|
+
flag = lowText._toPinYin().indexOf(lowInput) >= 0;
|
|
100
|
+
}
|
|
101
|
+
return flag || lowText.indexOf(lowInput) >= 0;
|
|
102
|
+
} catch (error) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
93
105
|
},
|
|
94
106
|
|
|
95
107
|
// color 获取 alpha
|
|
@@ -415,9 +427,9 @@ export default {
|
|
|
415
427
|
|
|
416
428
|
/**
|
|
417
429
|
* 转换含有###的值
|
|
418
|
-
* @param {*} item
|
|
430
|
+
* @param {*} item
|
|
419
431
|
* @param {*} k key
|
|
420
|
-
* @returns
|
|
432
|
+
* @returns
|
|
421
433
|
*/
|
|
422
434
|
paramsToValue(item, k = "value") {
|
|
423
435
|
if (this.isEmpty(item)) return;
|
package/src/utils/vexutils.js
CHANGED
|
@@ -680,7 +680,19 @@ XEUtils.mixin({
|
|
|
680
680
|
.split('|');
|
|
681
681
|
},
|
|
682
682
|
filterOption(input, option) {
|
|
683
|
-
|
|
683
|
+
try {
|
|
684
|
+
let text = option.componentOptions.children[0].text;
|
|
685
|
+
let lowText = text.toLowerCase();
|
|
686
|
+
let lowInput = input.toLowerCase();
|
|
687
|
+
let flag = false;
|
|
688
|
+
var reg = /^[a-zA-Z]+$/;
|
|
689
|
+
if (typeof text === 'string' && reg.test(input) && ''._toPinYin) {
|
|
690
|
+
flag = lowText._toPinYin().indexOf(lowInput) >= 0;
|
|
691
|
+
}
|
|
692
|
+
return flag || lowText.indexOf(lowInput) >= 0;
|
|
693
|
+
} catch (error) {
|
|
694
|
+
return false;
|
|
695
|
+
}
|
|
684
696
|
},
|
|
685
697
|
|
|
686
698
|
/**
|