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.
Files changed (45) hide show
  1. package/es/age/index.js +2 -2
  2. package/es/big-table/index.js +45 -44
  3. package/es/big-table/style.css +1 -1
  4. package/es/button/index.js +1128 -1103
  5. package/es/button/style.css +1 -1
  6. package/es/captcha/index.js +3 -3
  7. package/es/checkbox/index.js +1 -1
  8. package/es/color-picker/index.js +1 -1
  9. package/es/drag-layout/index.js +3 -3
  10. package/es/editor/index.js +1 -1
  11. package/es/fabric-chart/index.js +9 -9
  12. package/es/index/index.js +1497 -1392
  13. package/es/index/style.css +1 -1
  14. package/es/input/index.js +1 -1
  15. package/es/map/index.js +1 -1
  16. package/es/multi-chat/index.js +79 -53
  17. package/es/multi-chat-client/index.js +73 -47
  18. package/es/multi-chat-history/index.js +4 -4
  19. package/es/multi-chat-record/index.js +4 -4
  20. package/es/multi-chat-setting/index.js +75 -49
  21. package/es/multi-chat-sip/index.js +1 -1
  22. package/es/radio/index.js +1 -1
  23. package/es/scale-view/index.js +164 -118
  24. package/es/scale-view/style.css +1 -1
  25. package/es/select/index.js +3 -3
  26. package/es/select-label/index.js +58 -48
  27. package/es/select-label/style.css +1 -1
  28. package/es/select-person/index.js +2 -2
  29. package/es/table-filter/index.js +1155 -1123
  30. package/es/table-filter/style.css +1 -1
  31. package/es/tag/index.js +1 -1
  32. package/es/utils/utils-map.js +16 -4
  33. package/es/utils/vexutils.js +15 -1
  34. package/es/verification-code/index.js +2 -2
  35. package/package.json +1 -1
  36. package/packages/big-table/src/BigTable.vue +1 -0
  37. package/packages/button/src/ButtonPrint/index.vue +13 -14
  38. package/packages/button/src/ButtonPrint/js/print.es.min.js +1 -1
  39. package/packages/multi-chat/store/actions.js +22 -4
  40. package/packages/scale-view/scaleView.vue +44 -20
  41. package/packages/select-label/labelFormContent.vue +23 -14
  42. package/packages/select-label/select-label.vue +1 -1
  43. package/packages/table-filter/src/mixins/mixins.js +13 -1
  44. package/src/utils/utils-map.js +15 -3
  45. 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
- return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
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
  * 获取按钮自定义颜色
@@ -89,7 +89,19 @@ export default {
89
89
  },
90
90
 
91
91
  filterOption(input, option) {
92
- return option.componentOptions.children[0]?.text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
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;
@@ -680,7 +680,19 @@ XEUtils.mixin({
680
680
  .split('|');
681
681
  },
682
682
  filterOption(input, option) {
683
- return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
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
  /**