@teamix/pro 1.4.5 → 1.4.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
@@ -2938,8 +2938,12 @@ function () {
2938
2938
  _this.form.removeEffects(_this);
2939
2939
  };
2940
2940
 
2941
- this.destroy = function () {
2942
- (0,_shared_internals__WEBPACK_IMPORTED_MODULE_2__/* .destroy */ .ob)(_this.form.fields, _this.address.toString());
2941
+ this.destroy = function (forceClear) {
2942
+ if (forceClear === void 0) {
2943
+ forceClear = true;
2944
+ }
2945
+
2946
+ (0,_shared_internals__WEBPACK_IMPORTED_MODULE_2__/* .destroy */ .ob)(_this.form.fields, _this.address.toString(), forceClear);
2943
2947
  };
2944
2948
 
2945
2949
  this.match = function (pattern) {
@@ -3040,9 +3044,18 @@ function () {
3040
3044
  get: function get() {
3041
3045
  var _a;
3042
3046
 
3043
- var parentPattern = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.pattern;
3044
- if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .JY)(this.selfPattern)) return this.selfPattern;
3045
- return parentPattern || this.form.pattern || 'editable';
3047
+ var parentPattern = ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.pattern) || this.form.pattern || 'editable';
3048
+ var selfPattern = this.selfPattern;
3049
+
3050
+ if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .JY)(selfPattern)) {
3051
+ if (parentPattern === 'readPretty' && selfPattern !== 'editable') {
3052
+ return parentPattern;
3053
+ }
3054
+
3055
+ return selfPattern;
3056
+ }
3057
+
3058
+ return parentPattern;
3046
3059
  },
3047
3060
  set: function set(pattern) {
3048
3061
  this.selfPattern = pattern;
@@ -3146,6 +3159,13 @@ function () {
3146
3159
  enumerable: false,
3147
3160
  configurable: true
3148
3161
  });
3162
+ Object.defineProperty(BaseField.prototype, "destroyed", {
3163
+ get: function get() {
3164
+ return !this.form.fields[this.address.toString()];
3165
+ },
3166
+ enumerable: false,
3167
+ configurable: true
3168
+ });
3149
3169
  return BaseField;
3150
3170
  }();
3151
3171
 
@@ -3419,20 +3439,21 @@ function (_super) {
3419
3439
  }
3420
3440
 
