cnhis-design-vue 2.1.160 → 2.2.0

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 (42) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/es/age/index.js +2 -2
  3. package/es/big-table/index.js +26 -26
  4. package/es/button/index.js +4 -4
  5. package/es/captcha/index.js +3 -3
  6. package/es/card-reader-sdk/index.js +1 -1
  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/ellipsis/index.js +1 -1
  12. package/es/fabric-chart/index.js +9 -9
  13. package/es/form-table/index.js +20 -20
  14. package/es/full-calendar/index.js +4 -4
  15. package/es/index/index.js +226 -217
  16. package/es/index/style.css +1 -1
  17. package/es/input/index.js +1 -1
  18. package/es/map/index.js +1 -1
  19. package/es/multi-chat/index.js +25 -25
  20. package/es/multi-chat-client/index.js +19 -19
  21. package/es/multi-chat-history/index.js +4 -4
  22. package/es/multi-chat-record/index.js +4 -4
  23. package/es/multi-chat-setting/index.js +20 -20
  24. package/es/multi-chat-sip/index.js +1 -1
  25. package/es/radio/index.js +1 -1
  26. package/es/scale-container/index.js +1 -1
  27. package/es/scale-view/index.js +27 -27
  28. package/es/select/index.js +4 -4
  29. package/es/select-label/index.js +3 -3
  30. package/es/select-person/index.js +2 -2
  31. package/es/select-tag/index.js +4 -4
  32. package/es/shortcut-setter/index.js +2 -2
  33. package/es/slider-tree/index.js +1 -1
  34. package/es/table-filter/index.js +73 -64
  35. package/es/table-filter/style.css +1 -1
  36. package/es/tag/index.js +1 -1
  37. package/es/verification-code/index.js +2 -2
  38. package/lib/cui.common.js +249 -240
  39. package/lib/cui.umd.js +249 -240
  40. package/lib/cui.umd.min.js +7 -7
  41. package/package.json +1 -1
  42. package/packages/table-filter/src/components/render-widget/components/NumberRange.vue +13 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "2.1.160",
3
+ "version": "2.2.0",
4
4
  "description": "前端业务UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -102,11 +102,21 @@ export default {
102
102
  this.lessValue = resVal.split('~')?.[0] ?? undefined;
103
103
  this.bigValue = resVal.split('~')?.[1] ?? undefined;
104
104
  },
105
+ handleChangeValue(lessValue, bigValue) {
106
+ if(!lessValue && lessValue !== 0) return;
107
+ if(!bigValue && bigValue !== 0) return;
108
+ let lessNum = +lessValue
109
+ if(isNaN(lessNum)) return;
110
+ let bigNum = +bigValue
111
+ if(isNaN(bigNum)) return;
112
+ if(lessNum > bigNum) {
113
+ return `${bigValue}~${lessValue}`
114
+ }
115
+ },
105
116
  changeFilterNumber() {
106
117
  let res = `${this.lessValue ?? ''}~${this.bigValue ?? ''}`
107
- if (this.lessValue && this.bigValue && this.lessValue > this.bigValue) {
108
- res = `${this.bigValue}~${this.lessValue}`
109
- }
118
+ let transferRes = this.handleChangeValue(this.lessValue, this.bigValue)
119
+ if(transferRes) res = transferRes;
110
120
  this.$emit("update:value", res);
111
121
  },
112
122
  clearFilterNumber() {