@teamix/pro 1.2.5 → 1.2.6

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.
package/dist/pro.js CHANGED
@@ -3191,9 +3191,8 @@ function (_super) {
3191
3191
  });
3192
3192
  Object.defineProperty(Field.prototype, "required", {
3193
3193
  get: function get() {
3194
- var validators = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isArr */ .H1)(this.validator) ? this.validator : (0,_formily_validator__WEBPACK_IMPORTED_MODULE_1__/* .parseValidatorDescriptions */ .oM)(this.validator);
3195
- return validators.some(function (desc) {
3196
- return !!(desc === null || desc === void 0 ? void 0 : desc['required']);
3194
+ return (0,_formily_validator__WEBPACK_IMPORTED_MODULE_1__/* .parseValidatorDescriptions */ .oM)(this.validator).some(function (desc) {
3195
+ return desc.required;
3197
3196
  });
3198
3197
  },
3199
3198
  set: function set(required) {
@@ -5267,7 +5266,6 @@ var queryFeedbacks = function queryFeedbacks(field, search) {
5267
5266
  });
5268
5267
  };
5269
5268
  var queryFeedbackMessages = function queryFeedbackMessages(field, search) {
5270
- if (!field.feedbacks.length) return [];
5271
5269
  return queryFeedbacks(field, search).reduce(function (buf, info) {
5272
5270
  return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isEmpty */ .xb)(info.messages) ? buf : buf.concat(info.messages);
5273
5271
  }, []);
@@ -5309,10 +5307,6 @@ var updateFeedback = function updateFeedback(field, feedback) {
5309
5307
  });
5310
5308
  };
5311
5309
  var validateToFeedbacks = function validateToFeedbacks(field, triggerType) {
5312
- if (triggerType === void 0) {
5313
- triggerType = 'onInput';
5314
- }
5315
-
5316
5310
  return __awaiter(void 0, void 0, void 0, function () {
5317
5311
  var results;
5318
5312
  return __generator(this, function (_a) {
@@ -5349,29 +5343,46 @@ var validateToFeedbacks = function validateToFeedbacks(field, triggerType) {
5349
5343
  });
5350
5344
  };
5351
5345
  var setValidatorRule = function setValidatorRule(field, name, value) {
5352
- var _a;
5346
+ var _a, _b;
5353
5347
 
5354
5348
  if (!(0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .JY)(value)) return;
5355
- var validators = (0,_formily_validator__WEBPACK_IMPORTED_MODULE_1__/* .parseValidatorDescriptions */ .oM)(field.validator);
5356
- var hasRule = validators.some(function (desc) {
5349
+ var hasRule = (0,_formily_validator__WEBPACK_IMPORTED_MODULE_1__/* .parseValidatorDescriptions */ .oM)(field.validator).some(function (desc) {
5357
5350
  return name in desc;
5358
5351
  });
5359
5352
  var rule = (_a = {}, _a[name] = value, _a);
5360
5353
 
5361
5354
  if (hasRule) {
5362
- field.validator = validators.map(function (desc) {
5363
- if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isPlainObj */ .Uk)(desc) && hasOwnProperty.call(desc, name)) {
5364
- desc[name] = value;
5365
- return desc;
5366
- }
5355
+ if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isArr */ .H1)(field.validator)) {
5356
+ field.validator = field.validator.map(function (desc) {
5357
+ if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isPlainObj */ .Uk)(desc) && hasOwnProperty.call(desc, name)) {
5358
+ desc[name] = value;
5359
+ return desc;
5360
+ }
5367
5361
 
5368
- return desc;
5369
- });
5362
+ return desc;
5363
+ });
5364
+ } else if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isPlainObj */ .Uk)(field.validator)) {
5365
+ field.validator[name] = value;
5366
+ } else {
5367
+ field.validator = (_b = {}, _b[name] = value, _b);
5368
+ }
5370
5369
  } else {
5371
- if (name === 'required') {
5372
- field.validator = [rule].concat(validators);
5370
+ if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isArr */ .H1)(field.validator)) {
5371
+ if (name === 'required') {
5372
+ field.validator.unshift(rule);
5373
+ } else {
5374
+ field.validator.push(rule);
5375
+ }
5373
5376
  } else {
5374
- field.validator = validators.concat(rule);
5377
+ if (name === 'required') {
5378
+ field.validator = [rule, field.validator];
5379
+ } else if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isPlainObj */ .Uk)(field.validator)) {
5380
+ field.validator[name] = value;
5381
+ } else if (field.validator) {
5382
+ field.validator = [field.validator, rule];
5383
+ } else {
5384
+ field.validator = rule;
5385
+ }
5375
5386
  }
5376
5387
  }
5377
5388
  };
@@ -8002,7 +8013,6 @@ var setSchemaFieldState = function setSchemaFieldState(options, demand) {
8002
8013
  var _a = options || {},
8003
8014
  request = _a.request,
8004
8015
  target = _a.target,
8005
- runner = _a.runner,
8006
8016
  field = _a.field,
8007
8017
  scope = _a.scope;
8008
8018
 
@@ -8024,14 +8034,6 @@ var setSchemaFieldState = function setSchemaFieldState(options, demand) {
8024
8034
  }), demand);
8025
8035
  });
8026
8036
  }
8027
-
8028
- if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isStr */ .d8)(runner) && runner) {
8029
- field.form.setFieldState(target, function (state) {
8030
- (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .shallowCompile */ .eC)("{{function(){".concat(runner, "}}}"), __assign(__assign({}, scope), {
8031
- $target: state
8032
- }))();
8033
- });
8034
- }
8035
8037
  } else {
8036
8038
  if (request.state) {
8037
8039
  field.setState(function (state) {
@@ -8044,10 +8046,6 @@ var setSchemaFieldState = function setSchemaFieldState(options, demand) {
8044
8046
  return (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .patchSchemaCompile */ .Nc)(state, request.schema, scope, demand);
8045
8047
  });
8046
8048
  }
8047
-
8048
- if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isStr */ .d8)(runner) && runner) {
8049
- (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .shallowCompile */ .eC)("{{function(){".concat(runner, "}}}"), scope)();
8050
- }
8051
8049
  }