3421
3441
  return __awaiter(_this, void 0, void 0, function () {
3422
- var values, value;
3442
+ var getValues, values, value;
3443
+ return __generator(this, function (_a) {
3444
+ switch (_a.label) {
3445
+ case 0:
3446
+ getValues = function getValues(args) {
3447
+ var _a;
3423
3448
 
3424
- var _a;
3449
+ if ((_a = args[0]) === null || _a === void 0 ? void 0 : _a.target) {
3450
+ if (!(0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .isHTMLInputEvent */ .YC)(args[0])) return args;
3451
+ }
3425
3452
 
3426
- return __generator(this, function (_b) {
3427
- switch (_b.label) {
3428
- case 0:
3429
- if ((_a = args[0]) === null || _a === void 0 ? void 0 : _a.target) {
3430
- if (!(0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .isHTMLInputEvent */ .YC)(args[0])) return [2
3431
- /*return*/
3432
- ];
3433
- }
3453
+ return (0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .getValuesFromEvent */ .C7)(args);
3454
+ };
3434
3455
 
3435
- values = (0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .getValuesFromEvent */ .C7)(args);
3456
+ values = getValues(args);
3436
3457
  value = values[0];
3437
3458
  this.caches.inputting = true;
3438
3459
  this.inputValue = value;
@@ -3446,7 +3467,7 @@ function (_super) {
3446
3467
  , (0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .validateSelf */ .Ct)(this, 'onInput')];
3447
3468
 
3448
3469
  case 1:
3449
- _b.sent();
3470
+ _a.sent();
3450
3471
 
3451
3472
  this.caches.inputting = false;
3452
3473
  return [2
@@ -3625,10 +3646,10 @@ function (_super) {
3625
3646
  decoratorType: _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.observable.ref,
3626
3647
  componentType: _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.observable.ref,
3627
3648
  content: _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.observable.ref,
3649
+ feedbacks: _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.observable.ref,
3628
3650
  decoratorProps: _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.observable,
3629
3651
  componentProps: _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.observable,
3630
3652
  validator: _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.observable.shallow,
3631
- feedbacks: _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.observable.shallow,
3632
3653
  data: _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.observable.shallow,
3633
3654
  component: _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.observable.computed,
3634
3655
  decorator: _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.observable.computed,
@@ -3845,6 +3866,8 @@ function (_super) {
3845
3866
  return this.form.getValuesIn(this.path);
3846
3867
  },
3847
3868
  set: function set(value) {
3869
+ if (this.destroyed) return;
3870
+
3848
3871
  if (!this.initialized) {
3849
3872
  if (this.display === 'none') {
3850
3873
  this.caches.value = value;
@@ -3866,6 +3889,8 @@ function (_super) {
3866
3889
  return this.form.getInitialValuesIn(this.path);
3867
3890
  },
3868
3891
  set: function set(initialValue) {
3892
+ if (this.destroyed) return;
3893
+
3869
3894
  if (!this.initialized) {
3870
3895
  if (!(0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .allowAssignDefaultValue */ .ab)(this.initialValue, initialValue) && !this.designable) {
3871
3896
  return;
@@ -4249,7 +4274,7 @@ function () {
4249
4274
  _this.notify(_types__WEBPACK_IMPORTED_MODULE_4__/* .LifeCycleTypes.ON_FORM_UNMOUNT */ .N.ON_FORM_UNMOUNT);
4250
4275
 
4251
4276
  _this.query('*').forEach(function (field) {
4252
- return field.destroy();
4277
+ return field.destroy(false);
4253
4278
  });
4254
4279
 
4255
4280
  _this.disposers.forEach(function (dispose) {
@@ -4281,13 +4306,17 @@ function () {
4281
4306
  _this.graph.setGraph(graph);
4282
4307
  };
4283
4308
 
4284
- this.clearFormGraph = function (pattern) {
4309
+ this.clearFormGraph = function (pattern, forceClear) {
4285
4310
  if (pattern === void 0) {
4286
4311
  pattern = '*';
4287
4312
  }
4288
4313
 
4314
+ if (forceClear === void 0) {
4315
+ forceClear = true;
4316
+ }
4317
+
4289
4318
  _this.query(pattern).forEach(function (field) {
4290
- field.destroy();
4319
+ field.destroy(forceClear);
4291
4320
  });
4292
4321
  };
4293
4322
 
@@ -4798,14 +4827,14 @@ var LifeCycle =
4798
4827
  /** @class */
4799
4828
  function () {
4800
4829
  function LifeCycle() {
4801
- var _this = this;
4802
-
4803
4830
  var params = [];
4804
4831
 
4805
4832
  for (var _i = 0; _i < arguments.length; _i++) {
4806
4833
  params[_i] = arguments[_i];
4807
4834
  }
4808
4835
 
4836
+ var _this = this;
4837
+
4809
4838
  this.buildListener = function (params) {
4810
4839
  return function (payload, ctx) {
4811
4840
  var _this = this;
@@ -5810,14 +5839,8 @@ var isHTMLInputEvent = function isHTMLInputEvent(event, stopPropagation) {
5810
5839
  }
5811
5840
 
5812
5841
  if (event === null || event === void 0 ? void 0 : event.target) {
5813
- if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .JY)(event.target.value) || (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .JY)(event.target.checked)) return true;
5814
-
5815
- if (event.target.tagName && event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA' && event.target.tagName !== 'SELECT') {
5816
- return false;
5817
- }
5818
-
5842
+ if (_typeof(event.target) === 'object' && ('value' in event.target || 'checked' in event.target)) return true;
5819
5843
  if (stopPropagation) (_a = event.stopPropagation) === null || _a === void 0 ? void 0 : _a.call(event);
5820
- return true;
5821
5844
  }
5822
5845
 
5823
5846
  return false;
@@ -5892,11 +5915,14 @@ var patchFieldStates = function patchFieldStates(target, patches) {
5892
5915
  payload = _a.payload;
5893
5916
 
5894
5917
  if (type === 'remove') {
5895
- destroy(target, address);
5918
+ destroy(target, address, false);
5896
5919
  } else if (type === 'update') {
5897
5920
  if (payload) {
5898
5921
  target[address] = payload;
5899
- if (target[oldAddress] === payload) delete target[oldAddress];
5922
+
5923
+ if (target[oldAddress] === payload) {
5924
+ delete target[oldAddress];
5925
+ }
5900
5926
  }
5901
5927
 
5902
5928
  if (address && payload) {
@@ -5905,10 +5931,21 @@ var patchFieldStates = function patchFieldStates(target, patches) {
5905
5931
  }
5906
5932
  });
5907
5933
  };
5908
- var destroy = function destroy(target, address) {
5909
- var _a;
5934
+ var destroy = function destroy(target, address, removeValue) {
5935
+ if (removeValue === void 0) {
5936
+ removeValue = true;
5937
+ }
5938
+
5939
+ var field = target[address];
5940
+ field === null || field === void 0 ? void 0 : field.dispose();
5941
+
5942
+ if ((0,_externals__WEBPACK_IMPORTED_MODULE_4__/* .isDataField */ .Ip)(field) && removeValue) {
5943
+ var form = field.form;
5944
+ var path = field.path;
5945
+ form.deleteValuesIn(path);
5946
+ form.deleteInitialValuesIn(path);
5947
+ }
5910
5948
 
5911
- (_a = target[address]) === null || _a === void 0 ? void 0 : _a.dispose();
5912
5949
  delete target[address];
5913
5950
  };
5914
5951
  var patchFormValues = function patchFormValues(form, path, source) {
@@ -5927,6 +5964,8 @@ var patchFormValues = function patchFormValues(form, path, source) {
5927
5964
 
5928
5965
  var targetValue = form.getValuesIn(path);
5929
5966
  var targetField = form.query(path).take();
5967
+ var isUnVoidField = targetField && !(0,_externals__WEBPACK_IMPORTED_MODULE_4__/* .isVoidField */ .JF)(targetField);
5968
+ if (isUnVoidField && targetField.display === 'none') return;
5930
5969
 
5931
5970
  if (allowAssignDefaultValue(targetValue, source)) {
5932
5971
  update(path, source);
@@ -5940,7 +5979,7 @@ var patchFormValues = function patchFormValues(form, path, source) {
5940
5979
  });
5941
5980
  } else {
5942
5981
  if (targetField) {
5943
- if (!(0,_externals__WEBPACK_IMPORTED_MODULE_4__/* .isVoidField */ .JF)(targetField) && !targetField.selfModified) {
5982
+ if (isUnVoidField && !targetField.selfModified) {
5944
5983
  update(path, source);
5945
5984
  }
5946
5985
  } else if (form.initialized) {
@@ -6028,14 +6067,17 @@ var validateToFeedbacks = function validateToFeedbacks(field, triggerType) {
6028
6067
 
6029
6068
  return __awaiter(void 0, void 0, void 0, function () {
6030
6069
  var results;
6031
- return __generator(this, function (_a) {
6032
- switch (_a.label) {
6070
+
6071
+ var _a;
6072
+
6073
+ return __generator(this, function (_b) {
6074
+ switch (_b.label) {
6033
6075
  case 0:
6034
6076
  return [4
6035
6077
  /*yield*/
6036
6078
  , (0,_formily_validator__WEBPACK_IMPORTED_MODULE_1__/* .validate */ .Gu)(field.value, field.validator, {
6037
6079
  triggerType: triggerType,
6038
- validateFirst: field.props.validateFirst || field.form.props.validateFirst,
6080
+ validateFirst: (_a = field.props.validateFirst) !== null && _a !== void 0 ? _a : field.form.props.validateFirst,
6039
6081
  context: {
6040
6082
  field: field,
6041
6083
  form: field.form
@@ -6043,7 +6085,7 @@ var validateToFeedbacks = function validateToFeedbacks(field, triggerType) {
6043
6085
  })];
6044
6086
 
6045
6087
  case 1:
6046
- results = _a.sent();
6088
+ results = _b.sent();
6047
6089
  (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.batch)(function () {
6048
6090
  (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .each */ .S6)(results, function (messages, type) {
6049
6091
  field.setFeedback({
@@ -6137,7 +6179,7 @@ var spliceArrayState = function spliceArrayState(field, props) {
6137
6179
  var number = (_a = afterStr.match(_constants__WEBPACK_IMPORTED_MODULE_5__/* .NumberIndexReg */ .rQ)) === null || _a === void 0 ? void 0 : _a[1];
6138
6180
  if (number === undefined) return false;
6139
6181
  var index = Number(number);
6140
- return index >= startIndex && !fields["".concat(preStr).concat(afterStr.replace(/^\.\d+/, ".".concat(index + deleteCount)))];
6182
+ return index > startIndex && !fields["".concat(preStr).concat(afterStr.replace(/^\.\d+/, ".".concat(index + deleteCount)))] || index === startIndex;
6141
6183
  };
6142
6184
 
6143
6185
  var moveIndex = function moveIndex(identifier) {
@@ -6273,9 +6315,9 @@ var cleanupArrayChildren = function cleanupArrayChildren(field, start) {
6273
6315
  var _a;
6274
6316
 
6275
6317
  var afterStr = identifier.slice(address.length);
6276
- var number = (_a = afterStr.match(_constants__WEBPACK_IMPORTED_MODULE_5__/* .NumberIndexReg */ .rQ)) === null || _a === void 0 ? void 0 : _a[1];
6277
- if (number === undefined) return false;
6278
- var index = Number(number);
6318
+ var numStr = (_a = afterStr.match(_constants__WEBPACK_IMPORTED_MODULE_5__/* .NumberIndexReg */ .rQ)) === null || _a === void 0 ? void 0 : _a[1];
6319
+ if (numStr === undefined) return false;
6320
+ var index = Number(numStr);
6279
6321
  return index >= start;
6280
6322
  };
6281
6323
 
@@ -6410,7 +6452,7 @@ var createChildrenFeedbackFilter = function createChildrenFeedbackFilter(field)
6410
6452
  var identifier = (_a = field.address) === null || _a === void 0 ? void 0 : _a.toString();
6411
6453
  return function (_a) {
6412
6454
  var address = _a.address;
6413
- return address.indexOf(identifier) === 0;
6455
+ return address === identifier || address.indexOf(identifier + '.') === 0;
6414
6456
  };
6415
6457
  };
6416
6458
  var createStateSetter = function createStateSetter(model) {
@@ -6462,7 +6504,7 @@ var triggerFormInitialValuesChange = function triggerFormInitialValuesChange(for
6462
6504
  var path = change.path;
6463
6505
  if (Array.isArray(change.object) && change.key === 'length') return;
6464
6506
 
6465
- if ((0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.contains)(form.initialValues, change.object) || (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.contains)(form.initialValues, change.value)) {
6507
+ if ((0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.contains)(form.initialValues, change.object) || form.initialValues === change.value) {
6466
6508
  if (change.type === 'add' || change.type === 'set') {
6467
6509
  patchFormValues(form, path.slice(1), change.value);
6468
6510
  }
@@ -6475,7 +6517,7 @@ var triggerFormInitialValuesChange = function triggerFormInitialValuesChange(for
6475
6517
  var triggerFormValuesChange = function triggerFormValuesChange(form, change) {
6476
6518
  if (Array.isArray(change.object) && change.key === 'length') return;
6477
6519
 
6478
- if (((0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.contains)(form.values, change.object) || (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.contains)(form.values, change.value)) && form.initialized) {
6520
+ if (((0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.contains)(form.values, change.object) || form.values === change.value) && form.initialized) {
6479
6521
  form.notify(_types__WEBPACK_IMPORTED_MODULE_3__/* .LifeCycleTypes.ON_FORM_VALUES_CHANGE */ .N.ON_FORM_VALUES_CHANGE);
6480
6522
  }
6481
6523
  };
@@ -6782,11 +6824,8 @@ var resetSelf = _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.batch.bound(funct
6782
6824
 
6783
6825
  return __awaiter(void 0, void 0, void 0, function () {
6784
6826
  var typedDefaultValue;
6785
-
6786
- var _a;
6787
-
6788
- return __generator(this, function (_b) {
6789
- switch (_b.label) {
6827
+ return __generator(this, function (_a) {
6828
+ switch (_a.label) {
6790
6829
  case 0:
6791
6830
  typedDefaultValue = getTypedDefaultValue(target);
6792
6831
  target.modified = false;
@@ -6797,11 +6836,11 @@ var resetSelf = _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.batch.bound(funct
6797
6836
  target.inputValues = [];
6798
6837
  target.caches = {};
6799
6838
 
6800
- if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .JY)(target.value)) {
6839
+ if (!(0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isUndef */ .G7)(target.value)) {
6801
6840
  if (options === null || options === void 0 ? void 0 : options.forceClear) {
6802
6841
  target.value = typedDefaultValue;
6803
6842
  } else {
6804
- target.value = (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.toJS)((_a = target.initialValue) !== null && _a !== void 0 ? _a : typedDefaultValue);
6843
+ target.value = (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.toJS)(!(0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isUndef */ .G7)(target.initialValue) ? target.initialValue : typedDefaultValue);
6805
6844
  }
6806
6845
  }
6807
6846
 
@@ -6819,7 +6858,7 @@ var resetSelf = _formily_reactive__WEBPACK_IMPORTED_MODULE_2__.batch.bound(funct
6819
6858
  case 1:
6820
6859
  return [2
6821
6860
  /*return*/
6822
- , _b.sent()];
6861
+ , _a.sent()];
6823
6862
 
6824
6863
  case 2:
6825
6864
  return [2
@@ -6855,10 +6894,10 @@ var getValidFieldDefaultValue = function getValidFieldDefaultValue(value, initia
6855
6894
  return value;
6856
6895
  };
6857
6896
  var allowAssignDefaultValue = function allowAssignDefaultValue(target, source) {
6858
- var isEmptyTarget = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isEmpty */ .xb)(target);
6859
- var isEmptySource = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isEmpty */ .xb)(source);
6860
- var isValidTarget = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .JY)(target);
6861
- var isValidSource = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .JY)(source);
6897
+ var isEmptyTarget = target !== null && (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isEmpty */ .xb)(target);
6898
+ var isEmptySource = source !== null && (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isEmpty */ .xb)(source);
6899
+ var isValidTarget = !(0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isUndef */ .G7)(target);
6900
+ var isValidSource = !(0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isUndef */ .G7)(source);
6862
6901
 
6863
6902
  if (!isValidTarget) {
6864
6903
  if (isValidSource) {
@@ -6889,7 +6928,8 @@ var createReactions = function createReactions(field) {
6889
6928
  reactions.forEach(function (reaction) {
6890
6929
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isFn */ .LQ)(reaction)) {
6891
6930
  field.disposers.push((0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.autorun)(_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.batch.scope.bound(function () {
6892
- return reaction(field);
6931
+ if (field.destroyed) return;
6932
+ reaction(field);
6893
6933
  })));
6894
6934
  }
6895
6935
  });
@@ -7799,10 +7839,12 @@ var patchSchemaCompile = function patchSchemaCompile(targetState, sourceSchema,
7799
7839
  demand = false;
7800
7840
  }
7801
7841
 
7802
- (0,_shared__WEBPACK_IMPORTED_MODULE_2__/* .traverseSchema */ .dF)(sourceSchema, function (value, path) {
7842
+ (0,_shared__WEBPACK_IMPORTED_MODULE_2__/* .traverseSchema */ .dF)(sourceSchema, function (value, path, omitCompile) {
7803
7843
  var compiled = value;
7804
7844
  var collected = (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.hasCollected)(function () {
7805
- compiled = compile(value, scope);
7845
+ if (!omitCompile) {
7846
+ compiled = compile(value, scope);
7847
+ }
7806
7848
  });
7807
7849
  if (compiled === undefined) return;
7808
7850
 
@@ -8516,14 +8558,21 @@ var traverseSchema = function traverseSchema(schema, visitor) {
8516
8558
  var root = schema;
8517
8559
 
8518
8560
  var traverse = function traverse(target, path) {
8561
+ var _a;
8562
+
8519
8563
  if (path === void 0) {
8520
8564
  path = [];
8521
8565
  }
8522
8566
 
8523
- if (path[0] === 'x-validator' || path[0] === 'version' || path[0] === '_isJSONSchemaObject') return;
8567
+ if (path[0] === 'x-compile-omitted' || path[0] === 'x-validator' || path[0] === 'version' || path[0] === '_isJSONSchemaObject') return;
8524
8568
  if (String(path[0]).indexOf('x-') == -1 && (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isFn */ .LQ)(target)) return;
8525
8569
  if (SchemaNestedMap[path[0]]) return;
8526
8570
 
8571
+ if (((_a = schema['x-compile-omitted']) === null || _a === void 0 ? void 0 : _a.indexOf(path[0])) > -1) {
8572
+ visitor(target, path, true);
8573
+ return;
8574
+ }
8575
+
8527
8576
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isPlainObj */ .Uk)(target)) {
8528
8577
  if (path[0] === 'default' || path[0] === 'x-value') {
8529
8578
  visitor(target, path);
@@ -8633,22 +8682,6 @@ var patchStateFormSchema = function patchStateFormSchema(targetState, pattern, c
8633
8682
  /* harmony import */ var _formily_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71131);
8634
8683
  /* harmony import */ var _formily_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7186);
8635
8684
  /* harmony import */ var _compiler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11690);
8636
- var __assign = undefined && undefined.__assign || function () {
8637
- __assign = Object.assign || function (t) {
8638
- for (var s, i = 1, n = arguments.length; i < n; i++) {
8639
- s = arguments[i];
8640
-
8641
- for (var p in s) {
8642
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8643
- }
8644
- }
8645
-
8646
- return t;
8647
- };
8648
-
8649
- return __assign.apply(this, arguments);
8650
- };
8651
-
8652
8685
  var __read = undefined && undefined.__read || function (o, n) {
8653
8686
  var m = typeof Symbol === "function" && o[Symbol.iterator];
8654
8687
  if (!m) return o;
@@ -8675,8 +8708,6 @@ var __read = undefined && undefined.__read || function (o, n) {
8675
8708
 
8676
8709
  return ar;
8677
8710
  };
8678
- /* istanbul ignore file */
8679
-
8680
8711
 
8681
8712
 
8682
8713
 
@@ -8744,7 +8775,7 @@ var setSchemaFieldState = function setSchemaFieldState(options, demand) {
8744
8775
  if (target) {
8745
8776
  if (request.state) {
8746
8777
  field.form.setFieldState(target, function (state) {
8747
- return (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .patchCompile */ .EO)(state, request.state, __assign(__assign({}, scope), {
8778
+ return (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .patchCompile */ .EO)(state, request.state, (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .lazyMerge */ .e_)(scope, {
8748
8779
  $target: state
8749
8780
  }));
8750
8781
  });
@@ -8752,7 +8783,7 @@ var setSchemaFieldState = function setSchemaFieldState(options, demand) {
8752
8783
 
8753
8784
  if (request.schema) {
8754
8785
  field.form.setFieldState(target, function (state) {
8755
- return (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .patchSchemaCompile */ .Nc)(state, request.schema, __assign(__assign({}, scope), {
8786
+ return (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .patchSchemaCompile */ .Nc)(state, request.schema, (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .lazyMerge */ .e_)(scope, {
8756
8787
  $target: state
8757
8788
  }), demand);
8758
8789
  });
@@ -8760,7 +8791,7 @@ var setSchemaFieldState = function setSchemaFieldState(options, demand) {
8760
8791
 
8761
8792
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isStr */ .d8)(runner) && runner) {
8762
8793
  field.form.setFieldState(target, function (state) {
8763
- (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .shallowCompile */ .eC)("{{function(){".concat(runner, "}}}"), __assign(__assign({}, scope), {
8794
+ (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .shallowCompile */ .eC)("{{function(){".concat(runner, "}}}"), (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .lazyMerge */ .e_)(scope, {
8764
8795
  $target: state
8765
8796
  }))();
8766
8797
  });
@@ -8804,7 +8835,7 @@ var getBaseScope = function getBaseScope(field, options) {
8804
8835
  var $self = field;
8805
8836
  var $form = field.form;
8806
8837
  var $values = field.form.values;
8807
- return __assign(__assign({}, options.scope), {
8838
+ return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .lazyMerge */ .e_)(options.scope, {
8808
8839
  $form: $form,
8809
8840
  $self: $self,
8810
8841
  $observable: $observable,
@@ -8848,13 +8879,11 @@ var getUserReactions = function getUserReactions(schema, options) {
8848
8879
  var run = function run() {
8849
8880
  var $deps = getDependencies(field, reaction.dependencies);
8850
8881
  var $dependencies = $deps;
8851
-
8852
- var scope = __assign(__assign({}, baseScope), {
8882
+ var scope = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .lazyMerge */ .e_)(baseScope, {
8853
8883
  $target: null,
8854
8884
  $deps: $deps,
8855
8885
  $dependencies: $dependencies
8856
8886
  });
8857
-
8858
8887
  var compiledWhen = (0,_compiler__WEBPACK_IMPORTED_MODULE_3__/* .shallowCompile */ .eC)(when, scope);
8859
8888
  var condition = when ? compiledWhen : true;
8860
8889
  var request = condition ? fulfill : otherwise;
@@ -9208,6 +9237,7 @@ var setIn = function setIn(segments, source, value) {
9208
9237
 
9209
9238
  if (!isValid(source[index])) {
9210
9239
  if (value === undefined) {
9240
+ if (source[index] === null) source[index] = value;
9211
9241
  return;
9212
9242
  }
9213
9243
 
@@ -9988,7 +10018,8 @@ function () {
9988
10018
  if (node.end) {
9989
10019
  return current <= Number(node.end.value);
9990
10020
  } else {
9991
- return true;
10021
+ this.wildcards = this.stack.slice();
10022
+ return this.next(node, pos);
9992
10023
  }
9993
10024
  }
9994
10025
  };
@@ -11277,29 +11308,15 @@ ArrayField.displayName = 'ArrayField';
11277
11308
  /* harmony export */ });
11278
11309
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
11279
11310
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11280
- /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36869);
11281
- var __assign = undefined && undefined.__assign || function () {
11282
- __assign = Object.assign || function (t) {
11283
- for (var s, i = 1, n = arguments.length; i < n; i++) {
11284
- s = arguments[i];
11285
-
11286
- for (var p in s) {
11287
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
11288
- }
11289
- }
11290
-
11291
- return t;
11292
- };
11293
-
11294
- return __assign.apply(this, arguments);
11295
- };
11311
+ /* harmony import */ var _formily_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71131);
11312
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36869);
11296
11313
 
11297
11314
 
11298
11315
 
11299
11316
  var ExpressionScope = function ExpressionScope(props) {
11300
- var scope = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_shared__WEBPACK_IMPORTED_MODULE_1__/* .SchemaExpressionScopeContext */ .pv);
11301
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_1__/* .SchemaExpressionScopeContext.Provider */ .pv.Provider, {
11302
- value: __assign(__assign({}, scope), props.value)
11317
+ var scope = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_shared__WEBPACK_IMPORTED_MODULE_2__/* .SchemaExpressionScopeContext */ .pv);
11318
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_2__/* .SchemaExpressionScopeContext.Provider */ .pv.Provider, {
11319
+ value: (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .lazyMerge */ .e_)(scope, props.value)
11303
11320
  }, props.children);
11304
11321
  };
11305
11322
 
@@ -11529,23 +11546,18 @@ var __spreadArray = undefined && undefined.__spreadArray || function (to, from,
11529
11546
 
11530
11547
  var mergeChildren = function mergeChildren(children, content) {
11531
11548
  if (!children && !content) return;
11549
+ if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .isFn */ .LQ)(children)) return;
11532
11550
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, children, content);
11533
11551
  };
11534
11552
 
11535
- var renderChildren = function renderChildren(children) {
11536
- var args = [];
11537
-
11538
- for (var _i = 1; _i < arguments.length; _i++) {
11539
- args[_i - 1] = arguments[_i];
11540
- }
11541
-
11542
- return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .isFn */ .LQ)(children) ? children.apply(void 0, __spreadArray([], __read(args), false)) : children;
11553
+ var renderChildren = function renderChildren(children, field, form) {
11554
+ return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .isFn */ .LQ)(children) ? children(field, form) : children;
11543
11555
  };
11544
11556
 
11545
11557
  var ReactiveInternal = function ReactiveInternal(props) {
11546
11558
  var _a;
11547
11559
 
11548
- var options = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_shared__WEBPACK_IMPORTED_MODULE_5__/* .SchemaOptionsContext */ .BB);
11560
+ var components = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_shared__WEBPACK_IMPORTED_MODULE_5__/* .SchemaComponentsContext */ .$B);
11549
11561
 
11550
11562
  if (!props.field) {
11551
11563
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, renderChildren(props.children));
@@ -11562,7 +11574,7 @@ var ReactiveInternal = function ReactiveInternal(props) {
11562
11574
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, children);
11563
11575
  }
11564
11576
 
11565
- 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;
11577
+ var finalComponent = (_a = _formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .FormPath.getIn */ .Dm.getIn(components, field.decoratorType)) !== null && _a !== void 0 ? _a : field.decoratorType;
11566
11578
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(finalComponent, (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.toJS)(field.decoratorProps), children);
11567
11579
  };
11568
11580
 
@@ -11609,7 +11621,7 @@ var ReactiveInternal = function ReactiveInternal(props) {
11609
11621
  } : (_c = field.componentProps) === null || _c === void 0 ? void 0 : _c.onBlur;
11610
11622
  var disabled = !(0,_formily_core__WEBPACK_IMPORTED_MODULE_4__.isVoidField)(field) ? field.pattern === 'disabled' || field.pattern === 'readPretty' : undefined;
11611
11623
  var readOnly = !(0,_formily_core__WEBPACK_IMPORTED_MODULE_4__.isVoidField)(field) ? field.pattern === 'readOnly' : undefined;
11612
- 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;
11624
+ var finalComponent = (_d = _formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .FormPath.getIn */ .Dm.getIn(components, field.componentType)) !== null && _d !== void 0 ? _d : field.componentType;
11613
11625
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(finalComponent, __assign(__assign({
11614
11626
  disabled: disabled,
11615
11627
  readOnly: readOnly
@@ -11675,16 +11687,10 @@ var __assign = undefined && undefined.__assign || function () {
11675
11687
 
11676
11688
 
11677
11689
  var useFieldProps = function useFieldProps(schema) {
11678
- var options = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_shared__WEBPACK_IMPORTED_MODULE_3__/* .SchemaOptionsContext */ .BB);
11679
11690
  var scope = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_shared__WEBPACK_IMPORTED_MODULE_3__/* .SchemaExpressionScopeContext */ .pv);
11680
- var scopeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
11681
- scopeRef.current = scope;
11682
- return schema.toFieldProps(__assign(__assign({}, options), {
11683
- get scope() {
11684
- return __assign(__assign({}, options.scope), scopeRef.current);
11685
- }
11686
-
11687
- }));
11691
+ return schema.toFieldProps({
11692
+ scope: scope
11693
+ });
11688
11694
  };
11689
11695
 
11690
11696
  var useBasePath = function useBasePath(props) {
@@ -11783,9 +11789,10 @@ var RecursionField = function RecursionField(props) {
11783
11789
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
11784
11790
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11785
11791
  /* harmony import */ var _formily_json_schema__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89924);
11786
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39956);
11792
+ /* harmony import */ var _RecursionField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97953);
11787
11793
  /* harmony import */ var _shared_render__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17287);
11788
11794
  /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36869);
11795
+ /* harmony import */ var _formily_shared__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71131);
11789
11796
  var __assign = undefined && undefined.__assign || function () {
11790
11797
  __assign = Object.assign || function (t) {
11791
11798
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -11807,6 +11814,7 @@ var __assign = undefined && undefined.__assign || function () {
11807
11814
 
11808
11815
 
11809
11816
 
11817
+
11810
11818
  var env = {
11811
11819
  nonameId: 0
11812
11820
  };
@@ -11834,23 +11842,23 @@ function createSchemaField(options) {
11834
11842
  };
11835
11843
 
11836
11844
  var renderChildren = function renderChildren() {
11837
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* .RecursionField */ .Uk, __assign({}, props, {
11845
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_RecursionField__WEBPACK_IMPORTED_MODULE_2__/* .RecursionField */ .U, __assign({}, props, {
11838
11846
  schema: schema
11839
11847
  }));
11840
11848
  };
11841
11849
 
11842
11850
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__/* .SchemaOptionsContext.Provider */ .BB.Provider, {
11843
- value: __assign(__assign({}, options), {
11844
- components: __assign(__assign({}, options.components), props.components)
11845
- })
11851
+ value: options
11852
+ }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__/* .SchemaComponentsContext.Provider */ .$B.Provider, {
11853
+ value: (0,_formily_shared__WEBPACK_IMPORTED_MODULE_5__/* .lazyMerge */ .e_)(options.components, props.components)
11846
11854
  }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__/* .SchemaExpressionScopeContext.Provider */ .pv.Provider, {
11847
- value: __assign(__assign({}, options.scope), props.scope)
11848
- }, renderMarkup(), renderChildren()));
11855
+ value: (0,_formily_shared__WEBPACK_IMPORTED_MODULE_5__/* .lazyMerge */ .e_)(options.scope, props.scope)
11856
+ }, renderMarkup(), renderChildren())));
11849
11857
  }
11850
11858
 
11851
11859
  SchemaField.displayName = 'SchemaField';
11852
11860
 
11853
- function MarkupField(props) {
11861
+ function MarkupRender(props) {
11854
11862
  var parent = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_shared__WEBPACK_IMPORTED_MODULE_4__/* .SchemaMarkupContext */ .Dc);
11855
11863
  if (!parent) return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null);
11856
11864
 
@@ -11859,17 +11867,17 @@ function createSchemaField(options) {
11859
11867
  };
11860
11868
 
11861
11869
  var appendArraySchema = function appendArraySchema(schema) {
11862
- if (parent.items) {
11863
- return parent.addProperty(name, schema);
11870
+ var items = parent.items;
11871
+
11872
+ if (items && items.name !== props.name) {
11873
+ return parent.addProperty(props.name, schema);
11864
11874
  } else {
11865
- return parent.setItems(props);
11875
+ return parent.setItems(schema);
11866
11876
  }
11867
11877
  };
11868
11878
 
11869
- var name = props.name || getRandomName();
11870
-
11871
11879
  if (parent.type === 'object' || parent.type === 'void') {
11872
- var schema = parent.addProperty(name, props);
11880
+ var schema = parent.addProperty(props.name, props);
11873
11881
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__/* .SchemaMarkupContext.Provider */ .Dc.Provider, {
11874
11882
  value: schema
11875
11883
  }, renderChildren());
@@ -11883,6 +11891,12 @@ function createSchemaField(options) {
11883
11891
  }
11884
11892
  }
11885
11893
 
11894
+ function MarkupField(props) {
11895
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(MarkupRender, __assign({}, props, {
11896
+ name: props.name || getRandomName()
11897
+ }));
11898
+ }
11899
+
11886
11900
  MarkupField.displayName = 'MarkupField';
11887
11901
 
11888
11902
  function StringField(props) {
@@ -12237,6 +12251,7 @@ __webpack_require__.r(__webpack_exports__);
12237
12251
  /* harmony export */ "Observer": () => (/* reexport safe */ _shared__WEBPACK_IMPORTED_MODULE_2__.Qj),
12238
12252
  /* harmony export */ "RecursionField": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_1__.Uk),
12239
12253
  /* harmony export */ "Schema": () => (/* reexport safe */ _formily_json_schema__WEBPACK_IMPORTED_MODULE_0__.V),
12254
+ /* harmony export */ "SchemaComponentsContext": () => (/* reexport safe */ _shared__WEBPACK_IMPORTED_MODULE_2__.$B),
12240
12255
  /* harmony export */ "SchemaContext": () => (/* reexport safe */ _shared__WEBPACK_IMPORTED_MODULE_2__.Gi),
12241
12256
  /* harmony export */ "SchemaExpressionScopeContext": () => (/* reexport safe */ _shared__WEBPACK_IMPORTED_MODULE_2__.pv),
12242
12257
  /* harmony export */ "SchemaMarkupContext": () => (/* reexport safe */ _shared__WEBPACK_IMPORTED_MODULE_2__.Dc),
@@ -12386,6 +12401,7 @@ function connect(target) {
12386
12401
 
12387
12402
  "use strict";
12388
12403
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12404
+ /* harmony export */ "$B": () => (/* binding */ SchemaComponentsContext),
12389
12405
  /* harmony export */ "BB": () => (/* binding */ SchemaOptionsContext),
12390
12406
  /* harmony export */ "Dc": () => (/* binding */ SchemaMarkupContext),
12391
12407
  /* harmony export */ "Gi": () => (/* binding */ SchemaContext),
@@ -12420,8 +12436,9 @@ var FieldContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
12420
12436
  var SchemaMarkupContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
12421
12437
  var SchemaContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
12422
12438
  var SchemaExpressionScopeContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
12439
+ var SchemaComponentsContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
12423
12440
  var SchemaOptionsContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
12424
- var ContextCleaner = createContextCleaner(FieldContext, SchemaMarkupContext, SchemaContext, SchemaExpressionScopeContext, SchemaOptionsContext);
12441
+ var ContextCleaner = createContextCleaner(FieldContext, SchemaMarkupContext, SchemaContext, SchemaExpressionScopeContext, SchemaComponentsContext, SchemaOptionsContext);
12425
12442
 
12426
12443
  /***/ }),
12427
12444
 
@@ -12430,6 +12447,7 @@ var ContextCleaner = createContextCleaner(FieldContext, SchemaMarkupContext, Sch
12430
12447
 
12431
12448
  "use strict";
12432
12449
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12450
+ /* harmony export */ "$B": () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_0__.$B),
12433
12451
  /* harmony export */ "$j": () => (/* reexport safe */ _connect__WEBPACK_IMPORTED_MODULE_1__.$j),
12434
12452
  /* harmony export */ "BB": () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_0__.BB),
12435
12453
  /* harmony export */ "Dc": () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_0__.Dc),
@@ -13020,33 +13038,6 @@ var box = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */ .Bh)
13020
13038
  /* harmony import */ var _tree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85755);
13021
13039
  /* harmony import */ var _checkers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56893);
13022
13040
  /* harmony import */ var _reaction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91476);
13023
- var __read = undefined && undefined.__read || function (o, n) {
13024
- var m = typeof Symbol === "function" && o[Symbol.iterator];
13025
- if (!m) return o;
13026
- var i = m.call(o),
13027
- r,
13028
- ar = [],
13029
- e;
13030
-
13031
- try {
13032
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
13033
- ar.push(r.value);
13034
- }
13035
- } catch (error) {
13036
- e = {
13037
- error: error
13038
- };
13039
- } finally {
13040
- try {
13041
- if (r && !r.done && (m = i["return"])) m.call(i);
13042
- } finally {
13043
- if (e) throw e.error;
13044
- }
13045
- }
13046
-
13047
- return ar;
13048
- };
13049
-
13050
13041
 
13051
13042
 
13052
13043
 
@@ -13054,23 +13045,47 @@ var __read = undefined && undefined.__read || function (o, n) {
13054
13045
 
13055
13046
  var getDescriptor = Object.getOwnPropertyDescriptor;
13056
13047
  var getProto = Object.getPrototypeOf;
13048
+ var ClassDescriptorMap = new WeakMap();
13049
+
13050
+ function getPropertyDescriptor(obj, key) {
13051
+ if (!obj) return;
13052
+ return getDescriptor(obj, key) || getPropertyDescriptor(getProto(obj), key);
13053
+ }
13054
+
13055
+ function getPropertyDescriptorCache(obj, key) {
13056
+ var constructor = obj.constructor;
13057
+ if (constructor === Object || constructor === Array) return getPropertyDescriptor(obj, key);
13058
+ var cache = ClassDescriptorMap.get(constructor) || {};
13059
+ var descriptor = cache[key];
13060
+ if (descriptor) return descriptor;
13061
+ var newDesc = getPropertyDescriptor(obj, key);
13062
+ ClassDescriptorMap.set(constructor, cache);
13063
+ cache[key] = newDesc;
13064
+ return newDesc;
13065
+ }
13057
13066
 
13058
- function getGetterAndSetter(target, key, value) {
13067
+ function getPrototypeDescriptor(target, key, value) {
13059
13068
  if (!target) {
13060
13069
  if (value) {
13061
13070
  if ((0,_checkers__WEBPACK_IMPORTED_MODULE_3__/* .isFn */ .LQ)(value)) {
13062
- return [value];
13071
+ return {
13072
+ get: value
13073
+ };
13063
13074
  } else {
13064
- return [value.get, value.set];
13075
+ return value;
13065
13076
  }
13066
13077
  }
13067
13078
 
13068
- return [];
13079
+ return {};
13080
+ }
13081
+
13082
+ var descriptor = getPropertyDescriptorCache(target, key);
13083
+
13084
+ if (descriptor) {
13085
+ return descriptor;
13069
13086
  }
13070
13087
 
13071
- var descriptor = getDescriptor(target, key);
13072
- if (descriptor) return [descriptor.get, descriptor.set];
13073
- return getGetterAndSetter(getProto(target), key, value);
13088
+ return {};
13074
13089
  }
13075
13090
 
13076
13091
  var computed = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */ .Bh)(function (_a) {
@@ -13081,13 +13096,12 @@ var computed = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */
13081
13096
  var proxy = {};
13082
13097
  var context = target ? target : store;
13083
13098
  var property = target ? key : 'value';
13084
-
13085
- var _b = __read(getGetterAndSetter(context, property, value), 2),
13086
- getter = _b[0],
13087
- setter = _b[1];
13099
+ var descriptor = getPrototypeDescriptor(target, property, value);
13088
13100
 
13089
13101
  function compute() {
13090
- store.value = getter === null || getter === void 0 ? void 0 : getter.call(context);
13102
+ var _a;
13103
+
13104
+ store.value = (_a = descriptor.get) === null || _a === void 0 ? void 0 : _a.call(context);
13091
13105
  }
13092
13106
 
13093
13107
  function reaction() {
@@ -13144,9 +13158,11 @@ var computed = (0,_internals__WEBPACK_IMPORTED_MODULE_1__/* .createAnnotation */
13144
13158
  }
13145
13159
 
13146
13160
  function set(value) {
13161
+ var _a;
13162
+
13147
13163
  try {
13148
13164
  (0,_reaction__WEBPACK_IMPORTED_MODULE_4__/* .batchStart */ .o$)();
13149
- setter === null || setter === void 0 ? void 0 : setter.call(context, value);
13165
+ (_a = descriptor.set) === null || _a === void 0 ? void 0 : _a.call(context, value);
13150
13166
  } finally {
13151
13167
  (0,_reaction__WEBPACK_IMPORTED_MODULE_4__/* .batchEnd */ .ks)();
13152
13168
  }
@@ -14423,6 +14439,7 @@ var createObservable = function createObservable(target, key, value, shallow) {
14423
14439
 
14424
14440
  if (!!raw) {
14425
14441
  var node = (0,_tree__WEBPACK_IMPORTED_MODULE_3__/* .getDataNode */ .bl)(raw);
14442
+ if (!node.target) node.target = target;
14426
14443
  node.key = key;
14427
14444
  return value;
14428
14445
  }
@@ -14958,12 +14975,12 @@ var Tracker =
14958
14975
  /** @class */
14959
14976
  function () {
14960
14977
  function Tracker(scheduler, name) {
14961
- var _this = this;
14962
-
14963
14978
  if (name === void 0) {
14964
14979
  name = 'TrackerReaction';
14965
14980
  }
14966
14981
 
14982
+ var _this = this;
14983
+
14967
14984
  this.track = function (tracker) {
14968
14985
  if (!(0,_checkers__WEBPACK_IMPORTED_MODULE_1__/* .isFn */ .LQ)(tracker)) return _this.results;
14969
14986
  if (_this.track._boundary > 0) return;
@@ -15727,9 +15744,10 @@ var globalThisPolyfill = globalSelf();
15727
15744
  /* harmony export */ "BP": () => (/* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_2__.BP),
15728
15745
  /* harmony export */ "Bl": () => (/* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_2__.Bl),
15729
15746
  /* harmony export */ "Dm": () => (/* reexport safe */ _path__WEBPACK_IMPORTED_MODULE_8__.D),
15747
+ /* harmony export */ "G7": () => (/* reexport safe */ _isEmpty__WEBPACK_IMPORTED_MODULE_4__.G7),
15730
15748
  /* harmony export */ "H1": () => (/* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_2__.H1),
15731
15749
  /* harmony export */ "Ho": () => (/* reexport safe */ _case__WEBPACK_IMPORTED_MODULE_5__.Ho),
15732
- /* harmony export */ "JY": () => (/* reexport safe */ _isEmpty__WEBPACK_IMPORTED_MODULE_4__.J),
15750
+ /* harmony export */ "JY": () => (/* reexport safe */ _isEmpty__WEBPACK_IMPORTED_MODULE_4__.JY),
15733
15751
  /* harmony export */ "LQ": () => (/* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_2__.LQ),
15734
15752
  /* harmony export */ "S6": () => (/* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.S6),
15735
15753
  /* harmony export */ "TS": () => (/* reexport safe */ _merge__WEBPACK_IMPORTED_MODULE_12__.T),
@@ -15740,6 +15758,7 @@ var globalThisPolyfill = globalSelf();
15740
15758
  /* harmony export */ "d8": () => (/* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_2__.d8),
15741
15759
  /* harmony export */ "d9": () => (/* reexport safe */ _clone__WEBPACK_IMPORTED_MODULE_3__.d),
15742
15760
  /* harmony export */ "e9": () => (/* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_2__.e9),
15761
+ /* harmony export */ "e_": () => (/* reexport safe */ _merge__WEBPACK_IMPORTED_MODULE_12__.e),
15743
15762
  /* harmony export */ "hQ": () => (/* reexport safe */ _uid__WEBPACK_IMPORTED_MODULE_15__.h),
15744
15763
  /* harmony export */ "iw": () => (/* reexport safe */ _instanceof__WEBPACK_IMPORTED_MODULE_13__.i),
15745
15764
  /* harmony export */ "kk": () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_7__.k),
@@ -15749,7 +15768,7 @@ var globalThisPolyfill = globalSelf();
15749
15768
  /* harmony export */ "u4": () => (/* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.u4),
15750
15769
  /* harmony export */ "ug": () => (/* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_6__.u),
15751
15770
  /* harmony export */ "vl": () => (/* reexport safe */ _case__WEBPACK_IMPORTED_MODULE_5__.vl),
15752
- /* harmony export */ "xb": () => (/* reexport safe */ _isEmpty__WEBPACK_IMPORTED_MODULE_4__.x)
15771
+ /* harmony export */ "xb": () => (/* reexport safe */ _isEmpty__WEBPACK_IMPORTED_MODULE_4__.xb)
15753
15772
  /* harmony export */ });
15754
15773
  /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76162);
15755
15774
  /* harmony import */ var _compare__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59975);
@@ -15810,13 +15829,17 @@ var instOf = function instOf(value, cls) {
15810
15829
 
15811
15830
  "use strict";
15812
15831
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
15813
- /* harmony export */ "J": () => (/* binding */ isValid),
15814
- /* harmony export */ "x": () => (/* binding */ isEmpty)
15832
+ /* harmony export */ "G7": () => (/* binding */ isUndef),
15833
+ /* harmony export */ "JY": () => (/* binding */ isValid),
15834
+ /* harmony export */ "xb": () => (/* binding */ isEmpty)
15815
15835
  /* harmony export */ });
15816
15836
  /* harmony import */ var _instanceof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97430);
15817
15837
 
15818
15838
  var has = Object.prototype.hasOwnProperty;
15819
15839
  var toString = Object.prototype.toString;
15840
+ var isUndef = function isUndef(val) {
15841
+ return val === undefined;
15842
+ };
15820
15843
  var isValid = function isValid(val) {
15821
15844
  return val !== undefined && val !== null;
15822
15845
  };
@@ -15912,7 +15935,8 @@ function isEmpty(val, strict) {
15912
15935
 
15913
15936
  "use strict";
15914
15937
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
15915
- /* harmony export */ "T": () => (/* binding */ merge)
15938
+ /* harmony export */ "T": () => (/* binding */ merge),
15939
+ /* harmony export */ "e": () => (/* binding */ lazyMerge)
15916
15940
  /* harmony export */ });
15917
15941
  /* harmony import */ var _isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81433);
15918
15942
  /* harmony import */ var _checkers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6808);
@@ -15987,7 +16011,7 @@ function getEnumerableOwnPropertySymbols(target) {
15987
16011
  }
15988
16012
 
15989
16013
  function getKeys(target) {
15990
- if (!(0,_isEmpty__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .J)(target)) return [];
16014
+ if (!(0,_isEmpty__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .JY)(target)) return [];
15991
16015
  return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
15992
16016
  }
15993
16017
 
@@ -16023,7 +16047,7 @@ function mergeObject(target, source, options) {
16023
16047
  return;
16024
16048
  }
16025
16049
 
16026
- if ((0,_isEmpty__WEBPACK_IMPORTED_MODULE_0__/* .isEmpty */ .x)(target[key])) {
16050
+ if ((0,_isEmpty__WEBPACK_IMPORTED_MODULE_0__/* .isEmpty */ .xb)(target[key])) {
16027
16051
  destination[key] = source[key];
16028
16052
  } else if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
16029
16053
  destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
@@ -16054,6 +16078,40 @@ function deepmerge(target, source, options) {
16054
16078
  }
16055
16079
  }
16056
16080
 
16081
+ var lazyMerge = function lazyMerge(target, source) {
16082
+ if (!(0,_isEmpty__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .JY)(source)) return target;
16083
+ if (!(0,_isEmpty__WEBPACK_IMPORTED_MODULE_0__/* .isValid */ .JY)(target)) return source;
16084
+ if (_typeof(target) !== 'object') return source;
16085
+ if (_typeof(source) !== 'object') return target;
16086
+ return new Proxy({}, {
16087
+ get: function get(_, key) {
16088
+ if (key in source) return source[key];
16089
+ return target[key];
16090
+ },
16091
+ ownKeys: function ownKeys() {
16092
+ var keys = Object.keys(target);
16093
+
16094
+ for (var key in source) {
16095
+ if (!(key in target)) {
16096
+ keys.push(key);
16097
+ }
16098
+ }
16099
+
16100
+ return keys;
16101
+ },
16102
+ getOwnPropertyDescriptor: function getOwnPropertyDescriptor() {
16103
+ return {
16104
+ enumerable: true,
16105
+ configurable: true,
16106
+ writable: false
16107
+ };
16108
+ },
16109
+ has: function has(_, key) {
16110
+ if (key in source || key in target) return true;
16111
+ return false;
16112
+ }
16113
+ });
16114
+ };
16057
16115
  var merge = deepmerge;
16058
16116
 
16059
16117
  /***/ }),
@@ -18780,10 +18838,11 @@ var useClickAway = function useClickAway(onClickAway, target, eventName) {
18780
18838
  /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__);
18781
18839
 
18782
18840
  var usePrefixCls = function usePrefixCls(tag, props) {
18783
- var _a, _b, _c;
18841
+ var _a, _b, _c, _d;
18784
18842
 
18785
18843
  var getContext = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.ConfigProvider.getContext;
18786
- var prefix = (_c = (_a = props === null || props === void 0 ? void 0 : props.prefix) !== null && _a !== void 0 ? _a : (_b = getContext()) === null || _b === void 0 ? void 0 : _b.prefix) !== null && _c !== void 0 ? _c : 'next-';
18844
+ var prefix = (_d = (_b = (_a = props === null || props === void 0 ? void 0 : props.prefix) !== null && _a !== void 0 ? _a : // @ts-ignore
18845
+ window.TEAMIX_FORMILY_PREFIX) !== null && _b !== void 0 ? _b : (_c = getContext()) === null || _c === void 0 ? void 0 : _c.prefix) !== null && _d !== void 0 ? _d : 'next-';
18787
18846
  return "".concat(prefix).concat(tag !== null && tag !== void 0 ? tag : '');
18788
18847
  };
18789
18848
 
@@ -19537,19 +19596,22 @@ var useRecord = function useRecord(record) {
19537
19596
  return ctx ? ctx.record : record;
19538
19597
  };
19539
19598
 
19540
- var getDefaultValue = function getDefaultValue(defaultValue, schema) {
19541
- var _a, _b, _c, _d, _e, _f, _g;
19599
+ var getSchemaDefaultValue = function getSchemaDefaultValue(schema) {
19600
+ if ((schema === null || schema === void 0 ? void 0 : schema.type) === 'array') return [];
19601
+ if ((schema === null || schema === void 0 ? void 0 : schema.type) === 'object') return {};
19602
+
19603
+ if ((schema === null || schema === void 0 ? void 0 : schema.type) === 'void') {
19604
+ for (var key in schema.properties) {
19605
+ var value = getSchemaDefaultValue(schema.properties[key]);
19606
+ if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_2__/* .isValid */ .JY)(value)) return value;
19607
+ }
19608
+ }
19609
+ };
19542
19610
 
19611
+ var getDefaultValue = function getDefaultValue(defaultValue, schema) {
19543
19612
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_2__/* .isValid */ .JY)(defaultValue)) return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_2__/* .clone */ .d9)(defaultValue);
19544
- if (Array.isArray(schema === null || schema === void 0 ? void 0 : schema.items)) return getDefaultValue(defaultValue, schema.items[0]);
19545
- if (((_a = schema === null || schema === void 0 ? void 0 : schema.items) === null || _a === void 0 ? void 0 : _a.type) === 'array') return [];
19546
- if (((_b = schema === null || schema === void 0 ? void 0 : schema.items) === null || _b === void 0 ? void 0 : _b.type) === 'boolean') return true;
19547
- if (((_c = schema === null || schema === void 0 ? void 0 : schema.items) === null || _c === void 0 ? void 0 : _c.type) === 'date') return '';
19548
- if (((_d = schema === null || schema === void 0 ? void 0 : schema.items) === null || _d === void 0 ? void 0 : _d.type) === 'datetime') return '';
19549
- if (((_e = schema === null || schema === void 0 ? void 0 : schema.items) === null || _e === void 0 ? void 0 : _e.type) === 'number') return 0;
19550
- if (((_f = schema === null || schema === void 0 ? void 0 : schema.items) === null || _f === void 0 ? void 0 : _f.type) === 'object') return {};
19551
- if (((_g = schema === null || schema === void 0 ? void 0 : schema.items) === null || _g === void 0 ? void 0 : _g.type) === 'string') return '';
19552
- return null;
19613
+ if (Array.isArray(schema === null || schema === void 0 ? void 0 : schema.items)) return getSchemaDefaultValue(schema.items[0]);
19614
+ return getSchemaDefaultValue(schema.items);
19553
19615
  };
19554
19616
 
19555
19617
  var ArrayBase = function ArrayBase(props) {
@@ -19604,7 +19666,7 @@ ArrayBase.Index = function (props) {
19604
19666
  };
19605
19667
 
19606
19668
  ArrayBase.Addition = function (props) {
19607
- var _a, _b, _c;
19669
+ var _a, _b;
19608
19670
 
19609
19671
  var self = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.useField)();
19610
19672
  var array = useArray();
@@ -19612,7 +19674,7 @@ ArrayBase.Addition = function (props) {
19612
19674
  if (!array) return null;
19613
19675
  if (((_a = array.field) === null || _a === void 0 ? void 0 : _a.pattern) !== 'editable' && ((_b = array.field) === null || _b === void 0 ? void 0 : _b.pattern) !== 'disabled') return null;
19614
19676
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Button, __assign({}, props, {
19615
- disabled: (0,_formily_shared__WEBPACK_IMPORTED_MODULE_2__/* .isBool */ .Bl)(self === null || self === void 0 ? void 0 : self.disabled) ? self === null || self === void 0 ? void 0 : self.disabled : (_c = array.field) === null || _c === void 0 ? void 0 : _c.disabled,
19677
+ disabled: self === null || self === void 0 ? void 0 : self.disabled,
19616
19678
  className: classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-addition"), props.className),
19617
19679
  style: __assign({
19618
19680
  display: 'block',
@@ -19644,20 +19706,21 @@ ArrayBase.Remove = react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(funct
19644
19706
  var _a;
19645
19707
 
19646
19708
  var index = useIndex(props.index);
19709
+ var self = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.useField)();
19647
19710
  var array = useArray();
19648
19711
  var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .usePrefixCls */ .F)('formily-array-base');
19649
19712
  if (!array) return null;
19650
19713
  if (((_a = array.field) === null || _a === void 0 ? void 0 : _a.pattern) !== 'editable') return null;
19651
19714
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_builtins___WEBPACK_IMPORTED_MODULE_7__/* .DeleteOutlinedIcon */ .TG, __assign({}, props, {
19652
- className: classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-remove"), props.className),
19715
+ className: classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-remove"), (self === null || self === void 0 ? void 0 : self.disabled) ? "".concat(prefixCls, "-remove-disabled") : '', props.className),
19653
19716
  ref: ref,
19654
19717
  onClick: function onClick(e) {
19655
- var _a, _b, _c, _d, _e;
19718
+ var _a, _b, _c, _d;
19656
19719
 
19657
- if ((_a = array.props) === null || _a === void 0 ? void 0 : _a.disabled) return;
19720
+ if (self === null || self === void 0 ? void 0 : self.disabled) return;
19658
19721
  e.stopPropagation();
19659
- (_c = (_b = array.field) === null || _b === void 0 ? void 0 : _b.remove) === null || _c === void 0 ? void 0 : _c.call(_b, index);
19660
- (_e = (_d = array.props) === null || _d === void 0 ? void 0 : _d.onRemove) === null || _e === void 0 ? void 0 : _e.call(_d, index);
19722
+ (_b = (_a = array.field) === null || _a === void 0 ? void 0 : _a.remove) === null || _b === void 0 ? void 0 : _b.call(_a, index);
19723
+ (_d = (_c = array.props) === null || _c === void 0 ? void 0 : _c.onRemove) === null || _d === void 0 ? void 0 : _d.call(_c, index);
19661
19724
 
19662
19725
  if (props.onClick) {
19663
19726
  props.onClick(e);
@@ -19669,20 +19732,21 @@ ArrayBase.MoveDown = react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(fun
19669
19732
  var _a;
19670
19733
 
19671
19734
  var index = useIndex(props.index);
19735
+ var self = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.useField)();
19672
19736
  var array = useArray();
19673
19737
  var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .usePrefixCls */ .F)('formily-array-base');
19674
19738
  if (!array) return null;
19675
19739
  if (((_a = array.field) === null || _a === void 0 ? void 0 : _a.pattern) !== 'editable') return null;
19676
19740
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_builtins___WEBPACK_IMPORTED_MODULE_7__/* .DownOutlinedIcon */ .zI, __assign({}, props, {
19677
- className: classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-move-down"), props.className),
19741
+ className: classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-move-down"), (self === null || self === void 0 ? void 0 : self.disabled) ? "".concat(prefixCls, "-move-down-disabled") : '', props.className),
19678
19742
  ref: ref,
19679
19743
  onClick: function onClick(e) {
19680
- var _a, _b, _c, _d, _e;
19744
+ var _a, _b, _c, _d;
19681
19745
 
19682
- if ((_a = array.props) === null || _a === void 0 ? void 0 : _a.disabled) return;
19746
+ if (self === null || self === void 0 ? void 0 : self.disabled) return;
19683
19747
  e.stopPropagation();
19684
- (_c = (_b = array.field) === null || _b === void 0 ? void 0 : _b.moveDown) === null || _c === void 0 ? void 0 : _c.call(_b, index);
19685
- (_e = (_d = array.props) === null || _d === void 0 ? void 0 : _d.onMoveDown) === null || _e === void 0 ? void 0 : _e.call(_d, index);
19748
+ (_b = (_a = array.field) === null || _a === void 0 ? void 0 : _a.moveDown) === null || _b === void 0 ? void 0 : _b.call(_a, index);
19749
+ (_d = (_c = array.props) === null || _c === void 0 ? void 0 : _c.onMoveDown) === null || _d === void 0 ? void 0 : _d.call(_c, index);
19686
19750
 
19687
19751
  if (props.onClick) {
19688
19752
  props.onClick(e);
@@ -19694,20 +19758,21 @@ ArrayBase.MoveUp = react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(funct
19694
19758
  var _a;
19695
19759
 
19696
19760
  var index = useIndex(props.index);
19761
+ var self = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.useField)();
19697
19762
  var array = useArray();
19698
19763
  var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .usePrefixCls */ .F)('formily-array-base');
19699
19764
  if (!array) return null;
19700
19765
  if (((_a = array.field) === null || _a === void 0 ? void 0 : _a.pattern) !== 'editable') return null;
19701
19766
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_builtins___WEBPACK_IMPORTED_MODULE_7__/* .UpOutlinedIcon */ .XX, __assign({}, props, {
19702
- className: classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-move-up"), props.className),
19767
+ className: classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-move-up"), (self === null || self === void 0 ? void 0 : self.disabled) ? "".concat(prefixCls, "-move-up-disabled") : '', props.className),
19703
19768
  ref: ref,
19704
19769
  onClick: function onClick(e) {
19705
- var _a, _b, _c, _d;
19770
+ var _a, _b, _c;
19706
19771
 
19707
- if ((_a = array.props) === null || _a === void 0 ? void 0 : _a.disabled) return;
19772
+ if (self === null || self === void 0 ? void 0 : self.disabled) return;
19708
19773
  e.stopPropagation();
19709
- (_b = array === null || array === void 0 ? void 0 : array.field) === null || _b === void 0 ? void 0 : _b.moveUp(index);
19710
- (_d = (_c = array === null || array === void 0 ? void 0 : array.props) === null || _c === void 0 ? void 0 : _c.onMoveUp) === null || _d === void 0 ? void 0 : _d.call(_c, index);
19774
+ (_a = array === null || array === void 0 ? void 0 : array.field) === null || _a === void 0 ? void 0 : _a.moveUp(index);
19775
+ (_c = (_b = array === null || array === void 0 ? void 0 : array.props) === null || _b === void 0 ? void 0 : _b.onMoveUp) === null || _c === void 0 ? void 0 : _c.call(_b, index);
19711
19776
 
19712
19777
  if (props.onClick) {
19713
19778
  props.onClick(e);
@@ -20571,16 +20636,20 @@ var StatusSelect = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.observer)(func
20571
20636
  }, 100);
20572
20637
  }
20573
20638
  });
20639
+ var PaginationContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({});
20574
20640
 
20575
- var ArrayTablePagination = function ArrayTablePagination(_a) {
20576
- var _b;
20641
+ var usePagination = function usePagination() {
20642
+ return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(PaginationContext);
20643
+ };
20577
20644
 
20578
- var dataSource = _a.dataSource,
20579
- props = __rest(_a, ["dataSource"]);
20645
+ var ArrayTablePagination = function ArrayTablePagination(_a) {
20646
+ var children = _a.children,
20647
+ dataSource = _a.dataSource,
20648
+ props = __rest(_a, ["children", "dataSource"]);
20580
20649
 
20581
- var _c = __read((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(1), 2),
20582
- current = _c[0],
20583
- setCurrent = _c[1];
20650
+ var _b = __read((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(1), 2),
20651
+ current = _b[0],
20652
+ setCurrent = _b[1];
20584
20653
 
20585
20654
  var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .usePrefixCls */ .F)('formily-array-table');
20586
20655
  var pageSize = props.pageSize || 10;
@@ -20628,7 +20697,13 @@ var ArrayTablePagination = function ArrayTablePagination(_a) {
20628
20697
  })));
20629
20698
  };
20630
20699
 
20631
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (_b = props.children) === null || _b === void 0 ? void 0 : _b.call(props, dataSource === null || dataSource === void 0 ? void 0 : dataSource.slice(startIndex, endIndex + 1), renderPagination()));
20700
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PaginationContext.Provider, {
20701
+ value: {
20702
+ totalPage: totalPage,
20703
+ pageSize: pageSize,
20704
+ changePage: handleChange
20705
+ }
20706
+ }, children === null || children === void 0 ? void 0 : children(dataSource === null || dataSource === void 0 ? void 0 : dataSource.slice(startIndex, endIndex + 1), renderPagination())));
20632
20707
  };
20633
20708
 
20634
20709
  var omit = function omit(props, keys) {
@@ -20684,6 +20759,34 @@ ArrayTable.Column = function () {
20684
20759
  };
20685
20760
 
20686
20761
  _array_base__WEBPACK_IMPORTED_MODULE_5__/* .ArrayBase.mixin */ .w.mixin(ArrayTable);
20762
+
20763
+ var Addition = function Addition(props) {
20764
+ var array = _array_base__WEBPACK_IMPORTED_MODULE_5__/* .ArrayBase.useArray */ .w.useArray();
20765
+
20766
+ var _a = usePagination(),
20767
+ _b = _a.totalPage,
20768
+ totalPage = _b === void 0 ? 0 : _b,
20769
+ _c = _a.pageSize,
20770
+ pageSize = _c === void 0 ? 10 : _c,
20771
+ changePage = _a.changePage;
20772
+
20773
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_array_base__WEBPACK_IMPORTED_MODULE_5__/* .ArrayBase.Addition */ .w.Addition, __assign({}, props, {
20774
+ onClick: function onClick(e) {
20775
+ var _a, _b; // 如果添加数据后将超过当前页,则自动切换到下一页
20776
+
20777
+
20778
+ var total = ((_a = array === null || array === void 0 ? void 0 : array.field) === null || _a === void 0 ? void 0 : _a.value.length) || 0;
20779
+
20780
+ if (total === totalPage * pageSize + 1 && (0,_formily_shared__WEBPACK_IMPORTED_MODULE_4__/* .isFn */ .LQ)(changePage)) {
20781
+ changePage(totalPage + 1);
20782
+ }
20783
+
20784
+ (_b = props.onClick) === null || _b === void 0 ? void 0 : _b.call(props, e);
20785
+ }
20786
+ }));
20787
+ };
20788
+
20789
+ ArrayTable.Addition = Addition;
20687
20790
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (ArrayTable)));
20688
20791
 
20689
20792
  /***/ }),
@@ -20788,18 +20891,25 @@ var mapDateFormat = function mapDateFormat(type) {
20788
20891
  return 'YYYY-wo';
20789
20892
  }
20790
20893
 
20791
- return props['showTime'] ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD';
20894
+ return 'YYYY-MM-DD';
20792
20895
  };
20793
20896
 
20794
20897
  return function (props) {
20795
- var format = props['format'] || getDefaultFormat(props);
20898
+ var dateFormat = props['format'] || getDefaultFormat(props);
20899
+ var valueFormat = dateFormat;
20900
+
20901
+ if (props.showTime) {
20902
+ var timeFormat = props.showTime.format || 'HH:mm:ss';
20903
+ valueFormat = "".concat(valueFormat, " ").concat(timeFormat);
20904
+ }
20905
+
20796
20906
  var _onChange = props.onChange;
20797
20907
  return __assign(__assign({}, props), {
20798
- format: format,
20799
- value: (0,_builtins___WEBPACK_IMPORTED_MODULE_2__/* .momentable */ .y)(props.value, format === 'YYYY-wo' ? 'YYYY-w' : format),
20908
+ format: dateFormat,
20909
+ value: (0,_builtins___WEBPACK_IMPORTED_MODULE_2__/* .momentable */ .y)(props.value, valueFormat === 'YYYY-wo' ? 'YYYY-w' : valueFormat),
20800
20910
  onChange: function onChange(value) {
20801
20911
  if (_onChange) {
20802
- _onChange((0,_builtins___WEBPACK_IMPORTED_MODULE_2__/* .formatMomentValue */ .$)(value, format));
20912
+ _onChange((0,_builtins___WEBPACK_IMPORTED_MODULE_2__/* .formatMomentValue */ .$)(value, valueFormat));
20803
20913
  }
20804
20914
  }
20805
20915
  });
@@ -21310,7 +21420,7 @@ Editable.Popover = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.observer)(func
21310
21420
  /* harmony export */ });
21311
21421
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
21312
21422
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
21313
- /* harmony import */ var react_sticky_box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23060);
21423
+ /* harmony import */ var react_sticky_box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17129);
21314
21424
  /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7288);
21315
21425
  /* harmony import */ var _form_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97848);
21316
21426
  /* harmony import */ var _builtins___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35166);
@@ -21618,7 +21728,7 @@ var FormCollapse = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.observer)(func
21618
21728
  var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .usePrefixCls */ .F)('formily-collapse', props);
21619
21729
 
21620
21730
  var _formCollapse = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
21621
- return formCollapse ? formCollapse : createFormCollapse();
21731
+ return formCollapse ? formCollapse : createFormCollapse(props.defaultExpandedKeys);
21622
21732
  }, []);
21623
21733
 
21624
21734
  var takeExpandedKeys = function takeExpandedKeys() {
@@ -23614,11 +23724,15 @@ var createFormStep = function createFormStep(defaultCurrent) {
23614
23724
  defaultCurrent = 0;
23615
23725
  }
23616
23726
 
23617
- var env = {
23727
+ var env = (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.define)({
23618
23728
  form: null,
23619
23729
  field: null,
23620
23730
  steps: []
23621
- };
23731
+ }, {
23732
+ form: _formily_reactive__WEBPACK_IMPORTED_MODULE_1__.observable.ref,
23733
+ field: _formily_reactive__WEBPACK_IMPORTED_MODULE_1__.observable.ref,
23734
+ steps: _formily_reactive__WEBPACK_IMPORTED_MODULE_1__.observable.shallow
23735
+ });
23622
23736
  var setDisplay = _formily_reactive__WEBPACK_IMPORTED_MODULE_1__.action.bound(function (target) {
23623
23737
  var currentStep = env.steps[target];
23624
23738
  env.steps.forEach(function (_a) {
@@ -23635,14 +23749,12 @@ var createFormStep = function createFormStep(defaultCurrent) {
23635
23749
 
23636
23750
  var _next = function next() {
23637
23751
  if (formStep.allowNext) {
23638
- setDisplay(formStep.current + 1);
23639
23752
  formStep.setCurrent(formStep.current + 1);
23640
23753
  }
23641
23754
  };
23642
23755
 
23643
23756
  var _back = function back() {
23644
23757
  if (formStep.allowBack) {
23645
- setDisplay(formStep.current - 1);
23646
23758
  formStep.setCurrent(formStep.current - 1);
23647
23759
  }
23648
23760
  };
@@ -23655,6 +23767,7 @@ var createFormStep = function createFormStep(defaultCurrent) {
23655
23767
  },
23656
23768
  current: defaultCurrent,
23657
23769
  setCurrent: function setCurrent(key) {
23770
+ setDisplay(key);
23658
23771
  formStep.current = key;
23659
23772
  },
23660
23773
 
@@ -23682,7 +23795,9 @@ var createFormStep = function createFormStep(defaultCurrent) {
23682
23795
  case 1:
23683
23796
  _b.sent();
23684
23797
 
23685
- _next();
23798
+ if (env.form.valid) {
23799
+ _next();
23800
+ }
23686
23801
 
23687
23802
  return [3
23688
23803
  /*break*/
@@ -23863,11 +23978,26 @@ var createFormTab = function createFormTab(defaultActiveKey) {
23863
23978
  return (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.markRaw)(formTab);
23864
23979
  };
23865
23980
 
23981
+ var FeedbackBadge = (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.observer)(function (props) {
23982
+ var field = (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.useField)();
23983
+ var errors = field.form.queryFeedbacks({
23984
+ type: 'error',
23985
+ address: "".concat(field.address.concat(props.key), ".*")
23986
+ });
23987
+
23988
+ if (errors.length) {
23989
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Badge, {
23990
+ className: "errors-badge",
23991
+ count: errors.length
23992
+ }, props.tab);
23993
+ }
23994
+
23995
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, props.tab);
23996
+ });
23866
23997
  var FormTab = (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.observer)(function (_a) {
23867
23998
  var formTab = _a.formTab,
23868
23999
  props = __rest(_a, ["formTab"]);
23869
24000
 
23870
- var field = (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.useField)();
23871
24001
  var tabs = useTabs();
23872
24002
 
23873
24003
  var _formTab = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
@@ -23876,23 +24006,6 @@ var FormTab = (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.observer)(function
23876
24006
 
23877
24007
  var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .usePrefixCls */ .F)('formily-tab', props);
23878
24008
  var activeKey = props.activeKey || (_formTab === null || _formTab === void 0 ? void 0 : _formTab.activeKey);
23879
-
23880
- var badgedTab = function badgedTab(key, props) {
23881
- var errors = field.form.queryFeedbacks({
23882
- type: 'error',
23883
- address: "".concat(field.address.concat(key), ".*")
23884
- });
23885
-
23886
- if (errors.length) {
23887
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Badge, {
23888
- className: "errors-badge",
23889
- count: errors.length
23890
- }, props.tab);
23891
- }
23892
-
23893
- return props.tab;
23894
- };
23895
-
23896
24009
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Tab, __assign({}, props, (0,_formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .isValid */ .JY)(activeKey) && {
23897
24010
  activeKey: activeKey
23898
24011
  }, {
@@ -23911,7 +24024,10 @@ var FormTab = (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.observer)(function
23911
24024
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Tab.Item, __assign({
23912
24025
  key: key
23913
24026
  }, props, {
23914
- tab: badgedTab(name, props)
24027
+ tab: react__WEBPACK_IMPORTED_MODULE_0___default().createElement(FeedbackBadge, {
24028
+ key: name,
24029
+ tab: props.tab
24030
+ })
23915
24031
  }), react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_formily_react__WEBPACK_IMPORTED_MODULE_4__.RecursionField, {
23916
24032
  schema: schema,
23917
24033
  name: name
@@ -24044,7 +24160,7 @@ __webpack_require__.r(__webpack_exports__);
24044
24160
  /* harmony export */ "Checkbox": () => (/* reexport safe */ _checkbox__WEBPACK_IMPORTED_MODULE_20__.X),
24045
24161
  /* harmony export */ "DatePicker": () => (/* reexport safe */ _date_picker__WEBPACK_IMPORTED_MODULE_26__.M),
24046
24162
  /* harmony export */ "DatePicker2": () => (/* reexport safe */ _date_picker2__WEBPACK_IMPORTED_MODULE_27__.B),
24047
- /* harmony export */ "Editable": () => (/* reexport safe */ _editable__WEBPACK_IMPORTED_MODULE_34__.C),
24163
+ /* harmony export */ "Editable": () => (/* reexport safe */ _editable__WEBPACK_IMPORTED_MODULE_35__.C),
24048
24164
  /* harmony export */ "Form": () => (/* reexport safe */ _form__WEBPACK_IMPORTED_MODULE_10__.l),
24049
24165
  /* harmony export */ "FormButtonGroup": () => (/* reexport safe */ _form_button_group__WEBPACK_IMPORTED_MODULE_15__.d),
24050
24166
  /* harmony export */ "FormCollapse": () => (/* reexport safe */ _form_collapse__WEBPACK_IMPORTED_MODULE_14__.o),
@@ -24059,20 +24175,21 @@ __webpack_require__.r(__webpack_exports__);
24059
24175
  /* harmony export */ "FormTab": () => (/* reexport safe */ _form_tab__WEBPACK_IMPORTED_MODULE_13__.K),
24060
24176
  /* harmony export */ "GridColumn": () => (/* reexport safe */ _form_grid__WEBPACK_IMPORTED_MODULE_8__.C4),
24061
24177
  /* harmony export */ "Input": () => (/* reexport safe */ _input__WEBPACK_IMPORTED_MODULE_16__.I),
24062
- /* harmony export */ "NumberPicker": () => (/* reexport safe */ _number_picker__WEBPACK_IMPORTED_MODULE_29__.Y),
24178
+ /* harmony export */ "NumberPicker": () => (/* reexport safe */ _number_picker__WEBPACK_IMPORTED_MODULE_30__.Y),
24063
24179
  /* harmony export */ "Password": () => (/* reexport safe */ _password__WEBPACK_IMPORTED_MODULE_17__.r),
24064
24180
  /* harmony export */ "PreviewText": () => (/* reexport safe */ _preview_text__WEBPACK_IMPORTED_MODULE_18__.c),
24065
24181
  /* harmony export */ "Radio": () => (/* reexport safe */ _radio__WEBPACK_IMPORTED_MODULE_19__.Y),
24066
- /* harmony export */ "Reset": () => (/* reexport safe */ _reset__WEBPACK_IMPORTED_MODULE_33__.A),
24182
+ /* harmony export */ "Reset": () => (/* reexport safe */ _reset__WEBPACK_IMPORTED_MODULE_34__.A),
24067
24183
  /* harmony export */ "Select": () => (/* reexport safe */ _select__WEBPACK_IMPORTED_MODULE_21__.P),
24068
- /* harmony export */ "SelectTable": () => (/* reexport safe */ _select_table__WEBPACK_IMPORTED_MODULE_35__.c),
24184
+ /* harmony export */ "SelectTable": () => (/* reexport safe */ _select_table__WEBPACK_IMPORTED_MODULE_36__.c),
24069
24185
  /* harmony export */ "Space": () => (/* reexport safe */ _space__WEBPACK_IMPORTED_MODULE_23__.T),
24070
- /* harmony export */ "Submit": () => (/* reexport safe */ _submit__WEBPACK_IMPORTED_MODULE_32__.k),
24071
- /* harmony export */ "Switch": () => (/* reexport safe */ _switch__WEBPACK_IMPORTED_MODULE_30__.r),
24186
+ /* harmony export */ "Submit": () => (/* reexport safe */ _submit__WEBPACK_IMPORTED_MODULE_33__.k),
24187
+ /* harmony export */ "Switch": () => (/* reexport safe */ _switch__WEBPACK_IMPORTED_MODULE_31__.r),
24072
24188
  /* harmony export */ "TimePicker": () => (/* reexport safe */ _time_picker__WEBPACK_IMPORTED_MODULE_28__.j),
24189
+ /* harmony export */ "TimePicker2": () => (/* reexport safe */ _time_picker2__WEBPACK_IMPORTED_MODULE_29__.g),
24073
24190
  /* harmony export */ "Transfer": () => (/* reexport safe */ _transfer__WEBPACK_IMPORTED_MODULE_25__.F),
24074
24191
  /* harmony export */ "TreeSelect": () => (/* reexport safe */ _tree_select__WEBPACK_IMPORTED_MODULE_24__.m),
24075
- /* harmony export */ "Upload": () => (/* reexport safe */ _upload__WEBPACK_IMPORTED_MODULE_31__.g),
24192
+ /* harmony export */ "Upload": () => (/* reexport safe */ _upload__WEBPACK_IMPORTED_MODULE_32__.g),
24076
24193
  /* harmony export */ "createFormGrid": () => (/* reexport safe */ _form_grid__WEBPACK_IMPORTED_MODULE_8__.CY),
24077
24194
  /* harmony export */ "useFormDeepLayout": () => (/* reexport safe */ _form_layout__WEBPACK_IMPORTED_MODULE_11__.Cj),
24078
24195
  /* harmony export */ "useFormGrid": () => (/* reexport safe */ _form_grid__WEBPACK_IMPORTED_MODULE_8__.he),
@@ -24110,13 +24227,15 @@ __webpack_require__.r(__webpack_exports__);
24110
24227
  /* harmony import */ var _date_picker__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(45930);
24111
24228
  /* harmony import */ var _date_picker2__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(3796);
24112
24229
  /* harmony import */ var _time_picker__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(30790);
24113
- /* harmony import */ var _number_picker__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(57295);
24114
- /* harmony import */ var _switch__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(43111);
24115
- /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(28587);
24116
- /* harmony import */ var _submit__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(52710);
24117
- /* harmony import */ var _reset__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(96355);
24118
- /* harmony import */ var _editable__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(91810);
24119
- /* harmony import */ var _select_table__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(97173);
24230
+ /* harmony import */ var _time_picker2__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(52216);
24231
+ /* harmony import */ var _number_picker__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(57295);
24232
+ /* harmony import */ var _switch__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(43111);
24233
+ /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(28587);
24234
+ /* harmony import */ var _submit__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(52710);
24235
+ /* harmony import */ var _reset__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(96355);
24236
+ /* harmony import */ var _editable__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(91810);
24237
+ /* harmony import */ var _select_table__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(97173);
24238
+
24120
24239
 
24121
24240
 
24122
24241
 
@@ -24770,7 +24889,7 @@ var Cascader = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.observer)(function
24770
24889
  var dataSource = ((_a = field === null || field === void 0 ? void 0 : field.dataSource) === null || _a === void 0 ? void 0 : _a.length) ? field.dataSource : ((_b = props === null || props === void 0 ? void 0 : props.dataSource) === null || _b === void 0 ? void 0 : _b.length) ? props.dataSource : [];
24771
24890
 
24772
24891
  var getSelected = function getSelected() {
24773
- return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isArr */ .H1)(props.value) ? props.value : [];
24892
+ return props.multiple ? (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .toArr */ ._K)(props.value) : [props.value];
24774
24893
  };
24775
24894
 
24776
24895
  var getLabels = function getLabels() {
@@ -24780,7 +24899,9 @@ var Cascader = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.observer)(function
24780
24899
  var labels = (_b = (_a = getValueByValue(dataSource, selected)) === null || _a === void 0 ? void 0 : _a.filter(function (item) {
24781
24900
  return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isValid */ .JY)(item);
24782
24901
  })) === null || _b === void 0 ? void 0 : _b.map(function (item) {
24783
- return item === null || item === void 0 ? void 0 : item.whole.join('/');
24902
+ var _a;
24903
+
24904
+ return (_a = item === null || item === void 0 ? void 0 : item.whole) === null || _a === void 0 ? void 0 : _a.join('/');
24784
24905
  }).join(', ');
24785
24906
  return labels || placeholder;
24786
24907
  };
@@ -24832,6 +24953,34 @@ var TimePicker = function TimePicker(props) {
24832
24953
  }, getLabels());
24833
24954
  };
24834
24955
 
24956
+ var TimePicker2 = function TimePicker2(props) {
24957
+ var placeholder = usePlaceholder();
24958
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
24959
+
24960
+ var getLabels = function getLabels() {
24961
+ var labels = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .formatMomentValue */ .$)(props.value, props.format, placeholder);
24962
+ return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isArr */ .H1)(labels) ? labels.join('~') : labels;
24963
+ };
24964
+
24965
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
24966
+ className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, props.className)
24967
+ }, getLabels());
24968
+ };
24969
+
24970
+ var TimeRangePicker2 = function TimeRangePicker2(props) {
24971
+ var placeholder = usePlaceholder();
24972
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
24973
+
24974
+ var getLabels = function getLabels() {
24975
+ var labels = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .formatMomentValue */ .$)(props.value, props.format, placeholder);
24976
+ return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isArr */ .H1)(labels) ? labels.join('~') : labels;
24977
+ };
24978
+
24979
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
24980
+ className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, props.className)
24981
+ }, getLabels());
24982
+ };
24983
+
24835
24984
  var Text = function Text(props) {
24836
24985
  var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
24837
24986
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
@@ -24847,6 +24996,8 @@ Text.Cascader = Cascader;
24847
24996
  Text.DatePicker = DatePicker;
24848
24997
  Text.DateRangePicker = DateRangePicker;
24849
24998
  Text.TimePicker = TimePicker;
24999
+ Text.TimePicker2 = TimePicker2;
25000
+ Text.TimeRangePicker2 = TimeRangePicker2;
24850
25001
  Text.Placeholder = Placeholder;
24851
25002
  Text.usePlaceholder = usePlaceholder;
24852
25003
  var PreviewText = Text;
@@ -25134,7 +25285,25 @@ var SelectTable = (0,_formily_react__WEBPACK_IMPORTED_MODULE_1__.observer)(funct
25134
25285
  });
25135
25286
  }, [filteredDataSource, filterSort]);
25136
25287
  var flatDataSource = (0,_useFlatOptions__WEBPACK_IMPORTED_MODULE_8__/* .useFlatOptions */ .Q)(dataSource);
25137
- var flatFilteredDataSource = (0,_useFlatOptions__WEBPACK_IMPORTED_MODULE_8__/* .useFlatOptions */ .Q)(filteredDataSource); // selected keys for Table UI
25288
+ var flatFilteredDataSource = (0,_useFlatOptions__WEBPACK_IMPORTED_MODULE_8__/* .useFlatOptions */ .Q)(filteredDataSource); // 分页或异步查询时,dataSource会丢失已选数据,配置optionAsValue则无法获取已选数据,需要进行合并
25289
+
25290
+ var getWholeDataSource = function getWholeDataSource() {
25291
+ if (optionAsValue && mode === 'multiple' && (value === null || value === void 0 ? void 0 : value.length)) {
25292
+ var map_1 = new Map();
25293
+
25294
+ var arr = __spreadArray(__spreadArray([], __read(flatDataSource), false), __read(value), false);
25295
+
25296
+ arr.forEach(function (item) {
25297
+ if (!map_1.has(item[primaryKey])) {
25298
+ map_1.set(item[primaryKey], item);
25299
+ }
25300
+ });
25301
+ return __spreadArray([], __read(map_1.values()), false);
25302
+ }
25303
+
25304
+ return flatDataSource;
25305
+ }; // selected keys for Table UI
25306
+
25138
25307
 
25139
25308
  var selected = (0,_utils__WEBPACK_IMPORTED_MODULE_9__/* .getUISelected */ .S_)(value, flatDataSource, primaryKey, valueType, optionAsValue, mode, rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.checkStrictly, rowKey); // readPretty Value
25140
25309
 
@@ -25154,7 +25323,7 @@ var SelectTable = (0,_formily_react__WEBPACK_IMPORTED_MODULE_1__.observer)(funct
25154
25323
  } // 筛选后onChange默认的records数据不完整,此处需使用完整数据过滤
25155
25324
 
25156
25325
 
25157
- var wholeRecords = flatDataSource.filter(function (item) {
25326
+ var wholeRecords = getWholeDataSource().filter(function (item) {
25158
25327
  return selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[primaryKey]);
25159
25328
  });
25160
25329
 
@@ -26292,8 +26461,10 @@ Space.defaultProps = {
26292
26461
  /* harmony import */ var _preview_text_main_scss__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_preview_text_main_scss__WEBPACK_IMPORTED_MODULE_12__);
26293
26462
  /* harmony import */ var _select_table_main_scss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(98078);
26294
26463
  /* harmony import */ var _select_table_main_scss__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_select_table_main_scss__WEBPACK_IMPORTED_MODULE_13__);
26295
- /* harmony import */ var _upload_main_scss__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(39205);
26296
- /* harmony import */ var _upload_main_scss__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_upload_main_scss__WEBPACK_IMPORTED_MODULE_14__);
26464
+ /* harmony import */ var _space_main_scss__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(28226);
26465
+ /* harmony import */ var _space_main_scss__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_space_main_scss__WEBPACK_IMPORTED_MODULE_14__);
26466
+ /* harmony import */ var _upload_main_scss__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(39205);
26467
+ /* harmony import */ var _upload_main_scss__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_upload_main_scss__WEBPACK_IMPORTED_MODULE_15__);
26297
26468
  // auto generated code
26298
26469
 
26299
26470
 
@@ -26311,6 +26482,7 @@ Space.defaultProps = {
26311
26482
 
26312
26483
 
26313
26484
 
26485
+
26314
26486
  /***/ }),
26315
26487
 
26316
26488
  /***/ 52710:
@@ -26464,6 +26636,63 @@ var TimePicker = (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.connect)(_aliclo
26464
26636
 
26465
26637
  /***/ }),
26466
26638
 
26639
+ /***/ 52216:
26640
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
26641
+
26642
+ "use strict";
26643
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26644
+ /* harmony export */ "g": () => (/* binding */ TimePicker2)
26645
+ /* harmony export */ });
26646
+ /* harmony import */ var _formily_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61006);
26647
+ /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33049);
26648
+ /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__);
26649
+ /* harmony import */ var _preview_text__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84929);
26650
+ /* harmony import */ var _builtins___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46284);
26651
+ /* harmony import */ var _builtins___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(258);
26652
+ /* harmony import */ var _builtins___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89350);
26653
+ var __assign = undefined && undefined.__assign || function () {
26654
+ __assign = Object.assign || function (t) {
26655
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
26656
+ s = arguments[i];
26657
+
26658
+ for (var p in s) {
26659
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
26660
+ }
26661
+ }
26662
+
26663
+ return t;
26664
+ };
26665
+
26666
+ return __assign.apply(this, arguments);
26667
+ };
26668
+
26669
+
26670
+
26671
+
26672
+
26673
+
26674
+ var mapTimeFormat = function mapTimeFormat() {
26675
+ return function (props) {
26676
+ var format = props['format'] || 'HH:mm:ss';
26677
+ var _onChange = props.onChange;
26678
+ return __assign(__assign({}, props), {
26679
+ format: format,
26680
+ value: (0,_builtins___WEBPACK_IMPORTED_MODULE_2__/* .momentable */ .y)(props.value, format),
26681
+ onChange: function onChange(value) {
26682
+ if (_onChange) {
26683
+ _onChange((0,_builtins___WEBPACK_IMPORTED_MODULE_2__/* .formatMomentValue */ .$)(value, format));
26684
+ }
26685
+ }
26686
+ });
26687
+ };
26688
+ };
26689
+
26690
+ var TimePicker2 = (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.connect)(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.TimePicker2, (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.mapProps)(mapTimeFormat(), _builtins___WEBPACK_IMPORTED_MODULE_3__/* .mapSize */ .z, _builtins___WEBPACK_IMPORTED_MODULE_4__/* .mapStatus */ .O), (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.mapReadPretty)(_preview_text__WEBPACK_IMPORTED_MODULE_5__/* .PreviewText.TimePicker2 */ .c.TimePicker2));
26691
+ TimePicker2.RangePicker = (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.connect)(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.TimePicker2.RangePicker, (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.mapProps)(mapTimeFormat(), _builtins___WEBPACK_IMPORTED_MODULE_3__/* .mapSize */ .z, _builtins___WEBPACK_IMPORTED_MODULE_4__/* .mapStatus */ .O), (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.mapReadPretty)(_preview_text__WEBPACK_IMPORTED_MODULE_5__/* .PreviewText.TimeRangePicker2 */ .c.TimeRangePicker2));
26692
+ /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (TimePicker2)));
26693
+
26694
+ /***/ }),
26695
+
26467
26696
  /***/ 33218:
26468
26697
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
26469
26698
 
@@ -58645,374 +58874,6 @@ module.exports = withSideEffect;
58645
58874
 
58646
58875
  /***/ }),
58647
58876
 
58648
- /***/ 23060:
58649
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
58650
-
58651
- "use strict";
58652
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
58653
- /* harmony export */ "Z": () => (/* binding */ StickyBox)
58654
- /* harmony export */ });
58655
- /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38173);
58656
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
58657
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
58658
- /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94738);
58659
-
58660
-
58661
-
58662
-
58663
-
58664
- var getScrollParent = function getScrollParent(node) {
58665
- var parent = node;
58666
-
58667
- while (parent = parent.parentElement) {
58668
- var overflowYVal = getComputedStyle(parent, null).getPropertyValue("overflow-y");
58669
- if (parent === document.body) return window;
58670
- if (overflowYVal === "auto" || overflowYVal === "scroll") return parent;
58671
- }
58672
-
58673
- return window;
58674
- };
58675
-
58676
- var offsetTill = function offsetTill(node, target) {
58677
- var current = node;
58678
- var offset = 0; // If target is not an offsetParent itself, subtract its offsetTop and set correct target
58679
-
58680
- if (target.firstChild && target.firstChild.offsetParent !== target) {
58681
- offset += node.offsetTop - target.offsetTop;
58682
- target = node.offsetParent;
58683
- offset += -node.offsetTop;
58684
- }
58685
-
58686
- do {
58687
- offset += current.offsetTop;
58688
- current = current.offsetParent;
58689
- } while (current && current !== target);
58690
-
58691
- return offset;
58692
- };
58693
-
58694
- var stickyProp = null;
58695
-
58696
- if (typeof CSS !== "undefined" && CSS.supports) {
58697
- if (CSS.supports("position", "sticky")) stickyProp = "sticky";else if (CSS.supports("position", "-webkit-sticky")) stickyProp = "-webkit-sticky";
58698
- } // Inspired by https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection
58699
-
58700
-
58701
- var passiveArg = false;
58702
-
58703
- try {
58704
- var opts = Object.defineProperty({}, "passive", {
58705
- // eslint-disable-next-line getter-return
58706
- get: function get() {
58707
- passiveArg = {
58708
- passive: true
58709
- };
58710
- }
58711
- });
58712
- window.addEventListener("testPassive", null, opts);
58713
- window.removeEventListener("testPassive", null, opts);
58714
- } catch (e) {}
58715
-
58716
- var StickyBox = /*#__PURE__*/function (_React$Component) {
58717
- (0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(StickyBox, _React$Component);
58718
-
58719
- function StickyBox(props) {
58720
- var _this = _React$Component.call(this, props) || this;
58721
-
58722
- _this.addListener = function (element, event, handler, passive) {
58723
- element.addEventListener(event, handler, passive);
58724
-
58725
- _this.unsubscribes.push(function () {
58726
- return element.removeEventListener(event, handler);
58727
- });
58728
- };
58729
-
58730
- _this.addResizeObserver = function (node, handler) {
58731
- var ro = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z(handler);
58732
- ro.observe(node);
58733
-
58734
- _this.unsubscribes.push(function () {
58735
- return ro.disconnect();
58736
- });
58737
- };
58738
-
58739
- _this.registerContainerRef = function (n) {
58740
- if (!stickyProp) return;
58741
- _this.node = n;
58742
-
58743
- if (n) {
58744
- _this.scrollPane = getScrollParent(_this.node);
58745
- _this.latestScrollY = _this.scrollPane === window ? window.scrollY : _this.scrollPane.scrollTop;
58746
-
58747
- _this.addListener(_this.scrollPane, "scroll", _this.handleScroll, passiveArg);
58748
-
58749
- _this.addListener(_this.scrollPane, "mousewheel", _this.handleScroll, passiveArg);
58750
-
58751
- if (_this.scrollPane === window) {
58752
- _this.addListener(window, "resize", _this.handleWindowResize);
58753
-
58754
- _this.handleWindowResize();
58755
- } else {
58756
- _this.addResizeObserver(_this.scrollPane, _this.handleScrollPaneResize);
58757
-
58758
- _this.handleScrollPaneResize();
58759
- }
58760
-
58761
- _this.addResizeObserver(_this.node.parentNode, _this.handleParentNodeResize);
58762
-
58763
- _this.handleParentNodeResize();
58764
-
58765
- _this.addResizeObserver(_this.node, _this.handleNodeResize);
58766
-
58767
- _this.handleNodeResize({
58768
- initial: true
58769
- });
58770
-
58771
- _this.initial();
58772
- } else {
58773
- _this.unsubscribes.forEach(function (fn) {
58774
- return fn();
58775
- });
58776
-
58777
- _this.unsubscribes = [];
58778
- _this.scrollPane = null;
58779
- }
58780
- };
58781
-
58782
- _this.getCurrentOffset = function () {
58783
- if (_this.mode === "relative") return _this.offset;
58784
- var _this$props = _this.props,
58785
- offsetTop = _this$props.offsetTop,
58786
- offsetBottom = _this$props.offsetBottom;
58787
-
58788
- if (_this.mode === "stickyTop") {
58789
- return Math.max(0, _this.scrollPaneOffset + _this.latestScrollY - _this.naturalTop + offsetTop);
58790
- }
58791
-
58792
- if (_this.mode === "stickyBottom") {
58793
- return Math.max(0, _this.scrollPaneOffset + _this.latestScrollY + _this.viewPortHeight - (_this.naturalTop + _this.nodeHeight + offsetBottom));
58794
- }
58795
- };
58796
-
58797
- _this.handleWindowResize = function () {
58798
- _this.viewPortHeight = window.innerHeight;
58799
- _this.scrollPaneOffset = 0;
58800
-
58801
- _this.handleScroll();
58802
- };
58803
-
58804
- _this.handleScrollPaneResize = function () {
58805
- _this.viewPortHeight = _this.scrollPane.offsetHeight;
58806
-
58807
- if (false) {} // Only applicable if scrollPane is an offsetParent
58808
-
58809
-
58810
- if (_this.scrollPane.firstChild.offsetParent === _this.scrollPane) {
58811
- _this.scrollPaneOffset = _this.scrollPane.getBoundingClientRect().top;
58812
- } else {
58813
- _this.scrollPaneOffset = 0;
58814
- }
58815
-
58816
- _this.handleScroll();
58817
- };
58818
-
58819
- _this.handleParentNodeResize = function () {
58820
- var parentNode = _this.node.parentNode;
58821
- var computedParentStyle = getComputedStyle(parentNode, null);
58822
- var parentPaddingTop = parseInt(computedParentStyle.getPropertyValue("padding-top"), 10);
58823
- var parentPaddingBottom = parseInt(computedParentStyle.getPropertyValue("padding-bottom"), 10);
58824
- _this.naturalTop = offsetTill(parentNode, _this.scrollPane) + parentPaddingTop + _this.scrollPaneOffset;
58825
- var oldParentHeight = _this.parentHeight;
58826
- _this.parentHeight = parentNode.getBoundingClientRect().height - (parentPaddingTop + parentPaddingBottom);
58827
-
58828
- if (_this.mode === "relative") {
58829
- if (_this.props.bottom) {
58830
- _this.changeMode("relative");
58831
- } else {
58832
- // If parent height decreased...
58833
- if (oldParentHeight > _this.parentHeight) {
58834
- _this.changeToStickyBottomIfBoxTooLow(_this.latestScrollY);
58835
- }
58836
- }
58837
- }
58838
-
58839
- if (oldParentHeight !== _this.parentHeight && _this.mode === "relative") {
58840
- _this.latestScrollY = Number.POSITIVE_INFINITY;
58841
-
58842
- _this.handleScroll();
58843
- }
58844
- };
58845
-
58846
- _this.handleNodeResize = function (_temp) {
58847
- var _ref = _temp === void 0 ? {} : _temp,
58848
- initial = _ref.initial;
58849
-
58850
- var prevHeight = _this.nodeHeight;
58851
- _this.nodeHeight = _this.node.getBoundingClientRect().height;
58852
-
58853
- if (!initial && prevHeight !== _this.nodeHeight) {
58854
- var _this$props2 = _this.props,
58855
- offsetTop = _this$props2.offsetTop,
58856
- offsetBottom = _this$props2.offsetBottom,
58857
- bottom = _this$props2.bottom;
58858
-
58859
- if (_this.nodeHeight + offsetTop + offsetBottom <= _this.viewPortHeight) {
58860
- // Just make it sticky if node smaller than viewport
58861
- _this.mode = undefined;
58862
-
58863
- _this.initial();
58864
- } else {
58865
- var diff = prevHeight - _this.nodeHeight;
58866
- var lowestPossible = _this.parentHeight - _this.nodeHeight;
58867
- var nextOffset = Math.min(lowestPossible, _this.getCurrentOffset() + (bottom ? diff : 0));
58868
- _this.offset = Math.max(0, nextOffset);
58869
- if (!bottom || _this.mode !== "stickyBottom") _this.changeMode("relative");
58870
- }
58871
- }
58872
- };
58873
-
58874
- _this.handleScroll = function () {
58875
- var _this$props3 = _this.props,
58876
- offsetTop = _this$props3.offsetTop,
58877
- offsetBottom = _this$props3.offsetBottom;
58878
- var scrollY = _this.scrollPane === window ? window.scrollY : _this.scrollPane.scrollTop;
58879
- if (scrollY === _this.latestScrollY) return;
58880
-
58881
- if (_this.nodeHeight + offsetTop + offsetBottom <= _this.viewPortHeight) {
58882
- // Just make it sticky if node smaller than viewport
58883
- _this.initial();
58884
-
58885
- _this.latestScrollY = scrollY;
58886
- return;
58887
- }
58888
-
58889
- var scrollDelta = scrollY - _this.latestScrollY;
58890
- _this.offset = _this.getCurrentOffset();
58891
-
58892
- if (scrollDelta > 0) {
58893
- // scroll down
58894
- if (_this.mode === "stickyTop") {
58895
- if (scrollY + _this.scrollPaneOffset + offsetTop > _this.naturalTop) {
58896
- if (scrollY + _this.scrollPaneOffset + _this.viewPortHeight <= _this.naturalTop + _this.nodeHeight + _this.offset + offsetBottom) {
58897
- _this.changeMode("relative");
58898
- } else {
58899
- _this.changeMode("stickyBottom");
58900
- }
58901
- }
58902
- } else if (_this.mode === "relative") {
58903
- _this.changeToStickyBottomIfBoxTooLow(scrollY);
58904
- }
58905
- } else {
58906
- // scroll up
58907
- if (_this.mode === "stickyBottom") {
58908
- if (_this.scrollPaneOffset + scrollY + _this.viewPortHeight < _this.naturalTop + _this.parentHeight + offsetBottom) {
58909
- if (_this.scrollPaneOffset + scrollY + offsetTop >= _this.naturalTop + _this.offset) {
58910
- _this.changeMode("relative");
58911
- } else {
58912
- _this.changeMode("stickyTop");
58913
- }
58914
- }
58915
- } else if (_this.mode === "relative") {
58916
- if (_this.scrollPaneOffset + scrollY + offsetTop < _this.naturalTop + _this.offset) {
58917
- _this.changeMode("stickyTop");
58918
- }
58919
- }
58920
- }
58921
-
58922
- _this.latestScrollY = scrollY;
58923
- };
58924
-
58925
- if (props.offset && "production" !== "production") {}
58926
-
58927
- _this.unsubscribes = [];
58928
- return _this;
58929
- }
58930
-
58931
- var _proto = StickyBox.prototype;
58932
-
58933
- _proto.changeMode = function changeMode(newMode) {
58934
- var _this$props4 = this.props,
58935
- onChangeMode = _this$props4.onChangeMode,
58936
- offsetTop = _this$props4.offsetTop,
58937
- offsetBottom = _this$props4.offsetBottom,
58938
- bottom = _this$props4.bottom;
58939
- if (this.mode !== newMode) onChangeMode(this.mode, newMode);
58940
- this.mode = newMode;
58941
-
58942
- if (newMode === "relative") {
58943
- this.node.style.position = "relative";
58944
-
58945
- if (bottom) {
58946
- var nextBottom = Math.max(0, this.parentHeight - this.nodeHeight - this.offset);
58947
- this.node.style.bottom = nextBottom + "px";
58948
- } else {
58949
- this.node.style.top = this.offset + "px";
58950
- }
58951
- } else {
58952
- this.node.style.position = stickyProp;
58953
-
58954
- if (newMode === "stickyBottom") {
58955
- if (bottom) {
58956
- this.node.style.bottom = offsetBottom + "px";
58957
- } else {
58958
- this.node.style.top = this.viewPortHeight - this.nodeHeight - offsetBottom + "px";
58959
- }
58960
- } else {
58961
- // stickyTop
58962
- if (bottom) {
58963
- this.node.style.bottom = this.viewPortHeight - this.nodeHeight - offsetBottom + "px";
58964
- } else {
58965
- this.node.style.top = offsetTop + "px";
58966
- }
58967
- }
58968
- }
58969
-
58970
- this.offset = this.getCurrentOffset();
58971
- };
58972
-
58973
- _proto.initial = function initial() {
58974
- var bottom = this.props.bottom;
58975
-
58976
- if (bottom) {
58977
- if (this.mode !== "stickyBottom") this.changeMode("stickyBottom");
58978
- } else {
58979
- if (this.mode !== "stickyTop") this.changeMode("stickyTop");
58980
- }
58981
- };
58982
-
58983
- _proto.changeToStickyBottomIfBoxTooLow = function changeToStickyBottomIfBoxTooLow(scrollY) {
58984
- var offsetBottom = this.props.offsetBottom;
58985
-
58986
- if (scrollY + this.scrollPaneOffset + this.viewPortHeight >= this.naturalTop + this.nodeHeight + this.offset + offsetBottom) {
58987
- this.changeMode("stickyBottom");
58988
- }
58989
- };
58990
-
58991
- _proto.render = function render() {
58992
- var _this$props5 = this.props,
58993
- children = _this$props5.children,
58994
- className = _this$props5.className,
58995
- style = _this$props5.style;
58996
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
58997
- className: className,
58998
- style: style,
58999
- ref: this.registerContainerRef
59000
- }, children);
59001
- };
59002
-
59003
- return StickyBox;
59004
- }((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
59005
-
59006
-
59007
- StickyBox.defaultProps = {
59008
- onChangeMode: function onChangeMode() {},
59009
- offsetTop: 0,
59010
- offsetBottom: 0
59011
- };
59012
- false ? 0 : void 0;
59013
-
59014
- /***/ }),
59015
-
59016
58877
  /***/ 94738:
59017
58878
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
59018
58879
 
@@ -61747,7 +61608,9 @@ var Ellipsis = function Ellipsis(props) {
61747
61608
  WebkitLineClamp: rows
61748
61609
  }, style),
61749
61610
  className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(_defineProperty({
61750
- 'teamix-pro-ellipsis': true
61611
+ 'teamix-pro-ellipsis': true,
61612
+ 'teamix-pro-ellipsis-single-line': rows === 1,
61613
+ 'teamix-pro-ellipsis-multi-line': rows > 1
61751
61614
  }, className !== null && className !== void 0 ? className : '', true))
61752
61615
  }, children);
61753
61616
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
@@ -64433,7 +64296,7 @@ var FieldIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwar
64433
64296
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
64434
64297
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72326);
64435
64298
  /* harmony import */ var _menuSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20472);
64436
- var _excluded = ["value", "mode", "onChange", "inputProps", "layout", "render", "disabled", "dataSource", "state"];
64299
+ var _excluded = ["value", "mode", "onChange", "inputProps", "layout", "render", "dataSource", "state"];
64437
64300
 
64438
64301
  function ownKeys(object, enumerableOnly) {
64439
64302
  var keys = Object.keys(object);
@@ -64584,7 +64447,6 @@ var FieldMenuSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().
64584
64447
  inputProps = props.inputProps,
64585
64448
  layout = props.layout,
64586
64449
  render = props.render,
64587
- disabled = props.disabled,
64588
64450
  dataSource = props.dataSource,
64589
64451
  state = props.state,
64590
64452
  others = _objectWithoutProperties(props, _excluded);
@@ -64626,10 +64488,11 @@ var FieldMenuSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().
64626
64488
  /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33049);
64627
64489
  /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__);
64628
64490
  /* harmony import */ var _teamix_money_input__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20106);
64629
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28266);
64630
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
64631
- /* harmony import */ var _output__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(90405);
64632
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(72326);
64491
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80653);
64492
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28266);
64493
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
64494
+ /* harmony import */ var _output__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90405);
64495
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(72326);
64633
64496
  var _excluded = ["value", "mode", "onChange", "inputProps", "layout", "size", "render", "disabled", "currency", "state", "dataSource"];
64634
64497
 
64635
64498
  function ownKeys(object, enumerableOnly) {
@@ -64777,6 +64640,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
64777
64640
 
64778
64641
 
64779
64642
 
64643
+
64780
64644
  var currencyMap = new Map([['CNY', {
64781
64645
  countryName: '中国',
64782
64646
  name: '人民币元',
@@ -64814,7 +64678,7 @@ var FieldMoney = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
64814
64678
 
64815
64679
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
64816
64680
  setFieldVal(value);
64817
- (0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .bindRefValue */ .Dd)(value, ref);
64681
+ (0,_utils__WEBPACK_IMPORTED_MODULE_6__/* .bindRefValue */ .Dd)(value, ref);
64818
64682
  }, [value]);
64819
64683
 
64820
64684
  var numberFormatter = function numberFormatter() {
@@ -64826,7 +64690,14 @@ var FieldMoney = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
64826
64690
  currency: currency
64827
64691
  }); // 符号后加空格
64828
64692
 
64829
- var symbol = money.substr(0, 1);
64693
+ var symbol = money.substr(0, 1); // 针对英文下人民币做格式化处理
64694
+
64695
+ if ((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_3__.getLanguage)() === 'en-us') {
64696
+ if (symbol === '¥') {
64697
+ return money.replace(symbol, "CN".concat(symbol, " "));
64698
+ }
64699
+ }
64700
+
64830
64701
  return money.replace(symbol, "".concat(symbol, " "));
64831
64702
  };
64832
64703
 
@@ -64841,7 +64712,7 @@ var FieldMoney = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
64841
64712
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Icon, {
64842
64713
  type: (_currencyMap$get2 = currencyMap.get(currency)) === null || _currencyMap$get2 === void 0 ? void 0 : _currencyMap$get2.icon
64843
64714
  })),
64844
- className: classnames__WEBPACK_IMPORTED_MODULE_3___default()({
64715
+ className: classnames__WEBPACK_IMPORTED_MODULE_4___default()({
64845
64716
  'teamix-pro-field-money': true,
64846
64717
  'teamix-pro-field-layout-compact': true
64847
64718
  }),
@@ -64855,13 +64726,13 @@ var FieldMoney = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
64855
64726
  disabled: disabled,
64856
64727
  onChange: function onChange(val) {
64857
64728
  setFieldVal(val);
64858
- (0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .bindRefValue */ .Dd)(val, ref);
64859
- _onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .formatterOnchangeValue */ .WO)(val), null);
64729
+ (0,_utils__WEBPACK_IMPORTED_MODULE_6__/* .bindRefValue */ .Dd)(val, ref);
64730
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_6__/* .formatterOnchangeValue */ .WO)(val), null);
64860
64731
  }
64861
64732
  }));
64862
64733
  }
64863
64734
 
64864
- return (0,_output__WEBPACK_IMPORTED_MODULE_4__/* .formatterOutput */ .h)(fieldVal, render, [], numberFormatter);
64735
+ return (0,_output__WEBPACK_IMPORTED_MODULE_5__/* .formatterOutput */ .h)(fieldVal, render, [], numberFormatter);
64865
64736
  });
64866
64737
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FieldMoney);
64867
64738
 
@@ -68835,7 +68706,7 @@ var Trigger = function Trigger(props) {
68835
68706
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
68836
68707
  /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80653);
68837
68708
  /* harmony import */ var _teamix_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89227);
68838
- var _excluded = ["dataSource", "col", "width", "value", "onChange", "showAll", "size", "hideTitle"];
68709
+ var _excluded = ["dataSource", "col", "width", "value", "onChange", "showAll", "size", "hideTitle", "placeholder"];
68839
68710
 
68840
68711
  function ownKeys(object, enumerableOnly) {
68841
68712
  var keys = Object.keys(object);
@@ -69030,8 +68901,10 @@ var MenuSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
69030
68901
  size = props.size,
69031
68902
  _props$hideTitle = props.hideTitle,
69032
68903
  hideTitle = _props$hideTitle === void 0 ? false : _props$hideTitle,
68904
+ placeholder = props.placeholder,
69033
68905
  others = _objectWithoutProperties(props, _excluded);
69034
68906
 
68907
+ console.log('others', others);
69035
68908
  var ref = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
69036
68909
 
69037
68910
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(valueProp),
@@ -69198,7 +69071,7 @@ var MenuSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
69198
69071
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Popup, {
69199
69072
  trigger: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Input, _objectSpread({
69200
69073
  ref: forwardRef,
69201
- placeholder: "\u8BF7\u9009\u62E9",
69074
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('pleaseSelect'),
69202
69075
  value: inputValue,
69203
69076
  hint: popupVisible ? 'arrow-up' : 'arrow-down',
69204
69077
  onChange: inputOnChange,
@@ -72158,7 +72031,7 @@ var SelectGroup = function SelectGroup(props) {
72158
72031
  select: true,
72159
72032
  'select-has-placeholder': !value || (value === null || value === void 0 ? void 0 : value.length) === 0
72160
72033
  }), " ").concat(className),
72161
- placeholder: value && (value === null || value === void 0 ? void 0 : value.length) > 0 ? ' ' : placeholder !== null && placeholder !== void 0 ? placeholder : (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_3__.getMessage)('pleaseChoose'),
72034
+ placeholder: value && (value === null || value === void 0 ? void 0 : value.length) > 0 ? ' ' : placeholder !== null && placeholder !== void 0 ? placeholder : (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_3__.getMessage)('pleaseSelect'),
72162
72035
  label: maxTagCount === 'total' ? (0,_commonComponents__WEBPACK_IMPORTED_MODULE_4__/* .renderTags */ .as)(labelTag) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_commonComponents__WEBPACK_IMPORTED_MODULE_4__/* .ProTagGroup */ .VM, {
72163
72036
  tag: labelTag,
72164
72037
  moreTagProps: {
@@ -76216,15 +76089,22 @@ var DialogForm = function DialogForm(props) {
76216
76089
  innerFormRef = props.innerFormRef,
76217
76090
  _props$validateFirst = props.validateFirst,
76218
76091
  validateFirst = _props$validateFirst === void 0 ? true : _props$validateFirst;
76092
+ var form = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
76093
+ return (0,_form__WEBPACK_IMPORTED_MODULE_3__/* .createForm */ .Np)({
76094
+ initialValues: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(initialValues, context),
76095
+ validateFirst: validateFirst
76096
+ });
76097
+ }, [validateFirst, initialValues, context]);
76219
76098
 
76220
- var _getSchemaAndFormProp = getSchemaAndFormProps(schema, formProps),
76221
- formSchema = _getSchemaAndFormProp.schema,
76222
- others = _objectWithoutPropertiesLoose(_getSchemaAndFormProp, _excluded);
76099
+ var _useMemo = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
76100
+ return getSchemaAndFormProps(schema, formProps);
76101
+ }, [schema, formProps]),
76102
+ formSchema = _useMemo.schema,
76103
+ others = _objectWithoutPropertiesLoose(_useMemo, _excluded);
76223
76104
 
76224
- var form = (0,_form__WEBPACK_IMPORTED_MODULE_3__/* .createForm */ .Np)({
76225
- initialValues: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(initialValues, context),
76226
- validateFirst: validateFirst
76227
- });
76105
+ var otherFormProps = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
76106
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .addContext */ .F)((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(others, context), context);
76107
+ }, [context, JSON.stringify(others)]);
76228
76108
 
