taro-ui 3.1.0-beta.4 → 3.1.0-beta.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.
Files changed (43) hide show
  1. package/dist/index.esm.js +672 -528
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +672 -528
  4. package/dist/index.js.map +1 -1
  5. package/dist/style/components/avatar.scss +3 -3
  6. package/dist/style/components/button.scss +2 -2
  7. package/dist/style/components/curtain.scss +3 -3
  8. package/dist/style/components/flex.scss +1 -1
  9. package/dist/style/components/list.scss +1 -0
  10. package/dist/style/components/progress.scss +3 -3
  11. package/dist/style/components/range.scss +2 -2
  12. package/dist/style/components/search-bar.scss +1 -1
  13. package/dist/style/components/tag.scss +2 -2
  14. package/dist/style/components/timeline.scss +3 -3
  15. package/dist/style/components/toast.scss +1 -1
  16. package/lib/components/calendar/common/plugins.js +1 -1
  17. package/lib/components/calendar/common/plugins.js.map +1 -1
  18. package/lib/components/icon/index.js +1 -1
  19. package/lib/components/icon/index.js.map +1 -1
  20. package/lib/components/image-picker/index.js +4 -1
  21. package/lib/components/image-picker/index.js.map +1 -1
  22. package/lib/components/indexes/index.js +1 -1
  23. package/lib/components/indexes/index.js.map +1 -1
  24. package/lib/components/input/index.js +8 -5
  25. package/lib/components/input/index.js.map +1 -1
  26. package/lib/components/input-number/index.js +1 -1
  27. package/lib/components/modal/index.js +1 -1
  28. package/lib/components/modal/index.js.map +1 -1
  29. package/lib/components/range/index.js +3 -2
  30. package/lib/components/range/index.js.map +1 -1
  31. package/lib/components/swipe-action/index.js +54 -22
  32. package/lib/components/swipe-action/index.js.map +1 -1
  33. package/lib/components/tabs/index.js +1 -1
  34. package/lib/components/tabs/index.js.map +1 -1
  35. package/package.json +15 -13
  36. package/rn/components/flex/item/index.scss +1 -1
  37. package/types/base.d.ts +2 -2
  38. package/types/calendar.d.ts +2 -2
  39. package/types/input.d.ts +1 -1
  40. package/types/message.d.ts +6 -0
  41. package/types/swipe-action.d.ts +7 -3
  42. package/CHANGELOG.md +0 -1176
  43. package/LICENSE +0 -21
package/dist/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
2
2
  import { View, Text, OpenData, Image, Button, Switch, ScrollView, Form, Label, Input, Textarea, Slider, MovableArea, MovableView, Swiper, SwiperItem, Picker } from '@tarojs/components';
3
3
  import Taro from '@tarojs/taro';
4
4
 
5
- /*! *****************************************************************************
5
+ /******************************************************************************
6
6
  Copyright (c) Microsoft Corporation.
7
7
 
8
8
  Permission to use, copy, modify, and/or distribute this software for any
@@ -44,6 +44,44 @@ var __assign = function() {
44
44
  return __assign.apply(this, arguments);
45
45
  };
46
46
 
47
+ function __awaiter(thisArg, _arguments, P, generator) {
48
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
49
+ return new (P || (P = Promise))(function (resolve, reject) {
50
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
51
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
52
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
53
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
54
+ });
55
+ }
56
+
57
+ function __generator(thisArg, body) {
58
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
59
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
60
+ function verb(n) { return function (v) { return step([n, v]); }; }
61
+ function step(op) {
62
+ if (f) throw new TypeError("Generator is already executing.");
63
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
64
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
65
+ if (y = 0, t) op = [op[0] & 2, t.value];
66
+ switch (op[0]) {
67
+ case 0: case 1: t = op; break;
68
+ case 4: _.label++; return { value: op[1], done: false };
69
+ case 5: _.label++; y = op[1]; op = [0]; continue;
70
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
71
+ default:
72
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
73
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
74
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
75
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
76
+ if (t[2]) _.ops.pop();
77
+ _.trys.pop(); continue;
78
+ }
79
+ op = body.call(thisArg, _);
80
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
81
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
82
+ }
83
+ }
84
+
47
85
  function __read(o, n) {
48
86
  var m = typeof Symbol === "function" && o[Symbol.iterator];
49
87
  if (!m) return o;
@@ -76,9 +114,9 @@ function createCommonjsModule(fn, module) {
76
114
 
77
115
  var classnames = createCommonjsModule(function (module) {
78
116
  /*!
79
- Copyright (c) 2018 Jed Watson.
80
- Licensed under the MIT License (MIT), see
81
- http://jedwatson.github.io/classnames
117
+ Copyright (c) 2018 Jed Watson.
118
+ Licensed under the MIT License (MIT), see
119
+ http://jedwatson.github.io/classnames
82
120
  */
83
121
  /* global define */
84
122
 
@@ -105,14 +143,15 @@ var classnames = createCommonjsModule(function (module) {
105
143
  }
106
144
  }
107
145
  } else if (argType === 'object') {
108
- if (arg.toString === Object.prototype.toString) {
109
- for (var key in arg) {
110
- if (hasOwn.call(arg, key) && arg[key]) {
111
- classes.push(key);
112
- }
113
- }
114
- } else {
146
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
115
147
  classes.push(arg.toString());
148
+ continue;
149
+ }
150
+
151
+ for (var key in arg) {
152
+ if (hasOwn.call(arg, key) && arg[key]) {
153
+ classes.push(key);
154
+ }
116
155
  }
117
156
  }
118
157
  }
@@ -481,16 +520,22 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
481
520
  * LICENSE file in the root directory of this source tree.
482
521
  */
483
522
 
484
- var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
523
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
524
+
525
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
485
526
 
486
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
527
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
528
+
529
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
530
+
531
+ var has$1 = has$2;
487
532
 
488
533
  var printWarning$1 = function() {};
489
534
 
490
535
  if (process.env.NODE_ENV !== 'production') {
491
- var ReactPropTypesSecret = ReactPropTypesSecret_1;
536
+ var ReactPropTypesSecret = ReactPropTypesSecret$1;
492
537
  var loggedTypeFailures = {};
493
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
538
+ var has = has$1;
494
539
 
495
540
  printWarning$1 = function(text) {
496
541
  var message = 'Warning: ' + text;
@@ -502,7 +547,7 @@ if (process.env.NODE_ENV !== 'production') {
502
547
  // This error was thrown as a convenience so that you can use this stack
503
548
  // to find the callsite that caused this warning to fire.
504
549
  throw new Error(message);
505
- } catch (x) {}
550
+ } catch (x) { /**/ }
506
551
  };
507
552
  }
508
553
 
