cnhis-design-vue 2.1.105 → 2.1.107

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 (44) hide show
  1. package/CHANGELOG.md +28 -14
  2. package/es/age/index.js +2 -2
  3. package/es/big-table/index.js +198 -193
  4. package/es/big-table/style.css +1 -1
  5. package/es/button/index.js +2 -2
  6. package/es/captcha/index.js +3 -3
  7. package/es/card-reader-sdk/index.js +1 -1
  8. package/es/checkbox/index.js +1 -1
  9. package/es/color-picker/index.js +1 -1
  10. package/es/direct/index.js +3146 -0
  11. package/es/direct/style.css +0 -0
  12. package/es/drag-layout/index.js +3 -3
  13. package/es/editor/index.js +1 -1
  14. package/es/ellipsis/index.js +1 -1
  15. package/es/fabric-chart/index.js +9 -9
  16. package/es/form-table/index.js +20 -20
  17. package/es/index/index.js +557 -543
  18. package/es/index/style.css +1 -1
  19. package/es/input/index.js +1 -1
  20. package/es/map/index.js +1 -1
  21. package/es/multi-chat/index.js +25 -25
  22. package/es/multi-chat-client/index.js +19 -19
  23. package/es/multi-chat-history/index.js +4 -4
  24. package/es/multi-chat-record/index.js +4 -4
  25. package/es/multi-chat-setting/index.js +20 -20
  26. package/es/multi-chat-sip/index.js +1 -1
  27. package/es/radio/index.js +1 -1
  28. package/es/scale-container/index.js +1 -1
  29. package/es/scale-view/index.js +27 -27
  30. package/es/select/index.js +4 -4
  31. package/es/select-label/index.js +3 -3
  32. package/es/select-person/index.js +2 -2
  33. package/es/select-tag/index.js +4 -4
  34. package/es/shortcut-setter/index.js +2 -2
  35. package/es/table-filter/index.js +234 -225
  36. package/es/tag/index.js +1 -1
  37. package/es/verification-code/index.js +2 -2
  38. package/lib/cui.common.js +376 -371
  39. package/lib/cui.umd.js +376 -371
  40. package/lib/cui.umd.min.js +400 -0
  41. package/package.json +1 -1
  42. package/packages/big-table/src/components/edit-form/EditForm.vue +8 -3
  43. package/packages/big-table/src/components/edit-form/edit-component/mixins/search.js +214 -259
  44. package/packages/direct/index.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "2.1.105",
3
+ "version": "2.1.107",
4
4
  "description": "前端业务UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -33,6 +33,7 @@ import registerCom from './edit-component/register-com.js';
33
33
  import { formCommom } from './edit-mixins/index';
34
34
  import validateRules from './edit-item/validate-rules';
35
35
  import vexutils from '@/utils/vexutils';
36
+ import utils from '@/utils/utils-map';
36
37
  import { FormModel } from "ant-design-vue";
37
38
 
38
39
  export default {
@@ -393,9 +394,13 @@ export default {
393
394
  if (curItem.isOnchange !== '00' && defVal) {
394
395
  defVal = curItem.filtration_val || this.handleSysParams(defVal);
395
396
  defVal = this.getObjs(defVal);
396
- // 数组是无效的, 必须是对象
397
- if(Array.isArray(defVal)) {
398
- return defaultVal
397
+ // 数组是无效的, 空对象也是无效的
398
+ if (Array.isArray(defVal) || (utils?.isPlainObject?.(defVal) && !Object.keys(defVal)?.length)) {
399
+ return defaultVal;
400
+ }
401
+ // 必须是JSON
402
+ if(typeof defVal !== 'string') {
403
+ return JSON.stringify(defVal);
399
404
  }
400
405
  return defVal || defaultVal;
401
406
  }