cnhis-design-vue 0.2.34-beta → 0.2.35-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 (97) hide show
  1. package/es/affix/index.js +8 -8
  2. package/es/age/index.js +10 -10
  3. package/es/alert/index.js +8 -8
  4. package/es/anchor/index.js +8 -8
  5. package/es/auto-complete/index.js +8 -8
  6. package/es/avatar/index.js +8 -8
  7. package/es/back-top/index.js +8 -8
  8. package/es/badge/index.js +8 -8
  9. package/es/base/index.js +8 -8
  10. package/es/big-table/index.js +109 -99
  11. package/es/big-table/style.css +1 -1
  12. package/es/breadcrumb/index.js +8 -8
  13. package/es/button/index.js +52 -52
  14. package/es/button/style.css +1 -1
  15. package/es/calendar/index.js +8 -8
  16. package/es/captcha/index.js +3 -3
  17. package/es/card/index.js +8 -8
  18. package/es/carousel/index.js +8 -8
  19. package/es/cascader/index.js +8 -8
  20. package/es/checkbox/index.js +9 -9
  21. package/es/col/index.js +8 -8
  22. package/es/collapse/index.js +8 -8
  23. package/es/color-picker/index.js +1 -1
  24. package/es/comment/index.js +8 -8
  25. package/es/config-provider/index.js +8 -8
  26. package/es/date-picker/index.js +8 -8
  27. package/es/descriptions/index.js +8 -8
  28. package/es/divider/index.js +8 -8
  29. package/es/drag-layout/index.js +3 -3
  30. package/es/drawer/index.js +8 -8
  31. package/es/dropdown/index.js +8 -8
  32. package/es/editor/index.js +1 -1
  33. package/es/empty/index.js +8 -8
  34. package/es/fabric-chart/index.js +9 -9
  35. package/es/form/index.js +8 -8
  36. package/es/form-model/index.js +8 -8
  37. package/es/index/index.js +450 -438
  38. package/es/index/style.css +1 -1
  39. package/es/input/index.js +9 -9
  40. package/es/input-number/index.js +8 -8
  41. package/es/layout/index.js +8 -8
  42. package/es/list/index.js +8 -8
  43. package/es/locale-provider/index.js +8 -8
  44. package/es/map/index.js +9 -9
  45. package/es/mentions/index.js +8 -8
  46. package/es/menu/index.js +8 -8
  47. package/es/message/index.js +8 -8
  48. package/es/multi-chat/index.js +75 -75
  49. package/es/multi-chat-client/index.js +69 -69
  50. package/es/multi-chat-history/index.js +4 -4
  51. package/es/multi-chat-record/index.js +14 -14
  52. package/es/multi-chat-setting/index.js +53 -48
  53. package/es/multi-chat-setting/style.css +1 -1
  54. package/es/multi-chat-sip/index.js +1 -1
  55. package/es/notification/index.js +8 -8
  56. package/es/page-header/index.js +8 -8
  57. package/es/pagination/index.js +8 -8
  58. package/es/popconfirm/index.js +8 -8
  59. package/es/popover/index.js +8 -8
  60. package/es/progress/index.js +8 -8
  61. package/es/radio/index.js +9 -9
  62. package/es/rate/index.js +8 -8
  63. package/es/result/index.js +8 -8
  64. package/es/row/index.js +8 -8
  65. package/es/scale-view/index.js +23 -23
  66. package/es/select/index.js +11 -11
  67. package/es/select-label/index.js +11 -11
  68. package/es/select-person/index.js +2 -2
  69. package/es/skeleton/index.js +8 -8
  70. package/es/slider/index.js +8 -8
  71. package/es/space/index.js +8 -8
  72. package/es/spin/index.js +8 -8
  73. package/es/statistic/index.js +8 -8
  74. package/es/steps/index.js +8 -8
  75. package/es/switch/index.js +8 -8
  76. package/es/table-filter/index.js +103 -106
  77. package/es/table-filter/style.css +1 -1
  78. package/es/tabs/index.js +8 -8
  79. package/es/tag/index.js +9 -9
  80. package/es/time-picker/index.js +8 -8
  81. package/es/timeline/index.js +8 -8
  82. package/es/tooltip/index.js +8 -8
  83. package/es/transfer/index.js +8 -8
  84. package/es/tree/index.js +8 -8
  85. package/es/tree-select/index.js +8 -8
  86. package/es/upload/index.js +8 -8
  87. package/es/verification-code/index.js +2 -2
  88. package/lib/cui.common.js +476 -464
  89. package/lib/cui.umd.js +476 -464
  90. package/lib/cui.umd.min.js +59 -59
  91. package/package.json +1 -1
  92. package/packages/big-table/src/BigTable.vue +4 -4
  93. package/packages/big-table/src/utils/batchEditing.js +2 -2
  94. package/packages/big-table/src/utils/bigTableProps.js +4 -1
  95. package/packages/button/src/ButtonPrint/index.vue +2 -2
  96. package/packages/multi-chat/setting/index.vue +4 -0
  97. package/packages/table-filter/src/base-search-com/BaseSearch.vue +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "0.2.34-beta",