76229
76109
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
76230
76110
  loading = _useState[0],
@@ -76256,7 +76136,7 @@ var DialogForm = function DialogForm(props) {
76256
76136
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_form__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP, _extends({
76257
76137
  form: form,
76258
76138
  schema: formSchema
76259
- }, getDefaultFormPropsByDialogSize(size), (0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .addContext */ .F)((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(others, context), context))));
76139
+ }, getDefaultFormPropsByDialogSize(size), otherFormProps)));
76260
76140
  };
76261
76141
 
76262
76142
  function useDialogFormAction(action, context) {
@@ -82474,7 +82354,7 @@ _teamix_icon__WEBPACK_IMPORTED_MODULE_15__/* ["default"].setConfig */ .Z.setConf
82474
82354
 
82475
82355
 
82476
82356
 
82477
- var version = '1.4.5';
82357
+ var version = '1.4.6';
82478
82358
 
82479
82359
 
82480
82360
  /***/ }),
@@ -87648,7 +87528,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
87648
87528
  lineHeight: '18px'
87649
87529
  }
87650
87530
  }, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('total', {
87651
- total: total
87531
+ total: new Intl.NumberFormat().format(total)
87652
87532
  }))
87653
87533
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
87654
87534
  className: prefixCls('custom-total-content')
@@ -87766,7 +87646,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
87766
87646
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Pagination, _extends({}, commonPaginationProps, {
87767
87647
  totalRender: function totalRender(total) {
87768
87648
  return (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('total', {
87769
- total: total
87649
+ total: new Intl.NumberFormat().format(total)
87770
87650
  });
87771
87651
  }
87772
87652
  }, otherProps));
