@deanwu/vue-component-library 1.0.120 → 1.0.121

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.
@@ -102838,18 +102838,17 @@ var checkItem = function (opt, data, name, next) {
102838
102838
  message: rule
102839
102839
  }];
102840
102840
  }
102841
+ if (typeof rule == 'function') {
102842
+ next && next(!!rule());
102843
+ return;
102844
+ }
102841
102845
  if (!rule || !rule.length) {
102842
102846
  next && next(true);
102843
102847
  return;
102844
102848
  }
102845
102849
  function loop(index) {
102846
102850
  var r = rule[index];
102847
- if (typeof r == 'function') {
102848
- let temp = r();
102849
- callback(index, temp === true, {
102850
- message: temp
102851
- });
102852
- } else if (r.type == 'async') {
102851
+ if (r.type == 'async') {
102853
102852
  opt.SYS_AJAX({
102854
102853
  url: r.url,
102855
102854
  data: function () {