8052
8050
  };
8053
8051
 
@@ -8095,10 +8093,10 @@ var getBaseReactions = function getBaseReactions(schema, options) {
8095
8093
  };
8096
8094
 
8097
8095
  var getUserReactions = function getUserReactions(schema, options) {
8098
- var reactions = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .toArr */ ._K)(schema['x-reactions']);
8099
- return reactions.map(function (unCompiled) {
8100
- return function (field) {
8101
- var baseScope = getBaseScope(field, options);
8096
+ return function (field) {
8097
+ var reactions = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .toArr */ ._K)(schema['x-reactions']);
8098
+ var baseScope = getBaseScope(field, options);
8099
+ reactions.forEach(function (unCompiled) {
8102
8100
  var reaction = (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .shallowCompile */ .eC)(unCompiled, baseScope);
8103
8101
  if (!reaction) return;
8104
8102
 
@@ -8130,9 +8128,12 @@ var getUserReactions = function getUserReactions(schema, options) {
8130
8128
  field: field,
8131
8129
  target: target,
8132
8130
  request: request,
8133
- runner: runner,
8134
8131
  scope: scope
8135
8132
  });
8133
+
8134
+ if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isStr */ .d8)(runner)) {
8135
+ (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .shallowCompile */ .eC)("{{function(){".concat(runner, "}}}"), scope)();
8136
+ }
8136
8137
  };
8137
8138
 
8138
8139
  if (target) {
@@ -8152,14 +8153,14 @@ var getUserReactions = function getUserReactions(schema, options) {
8152
8153
  } else {
8153
8154
  run();
8154
8155
  }
8155
- };
8156
- });
8156
+ });
8157
+ };
8157
8158
  };
8158
8159
 
8159
8160
  var transformFieldProps = function transformFieldProps(schema, options) {
8160
8161
  return {
8161
8162
  name: schema.name,
8162
- reactions: [getBaseReactions(schema, options)].concat(getUserReactions(schema, options))
8163
+ reactions: [getBaseReactions(schema, options), getUserReactions(schema, options)]
8163
8164
  };
8164
8165
  };
8165
8166
 