@@ -517,10 +562,10 @@ if (process.env.NODE_ENV !== 'production') {
517
562
  * @param {?Function} getStack Returns the component stack.
518
563
  * @private
519
564
  */
520
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
565
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
521
566
  if (process.env.NODE_ENV !== 'production') {
522
567
  for (var typeSpecName in typeSpecs) {
523
- if (has$1(typeSpecs, typeSpecName)) {
568
+ if (has(typeSpecs, typeSpecName)) {
524
569
  var error;
525
570
  // Prop type validation may throw. In case they do, we don't want to
526
571
  // fail the render phase where it didn't fail before. So we log it.
@@ -531,7 +576,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
531
576
  if (typeof typeSpecs[typeSpecName] !== 'function') {
532
577
  var err = Error(
533
578
  (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
534
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
579
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
580
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
535
581
  );
536
582
  err.name = 'Invariant Violation';
537
583
  throw err;
@@ -571,15 +617,16 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
571
617
  *
572
618
  * @private
573
619
  */
574
- checkPropTypes.resetWarningCache = function() {
620
+ checkPropTypes$1.resetWarningCache = function() {
575
621
  if (process.env.NODE_ENV !== 'production') {
576
622
  loggedTypeFailures = {};
577
623
  }
578
624
  };
579
625
 
580
- var checkPropTypes_1 = checkPropTypes;
626
+ var checkPropTypes_1 = checkPropTypes$1;
627
+
628
+ var checkPropTypes = checkPropTypes_1;
581
629
 
582
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
583
630
  var printWarning = function() {};
584
631
 
585
632
  if (process.env.NODE_ENV !== 'production') {
@@ -680,6 +727,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
680
727
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
681
728
  var ReactPropTypes = {
682
729
  array: createPrimitiveTypeChecker('array'),
730
+ bigint: createPrimitiveTypeChecker('bigint'),
683
731
  bool: createPrimitiveTypeChecker('boolean'),
684
732
  func: createPrimitiveTypeChecker('function'),
685
733
  number: createPrimitiveTypeChecker('number'),
@@ -725,8 +773,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
725
773
  * is prohibitively expensive if they are created too often, such as what
726
774
  * happens in oneOfType() for any type before the one that matched.
727
775
  */
728
- function PropTypeError(message) {
776
+ function PropTypeError(message, data) {
729
777
  this.message = message;
778
+ this.data = data && typeof data === 'object' ? data: {};
730
779
  this.stack = '';
731
780
  }
732
781
  // Make `instanceof Error` still work for returned errors.
@@ -741,7 +790,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
741
790
  componentName = componentName || ANONYMOUS;
742
791
  propFullName = propFullName || propName;
743
792
 
744
- if (secret !== ReactPropTypesSecret_1) {
793
+ if (secret !== ReactPropTypesSecret$1) {
745
794
  if (throwOnDirectAccess) {
746
795
  // New behavior only for users of `prop-types` package
747
796
  var err = new Error(
@@ -761,7 +810,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
761
810
  ) {
762
811
  printWarning(
763
812
  'You are manually calling a React.PropTypes validation ' +
764
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
813
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
765
814
  'and will throw in the standalone `prop-types` package. ' +
766
815
  'You may be seeing this warning due to a third-party PropTypes ' +
767
816
  'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
@@ -800,7 +849,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
800
849
  // 'of type `object`'.
801
850
  var preciseType = getPreciseType(propValue);
802
851
 
803
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
852
+ return new PropTypeError(
853
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
854
+ {expectedType: expectedType}
855
+ );
804
856
  }
805
857
  return null;
806
858
  }
@@ -822,7 +874,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
822
874
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
823
875
  }
824
876
  for (var i = 0; i < propValue.length; i++) {
825
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
877
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
826
878
  if (error instanceof Error) {
827
879
  return error;
828
880
  }
@@ -914,8 +966,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
914
966
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
915
967
  }
916
968
  for (var key in propValue) {
917
- if (has(propValue, key)) {
918
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
969
+ if (has$1(propValue, key)) {
970
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
919
971
  if (error instanceof Error) {
920
972
  return error;
921
973
  }
@@ -944,14 +996,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
944
996
  }
945
997
 
946
998
  function validate(props, propName, componentName, location, propFullName) {
999
+ var expectedTypes = [];
947
1000
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
948
1001
  var checker = arrayOfTypeCheckers[i];
949
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
1002
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
1003
+ if (checkerResult == null) {
950
1004
  return null;
951
1005
  }
1006
+ if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
1007
+ expectedTypes.push(checkerResult.data.expectedType);
1008
+ }
952
1009
  }
953
-
954
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
1010
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1011
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
955
1012
  }
956
1013
  return createChainableTypeChecker(validate);
957
1014
  }
@@ -966,6 +1023,13 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
966
1023
  return createChainableTypeChecker(validate);
967
1024
  }
968
1025
 
1026
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
1027
+ return new PropTypeError(
1028
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1029
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1030
+ );
1031
+ }
1032
+
969
1033
  function createShapeTypeChecker(shapeTypes) {
970
1034
  function validate(props, propName, componentName, location, propFullName) {
971
1035
  var propValue = props[propName];
@@ -975,10 +1039,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
975
1039
  }
976
1040
  for (var key in shapeTypes) {
977
1041
  var checker = shapeTypes[key];
978
- if (!checker) {
979
- continue;
1042
+ if (typeof checker !== 'function') {
1043
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
980
1044
  }
981
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1045
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
982
1046
  if (error) {
983
1047
  return error;
984
1048
  }
@@ -995,19 +1059,21 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
995
1059
  if (propType !== 'object') {
996
1060
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
997
1061
  }
998
- // We need to check all keys in case some are required but missing from
999
- // props.
1062
+ // We need to check all keys in case some are required but missing from props.
1000
1063
  var allKeys = objectAssign({}, props[propName], shapeTypes);
1001
1064
  for (var key in allKeys) {
1002
1065
  var checker = shapeTypes[key];
1066
+ if (has$1(shapeTypes, key) && typeof checker !== 'function') {
1067
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1068
+ }
1003
1069
  if (!checker) {
1004
1070
  return new PropTypeError(
1005
1071
  'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1006
1072
  '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1007
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1073
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1008
1074
  );
1009
1075
  }
1010
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1076
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1011
1077
  if (error) {
1012
1078
  return error;
1013
1079
  }
@@ -1149,8 +1215,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1149
1215
  return propValue.constructor.name;
1150
1216
  }
1151
1217
 
1152
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
1153
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1218
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1219
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1154
1220
  ReactPropTypes.PropTypes = ReactPropTypes;
1155
1221
 
1156
1222
  return ReactPropTypes;
@@ -1162,7 +1228,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1162
1228
 
1163
1229
  var factoryWithThrowingShims = function() {
1164
1230
  function shim(props, propName, componentName, location, propFullName, secret) {
1165
- if (secret === ReactPropTypesSecret_1) {
1231
+ if (secret === ReactPropTypesSecret$1) {
1166
1232
  // It is still safe when called from React.
1167
1233
  return;
1168
1234
  }
@@ -1180,6 +1246,7 @@ var factoryWithThrowingShims = function() {
1180
1246
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1181
1247
  var ReactPropTypes = {
1182
1248
  array: shim,
1249
+ bigint: shim,
1183
1250
  bool: shim,
1184
1251
  func: shim,
1185
1252
  number: shim,
@@ -1208,6 +1275,10 @@ var factoryWithThrowingShims = function() {
1208
1275
  return ReactPropTypes;
1209
1276
  };
1210
1277
 
1278
+ var require$$1 = factoryWithTypeCheckers;
1279
+
1280
+ var require$$2 = factoryWithThrowingShims;
1281
+
1211
1282
  var propTypes = createCommonjsModule(function (module) {
1212
1283
  /**
1213
1284
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -1222,14 +1293,16 @@ if (process.env.NODE_ENV !== 'production') {
1222
1293
  // By explicitly using `prop-types` you are opting into new development behavior.
1223
1294
  // http://fb.me/prop-types-in-prod
1224
1295
  var throwOnDirectAccess = true;
1225
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1296
+ module.exports = require$$1(ReactIs.isElement, throwOnDirectAccess);
1226
1297
  } else {
1227
1298
  // By explicitly using `prop-types` you are opting into new production behavior.
1228
1299
  // http://fb.me/prop-types-in-prod
1229
- module.exports = factoryWithThrowingShims();
1300
+ module.exports = require$$2();
1230
1301
  }
1231
1302
  });
1232
1303
 
1304
+ var PropTypes = propTypes;
1305
+
1233
1306
  var AtActionSheetBody = /** @class */ (function (_super) {
1234
1307
  __extends(AtActionSheetBody, _super);
1235
1308
  function AtActionSheetBody() {
@@ -1265,7 +1338,7 @@ var AtActionSheetFooter = /** @class */ (function (_super) {
1265
1338
  return AtActionSheetFooter;
1266
1339
  }(React.Component));
1267
1340
  AtActionSheetFooter.propTypes = {
1268
- onClick: propTypes.func
1341
+ onClick: PropTypes.func
1269
1342
  };
1270
1343
 
1271
1344
  var AtActionSheetHeader = /** @class */ (function (_super) {
@@ -1340,11 +1413,11 @@ AtActionSheet.defaultProps = {
1340
1413
  isOpened: false
1341
1414
  };
1342
1415
  AtActionSheet.propTypes = {
1343
- title: propTypes.string,
1344
- onClose: propTypes.func,
1345
- onCancel: propTypes.func,
1346
- isOpened: propTypes.bool.isRequired,
1347
- cancelText: propTypes.string
1416
+ title: PropTypes.string,
1417
+ onClose: PropTypes.func,
1418
+ onCancel: PropTypes.func,
1419
+ isOpened: PropTypes.bool.isRequired,
1420
+ cancelText: PropTypes.string
1348
1421
  };
1349
1422
 
1350
1423
  var AtActionSheetItem = /** @class */ (function (_super) {
@@ -1365,7 +1438,7 @@ var AtActionSheetItem = /** @class */ (function (_super) {
1365
1438
  return AtActionSheetItem;
1366
1439
  }(React.Component));
1367
1440
  AtActionSheetItem.propTypes = {
1368
- onClick: propTypes.func
1441
+ onClick: PropTypes.func
1369
1442
  };
1370
1443
 
1371
1444
  var ENV$4 = Taro.getEnv();
@@ -1391,6 +1464,20 @@ function delayQuerySelector(selectorStr, delayTime) {
1391
1464
  });
1392
1465
  });
1393
1466
  }
1467
+ function delayGetClientRect(_a) {
1468
+ var selectorStr = _a.selectorStr, _b = _a.delayTime, delayTime = _b === void 0 ? 500 : _b;
1469
+ var selector = Taro.createSelectorQuery();
1470
+ return new Promise(function (resolve) {
1471
+ delay(delayTime).then(function () {
1472
+ selector
1473
+ .select(selectorStr)
1474
+ .boundingClientRect()
1475
+ .exec(function (res) {
1476
+ resolve(res);
1477
+ });
1478
+ });
1479
+ });
1480
+ }
1394
1481
  function uuid(len, radix) {
1395
1482
  if (len === void 0) { len = 8; }
1396
1483
  if (radix === void 0) { radix = 16; }
@@ -1582,8 +1669,8 @@ AtLoading.defaultProps = {
1582
1669
  color: ''
1583
1670
  };
1584
1671
  AtLoading.propTypes = {
1585
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
1586
- color: propTypes.oneOfType([propTypes.string, propTypes.number])
1672
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1673
+ color: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1587
1674
  };
1588
1675
 
1589
1676
  var AtActivityIndicator = /** @class */ (function (_super) {
@@ -1613,12 +1700,12 @@ AtActivityIndicator.defaultProps = {
1613
1700
  isOpened: true
1614
1701
  };
1615
1702
  AtActivityIndicator.propTypes = {
1616
- size: propTypes.number,
1617
- mode: propTypes.string,
1618
- color: propTypes.string,
1619
- content: propTypes.string,
1620
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
1621
- isOpened: propTypes.bool
1703
+ size: PropTypes.number,
1704
+ mode: PropTypes.string,
1705
+ color: PropTypes.string,
1706
+ content: PropTypes.string,
1707
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
1708
+ isOpened: PropTypes.bool
1622
1709
  };
1623
1710
 
1624
1711
  var SIZE_CLASS$2 = {
@@ -1670,13 +1757,13 @@ AtAvatar.defaultProps = {
1670
1757
  className: ''
1671
1758
  };
1672
1759
  AtAvatar.propTypes = {
1673
- size: propTypes.oneOf(['large', 'normal', 'small']),
1674
- circle: propTypes.bool,
1675
- text: propTypes.string,
1676
- image: propTypes.string,
1677
- openData: propTypes.object,
1678
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1679
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
1760
+ size: PropTypes.oneOf(['large', 'normal', 'small']),
1761
+ circle: PropTypes.bool,
1762
+ text: PropTypes.string,
1763
+ image: PropTypes.string,
1764
+ openData: PropTypes.object,
1765
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1766
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
1680
1767
  };
1681
1768
 
1682
1769
  var AtBadge = /** @class */ (function (_super) {
@@ -1713,11 +1800,11 @@ AtBadge.defaultProps = {
1713
1800
  className: ''
1714
1801
  };
1715
1802
  AtBadge.propTypes = {
1716
- dot: propTypes.bool,
1717
- value: propTypes.oneOfType([propTypes.string, propTypes.number]),
1718
- maxValue: propTypes.number,
1719
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1720
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
1803
+ dot: PropTypes.bool,
1804
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1805
+ maxValue: PropTypes.number,
1806
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1807
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
1721
1808
  };
1722
1809
 
1723
1810
  var SIZE_CLASS$1 = {
@@ -1807,16 +1894,16 @@ AtButton.defaultProps = {
1807
1894
  appParameter: ''
1808
1895
  };
1809
1896
  AtButton.propTypes = {
1810
- size: propTypes.oneOf(['normal', 'small']),
1811
- type: propTypes.oneOf(['primary', 'secondary', '']),
1812
- circle: propTypes.bool,
1813
- full: propTypes.bool,
1814
- loading: propTypes.bool,
1815
- disabled: propTypes.bool,
1816
- onClick: propTypes.func,
1817
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1818
- formType: propTypes.oneOf(['submit', 'reset', '']),
1819
- openType: propTypes.oneOf([
1897
+ size: PropTypes.oneOf(['normal', 'small']),
1898
+ type: PropTypes.oneOf(['primary', 'secondary', '']),
1899
+ circle: PropTypes.bool,
1900
+ full: PropTypes.bool,
1901
+ loading: PropTypes.bool,
1902
+ disabled: PropTypes.bool,
1903
+ onClick: PropTypes.func,
1904
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1905
+ formType: PropTypes.oneOf(['submit', 'reset', '']),
1906
+ openType: PropTypes.oneOf([
1820
1907
  'contact',
1821
1908
  'share',
1822
1909
  'getUserInfo',
@@ -1829,18 +1916,18 @@ AtButton.propTypes = {
1829
1916
  'contactShare',
1830
1917
  ''
1831
1918
  ]),
1832
- lang: propTypes.string,
1833
- sessionFrom: propTypes.string,
1834
- sendMessageTitle: propTypes.string,
1835
- sendMessagePath: propTypes.string,
1836
- sendMessageImg: propTypes.string,
1837
- showMessageCard: propTypes.bool,
1838
- appParameter: propTypes.string,
1839
- onGetUserInfo: propTypes.func,
1840
- onContact: propTypes.func,
1841
- onGetPhoneNumber: propTypes.func,
1842
- onError: propTypes.func,
1843
- onOpenSetting: propTypes.func
1919
+ lang: PropTypes.string,
1920
+ sessionFrom: PropTypes.string,
1921
+ sendMessageTitle: PropTypes.string,
1922
+ sendMessagePath: PropTypes.string,
1923
+ sendMessageImg: PropTypes.string,
1924
+ showMessageCard: PropTypes.bool,
1925
+ appParameter: PropTypes.string,
1926
+ onGetUserInfo: PropTypes.func,
1927
+ onContact: PropTypes.func,
1928
+ onGetPhoneNumber: PropTypes.func,
1929
+ onError: PropTypes.func,
1930
+ onOpenSetting: PropTypes.func
1844
1931
  };
1845
1932
 
1846
1933
  var AtCard = /** @class */ (function (_super) {
@@ -1893,15 +1980,15 @@ AtCard.defaultProps = {
1893
1980
  extraStyle: {}
1894
1981
  };
1895
1982
  AtCard.propTypes = {
1896
- note: propTypes.string,
1897
- isFull: propTypes.bool,
1898
- thumb: propTypes.string,
1899
- title: propTypes.string,
1900
- extra: propTypes.string,
1901
- icon: propTypes.object,
1902
- onClick: propTypes.func,
1903
- renderIcon: propTypes.oneOfType([propTypes.string, propTypes.element]),
1904
- extraStyle: propTypes.object // 自定义extra样式
1983
+ note: PropTypes.string,
1984
+ isFull: PropTypes.bool,
1985
+ thumb: PropTypes.string,
1986
+ title: PropTypes.string,
1987
+ extra: PropTypes.string,
1988
+ icon: PropTypes.object,
1989
+ onClick: PropTypes.func,
1990
+ renderIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
1991
+ extraStyle: PropTypes.object // 自定义extra样式
1905
1992
  };
1906
1993
 
1907
1994
  var AtCheckbox = /** @class */ (function (_super) {
@@ -1954,11 +2041,11 @@ AtCheckbox.defaultProps = {
1954
2041
  onChange: function () { }
1955
2042
  };
1956
2043
  AtCheckbox.propTypes = {
1957
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1958
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
1959
- options: propTypes.array,
1960
- selectedList: propTypes.array,
1961
- onChange: propTypes.func
2044
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2045
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
2046
+ options: PropTypes.array,
2047
+ selectedList: PropTypes.array,
2048
+ onChange: PropTypes.func
1962
2049
  };
1963
2050
 
1964
2051
  var AtList = /** @class */ (function (_super) {
@@ -1978,7 +2065,7 @@ AtList.defaultProps = {
1978
2065
  hasBorder: true
1979
2066
  };
1980
2067
  AtList.propTypes = {
1981
- hasBorder: propTypes.bool
2068
+ hasBorder: PropTypes.bool
1982
2069
  };
1983
2070
 
1984
2071
  var AtListItem = /** @class */ (function (_super) {
@@ -2054,26 +2141,26 @@ AtListItem.defaultProps = {
2054
2141
  iconInfo: { value: '' }
2055
2142
  };
2056
2143
  AtListItem.propTypes = {
2057
- note: propTypes.string,
2058
- disabled: propTypes.bool,
2059
- title: propTypes.string,
2060
- thumb: propTypes.string,
2061
- onClick: propTypes.func,
2062
- isSwitch: propTypes.bool,
2063
- hasBorder: propTypes.bool,
2064
- switchColor: propTypes.string,
2065
- switchIsCheck: propTypes.bool,
2066
- extraText: propTypes.string,
2067
- extraThumb: propTypes.string,
2068
- onSwitchChange: propTypes.func,
2069
- arrow: propTypes.oneOf(['up', 'down', 'right']),
2070
- iconInfo: propTypes.shape({
2071
- size: propTypes.number,
2072
- value: propTypes.string,
2073
- color: propTypes.string,
2074
- prefixClass: propTypes.string,
2075
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2076
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
2144
+ note: PropTypes.string,
2145
+ disabled: PropTypes.bool,
2146
+ title: PropTypes.string,
2147
+ thumb: PropTypes.string,
2148
+ onClick: PropTypes.func,
2149
+ isSwitch: PropTypes.bool,
2150
+ hasBorder: PropTypes.bool,
2151
+ switchColor: PropTypes.string,
2152
+ switchIsCheck: PropTypes.bool,
2153
+ extraText: PropTypes.string,
2154
+ extraThumb: PropTypes.string,
2155
+ onSwitchChange: PropTypes.func,
2156
+ arrow: PropTypes.oneOf(['up', 'down', 'right']),
2157
+ iconInfo: PropTypes.shape({
2158
+ size: PropTypes.number,
2159
+ value: PropTypes.string,
2160
+ color: PropTypes.string,
2161
+ prefixClass: PropTypes.string,
2162
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2163
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
2077
2164
  })
2078
2165
  };
2079
2166
 
@@ -2163,12 +2250,12 @@ AtDrawer.defaultProps = {
2163
2250
  items: []
2164
2251
  };
2165
2252
  AtDrawer.propTypes = {
2166
- show: propTypes.bool,
2167
- mask: propTypes.bool,
2168
- width: propTypes.string,
2169
- items: propTypes.arrayOf(propTypes.string),
2170
- onItemClick: propTypes.func,
2171
- onClose: propTypes.func
2253
+ show: PropTypes.bool,
2254
+ mask: PropTypes.bool,
2255
+ width: PropTypes.string,
2256
+ items: PropTypes.arrayOf(PropTypes.string),
2257
+ onItemClick: PropTypes.func,
2258
+ onClose: PropTypes.func
2172
2259
  };
2173
2260
 
2174
2261
  var AtFloatLayout = /** @class */ (function (_super) {
@@ -2242,19 +2329,19 @@ AtFloatLayout.defaultProps = {
2242
2329
  scrollWithAnimation: false
2243
2330
  };
2244
2331
  AtFloatLayout.propTypes = {
2245
- title: propTypes.string,
2246
- isOpened: propTypes.bool,
2247
- scrollY: propTypes.bool,
2248
- scrollX: propTypes.bool,
2249
- scrollTop: propTypes.number,
2250
- scrollLeft: propTypes.number,
2251
- upperThreshold: propTypes.number,
2252
- lowerThreshold: propTypes.number,
2253
- scrollWithAnimation: propTypes.bool,
2254
- onClose: propTypes.func,
2255
- onScroll: propTypes.func,
2256
- onScrollToLower: propTypes.func,
2257
- onScrollToUpper: propTypes.func
2332
+ title: PropTypes.string,
2333
+ isOpened: PropTypes.bool,
2334
+ scrollY: PropTypes.bool,
2335
+ scrollX: PropTypes.bool,
2336
+ scrollTop: PropTypes.number,
2337
+ scrollLeft: PropTypes.number,
2338
+ upperThreshold: PropTypes.number,
2339
+ lowerThreshold: PropTypes.number,
2340
+ scrollWithAnimation: PropTypes.bool,
2341
+ onClose: PropTypes.func,
2342
+ onScroll: PropTypes.func,
2343
+ onScrollToLower: PropTypes.func,
2344
+ onScrollToUpper: PropTypes.func
2258
2345
  };
2259
2346
 
2260
2347
  var AtForm = /** @class */ (function (_super) {
@@ -2281,11 +2368,11 @@ AtForm.defaultProps = {
2281
2368
  reportSubmit: false
2282
2369
  };
2283
2370
  AtForm.propTypes = {
2284
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2285
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
2286
- reportSubmit: propTypes.bool,
2287
- onSubmit: propTypes.func,
2288
- onReset: propTypes.func
2371
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2372
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
2373
+ reportSubmit: PropTypes.bool,
2374
+ onSubmit: PropTypes.func,
2375
+ onReset: PropTypes.func
2289
2376
  };
2290
2377
 
2291
2378
  /**
@@ -2989,20 +3076,20 @@ AtGrid.defaultProps = {
2989
3076
  hasBorder: true
2990
3077
  };
2991
3078
  AtGrid.propTypes = {
2992
- mode: propTypes.string,
2993
- onClick: propTypes.func,
2994
- hasBorder: propTypes.bool,
2995
- columnNum: propTypes.number,
2996
- data: propTypes.arrayOf(propTypes.shape({
2997
- image: propTypes.string,
2998
- value: propTypes.string,
2999
- iconInfo: propTypes.shape({
3000
- size: propTypes.number,
3001
- value: propTypes.string,
3002
- color: propTypes.string,
3003
- prefixClass: propTypes.string,
3004
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3005
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
3079
+ mode: PropTypes.string,
3080
+ onClick: PropTypes.func,
3081
+ hasBorder: PropTypes.bool,
3082
+ columnNum: PropTypes.number,
3083
+ data: PropTypes.arrayOf(PropTypes.shape({
3084
+ image: PropTypes.string,
3085
+ value: PropTypes.string,
3086
+ iconInfo: PropTypes.shape({
3087
+ size: PropTypes.number,
3088
+ value: PropTypes.string,
3089
+ color: PropTypes.string,
3090
+ prefixClass: PropTypes.string,
3091
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3092
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
3006
3093
  })
3007
3094
  }))
3008
3095
  };
@@ -3016,7 +3103,7 @@ var AtIcon = /** @class */ (function (_super) {
3016
3103
  this.props.onClick && this.props.onClick(arguments);
3017
3104
  };
3018
3105
  AtIcon.prototype.render = function () {
3019
- var _a = this.props, customStyle = _a.customStyle, className = _a.className, prefixClass = _a.prefixClass, value = _a.value, size = _a.size, color = _a.color;
3106
+ var _a = this.props, _b = _a.customStyle, customStyle = _b === void 0 ? {} : _b, className = _a.className, prefixClass = _a.prefixClass, value = _a.value, size = _a.size, color = _a.color;
3020
3107
  var rootStyle = {
3021
3108
  fontSize: "" + pxTransform(parseInt(String(size)) * 2),
3022
3109
  color: color
@@ -3035,13 +3122,13 @@ AtIcon.defaultProps = {
3035
3122
  size: 24
3036
3123
  };
3037
3124
  AtIcon.propTypes = {
3038
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3039
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3040
- prefixClass: propTypes.string,
3041
- value: propTypes.string,
3042
- color: propTypes.string,
3043
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
3044
- onClick: propTypes.func
3125
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3126
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3127
+ prefixClass: PropTypes.string,
3128
+ value: PropTypes.string,
3129
+ color: PropTypes.string,
3130
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3131
+ onClick: PropTypes.func
3045
3132
  };
3046
3133
 
3047
3134
  function getInputProps(props) {
@@ -3072,21 +3159,20 @@ var AtInput = /** @class */ (function (_super) {
3072
3159
  var _this = _super !== null && _super.apply(this, arguments) || this;
3073
3160
  // TODO: 有待考证是否为合理方式处理 #840
3074
3161
  _this.inputClearing = false;
3075
- _this.handleInput = function (event) {
3076
- return _this.props.onChange(event.detail.value, event);
3077
- };
3162
+ _this.handleInput = function (event) { var _a, _b; return (_b = (_a = _this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, event.detail.value, event); };
3078
3163
  _this.handleFocus = function (event) {
3079
3164
  if (typeof _this.props.onFocus === 'function') {
3080
3165
  _this.props.onFocus(event.detail.value, event);
3081
3166
  }
3082
3167
  };
3083
3168
  _this.handleBlur = function (event) {
3169
+ var _a, _b;
3084
3170
  if (typeof _this.props.onBlur === 'function') {
3085
3171
  _this.props.onBlur(event.detail.value, event);
3086
3172
  }
3087
3173
  if (event.type === 'blur' && !_this.inputClearing) {
3088
3174
  // fix # 583 AtInput 不触发 onChange 的问题
3089
- _this.props.onChange(event.detail.value, event);
3175
+ (_b = (_a = _this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, event.detail.value, event);
3090
3176
  }
3091
3177
  // 还原状态
3092
3178
  _this.inputClearing = false;
@@ -3102,8 +3188,9 @@ var AtInput = /** @class */ (function (_super) {
3102
3188
  }
3103
3189
  };
3104
3190
  _this.handleClearValue = function (event) {
3191
+ var _a, _b;
3105
3192
  _this.inputClearing = true;
3106
- _this.props.onChange('', event);
3193
+ (_b = (_a = _this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, '', event);
3107
3194
  };
3108
3195
  _this.handleKeyboardHeightChange = function (event) {
3109
3196
  if (typeof _this.props.onKeyboardHeightChange === 'function') {
@@ -3118,8 +3205,8 @@ var AtInput = /** @class */ (function (_super) {
3118
3205
  return _this;
3119
3206
  }
3120
3207
  AtInput.prototype.render = function () {
3121
- var _a = this.props, className = _a.className, customStyle = _a.customStyle, name = _a.name, cursorSpacing = _a.cursorSpacing, confirmType = _a.confirmType, cursor = _a.cursor, selectionStart = _a.selectionStart, selectionEnd = _a.selectionEnd, adjustPosition = _a.adjustPosition, border = _a.border, title = _a.title, error = _a.error, clear = _a.clear, placeholder = _a.placeholder, placeholderStyle = _a.placeholderStyle, placeholderClass = _a.placeholderClass, autoFocus = _a.autoFocus, focus = _a.focus, value = _a.value, required = _a.required;
3122
- var _b = getInputProps(this.props), type = _b.type, maxLength = _b.maxLength, disabled = _b.disabled, password = _b.password;
3208
+ var _a = this.props, className = _a.className, customStyle = _a.customStyle, name = _a.name, cursorSpacing = _a.cursorSpacing, confirmType = _a.confirmType, cursor = _a.cursor, selectionStart = _a.selectionStart, selectionEnd = _a.selectionEnd, adjustPosition = _a.adjustPosition, border = _a.border, title = _a.title, error = _a.error, clear = _a.clear, placeholder = _a.placeholder, placeholderStyle = _a.placeholderStyle, placeholderClass = _a.placeholderClass, _b = _a.autoFocus, autoFocus = _b === void 0 ? false : _b, _c = _a.focus, focus = _c === void 0 ? false : _c, value = _a.value, required = _a.required;
3209
+ var _d = getInputProps(this.props), type = _d.type, maxLength = _d.maxLength, disabled = _d.disabled, password = _d.password;
3123
3210
  var rootCls = classnames('at-input', {
3124
3211
  'at-input--without-border': !border
3125
3212
  }, className);
@@ -3127,6 +3214,7 @@ var AtInput = /** @class */ (function (_super) {
3127
3214
  'at-input--error': error,
3128
3215
  'at-input--disabled': disabled
3129
3216
  });
3217
+ // TODO: overlayCls 是否需要移除
3130
3218
  var overlayCls = classnames('at-input__overlay', {
3131
3219
  'at-input__overlay--hidden': !disabled
3132
3220
  });
@@ -3136,7 +3224,7 @@ var AtInput = /** @class */ (function (_super) {
3136
3224
  React.createElement(View, { className: containerCls },
3137
3225
  React.createElement(View, { className: overlayCls, onClick: this.handleClick }),
3138
3226
  title && (React.createElement(Label, { className: "at-input__title " + (required && 'at-input__title--required'), for: name }, title)),
3139
- React.createElement(Input, __assign({ className: 'at-input__input' }, id, { name: name, type: type, disabled: disabled, password: password, placeholderStyle: placeholderStyle, placeholderClass: placeholderCls, placeholder: placeholder, cursorSpacing: cursorSpacing, maxlength: maxLength, autoFocus: autoFocus, focus: focus, value: value, confirmType: confirmType, cursor: cursor, selectionStart: selectionStart, selectionEnd: selectionEnd, adjustPosition: adjustPosition, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onConfirm: this.handleConfirm,
3227
+ React.createElement(Input, __assign({ className: 'at-input__input' }, id, { name: name, type: type, disabled: disabled, password: password, placeholderStyle: placeholderStyle, placeholderClass: placeholderCls, placeholder: placeholder, cursorSpacing: cursorSpacing, maxlength: maxLength, autoFocus: autoFocus }, (focus ? { focus: focus } : {}), { value: value, confirmType: confirmType, cursor: cursor, selectionStart: selectionStart, selectionEnd: selectionEnd, adjustPosition: adjustPosition, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onConfirm: this.handleConfirm,
3140
3228
  // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
3141
3229
  // @ts-ignore
3142
3230
  onKeyboardHeightChange: this.handleKeyboardHeightChange })),
@@ -3178,37 +3266,37 @@ AtInput.defaultProps = {
3178
3266
  onChange: function () { }
3179
3267
  };
3180
3268
  AtInput.propTypes = {
3181
- className: propTypes.oneOfType([propTypes.string, propTypes.array]),
3182
- customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
3183
- value: propTypes.oneOfType([propTypes.string, propTypes.number]),
3184
- name: propTypes.string,
3185
- placeholder: propTypes.string,
3186
- placeholderStyle: propTypes.string,
3187
- placeholderClass: propTypes.string,
3188
- title: propTypes.string,
3189
- confirmType: propTypes.string,
3190
- cursor: propTypes.oneOfType([propTypes.string, propTypes.number]),
3191
- selectionStart: propTypes.oneOfType([propTypes.string, propTypes.number]),
3192
- selectionEnd: propTypes.oneOfType([propTypes.string, propTypes.number]),
3193
- adjustPosition: propTypes.bool,
3194
- cursorSpacing: propTypes.oneOfType([propTypes.string, propTypes.number]),
3195
- maxlength: propTypes.oneOfType([propTypes.string, propTypes.number]),
3196
- maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
3197
- type: propTypes.string,
3198
- disabled: propTypes.bool,
3199
- border: propTypes.bool,
3200
- editable: propTypes.bool,
3201
- error: propTypes.bool,
3202
- clear: propTypes.bool,
3203
- autoFocus: propTypes.bool,
3204
- focus: propTypes.bool,
3205
- onChange: propTypes.func,
3206
- onFocus: propTypes.func,
3207
- onBlur: propTypes.func,
3208
- onConfirm: propTypes.func,
3209
- onErrorClick: propTypes.func,
3210
- onClick: propTypes.func,
3211
- required: propTypes.bool
3269
+ className: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
3270
+ customStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3271
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3272
+ name: PropTypes.string,
3273
+ placeholder: PropTypes.string,
3274
+ placeholderStyle: PropTypes.string,
3275
+ placeholderClass: PropTypes.string,
3276
+ title: PropTypes.string,
3277
+ confirmType: PropTypes.string,
3278
+ cursor: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3279
+ selectionStart: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3280
+ selectionEnd: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3281
+ adjustPosition: PropTypes.bool,
3282
+ cursorSpacing: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3283
+ maxlength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3284
+ maxLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3285
+ type: PropTypes.string,
3286
+ disabled: PropTypes.bool,
3287
+ border: PropTypes.bool,
3288
+ editable: PropTypes.bool,
3289
+ error: PropTypes.bool,
3290
+ clear: PropTypes.bool,
3291
+ autoFocus: PropTypes.bool,
3292
+ focus: PropTypes.bool,
3293
+ onChange: PropTypes.func,
3294
+ onFocus: PropTypes.func,
3295
+ onBlur: PropTypes.func,
3296
+ onConfirm: PropTypes.func,
3297
+ onErrorClick: PropTypes.func,
3298
+ onClick: PropTypes.func,
3299
+ required: PropTypes.bool
3212
3300
  };
3213
3301
 
3214
3302
  /**
@@ -3453,7 +3541,7 @@ var AtInputNumber = /** @class */ (function (_super) {
3453
3541
  return AtInputNumber;
3454
3542
  }(React.Component));
3455
3543
  AtInputNumber.defaultProps = {
3456
- customStyle: '',
3544
+ customStyle: {},
3457
3545
  className: '',
3458
3546
  disabled: false,
3459
3547
  disabledInput: false,
@@ -3468,20 +3556,20 @@ AtInputNumber.defaultProps = {
3468
3556
  onChange: function () { }
3469
3557
  };
3470
3558
  AtInputNumber.propTypes = {
3471
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3472
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3473
- value: propTypes.oneOfType([propTypes.number, propTypes.string]),
3474
- type: propTypes.oneOf(['number', 'digit']),
3475
- disabled: propTypes.bool,
3476
- width: propTypes.number,
3477
- min: propTypes.number,
3478
- max: propTypes.number,
3479
- step: propTypes.number,
3480
- size: propTypes.oneOf(['normal', 'large']),
3481
- disabledInput: propTypes.bool,
3482
- onChange: propTypes.func,
3483
- onBlur: propTypes.func,
3484
- onErrorInput: propTypes.func
3559
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3560
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3561
+ value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
3562
+ type: PropTypes.oneOf(['number', 'digit']),
3563
+ disabled: PropTypes.bool,
3564
+ width: PropTypes.number,
3565
+ min: PropTypes.number,
3566
+ max: PropTypes.number,
3567
+ step: PropTypes.number,
3568
+ size: PropTypes.oneOf(['normal', 'large']),
3569
+ disabledInput: PropTypes.bool,
3570
+ onChange: PropTypes.func,
3571
+ onBlur: PropTypes.func,
3572
+ onErrorInput: PropTypes.func
3485
3573
  };
3486
3574
 
3487
3575
  var AtModalAction = /** @class */ (function (_super) {
@@ -3502,7 +3590,7 @@ AtModalAction.defaultProps = {
3502
3590
  isSimple: false
3503
3591
  };
3504
3592
  AtModalAction.propTypes = {
3505
- isSimple: propTypes.bool
3593
+ isSimple: PropTypes.bool
3506
3594
  };
3507
3595
 
3508
3596
  var AtModalContent = /** @class */ (function (_super) {
@@ -3598,7 +3686,7 @@ var AtModal = /** @class */ (function (_super) {
3598
3686
  // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
3599
3687
  // @ts-ignore
3600
3688
  dangerouslySetInnerHTML: {
3601
- __html: content.replace(/\n/g, '<br/>')
3689
+ __html: content.replace(/\\n/g, '<br/>')
3602
3690
  } })) : (React.createElement(Text, null, content))))),
3603
3691
  isRenderAction && (React.createElement(AtModalAction, { isSimple: true },
3604
3692
  cancelText && (React.createElement(Button, { onClick: this.handleCancel }, cancelText)),
@@ -3615,15 +3703,15 @@ AtModal.defaultProps = {
3615
3703
  closeOnClickOverlay: true
3616
3704
  };
3617
3705
  AtModal.propTypes = {
3618
- title: propTypes.string,
3619
- isOpened: propTypes.bool,
3620
- onCancel: propTypes.func,
3621
- onConfirm: propTypes.func,
3622
- onClose: propTypes.func,
3623
- content: propTypes.string,
3624
- closeOnClickOverlay: propTypes.bool,
3625
- cancelText: propTypes.string,
3626
- confirmText: propTypes.string
3706
+ title: PropTypes.string,
3707
+ isOpened: PropTypes.bool,
3708
+ onCancel: PropTypes.func,
3709
+ onConfirm: PropTypes.func,
3710
+ onClose: PropTypes.func,
3711
+ content: PropTypes.string,
3712
+ closeOnClickOverlay: PropTypes.bool,
3713
+ cancelText: PropTypes.string,
3714
+ confirmText: PropTypes.string
3627
3715
  };
3628
3716
 
3629
3717
  var AtNavBar = /** @class */ (function (_super) {
@@ -3710,22 +3798,22 @@ AtNavBar.defaultProps = {
3710
3798
  rightSecondIconType: ''
3711
3799
  };
3712
3800
  AtNavBar.propTypes = {
3713
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3714
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3715
- fixed: propTypes.bool,
3716
- border: propTypes.bool,
3717
- color: propTypes.string,
3718
- leftIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
3719
- leftText: propTypes.string,
3720
- title: propTypes.string,
3721
- rightFirstIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
3722
- rightSecondIconType: propTypes.oneOfType([
3723
- propTypes.string,
3724
- propTypes.object
3801
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3802
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3803
+ fixed: PropTypes.bool,
3804
+ border: PropTypes.bool,
3805
+ color: PropTypes.string,
3806
+ leftIconType: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3807
+ leftText: PropTypes.string,
3808
+ title: PropTypes.string,
3809
+ rightFirstIconType: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3810
+ rightSecondIconType: PropTypes.oneOfType([
3811
+ PropTypes.string,
3812
+ PropTypes.object
3725
3813
  ]),
3726
- onClickLeftIcon: propTypes.func,
3727
- onClickRgIconSt: propTypes.func,
3728
- onClickRgIconNd: propTypes.func
3814
+ onClickLeftIcon: PropTypes.func,
3815
+ onClickRgIconSt: PropTypes.func,
3816
+ onClickRgIconNd: PropTypes.func
3729
3817
  };
3730
3818
 
3731
3819
  var AtNoticebar = /** @class */ (function (_super) {
@@ -3878,16 +3966,16 @@ AtNoticebar.defaultProps = {
3878
3966
  customStyle: {}
3879
3967
  };
3880
3968
  AtNoticebar.propTypes = {
3881
- close: propTypes.bool,
3882
- single: propTypes.bool,
3883
- marquee: propTypes.bool,
3884
- speed: propTypes.number,
3885
- moreText: propTypes.string,
3886
- showMore: propTypes.bool,
3887
- icon: propTypes.string,
3888
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3889
- onClose: propTypes.func,
3890
- onGotoMore: propTypes.func
3969
+ close: PropTypes.bool,
3970
+ single: PropTypes.bool,
3971
+ marquee: PropTypes.bool,
3972
+ speed: PropTypes.number,
3973
+ moreText: PropTypes.string,
3974
+ showMore: PropTypes.bool,
3975
+ icon: PropTypes.string,
3976
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3977
+ onClose: PropTypes.func,
3978
+ onGotoMore: PropTypes.func
3891
3979
  };
3892
3980
 
3893
3981
  var MIN_MAXPAGE = 1;
@@ -3996,12 +4084,12 @@ AtPagination.defaultProps = {
3996
4084
  customStyle: {}
3997
4085
  };
3998
4086
  AtPagination.propTypes = {
3999
- current: propTypes.number,
4000
- total: propTypes.number,
4001
- pageSize: propTypes.number,
4002
- icon: propTypes.bool,
4003
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4004
- onPageChange: propTypes.func
4087
+ current: PropTypes.number,
4088
+ total: PropTypes.number,
4089
+ pageSize: PropTypes.number,
4090
+ icon: PropTypes.bool,
4091
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4092
+ onPageChange: PropTypes.func
4005
4093
  };
4006
4094
 
4007
4095
  var AtProgress = /** @class */ (function (_super) {
@@ -4044,11 +4132,11 @@ var AtProgress = /** @class */ (function (_super) {
4044
4132
  return AtProgress;
4045
4133
  }(React.Component));
4046
4134
  AtProgress.propTypes = {
4047
- color: propTypes.string,
4048
- status: propTypes.string,
4049
- percent: propTypes.number,
4050
- strokeWidth: propTypes.number,
4051
- isHidePercent: propTypes.bool
4135
+ color: PropTypes.string,
4136
+ status: PropTypes.string,
4137
+ percent: PropTypes.number,
4138
+ strokeWidth: PropTypes.number,
4139
+ isHidePercent: PropTypes.bool
4052
4140
  };
4053
4141
 
4054
4142
  var AtRadio = /** @class */ (function (_super) {
@@ -4089,11 +4177,11 @@ AtRadio.defaultProps = {
4089
4177
  onClick: function () { }
4090
4178
  };
4091
4179
  AtRadio.propTypes = {
4092
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4093
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4094
- value: propTypes.string,
4095
- options: propTypes.array,
4096
- onClick: propTypes.func
4180
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4181
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4182
+ value: PropTypes.string,
4183
+ options: PropTypes.array,
4184
+ onClick: PropTypes.func
4097
4185
  };
4098
4186
 
4099
4187
  var AtRate = /** @class */ (function (_super) {
@@ -4144,13 +4232,13 @@ AtRate.defaultProps = {
4144
4232
  margin: 5
4145
4233
  };
4146
4234
  AtRate.propTypes = {
4147
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4148
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4149
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
4150
- value: propTypes.number,
4151
- max: propTypes.number,
4152
- margin: propTypes.number,
4153
- onChange: propTypes.func
4235
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4236
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4237
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4238
+ value: PropTypes.number,
4239
+ max: PropTypes.number,
4240
+ margin: PropTypes.number,
4241
+ onChange: PropTypes.func
4154
4242
  };
4155
4243
 
4156
4244
  var AtSegmentedControl = /** @class */ (function (_super) {
@@ -4203,14 +4291,14 @@ AtSegmentedControl.defaultProps = {
4203
4291
  onClick: function () { }
4204
4292
  };
4205
4293
  AtSegmentedControl.propTypes = {
4206
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4207
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4208
- current: propTypes.number,
4209
- color: propTypes.string,
4210
- fontSize: propTypes.oneOfType([propTypes.string, propTypes.number]),
4211
- disabled: propTypes.bool,
4212
- values: propTypes.array,
4213
- onClick: propTypes.func
4294
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4295
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4296
+ current: PropTypes.number,
4297
+ color: PropTypes.string,
4298
+ fontSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4299
+ disabled: PropTypes.bool,
4300
+ values: PropTypes.array,
4301
+ onClick: PropTypes.func
4214
4302
  };
4215
4303
 
4216
4304
  var AtSwitch = /** @class */ (function (_super) {
@@ -4250,14 +4338,14 @@ AtSwitch.defaultProps = {
4250
4338
  checked: false
4251
4339
  };
4252
4340
  AtSwitch.propTypes = {
4253
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4254
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4255
- title: propTypes.string,
4256
- color: propTypes.string,
4257
- checked: propTypes.bool,
4258
- border: propTypes.bool,
4259
- disabled: propTypes.bool,
4260
- onChange: propTypes.func
4341
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4342
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4343
+ title: PropTypes.string,
4344
+ color: PropTypes.string,
4345
+ checked: PropTypes.bool,
4346
+ border: PropTypes.bool,
4347
+ disabled: PropTypes.bool,
4348
+ onChange: PropTypes.func
4261
4349
  };
4262
4350
 
4263
4351
  var AtTabBar = /** @class */ (function (_super) {
@@ -4346,17 +4434,17 @@ AtTabBar.defaultProps = {
4346
4434
  onClick: function () { }
4347
4435
  };
4348
4436
  AtTabBar.propTypes = {
4349
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4350
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4351
- fixed: propTypes.bool,
4352
- backgroundColor: propTypes.string,
4353
- current: propTypes.number,
4354
- iconSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
4355
- fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
4356
- color: propTypes.string,
4357
- selectedColor: propTypes.string,
4358
- tabList: propTypes.array,
4359
- onClick: propTypes.func
4437
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4438
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4439
+ fixed: PropTypes.bool,
4440
+ backgroundColor: PropTypes.string,
4441
+ current: PropTypes.number,
4442
+ iconSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
4443
+ fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
4444
+ color: PropTypes.string,
4445
+ selectedColor: PropTypes.string,
4446
+ tabList: PropTypes.array,
4447
+ onClick: PropTypes.func
4360
4448
  };
4361
4449
 
4362
4450
  var ENV$3 = Taro.getEnv();
@@ -4381,7 +4469,7 @@ var AtTabs = /** @class */ (function (_super) {
4381
4469
  }
4382
4470
  case Taro.ENV_TYPE.WEB: {
4383
4471
  var index = Math.max(idx - 1, 0);
4384
- var prevTabItem = _this.tabHeaderRef.childNodes[index];
4472
+ var prevTabItem = _this.tabHeaderRef.children[index];
4385
4473
  prevTabItem &&
4386
4474
  _this.setState({
4387
4475
  _scrollTop: prevTabItem.offsetTop,
@@ -4541,16 +4629,16 @@ AtTabs.defaultProps = {
4541
4629
  onClick: function () { }
4542
4630
  };
4543
4631
  AtTabs.propTypes = {
4544
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4545
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4546
- height: propTypes.string,
4547
- tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
4548
- current: propTypes.number,
4549
- swipeable: propTypes.bool,
4550
- scroll: propTypes.bool,
4551
- animated: propTypes.bool,
4552
- tabList: propTypes.array,
4553
- onClick: propTypes.func
4632
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4633
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4634
+ height: PropTypes.string,
4635
+ tabDirection: PropTypes.oneOf(['horizontal', 'vertical']),
4636
+ current: PropTypes.number,
4637
+ swipeable: PropTypes.bool,
4638
+ scroll: PropTypes.bool,
4639
+ animated: PropTypes.bool,
4640
+ tabList: PropTypes.array,
4641
+ onClick: PropTypes.func
4554
4642
  };
4555
4643
 
4556
4644
  var AtTabsPane = /** @class */ (function (_super) {
@@ -4577,11 +4665,11 @@ AtTabsPane.defaultProps = {
4577
4665
  current: 0
4578
4666
  };
4579
4667
  AtTabsPane.propTypes = {
4580
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4581
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4582
- tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
4583
- index: propTypes.number,
4584
- current: propTypes.number
4668
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4669
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4670
+ tabDirection: PropTypes.oneOf(['horizontal', 'vertical']),
4671
+ index: PropTypes.number,
4672
+ current: PropTypes.number
4585
4673
  };
4586
4674
 
4587
4675
  var SIZE_CLASS = {
@@ -4631,14 +4719,14 @@ AtTag.defaultProps = {
4631
4719
  customStyle: {}
4632
4720
  };
4633
4721
  AtTag.propTypes = {
4634
- size: propTypes.oneOf(['normal', 'small']),
4635
- type: propTypes.oneOf(['', 'primary']),
4636
- name: propTypes.string,
4637
- circle: propTypes.bool,
4638
- active: propTypes.bool,
4639
- disabled: propTypes.bool,
4640
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4641
- onClick: propTypes.func
4722
+ size: PropTypes.oneOf(['normal', 'small']),
4723
+ type: PropTypes.oneOf(['', 'primary']),
4724
+ name: PropTypes.string,
4725
+ circle: PropTypes.bool,
4726
+ active: PropTypes.bool,
4727
+ disabled: PropTypes.bool,
4728
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4729
+ onClick: PropTypes.func
4642
4730
  };
4643
4731
 
4644
4732
  function getMaxLength(maxLength, textOverflowForbidden) {
@@ -4708,29 +4796,29 @@ AtTextarea.defaultProps = {
4708
4796
  onChange: function () { }
4709
4797
  };
4710
4798
  AtTextarea.propTypes = {
4711
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4712
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4713
- value: propTypes.string.isRequired,
4714
- cursorSpacing: propTypes.number,
4715
- maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
4716
- placeholderClass: propTypes.string,
4717
- placeholderStyle: propTypes.string,
4718
- placeholder: propTypes.string,
4719
- disabled: propTypes.bool,
4720
- autoFocus: propTypes.bool,
4721
- focus: propTypes.bool,
4722
- showConfirmBar: propTypes.bool,
4723
- selectionStart: propTypes.number,
4724
- selectionEnd: propTypes.number,
4725
- count: propTypes.bool,
4726
- textOverflowForbidden: propTypes.bool,
4727
- fixed: propTypes.bool,
4728
- height: propTypes.oneOfType([propTypes.string, propTypes.number]),
4729
- onLinechange: propTypes.func,
4730
- onChange: propTypes.func.isRequired,
4731
- onFocus: propTypes.func,
4732
- onBlur: propTypes.func,
4733
- onConfirm: propTypes.func
4799
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4800
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4801
+ value: PropTypes.string.isRequired,
4802
+ cursorSpacing: PropTypes.number,
4803
+ maxLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4804
+ placeholderClass: PropTypes.string,
4805
+ placeholderStyle: PropTypes.string,
4806
+ placeholder: PropTypes.string,
4807
+ disabled: PropTypes.bool,
4808
+ autoFocus: PropTypes.bool,
4809
+ focus: PropTypes.bool,
4810
+ showConfirmBar: PropTypes.bool,
4811
+ selectionStart: PropTypes.number,
4812
+ selectionEnd: PropTypes.number,
4813
+ count: PropTypes.bool,
4814
+ textOverflowForbidden: PropTypes.bool,
4815
+ fixed: PropTypes.bool,
4816
+ height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4817
+ onLinechange: PropTypes.func,
4818
+ onChange: PropTypes.func.isRequired,
4819
+ onFocus: PropTypes.func,
4820
+ onBlur: PropTypes.func,
4821
+ onConfirm: PropTypes.func
4734
4822
  };
4735
4823
 
4736
4824
  var AtTimeline = /** @class */ (function (_super) {
@@ -4781,9 +4869,9 @@ AtTimeline.defaultProps = {
4781
4869
  customStyle: {}
4782
4870
  };
4783
4871
  AtTimeline.propTypes = {
4784
- pending: propTypes.bool,
4785
- items: propTypes.arrayOf(propTypes.object),
4786
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string])
4872
+ pending: PropTypes.bool,
4873
+ items: PropTypes.arrayOf(PropTypes.object),
4874
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string])
4787
4875
  };
4788
4876
 
4789
4877
  var error = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAGwtJREFUeAHtnUusndV1x7mAIYABG/MUYGzLBCUtFHcCtB3YZgISGaCodOQ4QGGSoJAgV5FiOTAALBowY6tFASoUmYyS0EoRYPEonUUKRETYKNhWEnCwFZvWEIzB/f3v/T773HPP2Wt/79da0v/uc85+rfVfa93vsff5zswpLpUwcPz48aUMvAKsTMpLKC8Ey0bKc3h9JjhjpOTlKUfBpyPlEV4fBAdGyv283gPeUzkzM/NnSpeSGZgpebzBDUciXITR1yW4NilXU54P6pTDTPYueBO8lZRvkjgf8tolJwOeIBmJIyGuoMs6sD7B8oxD1N18LxO+DHaqJGH+ULcCXZ7PE8TwXnKESBNC5ZeNLm2v3oWCacLs9CNM2F2eIBP4ISlu4uM7wM3gr0FfeTqObb8BL4EdJMv/ULqMMNBXx4+YGPeSpFhJyw0JdA0xRNE1zLMCyaKL/8HLoBOEpNCFtI4USox/AIPmA/tT0ZHldaBk0ZFFNwAGKYMLCJLiNDx9K/gG+Br4EnCZzsBfqPo5eAb8J8nyxfSm/asZTIKQGItwn44U3wdX1+TK/2WedxLsptTaxehaxiHej653aP1DMrouonWSJSBdQ9E6yqVANlyT4FzKOkQ2bAU6BfusjgmbnqP3CUJi6AhxN/gXsLwiwvcw7tsgTYbZkiB6v6L55g2LjZfxQZosaflVPlsxr2F5b/Yx1GPg37FRRxiXrjFA0CwGm8D7oGzZx4BPg43gyrZyI90SHaWrdC5bxK04XtxWDlyvMQZw1lKwBRwEZcl+BvoJuBd09g6XdE9skC2yqSwR1+Jc22tc2sgAzjkN3AcOgTJE/x0fB2vaaG8ZOsk28AQo6ygr7uUD3QhxaQsDOORG8CtQVD5mgOfArWAwTpatic2yXRwUFfnihrbEx2D1wAnLwHbwBcgr6rsT3AXquhvUWp/BwXkJFz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/UX0IlCFa2X0crBmbqjdvZVtio2wtQ8S9fDCYfy6dCwacsxT8EBwEZcl+BvoJuBes7hwpicLSPbFBtsimskRcaz3Evx7dleDAWYvBJlDWf0eGOiH7ePU02AiubCsn0i3R8ceU0rlsEbfieHFbOSiqV+/vLOA8raT/M9gElhclbEr/PXz+NnhnFDMzM+/zvnLBxsuY5JoxfJX3K0AVso9B/xX8Gzb+pYoJ2jJm7xMkJZogWsRrbaX+Prg6/bzi8iPG3wWUOCr3g4PgQFIeovwUHB0peXnKGeDMkVKLm7obdGFS6huVXwZKCpXngTpkN5NsBc+SGJ/VMWHTcwwmQVKiSRRdQN4KvgG+BnyvFiQEREeIn4NnwH+RGJ8H2vauanAJMupBkkX/mf8RKFn+HgyaD+xP5Tgv/hsoKZ4nKXSkG6R4QCRuJ1lW8lKnYEJn71Ql5uQt3qXjs+A/SIrf5R2kT/08QSZ4k2S5iY//CdwM/gr0lScdKX4DXgY7SIo3KF1GGOir40dMLPaSZNGmxnVgfYK6LvCLKT69ty60lRDCTpLiw+lNvcYTJGMMkDBX0GU0YZZnHKLu5rolO5oQv69bgS7P5wlS0HvJEeY6hklxLa91DXN+waGzdj9MB11DvAXeTOFHCJgoIJ4gBcgLdSVxtO1iBViZlJdSai1jdD1DK9Ba8xDSdQ9ezlsX0RrJ/4HR9RO9/gDsAe+pJBH+TOlSMgP/D3W7PKH+6NniAAAAAElFTkSuQmCC";
@@ -4904,15 +4992,15 @@ AtToast.defaultProps = {
4904
4992
  isOpened: false
4905
4993
  };
4906
4994
  AtToast.propTypes = {
4907
- text: propTypes.string,
4908
- icon: propTypes.string,
4909
- hasMask: propTypes.bool,
4910
- image: propTypes.string,
4911
- isOpened: propTypes.bool,
4912
- duration: propTypes.number,
4913
- status: propTypes.oneOf(['', 'error', 'loading', 'success']),
4914
- onClick: propTypes.func,
4915
- onClose: propTypes.func
4995
+ text: PropTypes.string,
4996
+ icon: PropTypes.string,
4997
+ hasMask: PropTypes.bool,
4998
+ image: PropTypes.string,
4999
+ isOpened: PropTypes.bool,
5000
+ duration: PropTypes.number,
5001
+ status: PropTypes.oneOf(['', 'error', 'loading', 'success']),
5002
+ onClick: PropTypes.func,
5003
+ onClose: PropTypes.func
4916
5004
  };
4917
5005
 
4918
5006
  var AtAccordion = /** @class */ (function (_super) {
@@ -5017,15 +5105,15 @@ AtAccordion.defaultProps = {
5017
5105
  isAnimation: true
5018
5106
  };
5019
5107
  AtAccordion.propTypes = {
5020
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5021
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5022
- open: propTypes.bool,
5023
- isAnimation: propTypes.bool,
5024
- title: propTypes.string,
5025
- note: propTypes.string,
5026
- icon: propTypes.object,
5027
- hasBorder: propTypes.bool,
5028
- onClick: propTypes.func
5108
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5109
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5110
+ open: PropTypes.bool,
5111
+ isAnimation: PropTypes.bool,
5112
+ title: PropTypes.string,
5113
+ note: PropTypes.string,
5114
+ icon: PropTypes.object,
5115
+ hasBorder: PropTypes.bool,
5116
+ onClick: PropTypes.func
5029
5117
  };
5030
5118
 
5031
5119
  var AtSlider = /** @class */ (function (_super) {
@@ -5088,20 +5176,20 @@ AtSlider.defaultProps = {
5088
5176
  showValue: false
5089
5177
  };
5090
5178
  AtSlider.propTypes = {
5091
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5092
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5093
- min: propTypes.number,
5094
- max: propTypes.number,
5095
- step: propTypes.number,
5096
- value: propTypes.number,
5097
- disabled: propTypes.bool,
5098
- activeColor: propTypes.string,
5099
- backgroundColor: propTypes.string,
5100
- blockSize: propTypes.number,
5101
- blockColor: propTypes.string,
5102
- showValue: propTypes.bool,
5103
- onChange: propTypes.func,
5104
- onChanging: propTypes.func
5179
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5180
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5181
+ min: PropTypes.number,
5182
+ max: PropTypes.number,
5183
+ step: PropTypes.number,
5184
+ value: PropTypes.number,
5185
+ disabled: PropTypes.bool,
5186
+ activeColor: PropTypes.string,
5187
+ backgroundColor: PropTypes.string,
5188
+ blockSize: PropTypes.number,
5189
+ blockColor: PropTypes.string,
5190
+ showValue: PropTypes.bool,
5191
+ onChange: PropTypes.func,
5192
+ onChanging: PropTypes.func
5105
5193
  };
5106
5194
 
5107
5195
  var AtSwipeActionOptions = /** @class */ (function (_super) {
@@ -5143,7 +5231,8 @@ var AtSwipeAction = /** @class */ (function (_super) {
5143
5231
  }
5144
5232
  };
5145
5233
  _this.onTouchEnd = function (e) {
5146
- if (_this.moveX === -_this.maxOffsetSize) {
5234
+ var maxOffsetSize = _this.state.maxOffsetSize;
5235
+ if (_this.moveX === -maxOffsetSize) {
5147
5236
  _this._reset(true);
5148
5237
  _this.handleOpened(e);
5149
5238
  return;
@@ -5158,7 +5247,7 @@ var AtSwipeAction = /** @class */ (function (_super) {
5158
5247
  _this.handleClosed(e);
5159
5248
  return;
5160
5249
  }
5161
- if (Math.abs(_this.moveX) < _this.maxOffsetSize * _this.moveRatio) {
5250
+ if (Math.abs(_this.moveX) < maxOffsetSize * _this.moveRatio) {
5162
5251
  _this._reset(false);
5163
5252
  _this.handleClosed(e);
5164
5253
  }
@@ -5170,41 +5259,95 @@ var AtSwipeAction = /** @class */ (function (_super) {
5170
5259
  _this.onChange = function (e) {
5171
5260
  _this.moveX = e.detail.x;
5172
5261
  };
5173
- var isOpened = props.isOpened, maxDistance = props.maxDistance, areaWidth = props.areaWidth, moveRatio = props.moveRatio;
5174
- _this.maxOffsetSize = maxDistance;
5262
+ var isOpened = props.isOpened, moveRatio = props.moveRatio;
5175
5263
  _this.state = {
5176
5264
  componentId: uuid(),
5177
5265
  // eslint-disable-next-line no-extra-boolean-cast
5178
- offsetSize: !!isOpened ? -_this.maxOffsetSize : 0,
5266
+ offsetSize: 0,
5179
5267
  _isOpened: !!isOpened,
5180
- needAnimation: false
5268
+ needAnimation: false,
5269
+ eleWidth: 0,
5270
+ maxOffsetSize: 0
5181
5271
  };
5182
5272
  _this.moveX = _this.state.offsetSize;
5183
- _this.eleWidth = areaWidth;
5184
5273
  _this.moveRatio = moveRatio || 0.5;
5185
5274
  return _this;
5186
5275
  }
5276
+ AtSwipeAction.prototype.componentDidMount = function () {
5277
+ this.getAreaWidth();
5278
+ };
5279
+ // 当 eleWidth 发生变化时,需要重新计算 maxOffsetSize
5280
+ AtSwipeAction.prototype.componentDidUpdate = function (_, prevState) {
5281
+ var eleWidth = this.state.eleWidth;
5282
+ if (prevState.eleWidth !== eleWidth) {
5283
+ this.getMaxOffsetSize();
5284
+ }
5285
+ };
5187
5286
  AtSwipeAction.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
5188
5287
  var isOpened = nextProps.isOpened;
5189
- var _isOpened = this.state._isOpened;
5288
+ var _a = this.state, _isOpened = _a._isOpened, maxOffsetSize = _a.maxOffsetSize;
5190
5289
  if (isOpened !== _isOpened) {
5191
- this.moveX = isOpened ? 0 : this.maxOffsetSize;
5290
+ this.moveX = isOpened ? 0 : maxOffsetSize;
5192
5291
  this._reset(!!isOpened); // TODO: Check behavior
5193
5292
  }
5194
5293
  };
5294
+ /**
5295
+ * 获取滑动区域宽度
5296
+ */
5297
+ AtSwipeAction.prototype.getAreaWidth = function () {
5298
+ return __awaiter(this, void 0, void 0, function () {
5299
+ var systemInfo;
5300
+ return __generator(this, function (_a) {
5301
+ switch (_a.label) {
5302
+ case 0: return [4 /*yield*/, Taro.getSystemInfo()];
5303
+ case 1:
5304
+ systemInfo = _a.sent();
5305
+ this.setState({
5306
+ eleWidth: systemInfo.windowWidth
5307
+ });
5308
+ return [2 /*return*/];
5309
+ }
5310
+ });
5311
+ });
5312
+ };
5313
+ /**
5314
+ * 获取最大偏移量
5315
+ */
5316
+ AtSwipeAction.prototype.getMaxOffsetSize = function () {
5317
+ return __awaiter(this, void 0, void 0, function () {
5318
+ var componentId, actionOptionsRect, maxOffsetSize;
5319
+ return __generator(this, function (_a) {
5320
+ switch (_a.label) {
5321
+ case 0:
5322
+ componentId = this.state.componentId;
5323
+ return [4 /*yield*/, delayGetClientRect({
5324
+ selectorStr: "#swipeActionOptions-" + componentId
5325
+ })];
5326
+ case 1:
5327
+ actionOptionsRect = _a.sent();
5328
+ maxOffsetSize = actionOptionsRect[0].width;
5329
+ this.setState({
5330
+ maxOffsetSize: maxOffsetSize
5331
+ });
5332
+ return [2 /*return*/];
5333
+ }
5334
+ });
5335
+ });
5336
+ };
5195
5337
  AtSwipeAction.prototype._reset = function (isOpened) {
5196
5338
  var _this = this;
5197
5339
  if (isOpened) {
5340
+ var maxOffsetSize = this.state.maxOffsetSize;
5198
5341
  if (process.env.TARO_ENV === 'jd') {
5199
5342
  this.setState({
5200
5343
  _isOpened: true,
5201
- offsetSize: -this.maxOffsetSize + 0.01
5344
+ offsetSize: -maxOffsetSize + 0.01
5202
5345
  });
5203
5346
  }
5204
5347
  else {
5205
5348
  this.setState({
5206
5349
  _isOpened: true,
5207
- offsetSize: -this.maxOffsetSize
5350
+ offsetSize: -maxOffsetSize
5208
5351
  });
5209
5352
  }
5210
5353
  }
@@ -5221,24 +5364,21 @@ var AtSwipeAction = /** @class */ (function (_super) {
5221
5364
  };
5222
5365
  AtSwipeAction.prototype.render = function () {
5223
5366
  var _this = this;
5224
- var _a = this.state, componentId = _a.componentId, offsetSize = _a.offsetSize;
5225
- var options = this.props.options;
5367
+ var _a = this.state, componentId = _a.componentId, maxOffsetSize = _a.maxOffsetSize, eleWidth = _a.eleWidth, offsetSize = _a.offsetSize;
5368
+ var _b = this.props, options = _b.options, disabled = _b.disabled;
5226
5369
  var rootClass = classnames('at-swipe-action', this.props.className);
5227
5370
  return (React.createElement(View, { id: "swipeAction-" + componentId, className: rootClass, style: {
5228
- width: this.eleWidth + "px"
5371
+ width: eleWidth + "px"
5229
5372
  } },
5230
5373
  React.createElement(MovableArea, { className: 'at-swipe-action__area', style: {
5231
- width: this.eleWidth + this.maxOffsetSize + "px",
5232
- transform: "translate(-" + this.maxOffsetSize + "px, 0)"
5374
+ width: eleWidth + "px"
5233
5375
  } },
5234
- React.createElement(MovableView, { className: 'at-swipe-action__content', direction: 'horizontal', damping: 50, x: offsetSize, onTouchEnd: this.onTouchEnd, onChange: this.onChange, style: {
5235
- width: this.eleWidth + "px",
5236
- left: this.maxOffsetSize + "px"
5376
+ React.createElement(MovableView, { className: 'at-swipe-action__content', direction: 'horizontal', damping: 50, x: offsetSize, onTouchEnd: this.onTouchEnd, onChange: this.onChange, disabled: disabled, style: {
5377
+ width: eleWidth + maxOffsetSize + "px"
5237
5378
  } },
5238
5379
  this.props.children,
5239
5380
  Array.isArray(options) && options.length > 0 ? (React.createElement(AtSwipeActionOptions, { options: options, componentId: componentId, customStyle: {
5240
- transform: "translate(" + this.maxOffsetSize + "px, 0)",
5241
- opacity: 1
5381
+ opacity: maxOffsetSize ? 1 : 0
5242
5382
  } }, options.map(function (item, key) { return (React.createElement(View, { key: item.text + "-" + key, style: item.style, onClick: function (e) { return _this.handleClick(item, key, e); }, className: classnames('at-swipe-action__option', item.className) },
5243
5383
  React.createElement(Text, { className: 'option__text' }, item.text))); }))) : null))));
5244
5384
  };
@@ -5253,21 +5393,21 @@ AtSwipeAction.defaultProps = {
5253
5393
  areaWidth: 0
5254
5394
  };
5255
5395
  AtSwipeAction.propTypes = {
5256
- isOpened: propTypes.bool,
5257
- disabled: propTypes.bool,
5258
- autoClose: propTypes.bool,
5259
- options: propTypes.arrayOf(propTypes.shape({
5260
- text: propTypes.string,
5261
- style: propTypes.oneOfType([propTypes.object, propTypes.string]),
5262
- className: propTypes.oneOfType([
5263
- propTypes.object,
5264
- propTypes.string,
5265
- propTypes.array
5396
+ isOpened: PropTypes.bool,
5397
+ disabled: PropTypes.bool,
5398
+ autoClose: PropTypes.bool,
5399
+ options: PropTypes.arrayOf(PropTypes.shape({
5400
+ text: PropTypes.string,
5401
+ style: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5402
+ className: PropTypes.oneOfType([
5403
+ PropTypes.object,
5404
+ PropTypes.string,
5405
+ PropTypes.array
5266
5406
  ])
5267
5407
  })),
5268
- onClick: propTypes.func,
5269
- onOpened: propTypes.func,
5270
- onClosed: propTypes.func
5408
+ onClick: PropTypes.func,
5409
+ onOpened: PropTypes.func,
5410
+ onClosed: PropTypes.func
5271
5411
  };
5272
5412
 
5273
5413
  var AtSearchBar = /** @class */ (function (_super) {
@@ -5369,21 +5509,21 @@ AtSearchBar.defaultProps = {
5369
5509
  onChange: function () { }
5370
5510
  };
5371
5511
  AtSearchBar.propTypes = {
5372
- value: propTypes.string,
5373
- placeholder: propTypes.string,
5374
- maxLength: propTypes.number,
5375
- fixed: propTypes.bool,
5376
- focus: propTypes.bool,
5377
- disabled: propTypes.bool,
5378
- showActionButton: propTypes.bool,
5379
- actionName: propTypes.string,
5380
- inputType: propTypes.oneOf(['text', 'number', 'idcard', 'digit']),
5381
- onChange: propTypes.func,
5382
- onFocus: propTypes.func,
5383
- onBlur: propTypes.func,
5384
- onConfirm: propTypes.func,
5385
- onActionClick: propTypes.func,
5386
- onClear: propTypes.func
5512
+ value: PropTypes.string,
5513
+ placeholder: PropTypes.string,
5514
+ maxLength: PropTypes.number,
5515
+ fixed: PropTypes.bool,
5516
+ focus: PropTypes.bool,
5517
+ disabled: PropTypes.bool,
5518
+ showActionButton: PropTypes.bool,
5519
+ actionName: PropTypes.string,
5520
+ inputType: PropTypes.oneOf(['text', 'number', 'idcard', 'digit']),
5521
+ onChange: PropTypes.func,
5522
+ onFocus: PropTypes.func,
5523
+ onBlur: PropTypes.func,
5524
+ onConfirm: PropTypes.func,
5525
+ onActionClick: PropTypes.func,
5526
+ onClear: PropTypes.func
5387
5527
  };
5388
5528
 
5389
5529
  var AtLoadMore = /** @class */ (function (_super) {
@@ -5422,15 +5562,15 @@ AtLoadMore.defaultProps = {
5422
5562
  noMoreText: '没有更多'
5423
5563
  };
5424
5564
  AtLoadMore.propTypes = {
5425
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5426
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5427
- noMoreTextStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5428
- moreBtnStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5429
- status: propTypes.oneOf(['more', 'loading', 'noMore']),
5430
- loadingText: propTypes.string,
5431
- moreText: propTypes.string,
5432
- noMoreText: propTypes.string,
5433
- onClick: propTypes.func
5565
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5566
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5567
+ noMoreTextStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5568
+ moreBtnStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5569
+ status: PropTypes.oneOf(['more', 'loading', 'noMore']),
5570
+ loadingText: PropTypes.string,
5571
+ moreText: PropTypes.string,
5572
+ noMoreText: PropTypes.string,
5573
+ onClick: PropTypes.func
5434
5574
  };
5435
5575
 
5436
5576
  var AtDivider = /** @class */ (function (_super) {
@@ -5464,13 +5604,13 @@ AtDivider.defaultProps = {
5464
5604
  lineColor: ''
5465
5605
  };
5466
5606
  AtDivider.propTypes = {
5467
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5468
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5469
- content: propTypes.string,
5470
- height: propTypes.oneOfType([propTypes.number, propTypes.string]),
5471
- fontColor: propTypes.string,
5472
- fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
5473
- lineColor: propTypes.string
5607
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5608
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5609
+ content: PropTypes.string,
5610
+ height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
5611
+ fontColor: PropTypes.string,
5612
+ fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
5613
+ lineColor: PropTypes.string
5474
5614
  };
5475
5615
 
5476
5616
  var AtCountdownItem = /** @class */ (function (_super) {
@@ -5495,8 +5635,8 @@ AtCountdownItem.defaultProps = {
5495
5635
  separator: ':'
5496
5636
  };
5497
5637
  AtCountdownItem.propTypes = {
5498
- num: propTypes.number.isRequired,
5499
- separator: propTypes.string
5638
+ num: PropTypes.number.isRequired,
5639
+ separator: PropTypes.string
5500
5640
  };
5501
5641
 
5502
5642
  var toSeconds = function (day, hours, minutes, seconds) { return day * 60 * 60 * 24 + hours * 60 * 60 + minutes * 60 + seconds; };
@@ -5614,17 +5754,17 @@ AtCountdown.defaultProps = {
5614
5754
  seconds: 0
5615
5755
  };
5616
5756
  AtCountdown.propTypes = {
5617
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5618
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5619
- isCard: propTypes.bool,
5620
- isShowDay: propTypes.bool,
5621
- isShowHour: propTypes.bool,
5622
- format: propTypes.object,
5623
- day: propTypes.number,
5624
- hours: propTypes.number,
5625
- minutes: propTypes.number,
5626
- seconds: propTypes.number,
5627
- onTimeUp: propTypes.func
5757
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5758
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5759
+ isCard: PropTypes.bool,
5760
+ isShowDay: PropTypes.bool,
5761
+ isShowHour: PropTypes.bool,
5762
+ format: PropTypes.object,
5763
+ day: PropTypes.number,
5764
+ hours: PropTypes.number,
5765
+ minutes: PropTypes.number,
5766
+ seconds: PropTypes.number,
5767
+ onTimeUp: PropTypes.func
5628
5768
  };
5629
5769
 
5630
5770
  var AtSteps = /** @class */ (function (_super) {
@@ -5675,11 +5815,11 @@ AtSteps.defaultProps = {
5675
5815
  onChange: function () { }
5676
5816
  };
5677
5817
  AtSteps.propTypes = {
5678
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5679
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5680
- current: propTypes.number,
5681
- items: propTypes.array,
5682
- onChange: propTypes.func
5818
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5819
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5820
+ current: PropTypes.number,
5821
+ items: PropTypes.array,
5822
+ onChange: PropTypes.func
5683
5823
  };
5684
5824
 
5685
5825
  var AtCurtain = /** @class */ (function (_super) {
@@ -5723,11 +5863,11 @@ AtCurtain.defaultProps = {
5723
5863
  onClose: function () { }
5724
5864
  };
5725
5865
  AtCurtain.propTypes = {
5726
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5727
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5728
- isOpened: propTypes.bool,
5729
- closeBtnPosition: propTypes.string,
5730
- onClose: propTypes.func
5866
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5867
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5868
+ isOpened: PropTypes.bool,
5869
+ closeBtnPosition: PropTypes.string,
5870
+ onClose: PropTypes.func
5731
5871
  };
5732
5872
 
5733
5873
  var AtMessage = /** @class */ (function (_super) {
@@ -5795,8 +5935,8 @@ AtMessage.defaultProps = {
5795
5935
  className: ''
5796
5936
  };
5797
5937
  AtMessage.propTypes = {
5798
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5799
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
5938
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5939
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
5800
5940
  };
5801
5941
 
5802
5942
  // 生成 jsx 二维矩阵
@@ -5856,7 +5996,10 @@ var AtImagePicker = /** @class */ (function (_super) {
5856
5996
  var newFiles = files.concat(targetFiles);
5857
5997
  _this.props.onChange(newFiles, 'add');
5858
5998
  })
5859
- .catch(_this.props.onFail);
5999
+ .catch(function (err) {
6000
+ var _a, _b;
6001
+ (_b = (_a = _this.props) === null || _a === void 0 ? void 0 : _a.onFail) === null || _b === void 0 ? void 0 : _b.call(_a, err);
6002
+ });
5860
6003
  };
5861
6004
  _this.handleImageClick = function (idx) {
5862
6005
  _this.props.onImageClick &&
@@ -5904,10 +6047,10 @@ AtImagePicker.defaultProps = {
5904
6047
  onChange: function () { }
5905
6048
  };
5906
6049
  AtImagePicker.propTypes = {
5907
- className: propTypes.oneOfType([propTypes.string, propTypes.array]),
5908
- customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
5909
- files: propTypes.array,
5910
- mode: propTypes.oneOf([
6050
+ className: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
6051
+ customStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
6052
+ files: PropTypes.array,
6053
+ mode: PropTypes.oneOf([
5911
6054
  'scaleToFill',
5912
6055
  'aspectFit',
5913
6056
  'aspectFill',
@@ -5922,15 +6065,15 @@ AtImagePicker.propTypes = {
5922
6065
  'bottom left',
5923
6066
  'bottom right'
5924
6067
  ]),
5925
- showAddBtn: propTypes.bool,
5926
- multiple: propTypes.bool,
5927
- length: propTypes.number,
5928
- onChange: propTypes.func,
5929
- onImageClick: propTypes.func,
5930
- onFail: propTypes.func,
5931
- count: propTypes.number,
5932
- sizeType: propTypes.array,
5933
- sourceType: propTypes.array
6068
+ showAddBtn: PropTypes.bool,
6069
+ multiple: PropTypes.bool,
6070
+ length: PropTypes.number,
6071
+ onChange: PropTypes.func,
6072
+ onImageClick: PropTypes.func,
6073
+ onFail: PropTypes.func,
6074
+ count: PropTypes.number,
6075
+ sizeType: PropTypes.array,
6076
+ sourceType: PropTypes.array
5934
6077
  };
5935
6078
 
5936
6079
  var AtRange = /** @class */ (function (_super) {
@@ -6009,8 +6152,9 @@ var AtRange = /** @class */ (function (_super) {
6009
6152
  AtRange.prototype.updatePos = function () {
6010
6153
  var _this = this;
6011
6154
  delayQuerySelector('.at-range__container', 0).then(function (rect) {
6012
- _this.width = Math.round(rect[0].width);
6013
- _this.left = Math.round(rect[0].left);
6155
+ var _a, _b;
6156
+ _this.width = Math.round((_a = rect[0]) === null || _a === void 0 ? void 0 : _a.width);
6157
+ _this.left = Math.round((_b = rect[0]) === null || _b === void 0 ? void 0 : _b.left);
6014
6158
  });
6015
6159
  };
6016
6160
  AtRange.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
@@ -6070,18 +6214,18 @@ AtRange.defaultProps = {
6070
6214
  blockSize: 0
6071
6215
  };
6072
6216
  AtRange.propTypes = {
6073
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6074
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
6075
- sliderStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6076
- railStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6077
- trackStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6078
- value: propTypes.array,
6079
- min: propTypes.number,
6080
- max: propTypes.number,
6081
- disabled: propTypes.bool,
6082
- blockSize: propTypes.number,
6083
- onChange: propTypes.func,
6084
- onAfterChange: propTypes.func
6217
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6218
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
6219
+ sliderStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6220
+ railStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6221
+ trackStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6222
+ value: PropTypes.array,
6223
+ min: PropTypes.number,
6224
+ max: PropTypes.number,
6225
+ disabled: PropTypes.bool,
6226
+ blockSize: PropTypes.number,
6227
+ onChange: PropTypes.func,
6228
+ onAfterChange: PropTypes.func
6085
6229
  };
6086
6230
 
6087
6231
  var ENV = Taro.getEnv();
@@ -6132,7 +6276,7 @@ var AtIndexes = /** @class */ (function (_super) {
6132
6276
  var _tipText = idx === 0 ? topKey : list[idx - 1].key;
6133
6277
  if (ENV === Taro.ENV_TYPE.WEB) {
6134
6278
  delayQuerySelector('.at-indexes', 0).then(function (rect) {
6135
- var targetOffsetTop = _this.listRef.childNodes[idx].offsetTop;
6279
+ var targetOffsetTop = _this.listRef.children[idx].offsetTop;
6136
6280
  var _scrollTop = targetOffsetTop - rect[0].top;
6137
6281
  _this.updateState({
6138
6282
  _scrollTop: _scrollTop,
@@ -6240,15 +6384,15 @@ var AtIndexes = /** @class */ (function (_super) {
6240
6384
  return AtIndexes;
6241
6385
  }(React.Component));
6242
6386
  AtIndexes.propTypes = {
6243
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6244
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
6245
- animation: propTypes.bool,
6246
- isVibrate: propTypes.bool,
6247
- isShowToast: propTypes.bool,
6248
- topKey: propTypes.string,
6249
- list: propTypes.array,
6250
- onClick: propTypes.func,
6251
- onScrollIntoView: propTypes.func
6387
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6388
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
6389
+ animation: PropTypes.bool,
6390
+ isVibrate: PropTypes.bool,
6391
+ isShowToast: PropTypes.bool,
6392
+ topKey: PropTypes.string,
6393
+ list: PropTypes.array,
6394
+ onClick: PropTypes.func,
6395
+ onScrollIntoView: PropTypes.func
6252
6396
  };
6253
6397
  AtIndexes.defaultProps = {
6254
6398
  customStyle: '',
@@ -6261,7 +6405,7 @@ AtIndexes.defaultProps = {
6261
6405
  };
6262
6406
 
6263
6407
  var dayjs_min = createCommonjsModule(function (module, exports) {
6264
- !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
6408
+ !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
6265
6409
  });
6266
6410
 
6267
6411
  /** Built-in value references. */
@@ -7660,7 +7804,7 @@ function handleValid(args, item) {
7660
7804
  });
7661
7805
  item.isDisabled = !isInclude;
7662
7806
  }
7663
- delete item._value;
7807
+ // delete item._value
7664
7808
  return item;
7665
7809
  }
7666
7810
  var plugins = [handleActive, handleMarks, handleDisabled, handleValid];
@@ -8250,8 +8394,8 @@ var AtFab = /** @class */ (function (_super) {
8250
8394
  return AtFab;
8251
8395
  }(React.Component));
8252
8396
  AtFab.propTypes = {
8253
- size: propTypes.oneOf(['normal', 'small']),
8254
- onClick: propTypes.func
8397
+ size: PropTypes.oneOf(['normal', 'small']),
8398
+ onClick: PropTypes.func
8255
8399
  };
8256
8400
  AtFab.defaultProps = {
8257
8401
  size: 'normal'