cnhis-design-vue 2.0.5 → 2.0.8

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 (94) hide show
  1. package/CHANGELOG.md +38 -16
  2. package/es/affix/index.js +8 -8
  3. package/es/age/index.js +10 -10
  4. package/es/alert/index.js +8 -8
  5. package/es/anchor/index.js +8 -8
  6. package/es/auto-complete/index.js +8 -8
  7. package/es/avatar/index.js +8 -8
  8. package/es/back-top/index.js +8 -8
  9. package/es/badge/index.js +8 -8
  10. package/es/base/index.js +8 -8
  11. package/es/big-table/index.js +102 -98
  12. package/es/big-table/style.css +1 -1
  13. package/es/breadcrumb/index.js +8 -8
  14. package/es/button/index.js +84 -61
  15. package/es/button/style.css +1 -1
  16. package/es/calendar/index.js +8 -8
  17. package/es/captcha/index.js +3 -3
  18. package/es/card/index.js +8 -8
  19. package/es/carousel/index.js +8 -8
  20. package/es/cascader/index.js +8 -8
  21. package/es/checkbox/index.js +9 -9
  22. package/es/col/index.js +8 -8
  23. package/es/collapse/index.js +8 -8
  24. package/es/color-picker/index.js +3 -3
  25. package/es/comment/index.js +8 -8
  26. package/es/config-provider/index.js +8 -8
  27. package/es/date-picker/index.js +8 -8
  28. package/es/descriptions/index.js +8 -8
  29. package/es/divider/index.js +8 -8
  30. package/es/drag-layout/index.js +3 -3
  31. package/es/drawer/index.js +8 -8
  32. package/es/dropdown/index.js +8 -8
  33. package/es/editor/index.js +1 -1
  34. package/es/empty/index.js +8 -8
  35. package/es/fabric-chart/index.js +9 -9
  36. package/es/form/index.js +8 -8
  37. package/es/form-model/index.js +8 -8
  38. package/es/form-table/index.js +62 -62
  39. package/es/index/index.js +479 -452
  40. package/es/index/style.css +1 -1
  41. package/es/input/index.js +9 -9
  42. package/es/input-number/index.js +8 -8
  43. package/es/layout/index.js +8 -8
  44. package/es/list/index.js +8 -8
  45. package/es/locale-provider/index.js +8 -8
  46. package/es/map/index.js +9 -9
  47. package/es/mentions/index.js +8 -8
  48. package/es/menu/index.js +8 -8
  49. package/es/message/index.js +8 -8
  50. package/es/multi-chat/index.js +75 -75
  51. package/es/multi-chat-client/index.js +69 -69
  52. package/es/multi-chat-history/index.js +4 -4
  53. package/es/multi-chat-record/index.js +14 -14
  54. package/es/multi-chat-setting/index.js +22 -22
  55. package/es/multi-chat-sip/index.js +1 -1
  56. package/es/notification/index.js +8 -8
  57. package/es/page-header/index.js +8 -8
  58. package/es/pagination/index.js +8 -8
  59. package/es/popconfirm/index.js +8 -8
  60. package/es/popover/index.js +8 -8
  61. package/es/progress/index.js +8 -8
  62. package/es/radio/index.js +9 -9
  63. package/es/rate/index.js +8 -8
  64. package/es/result/index.js +8 -8
  65. package/es/row/index.js +8 -8
  66. package/es/scale-view/index.js +24 -24
  67. package/es/select/index.js +11 -11
  68. package/es/select-label/index.js +11 -11
  69. package/es/select-person/index.js +2 -2
  70. package/es/skeleton/index.js +8 -8
  71. package/es/slider/index.js +8 -8
  72. package/es/space/index.js +8 -8
  73. package/es/spin/index.js +8 -8
  74. package/es/statistic/index.js +8 -8
  75. package/es/steps/index.js +8 -8
  76. package/es/switch/index.js +8 -8
  77. package/es/table-filter/index.js +109 -86
  78. package/es/table-filter/style.css +1 -1
  79. package/es/tabs/index.js +8 -8
  80. package/es/tag/index.js +9 -9
  81. package/es/time-picker/index.js +8 -8
  82. package/es/timeline/index.js +8 -8
  83. package/es/tooltip/index.js +8 -8
  84. package/es/transfer/index.js +8 -8
  85. package/es/tree/index.js +8 -8
  86. package/es/tree-select/index.js +8 -8
  87. package/es/upload/index.js +8 -8
  88. package/es/verification-code/index.js +2 -2
  89. package/lib/cui.common.js +9508 -5181
  90. package/lib/cui.umd.js +9508 -5181
  91. package/lib/cui.umd.min.js +91 -91
  92. package/package.json +1 -1
  93. package/packages/big-table/src/BigTable.vue +6 -2
  94. package/packages/button/src/ButtonPrint/index.vue +18 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "2.0.5",
3
+ "version": "2.0.8",
4
4
  "description": "前端业务UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -380,8 +380,12 @@ export default create({
380
380
  const list = value.map(v => {
381
381
  const newV = {};
382
382
  for (let i in v) {
383
- newV[i] = JSON.parse(JSON.stringify(v[i] || ""));
384
- if (newV[i] && typeof v[i] === "string") {
383
+ if (typeof v[i] === 'number') {
384
+ newV[i] = v[i]
385
+ } else {
386
+ newV[i] = JSON.parse(JSON.stringify(v[i] || ""));
387
+ }
388
+ if (newV[i] && typeof v[i] === "string" && !newV[i].includes('security-code')) {
385
389
  newV[i] = this.$xss(v[i]);
386
390
  }
387
391
  }
@@ -214,11 +214,14 @@ export default create({
214
214
  timeout: 5000
215
215
  };
216
216
  let printUrlPrefix = this?.printConfig?.printUrlPrefix;
217
+ let customCofing = this?.printConfig?.customCofing || {};
218
+ let cCofing = this.getCustomCofing(customCofing);
217
219
  if (axios !== this.axios && printUrlPrefix) {
218
220
  config.baseURL = printUrlPrefix;
219
221
  }
220
222
  httpFn = axios.create({
221
- ...config
223
+ ...config,
224
+ ...cCofing
222
225
  });
223
226
  const formatListResult = await this.queryFormatList();
224
227
  if (this.versionType == 1 || this.versionType == 3) {
@@ -637,6 +640,20 @@ export default create({
637
640
  },
638
641
  callLocalServicesErrorCb(res) {
639
642
  this.$emit('error', res);
643
+ },
644
+
645
+ /**
646
+ * 获取 axios 自定义配置
647
+ */
648
+ getCustomCofing(customCofing){
649
+ let cCofing = {}
650
+ let type = typeof customCofing;
651
+ if(type === 'function'){
652
+ cCofing = customCofing();
653
+ } else if(type === 'object'){
654
+ cCofing = customCofing;
655
+ }
656
+ return cCofing;
640
657
  }
641
658
  }
642
659
  });