3
+ "version": "0.2.35-beta",
4
4
  "description": "基于 Ant Desgin Vue 的UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -1237,16 +1237,16 @@ export default create({
1237
1237
  vxeTable.remove(tableData[0]);
1238
1238
  },
1239
1239
  submitInlineForm() {
1240
- let { error } = this.$store.state.inlineEdit;
1240
+ let error = this.inlineError;
1241
1241
  if (error) {
1242
1242
  this.resetEditRowStatus();
1243
1243
  this.$emit('triggerSpinning', false);
1244
1244
  return false;
1245
1245
  }
1246
1246
 
1247
- let { formData, listFormUnionSetting, originalTableRow } = this.$store.state.inlineEdit;
1247
+ let { inlineFormData, listFormUnionSetting, inlineOriginalTableRow } = this;
1248
1248
  let { formId } = listFormUnionSetting;
1249
- let { id } = originalTableRow;
1249
+ let { id } = inlineOriginalTableRow;
1250
1250
  if (!formId) {
1251
1251
  console.log('缺少formId');
1252
1252
  this.$emit('triggerSpinning', false);
@@ -1255,7 +1255,7 @@ export default create({
1255
1255
  if (this.isSaveForm) return false;
1256
1256
  this.isSaveForm = true;
1257
1257
 
1258
- let params = Object.assign({}, formData, {
1258
+ let params = Object.assign({}, inlineFormData, {
1259
1259
  formId,
1260
1260
  id,
1261
1261
  editMode: 'row'
@@ -442,7 +442,7 @@ export default {
442
442
  this.$emit('triggerSpinning', false);
443
443
  return;
444
444
  }
445
- let { listFormUnionSetting } = this.$store.state.inlineEdit;
445
+ let { listFormUnionSetting } = this
446
446
  let { formId } = listFormUnionSetting;
447
447
  let params = this.handleSubmitParams(this.batchFormData);
448
448
  if (!formId || !params) {
@@ -484,7 +484,7 @@ export default {
484
484
  let obj = batchFormData[key];
485
485
  if (matchItem) {
486
486
  obj = Object.assign({}, obj, {
487
- id: matchItem.id
487
+ [this.primaryKey]: matchItem[this.primaryKey]
488
488
  });
489
489
  }
490
490
  arr.push(obj);
@@ -67,6 +67,7 @@ const bigTableProps = {
67
67
  isInlineAdding: Boolean,
68
68
  isInlineSave: Boolean,
69
69
  isInlineCancel: Boolean,
70
+ inlineError: Boolean,
70
71
  resetInlineEdit: Function, // 重置状态(不包含编辑、新增状态)
71
72
  resetEditRowStatus: Function, // 重置编辑行保存表单相关状态
72
73
  pageIndexOldtableData: {
@@ -77,7 +78,9 @@ const bigTableProps = {
77
78
  submitForm: Function,
78
79
  isMatchComponent: Boolean,
79
80
  asyncCount: Boolean,
80
- showSettings: { type: Object, default: () => ({}) }
81
+ showSettings: { type: Object, default: () => ({}) },
82
+ inlineFormData: { type: Object, default: () => ({}) },
83
+ inlineOriginalTableRow: { type: Object, default: () => ({}) }
81
84
  };
82
85
 
83
86
  export default bigTableProps;
@@ -512,7 +512,7 @@ export default create({
512
512
  const { id, name } = templateParams;
513
513
  return {
514
514
  reportid,
515
- formatid: id,
515
+ formatid: this.currentFormatId || id,
516
516
  formatname: name,
517
517
  param: params[index]
518
518
  };
@@ -531,7 +531,7 @@ export default create({
531
531
  });
532
532
  return {
533
533
  reportid,
534
- formatid: id,
534
+ formatid: this.currentFormatId || id,
535
535
  formatname: name,
536
536
  param: obj
537
537
  };
@@ -151,6 +151,9 @@ export default {
151
151
  },
152
152
  mounted() {
153
153
  this.getSdkAppId();
154
+
155
+ const item = this.menuList.find( v=> v.active);
156
+ item && this.handleMenuClick(item.type);
154
157
  },
155
158
  watch: {
156
159
  useMenuList(v) {
@@ -185,6 +188,7 @@ export default {
185
188
  });
186
189
  },
187
190
  handleMenuClick(type) {
191
+ console.log("触发tab切换");
188
192
  this.menuList.map(item => {
189
193
  item.active = item.type === type;
190
194
  });
@@ -2094,14 +2094,12 @@ export default create({
2094
2094
  if(!dom) return;
2095
2095
  // input 框有padding 32px ...显示需要多预留一些宽度12px
2096
2096
  let w = dom.offsetWidth + 45;
2097
- console.log(w, "wwww");
2098
2097
  let maxW = this.showOutSearch ? 284 : 244;
2099
2098
  this.inputSearchW = w > maxW ? 300 : w < 200 ? 200 : w;
2100
2099
  if (w > maxW) {
2101
2100
  this.showPlaceholderPrefix = true;
2102
2101
  }
2103
2102
  this.onResize();
2104
- console.log(this.inputSearchW);
2105
2103
  });
2106
2104
  }
2107
2105
  }