@@ -9854,17 +9855,17 @@ var isEqual = function isEqual(a, b) {
9854
9855
  var arrA = isArray(a);
9855
9856
  var arrB = isArray(b);
9856
9857
  var i = void 0;
9857
- var length = void 0;
9858
+ var length_1;
9858
9859
  var key = void 0;
9859
9860
 
9860
9861
  if (arrA && arrB) {
9861
- length = a.length;
9862
+ length_1 = a.length;
9862
9863
 
9863
- if (length !== b.length) {
9864
+ if (length_1 !== b.length) {
9864
9865
  return false;
9865
9866
  }
9866
9867
 
9867
- for (i = length; i-- !== 0;) {
9868
+ for (i = length_1; i-- !== 0;) {
9868
9869
  if (!isEqual(a[i], b[i])) {
9869
9870
  return false;
9870
9871
  }
@@ -9878,19 +9879,19 @@ var isEqual = function isEqual(a, b) {
9878
9879
  }
9879
9880
 
9880
9881
  var keys = keyList(a);
9881
- length = keys.length;
9882
+ length_1 = keys.length;
9882
9883
 
9883
- if (length !== keyList(b).length) {
9884
+ if (length_1 !== keyList(b).length) {
9884
9885
  return false;
9885
9886
  }
9886
9887
 
9887
- for (i = length; i-- !== 0;) {
9888
+ for (i = length_1; i-- !== 0;) {
9888
9889
  if (!hasProp.call(b, keys[i])) {
9889
9890
  return false;
9890
9891
  }
9891
9892
  }
9892
9893
 
9893
- for (i = length; i-- !== 0;) {
9894
+ for (i = length_1; i-- !== 0;) {
9894
9895
  key = keys[i];
9895
9896
 
9896
9897
  if (!isEqual(a[key], b[key])) {
@@ -10761,24 +10762,24 @@ var ReactiveInternal = function ReactiveInternal(props) {
10761
10762
  }
10762
10763
 
10763
10764
  var field = props.field;
10764
- var content = mergeChildren(renderChildren(props.children, field, field.form), (_a = field.content) !== null && _a !== void 0 ? _a : field.componentProps.children);
10765
+ var content = mergeChildren(renderChildren(props.children, field, field.form), (_a = field.content) !== null && _a !== void 0 ? _a : field.component[1].children);
10765
10766
  if (field.display !== 'visible') return null;
10766
10767
 
10767
10768
  var renderDecorator = function renderDecorator(children) {
10768
10769
  var _a;
10769
10770
 
10770
- if (!field.decoratorType) {
10771
+ if (!field.decorator[0]) {
10771
10772
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, children);
10772
10773
  }
10773
10774
 
10774
- var finalComponent = (_a = _formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .FormPath.getIn */ .Dm.getIn(options === null || options === void 0 ? void 0 : options.components, field.decoratorType)) !== null && _a !== void 0 ? _a : field.decoratorType;
10775
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(finalComponent, (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.toJS)(field.decoratorProps), children);
10775
+ var finalComponent = (_a = _formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .FormPath.getIn */ .Dm.getIn(options === null || options === void 0 ? void 0 : options.components, field.decorator[0])) !== null && _a !== void 0 ? _a : field.decorator[0];
10776
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(finalComponent, (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.toJS)(field.decorator[1]), children);
10776
10777
  };
10777
10778
 
10778
10779
  var renderComponent = function renderComponent() {
10779
10780
  var _a, _b, _c, _d;
10780
10781
 
10781
- if (!field.componentType) return content;
10782
+ if (!field.component[0]) return content;
10782
10783
  var value = !(0,_formily_core__WEBPACK_IMPORTED_MODULE_4__.isVoidField)(field) ? field.value : undefined;
10783
10784
  var onChange = !(0,_formily_core__WEBPACK_IMPORTED_MODULE_4__.isVoidField)(field) ? function () {
10784
10785
  var _a, _b;
@@ -10790,8 +10791,8 @@ var ReactiveInternal = function ReactiveInternal(props) {
10790
10791
  }
10791
10792
 
10792
10793
  field.onInput.apply(field, __spreadArray([], __read(args), false));
10793
- (_b = (_a = field.componentProps) === null || _a === void 0 ? void 0 : _a.onChange) === null || _b === void 0 ? void 0 : _b.call.apply(_b, __spreadArray([_a], __read(args), false));
10794
- } : (_a = field.componentProps) === null || _a === void 0 ? void 0 : _a.onChange;
10794
+ (_b = (_a = field.component[1]) === null || _a === void 0 ? void 0 : _a.onChange) === null || _b === void 0 ? void 0 : _b.call.apply(_b, __spreadArray([_a], __read(args), false));
10795
+ } : (_a = field.component[1]) === null || _a === void 0 ? void 0 : _a.onChange;
10795
10796
  var onFocus = !(0,_formily_core__WEBPACK_IMPORTED_MODULE_4__.isVoidField)(field) ? function () {
10796
10797
  var _a, _b;
10797
10798
 
@@ -10802,8 +10803,8 @@ var ReactiveInternal = function ReactiveInternal(props) {
10802
10803
  }
10803
10804
 
10804
10805
  field.onFocus.apply(field, __spreadArray([], __read(args), false));
10805
- (_b = (_a = field.componentProps) === null || _a === void 0 ? void 0 : _a.onFocus) === null || _b === void 0 ? void 0 : _b.call.apply(_b, __spreadArray([_a], __read(args), false));
10806
- } : (_b = field.componentProps) === null || _b === void 0 ? void 0 : _b.onFocus;
10806
+ (_b = (_a = field.component[1]) === null || _a === void 0 ? void 0 : _a.onFocus) === null || _b === void 0 ? void 0 : _b.call.apply(_b, __spreadArray([_a], __read(args), false));
10807
+ } : (_b = field.component[1]) === null || _b === void 0 ? void 0 : _b.onFocus;
10807
10808
  var onBlur = !(0,_formily_core__WEBPACK_IMPORTED_MODULE_4__.isVoidField)(field) ? function () {
10808
10809
  var _a, _b;
10809
10810
 
@@ -10814,15 +10815,15 @@ var ReactiveInternal = function ReactiveInternal(props) {
10814
10815
  }
10815
10816
 
10816
10817
  field.onBlur.apply(field, __spreadArray([], __read(args), false));
10817
- (_b = (_a = field.componentProps) === null || _a === void 0 ? void 0 : _a.onBlur) === null || _b === void 0 ? void 0 : _b.call.apply(_b, __spreadArray([_a], __read(args), false));
10818
- } : (_c = field.componentProps) === null || _c === void 0 ? void 0 : _c.onBlur;
10818
+ (_b = (_a = field.component[1]) === null || _a === void 0 ? void 0 : _a.onBlur) === null || _b === void 0 ? void 0 : _b.call.apply(_b, __spreadArray([_a], __read(args), false));
10819
+ } : (_c = field.component[1]) === null || _c === void 0 ? void 0 : _c.onBlur;
10819
10820
  var disabled = !(0,_formily_core__WEBPACK_IMPORTED_MODULE_4__.isVoidField)(field) ? field.pattern === 'disabled' || field.pattern === 'readPretty' : undefined;
10820
10821
  var readOnly = !(0,_formily_core__WEBPACK_IMPORTED_MODULE_4__.isVoidField)(field) ? field.pattern === 'readOnly' : undefined;
10821
- var finalComponent = (_d = _formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .FormPath.getIn */ .Dm.getIn(options === null || options === void 0 ? void 0 : options.components, field.componentType)) !== null && _d !== void 0 ? _d : field.componentType;
10822
+ var finalComponent = (_d = _formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .FormPath.getIn */ .Dm.getIn(options === null || options === void 0 ? void 0 : options.components, field.component[0])) !== null && _d !== void 0 ? _d : field.component[0];
10822
10823
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(finalComponent, __assign(__assign({
10823
10824
  disabled: disabled,
10824
10825
  readOnly: readOnly
10825
- }, (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.toJS)(field.componentProps)), {
10826
+ }, (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.toJS)(field.component[1])), {
10826
10827
  value: value,
10827
10828
  onChange: onChange,
10828
10829
  onFocus: onFocus,
@@ -10915,11 +10916,7 @@ var RecursionField = function RecursionField(props) {
10915
10916
 
10916
10917
  var renderProperties = function renderProperties(field) {
10917
10918
  if (props.onlyRenderSelf) return;
10918
- var properties = _formily_json_schema__WEBPACK_IMPORTED_MODULE_2__/* .Schema.getOrderProperties */ .V.getOrderProperties(fieldSchema);
10919
- if (!properties.length) return;
10920
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, properties.map(function (_a, index) {
10921
- var item = _a.schema,
10922
- name = _a.key;
10919
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, fieldSchema.mapProperties(function (item, name, index) {
10923
10920
  var base = (field === null || field === void 0 ? void 0 : field.address) || basePath;
10924
10921
  var schema = item;
10925
10922
 
@@ -12223,60 +12220,10 @@ var box = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */ .Bh)
12223
12220
  /* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4756);
12224
12221
  /* harmony import */ var _internals__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26755);
12225
12222
  /* harmony import */ var _tree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85755);
12226
- /* harmony import */ var _checkers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56893);
12227
- /* harmony import */ var _reaction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91476);
12228
- var __read = undefined && undefined.__read || function (o, n) {
12229
- var m = typeof Symbol === "function" && o[Symbol.iterator];
12230
- if (!m) return o;
12231
- var i = m.call(o),
12232
- r,
12233
- ar = [],
12234
- e;
12235
-
12236
- try {
12237
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
12238
- ar.push(r.value);
12239
- }
12240
- } catch (error) {
12241
- e = {
12242
- error: error
12243
- };
12244
- } finally {
12245
- try {
12246
- if (r && !r.done && (m = i["return"])) m.call(i);
12247
- } finally {
12248
- if (e) throw e.error;
12249
- }
12250
- }
12251
-
12252
- return ar;
12253
- };
12254
-
12255
-
12256
-
12257
-
12258
-
12259
-
12260
- var getDescriptor = Object.getOwnPropertyDescriptor;
12261
- var getProto = Object.getPrototypeOf;
12223
+ /* harmony import */ var _reaction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91476);
12262
12224
 
12263
- function getGetterAndSetter(target, key, value) {
12264
- if (!target) {
12265
- if (value) {
12266
- if ((0,_checkers__WEBPACK_IMPORTED_MODULE_3__/* .isFn */ .LQ)(value)) {
12267
- return [value];
12268
- } else {
12269
- return [value.get, value.set];
12270
- }
12271
- }
12272
12225
 
12273
- return [];
12274
- }
12275
12226
 
12276
- var descriptor = getDescriptor(target, key);
12277
- if (descriptor) return [descriptor.get, descriptor.set];
12278
- return getGetterAndSetter(getProto(target), key, value);
12279
- }
12280
12227
 
12281
12228
  var computed = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */ .Bh)(function (_a) {
12282
12229
  var target = _a.target,
@@ -12286,18 +12233,40 @@ var computed = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */
12286
12233
  var proxy = {};
12287
12234
  var context = target ? target : store;
12288
12235
  var property = target ? key : 'value';
12236
+ var getter = getGetter(context);
12237
+ var setter = getSetter(context);
12238
+
12239
+ function getGetter(target) {
12240
+ if (!target) {
12241
+ if (value === null || value === void 0 ? void 0 : value.get) return value === null || value === void 0 ? void 0 : value.get;
12242
+ return value;
12243
+ }
12244
+
12245
+ var descriptor = Object.getOwnPropertyDescriptor(target, property);
12246
+ if (descriptor === null || descriptor === void 0 ? void 0 : descriptor.get) return descriptor.get;
12247
+ return getGetter(Object.getPrototypeOf(target));
12248
+ }
12289
12249
 
12290
- var _b = __read(getGetterAndSetter(context, property, value), 2),
12291
- getter = _b[0],
12292
- setter = _b[1];
12250
+ function getSetter(target) {
12251
+ if (!target) {
12252
+ if (value === null || value === void 0 ? void 0 : value.set) return value === null || value === void 0 ? void 0 : value.set;
12253
+ return;
12254
+ }
12255
+
12256
+ var descriptor = Object.getOwnPropertyDescriptor(target, property);
12257
+ if (descriptor === null || descriptor === void 0 ? void 0 : descriptor.set) return descriptor.set;
12258
+ return getSetter(Object.getPrototypeOf(target));
12259
+ }
12293
12260
 
12294
12261
  function compute() {
12295
- store.value = getter === null || getter === void 0 ? void 0 : getter.call(context);
12262
+ var _a;
12263
+
12264
+ store.value = (_a = getter === null || getter === void 0 ? void 0 : getter.call) === null || _a === void 0 ? void 0 : _a.call(getter, context);
12296
12265
  }
12297
12266
 
12298
12267
  function reaction() {
12299
12268
  if (_environment__WEBPACK_IMPORTED_MODULE_0__/* .ReactionStack.indexOf */ .eA.indexOf(reaction) === -1) {
12300
- (0,_reaction__WEBPACK_IMPORTED_MODULE_4__/* .releaseBindingReactions */ .cD)(reaction);
12269
+ (0,_reaction__WEBPACK_IMPORTED_MODULE_3__/* .releaseBindingReactions */ .cD)(reaction);
12301
12270
 
12302
12271
  try {
12303
12272
  _environment__WEBPACK_IMPORTED_MODULE_0__/* .ReactionStack.push */ .eA.push(reaction);
@@ -12312,25 +12281,30 @@ var computed = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */
12312
12281
 
12313
12282
  reaction._scheduler = function () {
12314
12283
  reaction._dirty = true;
12315
- (0,_reaction__WEBPACK_IMPORTED_MODULE_4__/* .runReactionsFromTargetKey */ .cL)({
12284
+ (0,_reaction__WEBPACK_IMPORTED_MODULE_3__/* .batchStart */ .o$)();
12285
+ (0,_reaction__WEBPACK_IMPORTED_MODULE_3__/* .runReactionsFromTargetKey */ .cL)({
12316
12286
  target: context,
12317
12287
  key: property,
12318
12288
  value: store.value,
12319
12289
  type: 'set'
12320
12290
  });
12291
+ (0,_reaction__WEBPACK_IMPORTED_MODULE_3__/* .batchEnd */ .ks)();
12321
12292
  };
12322
12293
 
12323
12294
  reaction._isComputed = true;
12324
12295
  reaction._dirty = true;
12325
12296
  reaction._context = context;
12326
12297
  reaction._property = property;
12298
+ _environment__WEBPACK_IMPORTED_MODULE_0__/* .ProxyRaw.set */ .wX.set(proxy, store);
12299
+ _environment__WEBPACK_IMPORTED_MODULE_0__/* .RawProxy.set */ .dv.set(store, proxy);
12300
+ (0,_tree__WEBPACK_IMPORTED_MODULE_2__/* .buildDataTree */ .Kv)(target, key, store);
12327
12301
 
12328
12302
  function get() {
12329
- if ((0,_reaction__WEBPACK_IMPORTED_MODULE_4__/* .hasRunningReaction */ .YX)()) {
12330
- (0,_reaction__WEBPACK_IMPORTED_MODULE_4__/* .bindComputedReactions */ .g3)(reaction);
12303
+ if ((0,_reaction__WEBPACK_IMPORTED_MODULE_3__/* .hasRunningReaction */ .YX)()) {
12304
+ (0,_reaction__WEBPACK_IMPORTED_MODULE_3__/* .bindComputedReactions */ .g3)(reaction);
12331
12305
  }
12332
12306
 
12333
- if (!(0,_reaction__WEBPACK_IMPORTED_MODULE_4__/* .isUntracking */ .Im)()) {
12307
+ if (!(0,_reaction__WEBPACK_IMPORTED_MODULE_3__/* .isUntracking */ .Im)()) {
12334
12308
  //如果允许untracked过程中收集依赖,那么永远不会存在绑定,因为_dirty已经设置为false
12335
12309
  if (reaction._dirty) {
12336
12310
  reaction();
@@ -12340,7 +12314,7 @@ var computed = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */
12340
12314
  compute();
12341
12315
  }
12342
12316
 
12343
- (0,_reaction__WEBPACK_IMPORTED_MODULE_4__/* .bindTargetKeyWithCurrentReaction */ .q0)({
12317
+ (0,_reaction__WEBPACK_IMPORTED_MODULE_3__/* .bindTargetKeyWithCurrentReaction */ .q0)({
12344
12318
  target: context,
12345
12319
  key: property,
12346
12320
  type: 'get'
@@ -12349,11 +12323,13 @@ var computed = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */
12349
12323
  }
12350
12324
 
12351
12325
  function set(value) {
12326
+ var _a;
12327
+
12352
12328
  try {
12353
- (0,_reaction__WEBPACK_IMPORTED_MODULE_4__/* .batchStart */ .o$)();
12354
- setter === null || setter === void 0 ? void 0 : setter.call(context, value);
12329
+ (0,_reaction__WEBPACK_IMPORTED_MODULE_3__/* .batchStart */ .o$)();
12330
+ (_a = setter === null || setter === void 0 ? void 0 : setter.call) === null || _a === void 0 ? void 0 : _a.call(setter, context, value);
12355
12331
  } finally {
12356
- (0,_reaction__WEBPACK_IMPORTED_MODULE_4__/* .batchEnd */ .ks)();
12332
+ (0,_reaction__WEBPACK_IMPORTED_MODULE_3__/* .batchEnd */ .ks)();
12357
12333
  }
12358
12334
  }
12359
12335
 
@@ -12361,7 +12337,8 @@ var computed = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */
12361
12337
  Object.defineProperty(target, key, {
12362
12338
  get: get,
12363
12339
  set: set,
12364
- enumerable: true
12340
+ enumerable: true,
12341
+ configurable: false
12365
12342
  });
12366
12343
  return target;
12367
12344
  } else {
@@ -12369,9 +12346,6 @@ var computed = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */
12369
12346
  set: set,
12370
12347
  get: get
12371
12348
  });
12372
- (0,_tree__WEBPACK_IMPORTED_MODULE_2__/* .buildDataTree */ .Kv)(target, key, store);
12373
- _environment__WEBPACK_IMPORTED_MODULE_0__/* .ProxyRaw.set */ .wX.set(proxy, store);
12374
- _environment__WEBPACK_IMPORTED_MODULE_0__/* .RawProxy.set */ .dv.set(store, proxy);
12375
12349
  }
12376
12350
 
12377
12351
  return proxy;
@@ -12485,6 +12459,9 @@ var ref = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */ .Bh)
12485
12459
  var proxy = {};
12486
12460
  var context = target ? target : store;
12487
12461
  var property = target ? key : 'value';
12462
+ (0,_tree__WEBPACK_IMPORTED_MODULE_2__/* .buildDataTree */ .Kv)(target, key, store);
12463
+ _environment__WEBPACK_IMPORTED_MODULE_0__/* .ProxyRaw.set */ .wX.set(proxy, store);
12464
+ _environment__WEBPACK_IMPORTED_MODULE_0__/* .RawProxy.set */ .dv.set(store, proxy);
12488
12465
 
12489
12466
  function get() {
12490
12467
  (0,_reaction__WEBPACK_IMPORTED_MODULE_3__/* .bindTargetKeyWithCurrentReaction */ .q0)({
@@ -12514,7 +12491,8 @@ var ref = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */ .Bh)
12514
12491
  Object.defineProperty(target, key, {
12515
12492
  get: get,
12516
12493
  set: set,
12517
- enumerable: true
12494
+ enumerable: true,
12495
+ configurable: false
12518
12496
  });
12519
12497
  return target;
12520
12498
  } else {
@@ -12522,9 +12500,6 @@ var ref = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */ .Bh)
12522
12500
  set: set,
12523
12501
  get: get
12524
12502
  });
12525
- (0,_tree__WEBPACK_IMPORTED_MODULE_2__/* .buildDataTree */ .Kv)(target, key, store);
12526
- _environment__WEBPACK_IMPORTED_MODULE_0__/* .ProxyRaw.set */ .wX.set(proxy, store);
12527
- _environment__WEBPACK_IMPORTED_MODULE_0__/* .RawProxy.set */ .dv.set(store, proxy);
12528
12503
  }
12529
12504
 
12530
12505
  return proxy;
@@ -12609,7 +12584,6 @@ function () {
12609
12584
  value = [];
12610
12585
  }
12611
12586
 
12612
- this.batchDeleting = false;
12613
12587
  this.value = value;
12614
12588
  }
12615
12589
 
@@ -12624,8 +12598,6 @@ function () {
12624
12598
  };
12625
12599
 
12626
12600
  ArraySet.prototype["delete"] = function (item) {
12627
- if (this.batchDeleting) return; //批量删除时禁止单独删除,会影响计数执行器
12628
-
12629
12601
  var index = this.value.indexOf(item);
12630
12602
 
12631
12603
  if (index > -1) {
@@ -12643,7 +12615,6 @@ function () {
12643
12615
 
12644
12616
  ArraySet.prototype.forEachDelete = function (callback) {
12645
12617
  if (this.value.length === 0) return;
12646
- this.batchDeleting = true;
12647
12618
 
12648
12619
  for (var index = 0; index < this.value.length; index++) {
12649
12620
  var item = this.value[index];
@@ -12651,8 +12622,6 @@ function () {
12651
12622
  callback(item);
12652
12623
  index--;
12653
12624
  }
12654
-
12655
- this.batchDeleting = false;
12656
12625
  };
12657
12626
 
12658
12627
  ArraySet.prototype.clear = function () {
@@ -12805,12 +12774,10 @@ var reaction = function reaction(tracker, subscriber, options) {
12805
12774
 
12806
12775
  var fireAction = function fireAction() {
12807
12776
  try {
12808
- (0,_reaction__WEBPACK_IMPORTED_MODULE_0__/* .untrackStart */ .aN)();
12809
12777
  (0,_reaction__WEBPACK_IMPORTED_MODULE_0__/* .batchStart */ .o$)();
12810
12778
  if ((0,_checkers__WEBPACK_IMPORTED_MODULE_1__/* .isFn */ .LQ)(subscriber)) subscriber(value.currentValue, value.oldValue);
12811
12779
  } finally {
12812
12780
  (0,_reaction__WEBPACK_IMPORTED_MODULE_0__/* .batchEnd */ .ks)();
12813
- (0,_reaction__WEBPACK_IMPORTED_MODULE_0__/* .untrackEnd */ .Pq)();
12814
12781
  }
12815
12782
  };
12816
12783
 
@@ -12894,7 +12861,6 @@ batch.endpoint = function (callback) {
12894
12861
  /* harmony export */ "gK": () => (/* binding */ isCollectionType),
12895
12862
  /* harmony export */ "Yq": () => (/* binding */ isNormalType)
12896
12863
  /* harmony export */ });
12897
- var toString = Object.prototype.toString;
12898
12864
  var isMap = function isMap(val) {
12899
12865
  return val && val instanceof Map;
12900
12866
  };
@@ -12912,7 +12878,7 @@ var isFn = function isFn(val) {
12912
12878
  };
12913
12879
  var isArr = Array.isArray;
12914
12880
  var isPlainObj = function isPlainObj(val) {
12915
- return toString.call(val) === '[object Object]';
12881
+ return Object.prototype.toString.call(val) === '[object Object]';
12916
12882
  };
12917
12883
  var isValid = function isValid(val) {
12918
12884
  return val !== null && val !== undefined;
@@ -12992,8 +12958,6 @@ var ObserverListeners = new _array__WEBPACK_IMPORTED_MODULE_0__/* .ArraySet */ .
12992
12958
  /* harmony export */ });
12993
12959
  /* harmony import */ var _checkers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56893);
12994
12960
  /* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4756);
12995
- /* harmony import */ var _tree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85755);
12996
-
12997
12961
 
12998
12962
 
12999
12963
  var RAW_TYPE = Symbol('RAW_TYPE');
@@ -13114,8 +13078,8 @@ var contains = function contains(target, property) {
13114
13078
  var targetRaw = _environment__WEBPACK_IMPORTED_MODULE_1__/* .ProxyRaw.get */ .wX.get(target) || target;
13115
13079
  var propertyRaw = _environment__WEBPACK_IMPORTED_MODULE_1__/* .ProxyRaw.get */ .wX.get(property) || property;
13116
13080
  if (targetRaw === propertyRaw) return true;
13117
- var targetNode = (0,_tree__WEBPACK_IMPORTED_MODULE_2__/* .getDataNode */ .bl)(targetRaw);
13118
- var propertyNode = (0,_tree__WEBPACK_IMPORTED_MODULE_2__/* .getDataNode */ .bl)(propertyRaw);
13081
+ var targetNode = _environment__WEBPACK_IMPORTED_MODULE_1__/* .RawNode.get */ .xO.get(targetRaw);
13082
+ var propertyNode = _environment__WEBPACK_IMPORTED_MODULE_1__/* .RawNode.get */ .xO.get(propertyRaw);
13119
13083
  if (!targetNode) return false;
13120
13084
  if (!propertyNode) return false;
13121
13085
  return targetNode.contains(propertyNode);
@@ -13538,9 +13502,7 @@ __webpack_require__.r(__webpack_exports__);
13538
13502
  /* harmony export */ "toJS": () => (/* reexport safe */ _externals__WEBPACK_IMPORTED_MODULE_8__.ZN),
13539
13503
  /* harmony export */ "DataChange": () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_9__.UH),
13540
13504
  /* harmony export */ "DataNode": () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_9__.RQ),
13541
- /* harmony export */ "buildDataTree": () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_9__.Kv),
13542
- /* harmony export */ "getDataNode": () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_9__.bl),
13543
- /* harmony export */ "setDataNode": () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_9__.Oe)
13505
+ /* harmony export */ "buildDataTree": () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_9__.Kv)
13544
13506
  /* harmony export */ });
13545
13507
  /* harmony import */ var _batch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1713);
13546
13508
  /* harmony import */ var _action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65483);
@@ -13627,7 +13589,7 @@ var createObservable = function createObservable(target, key, value, shallow) {
13627
13589
  var raw = _environment__WEBPACK_IMPORTED_MODULE_1__/* .ProxyRaw.get */ .wX.get(value);
13628
13590
 
13629
13591
  if (!!raw) {
13630
- var node = (0,_tree__WEBPACK_IMPORTED_MODULE_3__/* .getDataNode */ .bl)(raw);
13592
+ var node = _environment__WEBPACK_IMPORTED_MODULE_1__/* .RawNode.get */ .xO.get(raw);
13631
13593
  node.key = key;
13632
13594
  return value;
13633
13595
  }
@@ -13828,11 +13790,11 @@ var observe = function observe(target, observer, deep) {
13828
13790
 
13829
13791
  var addListener = function addListener(target) {
13830
13792
  var raw = _environment__WEBPACK_IMPORTED_MODULE_0__/* .ProxyRaw.get */ .wX.get(target) || target;
13831
- var node = (0,_tree__WEBPACK_IMPORTED_MODULE_2__/* .getDataNode */ .bl)(raw);
13793
+ var node = _environment__WEBPACK_IMPORTED_MODULE_0__/* .RawNode.get */ .xO.get(raw);
13832
13794
 
13833
13795
  var listener = function listener(operation) {
13834
13796
  var targetRaw = _environment__WEBPACK_IMPORTED_MODULE_0__/* .ProxyRaw.get */ .wX.get(operation.target) || operation.target;
13835
- var targetNode = (0,_tree__WEBPACK_IMPORTED_MODULE_2__/* .getDataNode */ .bl)(targetRaw);
13797
+ var targetNode = _environment__WEBPACK_IMPORTED_MODULE_0__/* .RawNode.get */ .xO.get(targetRaw);
13836
13798
 
13837
13799
  if (deep) {
13838
13800
  if (node.contains(targetNode)) {
@@ -14218,8 +14180,6 @@ function () {
14218
14180
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14219
14181
  /* harmony export */ "UH": () => (/* binding */ DataChange),
14220
14182
  /* harmony export */ "RQ": () => (/* binding */ DataNode),
14221
- /* harmony export */ "bl": () => (/* binding */ getDataNode),
14222
- /* harmony export */ "Oe": () => (/* binding */ setDataNode),
14223
14183
  /* harmony export */ "Kv": () => (/* binding */ buildDataTree)
14224
14184
  /* harmony export */ });
14225
14185
  /* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4756);
@@ -14269,7 +14229,7 @@ function () {
14269
14229
  Object.defineProperty(DataNode.prototype, "parent", {
14270
14230
  get: function get() {
14271
14231
  if (!this.target) return;
14272
- return getDataNode(this.targetRaw);
14232
+ return _environment__WEBPACK_IMPORTED_MODULE_0__/* .RawNode.get */ .xO.get(this.targetRaw);
14273
14233
  },
14274
14234
  enumerable: false,
14275
14235
  configurable: true
@@ -14299,17 +14259,10 @@ function () {
14299
14259
  }();
14300
14260
 
14301
14261
 
14302
- var getDataNode = function getDataNode(raw) {
14303
- return _environment__WEBPACK_IMPORTED_MODULE_0__/* .RawNode.get */ .xO.get(raw);
14304
- };
14305
- var setDataNode = function setDataNode(raw, node) {
14306
- _environment__WEBPACK_IMPORTED_MODULE_0__/* .RawNode.set */ .xO.set(raw, node);
14307
- };
14308
14262
  var buildDataTree = function buildDataTree(target, key, value) {
14309
- var raw = _environment__WEBPACK_IMPORTED_MODULE_0__/* .ProxyRaw.get */ .wX.get(value) || value;
14310
- var currentNode = getDataNode(raw);
14263
+ var currentNode = _environment__WEBPACK_IMPORTED_MODULE_0__/* .RawNode.get */ .xO.get(_environment__WEBPACK_IMPORTED_MODULE_0__/* .ProxyRaw.get */ .wX.get(value) || value);
14311
14264
  if (currentNode) return currentNode;
14312
- setDataNode(raw, new DataNode(target, key, value));
14265
+ _environment__WEBPACK_IMPORTED_MODULE_0__/* .RawNode.set */ .xO.set(value, new DataNode(target, key, value));
14313
14266
  };
14314
14267
 
14315
14268
  /***/ }),
@@ -14321,9 +14274,7 @@ var buildDataTree = function buildDataTree(target, key, value) {
14321
14274
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14322
14275
  /* harmony export */ "UH": () => (/* reexport safe */ _tree__WEBPACK_IMPORTED_MODULE_0__.UH),
14323
14276
  /* harmony export */ "RQ": () => (/* reexport safe */ _tree__WEBPACK_IMPORTED_MODULE_0__.RQ),
14324
- /* harmony export */ "Kv": () => (/* reexport safe */ _tree__WEBPACK_IMPORTED_MODULE_0__.Kv),
14325
- /* harmony export */ "bl": () => (/* reexport safe */ _tree__WEBPACK_IMPORTED_MODULE_0__.bl),
14326
- /* harmony export */ "Oe": () => (/* reexport safe */ _tree__WEBPACK_IMPORTED_MODULE_0__.Oe)
14277
+ /* harmony export */ "Kv": () => (/* reexport safe */ _tree__WEBPACK_IMPORTED_MODULE_0__.Kv)
14327
14278
  /* harmony export */ });
14328
14279
  /* harmony import */ var _tree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85755);
14329
14280
 
@@ -14494,8 +14445,6 @@ function includes(val, searchElement, revert) {
14494
14445
  /* unused harmony exports getType, isMap, isSet, isWeakMap, isWeakSet, isRegExp, isReactElement, isHTMLElement */
14495
14446
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
14496
14447
 
14497
- var toString = Object.prototype.toString;
14498
-
14499
14448
  var isType = function isType(type) {
14500
14449
  return function (obj) {
14501
14450
  return getType(obj) === "[object ".concat(type, "]");
@@ -14503,7 +14452,7 @@ var isType = function isType(type) {
14503
14452
  };
14504
14453
 
14505
14454
  var getType = function getType(obj) {
14506
- return toString.call(obj);
14455
+ return Object.prototype.toString.call(obj);
14507
14456
  };
14508
14457
  var isFn = function isFn(val) {
14509
14458
  return typeof val === 'function';
@@ -15908,7 +15857,6 @@ var getRuleMessage = function getRuleMessage(rule, type) {
15908
15857
  };
15909
15858
 
15910
15859
  var parseValidatorDescription = function parseValidatorDescription(description) {
15911
- if (!description) return {};
15912
15860
  var rules = {};
15913
15861
 
15914
15862
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isStr */ .d8)(description)) {
@@ -15919,10 +15867,10 @@ var parseValidatorDescription = function parseValidatorDescription(description)
15919
15867
  rules = Object.assign(rules, description);
15920
15868
  }
15921
15869
 
15870
+ rules.triggerType = rules.triggerType || 'onInput';
15922
15871
  return rules;
15923
15872
  };
15924
15873
  var parseValidatorDescriptions = function parseValidatorDescriptions(validator) {
15925
- if (!validator) return [];
15926
15874
  var array = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isArr */ .H1)(validator) ? validator : [validator];
15927
15875
  return array.map(function (description) {
15928
15876
  return parseValidatorDescription(description);
@@ -16060,14 +16008,10 @@ var parseValidator = function parseValidator(validator, options) {
16060
16008
  options = {};
16061
16009
  }
16062
16010
 
16063
- if (!validator) return [];
16064
16011
  var array = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isArr */ .H1)(validator) ? validator : [validator];
16065
16012
  return array.reduce(function (buf, description) {
16066
- var _a;
16067
-
16068
16013
  var rules = parseValidatorDescription(description);
16069
- var triggerType = (_a = rules.triggerType) !== null && _a !== void 0 ? _a : 'onInput';
16070
- if ((options === null || options === void 0 ? void 0 : options.triggerType) && options.triggerType !== triggerType) return buf;
16014
+ if ((options === null || options === void 0 ? void 0 : options.triggerType) && options.triggerType !== rules.triggerType) return buf;
16071
16015
  return rules ? buf.concat(parseValidatorRules(rules)) : buf;
16072
16016
  }, []);
16073
16017
  };
@@ -17611,8 +17555,8 @@ var MenuOutlinedIcon = react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(f
17611
17555
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Icon, __assign({}, props, {
17612
17556
  ref: ref
17613
17557
  }), react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", {
17614
- d: "M262.4 192c0 35.3472 28.6528 64 64 64s64-28.6528 64-64-28.6528-64-64-64-64 28.6528-64 64zM262.4 512c0 35.3472 28.6528 64 64 64s64-28.6528 64-64-28.6528-64-64-64-64 28.6528-64 64zM633.6 192c0 35.3472 28.6528 64 64 64s64-28.6528 64-64-28.6528-64-64-64-64 28.6528-64 64zM633.6 512c0 35.3472 28.6528 64 64 64s64-28.6528 64-64-28.6528-64-64-64-64 28.6528-64 64zM262.4 832c0 35.3472 28.6528 64 64 64s64-28.6528 64-64-28.6528-64-64-64-64 28.6528-64 64zM633.6 832c0 35.3472 28.6528 64 64 64s64-28.6528 64-64-28.6528-64-64-64-64 28.6528-64 64z",
17615
- "p-id": "11148"
17558
+ d: "M128.64 288h768c14.08 0 32-14.08 32-32s-17.92-32-32-32h-768c-14.08 0-32 14.08-32 32s17.92 32 32 32zM896.64 480h-768c-14.08 0-32 14.08-32 32s17.92 32 32 32h768c14.08 0 32-14.08 32-32s-17.28-32-32-32zM896.64 736h-768c-14.08 0-32 14.08-32 32s17.92 32 32 32h768c14.08 0 32-14.08 32-32s-17.28-32-32-32z",
17559
+ "p-id": "12825"
17616
17560
  }));
17617
17561
  });
17618
17562
  var PlusOutlinedIcon = react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
@@ -21694,17 +21638,16 @@ var BaseItem = function BaseItem(props) {
21694
21638
  }, extra)));
21695
21639
  }; // 适配
21696
21640
 
21697
- var FormItem = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.connect)(BaseItem, (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.mapProps)(function (props, field) {
21641
+ var FormItem = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.connect)(BaseItem, (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.mapProps)({
21642
+ validateStatus: true,
21643
+ title: 'label',
21644
+ required: true
21645
+ }, function (props, field) {
21698
21646
  if ((0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.isVoidField)(field)) return {
21699
21647
  extra: props.extra || field.description
21700
21648
  };
21701
21649
  if (!field) return props;
21702
21650
 
21703
- var takeFeedbackStatus = function takeFeedbackStatus() {
21704
- if (field.validating) return 'pending';
21705
- return field.decoratorProps.feedbackStatus || field.validateStatus;
21706
- };
21707
-
21708
21651
  var takeMessage = function takeMessage() {
21709
21652
  var split = function split(messages) {
21710
21653
  return messages.reduce(function (buf, text, index) {
@@ -21720,24 +21663,33 @@ var FormItem = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.connect)(BaseItem,
21720
21663
  if (field.selfSuccesses.length) return split(field.selfSuccesses);
21721
21664
  };
21722
21665
 
21723
- var takeAsterisk = function takeAsterisk() {
21724
- if (field.required && field.pattern !== 'readPretty') {
21725
- return true;
21726
- }
21727
-
21728
- if ('asterisk' in props) {
21729
- return props.asterisk;
21730
- }
21666
+ return {
21667
+ feedbackText: takeMessage(),
21668
+ extra: props.extra || field.description
21669
+ };
21670
+ }, function (props, field) {
21671
+ var _a;
21731
21672
 
21732
- return false;
21673
+ if ((0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.isVoidField)(field)) return props;
21674
+ if (!field) return props;
21675
+ return {
21676
+ feedbackStatus: field.validateStatus === 'validating' ? 'pending' : ((_a = field.decorator[1]) === null || _a === void 0 ? void 0 : _a.feedbackStatus) || field.validateStatus
21733
21677
  };
21678
+ }, function (props, field) {
21679
+ if ((0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.isVoidField)(field)) return props;
21680
+ if (!field) return props;
21681
+ var asterisk = false;
21682
+
21683
+ if (field.required && field.pattern !== 'readPretty') {
21684
+ asterisk = true;
21685
+ }
21686
+
21687
+ if ('asterisk' in props) {
21688
+ asterisk = props.asterisk;
21689
+ }
21734
21690
 
21735
21691
  return {
21736
- label: field.title,
21737
- feedbackStatus: takeFeedbackStatus(),
21738
- feedbackText: takeMessage(),
21739
- asterisk: takeAsterisk(),
21740
- extra: props.extra || field.description
21692
+ asterisk: asterisk
21741
21693
  };
21742
21694
  }));
21743
21695
  FormItem.defaultProps = {
@@ -24399,8 +24351,7 @@ var TeamixIcon = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(
24399
24351
  }
24400
24352
 
24401
24353
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("i", (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({
24402
- className: classes // @ts-ignore
24403
- ,
24354
+ className: classes,
24404
24355
  ref: ref
24405
24356
  }, others), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", {
24406
24357
  viewBox: "0 0 1024 1024"
@@ -24413,7 +24364,7 @@ TeamixIcon.YUNXIAO = {
24413
24364
  symbolPrefix: 'yunxiao-'
24414
24365
  };
24415
24366
  TeamixIcon.HYBRIDCLOUD = {
24416
- scriptUrl: '//at.alicdn.com/t/font_2436140_xd91cirfxss.js',
24367
+ scriptUrl: '//at.alicdn.com/t/font_2436140_psy0jd7csgm.js',
24417
24368
  symbolPrefix: 'hybridcloud-'
24418
24369
  };
24419
24370
  TeamixIcon.displayName = 'TeamixIcon';
@@ -62112,7 +62063,7 @@ _teamix_icon__WEBPACK_IMPORTED_MODULE_12__/* ["default"].setConfig */ .Z.setConf
62112
62063
 
62113
62064
 
62114
62065
 
62115
- var version = '1.2.4';
62066
+ var version = '1.2.5';
62116
62067
 
62117
62068
 
62118
62069
  /***/ }),