@@ -87776,7 +87656,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
87776
87656
  pageShowCount: 3,
87777
87657
  totalRender: function totalRender(total) {
87778
87658
  return (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('total', {
87779
- total: total
87659
+ total: new Intl.NumberFormat().format(total)
87780
87660
  });
87781
87661
  }
87782
87662
  }, otherProps));
@@ -89690,7 +89570,7 @@ var ProTable = function ProTable(props) {
89690
89570
  ,
89691
89571
  totalRender: function totalRender(total) {
89692
89572
  return (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getMessage)('total', {
89693
- total: total
89573
+ total: new Intl.NumberFormat().format(total)
89694
89574
  });
89695
89575
  },
89696
89576
  pageSize: pageSize,
@@ -93374,7 +93254,7 @@ function sandbox(target) {
93374
93254
 
93375
93255
  var usePrefixCls = function usePrefixCls(tag, props) {
93376
93256
  return function () {
93377
- var _getContext$prefix, _getContext;
93257
+ var _ref2, _window$TEAMIX_PRO_PR, _getContext;
93378
93258
 
93379
93259
  var _ref = props || {},
93380
93260
  base = _ref.base,
@@ -93383,7 +93263,8 @@ var usePrefixCls = function usePrefixCls(tag, props) {
93383
93263
 
93384
93264
  var getContext = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.ConfigProvider.getContext; // 基于 context 获取基础组件前缀
93385
93265
 
93386
- var basePrefix = (_getContext$prefix = (_getContext = getContext()) == null ? void 0 : _getContext.prefix) != null ? _getContext$prefix : 'next-'; // 获取模块前缀(是否添加基础前缀)
93266
+ var basePrefix = // @ts-ignore
93267
+ (_ref2 = (_window$TEAMIX_PRO_PR = window.TEAMIX_PRO_PREFIX) != null ? _window$TEAMIX_PRO_PR : (_getContext = getContext()) == null ? void 0 : _getContext.prefix) != null ? _ref2 : 'next-'; // 获取模块前缀(是否添加基础前缀)
93387
93268
 
93388
93269
  var modulePrefix = base ? "" + basePrefix + (tag != null ? tag : '') : "" + (prefix != null ? prefix : '') + (tag != null ? tag : ''); // 获取拼接样式
93389
93270
 
@@ -93463,7 +93344,7 @@ var usePrefixCls = function usePrefixCls(tag, props) {
93463
93344
  cancel: 'Cancel',
93464
93345
  edit: 'Edit',
93465
93346
  pageSize: 'Items per page:',
93466
- pleaseChoose: 'Please choose',
93347
+ pleaseSelect: 'Please Select',
93467
93348
  labelKey: 'Tag key',
93468
93349
  labelValue: 'Tag value',
93469
93350
  searchTagKeyOrTagValue: 'Search tag key or tag value',
@@ -93599,7 +93480,7 @@ var getMessage = function getMessage(id, data) {
93599
93480
  cancel: '取消',
93600
93481
  edit: '编辑',
93601
93482
  pageSize: '每页显示:',
93602
- pleaseChoose: '请选择',
93483
+ pleaseSelect: '请选择',
93603
93484
  labelKey: '标签键',
93604
93485
  labelValue: '标签值',
93605
93486
  searchTagKeyOrTagValue: '搜索标签键或标签值',
@@ -94261,6 +94142,13 @@ var listToTree = generateTree;
94261
94142
 
94262
94143
  /***/ }),
94263
94144
 
94145
+ /***/ 28226:
94146
+ /***/ (() => {
94147
+
94148
+ // extracted by mini-css-extract-plugin
94149
+
94150
+ /***/ }),
94151
+
94264
94152
  /***/ 39205:
94265
94153
  /***/ (() => {
94266
94154
 
@@ -94519,23 +94407,6 @@ function _inherits(subClass, superClass) {
94519
94407
 
94520
94408
  /***/ }),
94521
94409
 
94522
- /***/ 38173:
94523
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
94524
-
94525
- "use strict";
94526
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
94527
- /* harmony export */ "Z": () => (/* binding */ _inheritsLoose)
94528
- /* harmony export */ });
94529
- /* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1856);
94530
-
94531
- function _inheritsLoose(subClass, superClass) {
94532
- subClass.prototype = Object.create(superClass.prototype);
94533
- subClass.prototype.constructor = subClass;
94534
- (0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(subClass, superClass);
94535
- }
94536
-
94537
- /***/ }),
94538
-
94539
94410
  /***/ 42801:
94540
94411
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
94541
94412
 
@@ -95163,6 +95034,375 @@ function _setPrototypeOf(o, p) {
95163
95034
  return _setPrototypeOf(o, p);
95164
95035
  }
95165
95036
 
95037
+ /***/ }),
95038
+
95039
+ /***/ 17129:
95040
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
95041
+
95042
+ "use strict";
95043
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
95044
+ /* harmony export */ "Z": () => (/* binding */ src_default)
95045
+ /* harmony export */ });
95046
+ /* unused harmony export useStickyBox */
95047
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
95048
+ /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94738);
95049
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
95050
+
95051
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
95052
+
95053
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
95054
+
95055
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
95056
+
95057
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
95058
+
95059
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
95060
+
95061
+ // src/index.jsx
95062
+
95063
+
95064
+
95065
+ var getScrollParent = function getScrollParent(node) {
95066
+ var parent = node;
95067
+
95068
+ while (parent = parent.parentElement) {
95069
+ var overflowYVal = getComputedStyle(parent, null).getPropertyValue("overflow-y");
95070
+ if (parent === document.body) return window;
95071
+ if (overflowYVal === "auto" || overflowYVal === "scroll") return parent;
95072
+ }
95073
+
95074
+ return window;
95075
+ };
95076
+
95077
+ var offsetTill = function offsetTill(node, target) {
95078
+ var current = node;
95079
+ var offset = 0;
95080
+
95081
+ if (target.firstChild && target.firstChild.offsetParent !== target) {
95082
+ offset += node.offsetTop - target.offsetTop;
95083
+ target = node.offsetParent;
95084
+ offset += -node.offsetTop;
95085
+ }
95086
+
95087
+ do {
95088
+ offset += current.offsetTop;
95089
+ current = current.offsetParent;
95090
+ } while (current && current !== target);
95091
+
95092
+ return offset;
95093
+ };
95094
+
95095
+ var getParentNode = function getParentNode(node) {
95096
+ var currentParent = node.parentNode;
95097
+
95098
+ while (currentParent) {
95099
+ var style = getComputedStyle(currentParent, null);
95100
+ if (style.getPropertyValue("display") !== "contents") break;
95101
+ currentParent = currentParent.parentNode;
95102
+ }
95103
+
95104
+ return currentParent || window;
95105
+ };
95106
+
95107
+ var stickyProp = null;
95108
+
95109
+ if (typeof CSS !== "undefined" && CSS.supports) {
95110
+ if (CSS.supports("position", "sticky")) stickyProp = "sticky";else if (CSS.supports("position", "-webkit-sticky")) stickyProp = "-webkit-sticky";
95111
+ }
95112
+
95113
+ var passiveArg = false;
95114
+
95115
+ try {
95116
+ opts = Object.defineProperty({}, "passive", {
95117
+ get: function get() {
95118
+ passiveArg = {
95119
+ passive: true
95120
+ };
95121
+ }
95122
+ });
95123
+ window.addEventListener("testPassive", null, opts);
95124
+ window.removeEventListener("testPassive", null, opts);
95125
+ } catch (e) {}
95126
+
95127
+ var opts;
95128
+
95129
+ var registerNode = function registerNode(node, _ref) {
95130
+ var offsetTop = _ref.offsetTop,
95131
+ offsetBottom = _ref.offsetBottom,
95132
+ bottom = _ref.bottom;
95133
+ var scrollPane = getScrollParent(node);
95134
+ var latestScrollY = scrollPane === window ? window.scrollY : scrollPane.scrollTop;
95135
+ var unsubs = [];
95136
+ var mode, offset, nodeHeight, naturalTop, parentHeight, scrollPaneOffset, viewPortHeight;
95137
+
95138
+ var getCurrentOffset = function getCurrentOffset() {
95139
+ if (mode === "relative") return offset;
95140
+
95141
+ if (mode === "stickyTop") {
95142
+ return Math.max(0, scrollPaneOffset + latestScrollY - naturalTop + offsetTop);
95143
+ }
95144
+
95145
+ if (mode === "stickyBottom") {
95146
+ return Math.max(0, scrollPaneOffset + latestScrollY + viewPortHeight - (naturalTop + nodeHeight + offsetBottom));
95147
+ }
95148
+ };
95149
+
95150
+ var changeToStickyBottomIfBoxTooLow = function changeToStickyBottomIfBoxTooLow(scrollY) {
95151
+ if (scrollY + scrollPaneOffset + viewPortHeight >= naturalTop + nodeHeight + offset + offsetBottom) {
95152
+ changeMode("stickyBottom");
95153
+ }
95154
+ };
95155
+
95156
+ var changeMode = function changeMode(newMode) {
95157
+ mode = newMode;
95158
+
95159
+ if (newMode === "relative") {
95160
+ node.style.position = "relative";
95161
+
95162
+ if (bottom) {
95163
+ var nextBottom = Math.max(0, parentHeight - nodeHeight - offset);
95164
+ node.style.bottom = "".concat(nextBottom, "px");
95165
+ } else {
95166
+ node.style.top = "".concat(offset, "px");
95167
+ }
95168
+ } else {
95169
+ node.style.position = stickyProp;
95170
+
95171
+ if (newMode === "stickyBottom") {
95172
+ if (bottom) {
95173
+ node.style.bottom = "".concat(offsetBottom, "px");
95174
+ } else {
95175
+ node.style.top = "".concat(viewPortHeight - nodeHeight - offsetBottom, "px");
95176
+ }
95177
+ } else {
95178
+ if (bottom) {
95179
+ node.style.bottom = "".concat(viewPortHeight - nodeHeight - offsetBottom, "px");
95180
+ } else {
95181
+ node.style.top = "".concat(offsetTop, "px");
95182
+ }
95183
+ }
95184
+ }
95185
+
95186
+ offset = getCurrentOffset();
95187
+ };
95188
+
95189
+ var initial = function initial() {
95190
+ if (bottom) {
95191
+ if (mode !== "stickyBottom") changeMode("stickyBottom");
95192
+ } else {
95193
+ if (mode !== "stickyTop") changeMode("stickyTop");
95194
+ }
95195
+ };
95196
+
95197
+ var addListener = function addListener(element, event, handler, passive) {
95198
+ element.addEventListener(event, handler, passive);
95199
+ unsubs.push(function () {
95200
+ return element.removeEventListener(event, handler);
95201
+ });
95202
+ };
95203
+
95204
+ var handleScroll = function handleScroll() {
95205
+ var scrollY = scrollPane === window ? window.scrollY : scrollPane.scrollTop;
95206
+ if (scrollY === latestScrollY) return;
95207
+
95208
+ if (nodeHeight + offsetTop + offsetBottom <= viewPortHeight) {
95209
+ initial();
95210
+ latestScrollY = scrollY;
95211
+ return;
95212
+ }
95213
+
95214
+ var scrollDelta = scrollY - latestScrollY;
95215
+ offset = getCurrentOffset();
95216
+
95217
+ if (scrollDelta > 0) {
95218
+ if (mode === "stickyTop") {
95219
+ if (scrollY + scrollPaneOffset + offsetTop > naturalTop) {
95220
+ if (scrollY + scrollPaneOffset + viewPortHeight <= naturalTop + nodeHeight + offset + offsetBottom) {
95221
+ changeMode("relative");
95222
+ } else {
95223
+ changeMode("stickyBottom");
95224
+ }
95225
+ }
95226
+ } else if (mode === "relative") {
95227
+ changeToStickyBottomIfBoxTooLow(scrollY);
95228
+ }
95229
+ } else {
95230
+ if (mode === "stickyBottom") {
95231
+ if (scrollPaneOffset + scrollY + viewPortHeight < naturalTop + parentHeight + offsetBottom) {
95232
+ if (scrollPaneOffset + scrollY + offsetTop >= naturalTop + offset) {
95233
+ changeMode("relative");
95234
+ } else {
95235
+ changeMode("stickyTop");
95236
+ }
95237
+ }
95238
+ } else if (mode === "relative") {
95239
+ if (scrollPaneOffset + scrollY + offsetTop < naturalTop + offset) {
95240
+ changeMode("stickyTop");
95241
+ }
95242
+ }
95243
+ }
95244
+
95245
+ latestScrollY = scrollY;
95246
+ };
95247
+
95248
+ var handleWindowResize = function handleWindowResize() {
95249
+ viewPortHeight = window.innerHeight;
95250
+ scrollPaneOffset = 0;
95251
+ handleScroll();
95252
+ };
95253
+
95254
+ var handleScrollPaneResize = function handleScrollPaneResize() {
95255
+ viewPortHeight = scrollPane.offsetHeight;
95256
+
95257
+ if (viewPortHeight === 0) {
95258
+ console.warn("react-sticky-box's scroll pane has a height of 0. This seems odd. Please check this node:", scrollPane);
95259
+ }
95260
+
95261
+ if (scrollPane.firstChild.offsetParent === scrollPane) {
95262
+ scrollPaneOffset = scrollPane.getBoundingClientRect().top;
95263
+ } else {
95264
+ scrollPaneOffset = 0;
95265
+ }
95266
+
95267
+ handleScroll();
95268
+ };
95269
+
95270
+ var handleParentNodeResize = function handleParentNodeResize() {
95271
+ var parentNode = getParentNode(node);
95272
+ var computedParentStyle = getComputedStyle(parentNode, null);
95273
+ var parentPaddingTop = parseInt(computedParentStyle.getPropertyValue("padding-top"), 10);
95274
+ var parentPaddingBottom = parseInt(computedParentStyle.getPropertyValue("padding-bottom"), 10);
95275
+ var verticalParentPadding = parentPaddingTop + parentPaddingBottom;
95276
+ naturalTop = offsetTill(parentNode, scrollPane) + parentPaddingTop + scrollPaneOffset;
95277
+ var oldParentHeight = parentHeight;
95278
+ parentHeight = parentNode.getBoundingClientRect().height - verticalParentPadding;
95279
+
95280
+ if (mode === "relative") {
95281
+ if (bottom) {
95282
+ changeMode("relative");
95283
+ } else {
95284
+ if (oldParentHeight > parentHeight) {
95285
+ changeToStickyBottomIfBoxTooLow(latestScrollY);
95286
+ }
95287
+ }
95288
+ }
95289
+
95290
+ if (oldParentHeight !== parentHeight && mode === "relative") {
95291
+ latestScrollY = Number.POSITIVE_INFINITY;
95292
+ handleScroll();
95293
+ }
95294
+ };
95295
+
95296
+ var handleNodeResize = function handleNodeResize() {
95297
+ var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
95298
+ initialArg = _ref2.initial;
95299
+
95300
+ var prevHeight = nodeHeight;
95301
+ nodeHeight = node.getBoundingClientRect().height;
95302
+
95303
+ if (!initialArg && prevHeight !== nodeHeight) {
95304
+ if (nodeHeight + offsetTop + offsetBottom <= viewPortHeight) {
95305
+ mode = void 0;
95306
+ initial();
95307
+ return;
95308
+ } else {
95309
+ var diff = prevHeight - nodeHeight;
95310
+ var lowestPossible = parentHeight - nodeHeight;
95311
+ var nextOffset = Math.min(lowestPossible, getCurrentOffset() + (bottom ? diff : 0));
95312
+ offset = Math.max(0, nextOffset);
95313
+ if (!bottom || mode !== "stickyBottom") changeMode("relative");
95314
+ }
95315
+ }
95316
+ };
95317
+
95318
+ var addResizeObserver = function addResizeObserver(n, handler) {
95319
+ var ro = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z(handler);
95320
+ ro.observe(n);
95321
+ unsubs.push(function () {
95322
+ return ro.disconnect();
95323
+ });
95324
+ };
95325
+
95326
+ addListener(scrollPane, "scroll", handleScroll, passiveArg);
95327
+ addListener(scrollPane, "mousewheel", handleScroll, passiveArg);
95328
+
95329
+ if (scrollPane === window) {
95330
+ addListener(window, "resize", handleWindowResize);
95331
+ handleWindowResize();
95332
+ } else {
95333
+ addResizeObserver(scrollPane, handleScrollPaneResize);
95334
+ handleScrollPaneResize();
95335
+ }
95336
+
95337
+ addResizeObserver(getParentNode(node), handleParentNodeResize);
95338
+ handleParentNodeResize();
95339
+ addResizeObserver(node, handleNodeResize);
95340
+ handleNodeResize({
95341
+ initial: true
95342
+ });
95343
+ initial();
95344
+ return function () {
95345
+ return unsubs.forEach(function (fn) {
95346
+ return fn();
95347
+ });
95348
+ };
95349
+ };
95350
+
95351
+ var useStickyBox = function useStickyBox() {
95352
+ var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
95353
+ _ref3$offsetTop = _ref3.offsetTop,
95354
+ offsetTop = _ref3$offsetTop === void 0 ? 0 : _ref3$offsetTop,
95355
+ _ref3$offsetBottom = _ref3.offsetBottom,
95356
+ offsetBottom = _ref3$offsetBottom === void 0 ? 0 : _ref3$offsetBottom,
95357
+ _ref3$bottom = _ref3.bottom,
95358
+ bottom = _ref3$bottom === void 0 ? false : _ref3$bottom;
95359
+
95360
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),
95361
+ _useState2 = _slicedToArray(_useState, 2),
95362
+ node = _useState2[0],
95363
+ setNode = _useState2[1];
95364
+
95365
+ var argRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({
95366
+ offsetTop: offsetTop,
95367
+ offsetBottom: offsetBottom,
95368
+ bottom: bottom
95369
+ });
95370
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
95371
+ argRef.current = {
95372
+ offsetTop: offsetTop,
95373
+ offsetBottom: offsetBottom,
95374
+ bottom: bottom
95375
+ };
95376
+ });
95377
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
95378
+ if (!node) return;
95379
+ return registerNode(node, argRef.current);
95380
+ }, [node]);
95381
+ return setNode;
95382
+ };
95383
+
95384
+ var StickyBox = function StickyBox(_ref4) {
95385
+ var offsetTop = _ref4.offsetTop,
95386
+ offsetBottom = _ref4.offsetBottom,
95387
+ bottom = _ref4.bottom,
95388
+ children = _ref4.children,
95389
+ className = _ref4.className,
95390
+ style = _ref4.style;
95391
+ var ref = useStickyBox({
95392
+ offsetTop: offsetTop,
95393
+ offsetBottom: offsetBottom,
95394
+ bottom: bottom
95395
+ });
95396
+ return /* @__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
95397
+ className: className,
95398
+ style: style,
95399
+ ref: ref
95400
+ }, children);
95401
+ };
95402
+
95403
+ var src_default = StickyBox;
95404
+
95405
+
95166
95406
  /***/ }),
95167
95407
 
95168
95408
  /***/ 38471: