vxe-pc-ui 3.3.10 → 3.3.12

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 (37) hide show
  1. package/es/drawer/src/drawer.js +1 -2
  2. package/es/form/src/form.js +16 -8
  3. package/es/icon/style.css +1 -1
  4. package/es/style.css +1 -1
  5. package/es/style.min.css +1 -1
  6. package/es/ui/index.js +1 -1
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/drawer/src/drawer.js +1 -2
  9. package/lib/drawer/src/drawer.min.js +1 -1
  10. package/lib/form/src/form.js +21 -8
  11. package/lib/form/src/form.min.js +1 -1
  12. package/lib/icon/style/style.css +1 -1
  13. package/lib/icon/style/style.min.css +1 -1
  14. package/lib/index.umd.js +24 -12
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/style.min.css +1 -1
  18. package/lib/ui/index.js +1 -1
  19. package/lib/ui/index.min.js +1 -1
  20. package/lib/ui/src/log.js +1 -1
  21. package/lib/ui/src/log.min.js +1 -1
  22. package/package.json +2 -2
  23. package/packages/drawer/src/drawer.ts +2 -3
  24. package/packages/form/src/form.ts +16 -9
  25. package/types/components/form-item.d.ts +7 -1
  26. /package/es/icon/{iconfont.1732785225158.ttf → iconfont.1732854924024.ttf} +0 -0
  27. /package/es/icon/{iconfont.1732785225158.woff → iconfont.1732854924024.woff} +0 -0
  28. /package/es/icon/{iconfont.1732785225158.woff2 → iconfont.1732854924024.woff2} +0 -0
  29. /package/es/{iconfont.1732785225158.ttf → iconfont.1732854924024.ttf} +0 -0
  30. /package/es/{iconfont.1732785225158.woff → iconfont.1732854924024.woff} +0 -0
  31. /package/es/{iconfont.1732785225158.woff2 → iconfont.1732854924024.woff2} +0 -0
  32. /package/lib/icon/style/{iconfont.1732785225158.ttf → iconfont.1732854924024.ttf} +0 -0
  33. /package/lib/icon/style/{iconfont.1732785225158.woff → iconfont.1732854924024.woff} +0 -0
  34. /package/lib/icon/style/{iconfont.1732785225158.woff2 → iconfont.1732854924024.woff2} +0 -0
  35. /package/lib/{iconfont.1732785225158.ttf → iconfont.1732854924024.ttf} +0 -0
  36. /package/lib/{iconfont.1732785225158.woff → iconfont.1732854924024.woff} +0 -0
  37. /package/lib/{iconfont.1732785225158.woff2 → iconfont.1732854924024.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -12799,7 +12799,7 @@ function handleBooleanDefaultValue(value) {
12799
12799
  }
12800
12800
  ;// CONCATENATED MODULE: ./packages/ui/src/log.ts
12801
12801
 
12802
- var log_version = "ui v".concat("3.3.10");
12802
+ var log_version = "ui v".concat("3.3.12");
12803
12803
  var warnLog = log.create('warn', log_version);
12804
12804
  var errLog = log.create('error', log_version);
12805
12805
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
@@ -12807,7 +12807,7 @@ var errLog = log.create('error', log_version);
12807
12807
 
12808
12808
 
12809
12809
 
12810
- var ui_version = "3.3.10";
12810
+ var ui_version = "3.3.12";
12811
12811
  core_VxeUI.version = ui_version;
12812
12812
  core_VxeUI.uiVersion = ui_version;
12813
12813
  core_VxeUI.tableVersion = '';
@@ -22506,12 +22506,12 @@ var allActiveDrawers = [];
22506
22506
  reactData.initialized = true;
22507
22507
  }
22508
22508
  if (!visible) {
22509
- $xeDrawer.recalculate();
22510
22509
  reactData.visible = true;
22511
22510
  reactData.contentVisible = false;
22512
22511
  $xeDrawer.updateZindex();
22513
22512
  allActiveDrawers.push($xeDrawer);
22514
22513
  setTimeout(function () {
22514
+ $xeDrawer.recalculate();
22515
22515
  reactData.contentVisible = true;
22516
22516
  $xeDrawer.$nextTick(function () {
22517
22517
  if (showFooter) {
@@ -22795,7 +22795,6 @@ var allActiveDrawers = [];
22795
22795
  if (props.value) {
22796
22796
  $xeDrawer.openDrawer();
22797
22797
  }
22798
- $xeDrawer.recalculate();
22799
22798
  });
22800
22799
  if (props.escClosable) {
22801
22800
  globalEvents.on($xeDrawer, 'keydown', $xeDrawer.handleGlobalKeydownEvent);
@@ -23679,12 +23678,6 @@ var validErrorRuleValue = function validErrorRuleValue(rule, val) {
23679
23678
  }
23680
23679
  return false;
23681
23680
  };
23682
- function getResetValue(value, resetValue) {
23683
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(value)) {
23684
- resetValue = [];
23685
- }
23686
- return resetValue;
23687
- }
23688
23681
  /* harmony default export */ var src_form = (defineVxeComponent({
23689
23682
  name: 'VxeForm',
23690
23683
  mixins: [globalMixins.sizeMixin],
@@ -23973,6 +23966,26 @@ function getResetValue(value, resetValue) {
23973
23966
  }
23974
23967
  return $xeForm.$nextTick();
23975
23968
  },
23969
+ getResetValue: function getResetValue(item, data) {
23970
+ var $xeForm = this;
23971
+ var field = item.field,
23972
+ resetValue = item.resetValue;
23973
+ var itemValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(data, field);
23974
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(resetValue)) {
23975
+ return resetValue({
23976
+ field: field,
23977
+ item: item,
23978
+ data: data,
23979
+ $form: $xeForm,
23980
+ $grid: $xeForm.xegrid
23981
+ });
23982
+ } else if (resetValue === null) {
23983
+ // 默认
23984
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(itemValue)) {
23985
+ return [];
23986
+ }
23987
+ }
23988
+ },
23976
23989
  reset: function reset() {
23977
23990
  var $xeForm = this;
23978
23991
  var props = $xeForm;
@@ -23981,7 +23994,6 @@ function getResetValue(value, resetValue) {
23981
23994
  if (data) {
23982
23995
  itemList.forEach(function (item) {
23983
23996
  var field = item.field,
23984
- resetValue = item.resetValue,
23985
23997
  itemRender = item.itemRender;
23986
23998
  if (isEnableConf(itemRender)) {
23987
23999
  var compConf = renderer.get(itemRender.name);
@@ -23996,7 +24008,7 @@ function getResetValue(value, resetValue) {
23996
24008
  $grid: $xeForm.xegrid
23997
24009
  });
23998
24010
  } else if (field) {
23999
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(data, field, resetValue === null ? getResetValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(data, field), undefined) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(resetValue, true));
24011
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(data, field, $xeForm.getResetValue(item, data));
24000
24012
  }
24001
24013
  }
24002
24014
  });