taro-ui 3.2.2 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -126,9 +126,9 @@ function createCommonjsModule(fn, module) {
126
126
 
127
127
  var classnames = createCommonjsModule(function (module) {
128
128
  /*!
129
- Copyright (c) 2017 Jed Watson.
130
- Licensed under the MIT License (MIT), see
131
- http://jedwatson.github.io/classnames
129
+ Copyright (c) 2018 Jed Watson.
130
+ Licensed under the MIT License (MIT), see
131
+ http://jedwatson.github.io/classnames
132
132
  */
133
133
  /* global define */
134
134
 
@@ -137,31 +137,56 @@ var classnames = createCommonjsModule(function (module) {
137
137
  var hasOwn = {}.hasOwnProperty;
138
138
 
139
139
  function classNames () {
140
- var classes = [];
140
+ var classes = '';
141
141
 
142
142
  for (var i = 0; i < arguments.length; i++) {
143
143
  var arg = arguments[i];
144
- if (!arg) continue;
144
+ if (arg) {
145
+ classes = appendClass(classes, parseValue(arg));
146
+ }
147
+ }
145
148
 
146
- var argType = typeof arg;
149
+ return classes;
150
+ }
147
151
 
148
- if (argType === 'string' || argType === 'number') {
149
- classes.push(arg);
150
- } else if (Array.isArray(arg) && arg.length) {
151
- var inner = classNames.apply(null, arg);
152
- if (inner) {
153
- classes.push(inner);
154
- }
155
- } else if (argType === 'object') {
156
- for (var key in arg) {
157
- if (hasOwn.call(arg, key) && arg[key]) {
158
- classes.push(key);
159
- }
160
- }
152
+ function parseValue (arg) {
153
+ if (typeof arg === 'string' || typeof arg === 'number') {
154
+ return arg;
155
+ }
156
+
157
+ if (typeof arg !== 'object') {
158
+ return '';
159
+ }
160
+
161
+ if (Array.isArray(arg)) {
162
+ return classNames.apply(null, arg);
163
+ }
164
+
165
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
166
+ return arg.toString();
167
+ }
168
+
169
+ var classes = '';
170
+
171
+ for (var key in arg) {
172
+ if (hasOwn.call(arg, key) && arg[key]) {
173
+ classes = appendClass(classes, key);
161
174
  }
162
175
  }
163
176
 
164
- return classes.join(' ');
177
+ return classes;
178
+ }
179
+
180
+ function appendClass (value, newClass) {
181
+ if (!newClass) {
182
+ return value;
183
+ }
184
+
185
+ if (value) {
186
+ return value + ' ' + newClass;
187
+ }
188
+
189
+ return value + newClass;
165
190
  }
166
191
 
167
192
  if (module.exports) {
@@ -525,16 +550,22 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
525
550
  * LICENSE file in the root directory of this source tree.
526
551
  */
527
552
 
528
- var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
553
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
529
554
 
530
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
555
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
556
+
557
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
558
+
559
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
560
+
561
+ var has$1 = has$2;
531
562
 
532
563
  var printWarning$1 = function() {};
533
564
 
534
565
  if (process.env.NODE_ENV !== 'production') {
535
- var ReactPropTypesSecret = ReactPropTypesSecret_1;
566
+ var ReactPropTypesSecret = ReactPropTypesSecret$1;
536
567
  var loggedTypeFailures = {};
537
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
568
+ var has = has$1;
538
569
 
539
570
  printWarning$1 = function(text) {
540
571
  var message = 'Warning: ' + text;
@@ -546,7 +577,7 @@ if (process.env.NODE_ENV !== 'production') {
546
577
  // This error was thrown as a convenience so that you can use this stack
547
578
  // to find the callsite that caused this warning to fire.
548
579
  throw new Error(message);
549
- } catch (x) {}
580
+ } catch (x) { /**/ }
550
581
  };
551
582
  }
552
583
 
@@ -561,10 +592,10 @@ if (process.env.NODE_ENV !== 'production') {
561
592
  * @param {?Function} getStack Returns the component stack.
562
593
  * @private
563
594
  */
564
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
595
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
565
596
  if (process.env.NODE_ENV !== 'production') {
566
597
  for (var typeSpecName in typeSpecs) {
567
- if (has$1(typeSpecs, typeSpecName)) {
598
+ if (has(typeSpecs, typeSpecName)) {
568
599
  var error;
569
600
  // Prop type validation may throw. In case they do, we don't want to
570
601
  // fail the render phase where it didn't fail before. So we log it.
@@ -575,7 +606,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
575
606
  if (typeof typeSpecs[typeSpecName] !== 'function') {
576
607
  var err = Error(
577
608
  (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
578
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
609
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
610
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
579
611
  );
580
612
  err.name = 'Invariant Violation';
581
613
  throw err;
@@ -615,15 +647,16 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
615
647
  *
616
648
  * @private
617
649
  */
618
- checkPropTypes.resetWarningCache = function() {
650
+ checkPropTypes$1.resetWarningCache = function() {
619
651
  if (process.env.NODE_ENV !== 'production') {
620
652
  loggedTypeFailures = {};
621
653
  }
622
654
  };
623
655
 
624
- var checkPropTypes_1 = checkPropTypes;
656
+ var checkPropTypes_1 = checkPropTypes$1;
657
+
658
+ var checkPropTypes = checkPropTypes_1;
625
659
 
626
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
627
660
  var printWarning = function() {};
628
661
 
629
662
  if (process.env.NODE_ENV !== 'production') {
@@ -724,6 +757,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
724
757
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
725
758
  var ReactPropTypes = {
726
759
  array: createPrimitiveTypeChecker('array'),
760
+ bigint: createPrimitiveTypeChecker('bigint'),
727
761
  bool: createPrimitiveTypeChecker('boolean'),
728
762
  func: createPrimitiveTypeChecker('function'),
729
763
  number: createPrimitiveTypeChecker('number'),
@@ -769,8 +803,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
769
803
  * is prohibitively expensive if they are created too often, such as what
770
804
  * happens in oneOfType() for any type before the one that matched.
771
805
  */
772
- function PropTypeError(message) {
806
+ function PropTypeError(message, data) {
773
807
  this.message = message;
808
+ this.data = data && typeof data === 'object' ? data: {};
774
809
  this.stack = '';
775
810
  }
776
811
  // Make `instanceof Error` still work for returned errors.
@@ -785,7 +820,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
785
820
  componentName = componentName || ANONYMOUS;
786
821
  propFullName = propFullName || propName;
787
822
 
788
- if (secret !== ReactPropTypesSecret_1) {
823
+ if (secret !== ReactPropTypesSecret$1) {
789
824
  if (throwOnDirectAccess) {
790
825
  // New behavior only for users of `prop-types` package
791
826
  var err = new Error(
@@ -805,7 +840,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
805
840
  ) {
806
841
  printWarning(
807
842
  'You are manually calling a React.PropTypes validation ' +
808
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
843
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
809
844
  'and will throw in the standalone `prop-types` package. ' +
810
845
  'You may be seeing this warning due to a third-party PropTypes ' +
811
846
  'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
@@ -844,7 +879,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
844
879
  // 'of type `object`'.
845
880
  var preciseType = getPreciseType(propValue);
846
881
 
847
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
882
+ return new PropTypeError(
883
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
884
+ {expectedType: expectedType}
885
+ );
848
886
  }
849
887
  return null;
850
888
  }
@@ -866,7 +904,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
866
904
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
867
905
  }
868
906
  for (var i = 0; i < propValue.length; i++) {
869
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
907
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
870
908
  if (error instanceof Error) {
871
909
  return error;
872
910
  }
@@ -958,8 +996,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
958
996
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
959
997
  }
960
998
  for (var key in propValue) {
961
- if (has(propValue, key)) {
962
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
999
+ if (has$1(propValue, key)) {
1000
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
963
1001
  if (error instanceof Error) {
964
1002
  return error;
965
1003
  }
@@ -988,14 +1026,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
988
1026
  }
989
1027
 
990
1028
  function validate(props, propName, componentName, location, propFullName) {
1029
+ var expectedTypes = [];
991
1030
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
992
1031
  var checker = arrayOfTypeCheckers[i];
993
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
1032
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
1033
+ if (checkerResult == null) {
994
1034
  return null;
995
1035
  }
1036
+ if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
1037
+ expectedTypes.push(checkerResult.data.expectedType);
1038
+ }
996
1039
  }
997
-
998
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
1040
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1041
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
999
1042
  }
1000
1043
  return createChainableTypeChecker(validate);
1001
1044
  }
@@ -1010,6 +1053,13 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1010
1053
  return createChainableTypeChecker(validate);
1011
1054
  }
1012
1055
 
1056
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
1057
+ return new PropTypeError(
1058
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1059
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1060
+ );
1061
+ }
1062
+
1013
1063
  function createShapeTypeChecker(shapeTypes) {
1014
1064
  function validate(props, propName, componentName, location, propFullName) {
1015
1065
  var propValue = props[propName];
@@ -1019,10 +1069,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1019
1069
  }
1020
1070
  for (var key in shapeTypes) {
1021
1071
  var checker = shapeTypes[key];
1022
- if (!checker) {
1023
- continue;
1072
+ if (typeof checker !== 'function') {
1073
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1024
1074
  }
1025
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1075
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1026
1076
  if (error) {
1027
1077
  return error;
1028
1078
  }
@@ -1039,19 +1089,21 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1039
1089
  if (propType !== 'object') {
1040
1090
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1041
1091
  }
1042
- // We need to check all keys in case some are required but missing from
1043
- // props.
1092
+ // We need to check all keys in case some are required but missing from props.
1044
1093
  var allKeys = objectAssign({}, props[propName], shapeTypes);
1045
1094
  for (var key in allKeys) {
1046
1095
  var checker = shapeTypes[key];
1096
+ if (has$1(shapeTypes, key) && typeof checker !== 'function') {
1097
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1098
+ }
1047
1099
  if (!checker) {
1048
1100
  return new PropTypeError(
1049
1101
  'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1050
1102
  '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1051
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1103
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1052
1104
  );
1053
1105
  }
1054
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1106
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1055
1107
  if (error) {
1056
1108
  return error;
1057
1109
  }
@@ -1193,8 +1245,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1193
1245
  return propValue.constructor.name;
1194
1246
  }
1195
1247
 
1196
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
1197
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1248
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1249
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1198
1250
  ReactPropTypes.PropTypes = ReactPropTypes;
1199
1251
 
1200
1252
  return ReactPropTypes;
@@ -1206,7 +1258,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1206
1258
 
1207
1259
  var factoryWithThrowingShims = function() {
1208
1260
  function shim(props, propName, componentName, location, propFullName, secret) {
1209
- if (secret === ReactPropTypesSecret_1) {
1261
+ if (secret === ReactPropTypesSecret$1) {
1210
1262
  // It is still safe when called from React.
1211
1263
  return;
1212
1264
  }
@@ -1224,6 +1276,7 @@ var factoryWithThrowingShims = function() {
1224
1276
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1225
1277
  var ReactPropTypes = {
1226
1278
  array: shim,
1279
+ bigint: shim,
1227
1280
  bool: shim,
1228
1281
  func: shim,
1229
1282
  number: shim,
@@ -1252,6 +1305,10 @@ var factoryWithThrowingShims = function() {
1252
1305
  return ReactPropTypes;
1253
1306
  };
1254
1307
 
1308
+ var require$$1 = factoryWithTypeCheckers;
1309
+
1310
+ var require$$2 = factoryWithThrowingShims;
1311
+
1255
1312
  var propTypes = createCommonjsModule(function (module) {
1256
1313
  /**
1257
1314
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -1266,14 +1323,16 @@ if (process.env.NODE_ENV !== 'production') {
1266
1323
  // By explicitly using `prop-types` you are opting into new development behavior.
1267
1324
  // http://fb.me/prop-types-in-prod
1268
1325
  var throwOnDirectAccess = true;
1269
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1326
+ module.exports = require$$1(ReactIs.isElement, throwOnDirectAccess);
1270
1327
  } else {
1271
1328
  // By explicitly using `prop-types` you are opting into new production behavior.
1272
1329
  // http://fb.me/prop-types-in-prod
1273
- module.exports = factoryWithThrowingShims();
1330
+ module.exports = require$$2();
1274
1331
  }
1275
1332
  });
1276
1333
 
1334
+ var PropTypes = propTypes;
1335
+
1277
1336
  var AtActionSheetBody = /** @class */ (function (_super) {
1278
1337
  __extends(AtActionSheetBody, _super);
1279
1338
  function AtActionSheetBody() {
@@ -1309,7 +1368,7 @@ var AtActionSheetFooter = /** @class */ (function (_super) {
1309
1368
  return AtActionSheetFooter;
1310
1369
  }(React__default["default"].Component));
1311
1370
  AtActionSheetFooter.propTypes = {
1312
- onClick: propTypes.func
1371
+ onClick: PropTypes.func
1313
1372
  };
1314
1373
 
1315
1374
  var AtActionSheetHeader = /** @class */ (function (_super) {
@@ -1384,11 +1443,11 @@ AtActionSheet.defaultProps = {
1384
1443
  isOpened: false
1385
1444
  };
1386
1445
  AtActionSheet.propTypes = {
1387
- title: propTypes.string,
1388
- onClose: propTypes.func,
1389
- onCancel: propTypes.func,
1390
- isOpened: propTypes.bool.isRequired,
1391
- cancelText: propTypes.string
1446
+ title: PropTypes.string,
1447
+ onClose: PropTypes.func,
1448
+ onCancel: PropTypes.func,
1449
+ isOpened: PropTypes.bool.isRequired,
1450
+ cancelText: PropTypes.string
1392
1451
  };
1393
1452
 
1394
1453
  var AtActionSheetItem = /** @class */ (function (_super) {
@@ -1409,7 +1468,7 @@ var AtActionSheetItem = /** @class */ (function (_super) {
1409
1468
  return AtActionSheetItem;
1410
1469
  }(React__default["default"].Component));
1411
1470
  AtActionSheetItem.propTypes = {
1412
- onClick: propTypes.func
1471
+ onClick: PropTypes.func
1413
1472
  };
1414
1473
 
1415
1474
  var ENV$4 = Taro__default["default"].getEnv();
@@ -1424,13 +1483,15 @@ function delay(delayTime) {
1424
1483
  function delayQuerySelector(selectorStr, delayTime) {
1425
1484
  if (delayTime === void 0) { delayTime = 500; }
1426
1485
  return new Promise(function (resolve) {
1427
- var selector = Taro__default["default"].createSelectorQuery();
1428
- delay(delayTime).then(function () {
1429
- selector
1430
- .select(selectorStr)
1431
- .boundingClientRect()
1432
- .exec(function (res) {
1433
- resolve(res);
1486
+ Taro__default["default"].nextTick(function () {
1487
+ var selector = Taro__default["default"].createSelectorQuery();
1488
+ delay(delayTime).then(function () {
1489
+ selector
1490
+ .select(selectorStr)
1491
+ .boundingClientRect()
1492
+ .exec(function (res) {
1493
+ resolve(res);
1494
+ });
1434
1495
  });
1435
1496
  });
1436
1497
  });
@@ -1573,13 +1634,7 @@ function handleTouchScroll(flag) {
1573
1634
  function pxTransform(size) {
1574
1635
  if (!size)
1575
1636
  return '';
1576
- var designWidth = 750;
1577
- var deviceRatio = {
1578
- 640: 2.34 / 2,
1579
- 750: 1,
1580
- 828: 1.81 / 2
1581
- };
1582
- return "".concat(size / deviceRatio[designWidth], "rpx");
1637
+ return Taro__default["default"].pxTransform(size);
1583
1638
  }
1584
1639
  function objectToString$2(style) {
1585
1640
  if (style && typeof style === 'object') {
@@ -1609,18 +1664,6 @@ function mergeStyle(style1, style2) {
1609
1664
  return Object.assign({}, style1, style2);
1610
1665
  }
1611
1666
  return objectToString$2(style1) + objectToString$2(style2);
1612
- }
1613
- /**
1614
- * 自定义验证器,用于验证参数是否是 JSX.Element
1615
- * @param {any} props
1616
- * @param {string} propName
1617
- * @param {string} componentName
1618
- * @returns
1619
- */
1620
- function isJSXElement(props, propName, componentName) {
1621
- if (!React__default["default"].isValidElement(props[propName])) {
1622
- return new Error("Invalid prop ".concat(propName, " supplied to ").concat(componentName, ". It must be a valid JSX element."));
1623
- }
1624
1667
  }
1625
1668
 
1626
1669
  var AtLoading = /** @class */ (function (_super) {
@@ -1652,8 +1695,8 @@ AtLoading.defaultProps = {
1652
1695
  color: ''
1653
1696
  };
1654
1697
  AtLoading.propTypes = {
1655
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
1656
- color: propTypes.oneOfType([propTypes.string, propTypes.number])
1698
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1699
+ color: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1657
1700
  };
1658
1701
 
1659
1702
  var AtActivityIndicator = /** @class */ (function (_super) {
@@ -1683,12 +1726,12 @@ AtActivityIndicator.defaultProps = {
1683
1726
  isOpened: true
1684
1727
  };
1685
1728
  AtActivityIndicator.propTypes = {
1686
- size: propTypes.number,
1687
- mode: propTypes.string,
1688
- color: propTypes.string,
1689
- content: propTypes.string,
1690
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
1691
- isOpened: propTypes.bool
1729
+ size: PropTypes.number,
1730
+ mode: PropTypes.string,
1731
+ color: PropTypes.string,
1732
+ content: PropTypes.string,
1733
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
1734
+ isOpened: PropTypes.bool
1692
1735
  };
1693
1736
 
1694
1737
  var SIZE_CLASS$2 = {
@@ -1718,8 +1761,13 @@ var AtAvatar = /** @class */ (function (_super) {
1718
1761
  if (text)
1719
1762
  letter = text[0];
1720
1763
  var elem;
1721
- if (openData && openData.type === 'userAvatarUrl' && this.state.isWEAPP) {
1722
- elem = React__default["default"].createElement(components.OpenData, { type: openData.type });
1764
+ if (openData &&
1765
+ openData.type === 'userAvatarUrl' &&
1766
+ this.state.isWEAPP &&
1767
+ Taro__default["default"].canIUse('open-data')) {
1768
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
1769
+ var OpenData = require('@tarojs/components').OpenData;
1770
+ elem = React__default["default"].createElement(OpenData, { type: openData.type });
1723
1771
  }
1724
1772
  else if (image) {
1725
1773
  elem = React__default["default"].createElement(components.Image, { className: 'at-avatar__img', src: image });
@@ -1740,13 +1788,13 @@ AtAvatar.defaultProps = {
1740
1788
  className: ''
1741
1789
  };
1742
1790
  AtAvatar.propTypes = {
1743
- size: propTypes.oneOf(['large', 'normal', 'small']),
1744
- circle: propTypes.bool,
1745
- text: propTypes.string,
1746
- image: propTypes.string,
1747
- openData: propTypes.object,
1748
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1749
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
1791
+ size: PropTypes.oneOf(['large', 'normal', 'small']),
1792
+ circle: PropTypes.bool,
1793
+ text: PropTypes.string,
1794
+ image: PropTypes.string,
1795
+ openData: PropTypes.object,
1796
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1797
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
1750
1798
  };
1751
1799
 
1752
1800
  var AtBadge = /** @class */ (function (_super) {
@@ -1783,11 +1831,11 @@ AtBadge.defaultProps = {
1783
1831
  className: ''
1784
1832
  };
1785
1833
  AtBadge.propTypes = {
1786
- dot: propTypes.bool,
1787
- value: propTypes.oneOfType([propTypes.string, propTypes.number]),
1788
- maxValue: propTypes.number,
1789
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1790
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
1834
+ dot: PropTypes.bool,
1835
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1836
+ maxValue: PropTypes.number,
1837
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1838
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
1791
1839
  };
1792
1840
 
1793
1841
  var SIZE_CLASS$1 = {
@@ -1877,16 +1925,16 @@ AtButton.defaultProps = {
1877
1925
  appParameter: ''
1878
1926
  };
1879
1927
  AtButton.propTypes = {
1880
- size: propTypes.oneOf(['normal', 'small']),
1881
- type: propTypes.oneOf(['primary', 'secondary', '']),
1882
- circle: propTypes.bool,
1883
- full: propTypes.bool,
1884
- loading: propTypes.bool,
1885
- disabled: propTypes.bool,
1886
- onClick: propTypes.func,
1887
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1888
- formType: propTypes.oneOf(['submit', 'reset', '']),
1889
- openType: propTypes.oneOf([
1928
+ size: PropTypes.oneOf(['normal', 'small']),
1929
+ type: PropTypes.oneOf(['primary', 'secondary', '']),
1930
+ circle: PropTypes.bool,
1931
+ full: PropTypes.bool,
1932
+ loading: PropTypes.bool,
1933
+ disabled: PropTypes.bool,
1934
+ onClick: PropTypes.func,
1935
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1936
+ formType: PropTypes.oneOf(['submit', 'reset', '']),
1937
+ openType: PropTypes.oneOf([
1890
1938
  'contact',
1891
1939
  'share',
1892
1940
  'getUserInfo',
@@ -1899,18 +1947,18 @@ AtButton.propTypes = {
1899
1947
  'contactShare',
1900
1948
  ''
1901
1949
  ]),
1902
- lang: propTypes.string,
1903
- sessionFrom: propTypes.string,
1904
- sendMessageTitle: propTypes.string,
1905
- sendMessagePath: propTypes.string,
1906
- sendMessageImg: propTypes.string,
1907
- showMessageCard: propTypes.bool,
1908
- appParameter: propTypes.string,
1909
- onGetUserInfo: propTypes.func,
1910
- onContact: propTypes.func,
1911
- onGetPhoneNumber: propTypes.func,
1912
- onError: propTypes.func,
1913
- onOpenSetting: propTypes.func
1950
+ lang: PropTypes.string,
1951
+ sessionFrom: PropTypes.string,
1952
+ sendMessageTitle: PropTypes.string,
1953
+ sendMessagePath: PropTypes.string,
1954
+ sendMessageImg: PropTypes.string,
1955
+ showMessageCard: PropTypes.bool,
1956
+ appParameter: PropTypes.string,
1957
+ onGetUserInfo: PropTypes.func,
1958
+ onContact: PropTypes.func,
1959
+ onGetPhoneNumber: PropTypes.func,
1960
+ onError: PropTypes.func,
1961
+ onOpenSetting: PropTypes.func
1914
1962
  };
1915
1963
 
1916
1964
  var AtCard = /** @class */ (function (_super) {
@@ -1962,15 +2010,15 @@ AtCard.defaultProps = {
1962
2010
  extraStyle: {}
1963
2011
  };
1964
2012
  AtCard.propTypes = {
1965
- note: propTypes.string,
1966
- isFull: propTypes.bool,
1967
- thumb: propTypes.string,
1968
- title: propTypes.string,
1969
- extra: propTypes.oneOfType([propTypes.string, propTypes.element]),
1970
- icon: propTypes.object,
1971
- onClick: propTypes.func,
1972
- renderIcon: propTypes.oneOfType([propTypes.string, propTypes.element]),
1973
- extraStyle: propTypes.object // 自定义extra样式
2013
+ note: PropTypes.string,
2014
+ isFull: PropTypes.bool,
2015
+ thumb: PropTypes.string,
2016
+ title: PropTypes.string,
2017
+ extra: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2018
+ icon: PropTypes.object,
2019
+ onClick: PropTypes.func,
2020
+ renderIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2021
+ extraStyle: PropTypes.object // 自定义extra样式
1974
2022
  };
1975
2023
 
1976
2024
  var AtCheckbox = /** @class */ (function (_super) {
@@ -2023,11 +2071,11 @@ AtCheckbox.defaultProps = {
2023
2071
  onChange: function () { }
2024
2072
  };
2025
2073
  AtCheckbox.propTypes = {
2026
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2027
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
2028
- options: propTypes.array,
2029
- selectedList: propTypes.array,
2030
- onChange: propTypes.func
2074
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2075
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
2076
+ options: PropTypes.array,
2077
+ selectedList: PropTypes.array,
2078
+ onChange: PropTypes.func
2031
2079
  };
2032
2080
 
2033
2081
  var AtList = /** @class */ (function (_super) {
@@ -2047,7 +2095,7 @@ AtList.defaultProps = {
2047
2095
  hasBorder: true
2048
2096
  };
2049
2097
  AtList.propTypes = {
2050
- hasBorder: propTypes.bool
2098
+ hasBorder: PropTypes.bool
2051
2099
  };
2052
2100
 
2053
2101
  var AtListItem = /** @class */ (function (_super) {
@@ -2131,26 +2179,26 @@ AtListItem.defaultProps = {
2131
2179
  iconInfo: { value: '' }
2132
2180
  };
2133
2181
  AtListItem.propTypes = {
2134
- note: isJSXElement,
2135
- disabled: propTypes.bool,
2136
- title: isJSXElement,
2137
- thumb: propTypes.string,
2138
- onClick: propTypes.func,
2139
- isSwitch: propTypes.bool,
2140
- hasBorder: propTypes.bool,
2141
- switchColor: propTypes.string,
2142
- switchIsCheck: propTypes.bool,
2143
- extraText: isJSXElement,
2144
- extraThumb: propTypes.string,
2145
- onSwitchChange: propTypes.func,
2146
- arrow: propTypes.oneOf(['up', 'down', 'right']),
2147
- iconInfo: propTypes.shape({
2148
- size: propTypes.number,
2149
- value: propTypes.string,
2150
- color: propTypes.string,
2151
- prefixClass: propTypes.string,
2152
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2153
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
2182
+ note: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2183
+ disabled: PropTypes.bool,
2184
+ title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2185
+ thumb: PropTypes.string,
2186
+ onClick: PropTypes.func,
2187
+ isSwitch: PropTypes.bool,
2188
+ hasBorder: PropTypes.bool,
2189
+ switchColor: PropTypes.string,
2190
+ switchIsCheck: PropTypes.bool,
2191
+ extraText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2192
+ extraThumb: PropTypes.string,
2193
+ onSwitchChange: PropTypes.func,
2194
+ arrow: PropTypes.oneOf(['up', 'down', 'right']),
2195
+ iconInfo: PropTypes.shape({
2196
+ size: PropTypes.number,
2197
+ value: PropTypes.string,
2198
+ color: PropTypes.string,
2199
+ prefixClass: PropTypes.string,
2200
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2201
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
2154
2202
  })
2155
2203
  };
2156
2204
 
@@ -2240,12 +2288,12 @@ AtDrawer.defaultProps = {
2240
2288
  items: []
2241
2289
  };
2242
2290
  AtDrawer.propTypes = {
2243
- show: propTypes.bool,
2244
- mask: propTypes.bool,
2245
- width: propTypes.string,
2246
- items: propTypes.arrayOf(propTypes.string),
2247
- onItemClick: propTypes.func,
2248
- onClose: propTypes.func
2291
+ show: PropTypes.bool,
2292
+ mask: PropTypes.bool,
2293
+ width: PropTypes.string,
2294
+ items: PropTypes.arrayOf(PropTypes.string),
2295
+ onItemClick: PropTypes.func,
2296
+ onClose: PropTypes.func
2249
2297
  };
2250
2298
 
2251
2299
  var AtFloatLayout = /** @class */ (function (_super) {
@@ -2307,19 +2355,19 @@ AtFloatLayout.defaultProps = {
2307
2355
  scrollWithAnimation: false
2308
2356
  };
2309
2357
  AtFloatLayout.propTypes = {
2310
- title: propTypes.string,
2311
- isOpened: propTypes.bool,
2312
- scrollY: propTypes.bool,
2313
- scrollX: propTypes.bool,
2314
- scrollTop: propTypes.number,
2315
- scrollLeft: propTypes.number,
2316
- upperThreshold: propTypes.number,
2317
- lowerThreshold: propTypes.number,
2318
- scrollWithAnimation: propTypes.bool,
2319
- onClose: propTypes.func,
2320
- onScroll: propTypes.func,
2321
- onScrollToLower: propTypes.func,
2322
- onScrollToUpper: propTypes.func
2358
+ title: PropTypes.string,
2359
+ isOpened: PropTypes.bool,
2360
+ scrollY: PropTypes.bool,
2361
+ scrollX: PropTypes.bool,
2362
+ scrollTop: PropTypes.number,
2363
+ scrollLeft: PropTypes.number,
2364
+ upperThreshold: PropTypes.number,
2365
+ lowerThreshold: PropTypes.number,
2366
+ scrollWithAnimation: PropTypes.bool,
2367
+ onClose: PropTypes.func,
2368
+ onScroll: PropTypes.func,
2369
+ onScrollToLower: PropTypes.func,
2370
+ onScrollToUpper: PropTypes.func
2323
2371
  };
2324
2372
 
2325
2373
  var AtForm = /** @class */ (function (_super) {
@@ -2346,11 +2394,11 @@ AtForm.defaultProps = {
2346
2394
  reportSubmit: false
2347
2395
  };
2348
2396
  AtForm.propTypes = {
2349
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2350
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
2351
- reportSubmit: propTypes.bool,
2352
- onSubmit: propTypes.func,
2353
- onReset: propTypes.func
2397
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2398
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
2399
+ reportSubmit: PropTypes.bool,
2400
+ onSubmit: PropTypes.func,
2401
+ onReset: PropTypes.func
2354
2402
  };
2355
2403
 
2356
2404
  /**
@@ -2720,6 +2768,44 @@ function isIterateeCall(value, index, object) {
2720
2768
 
2721
2769
  var _isIterateeCall = isIterateeCall;
2722
2770
 
2771
+ /** Used to match a single whitespace character. */
2772
+ var reWhitespace = /\s/;
2773
+
2774
+ /**
2775
+ * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
2776
+ * character of `string`.
2777
+ *
2778
+ * @private
2779
+ * @param {string} string The string to inspect.
2780
+ * @returns {number} Returns the index of the last non-whitespace character.
2781
+ */
2782
+ function trimmedEndIndex(string) {
2783
+ var index = string.length;
2784
+
2785
+ while (index-- && reWhitespace.test(string.charAt(index))) {}
2786
+ return index;
2787
+ }
2788
+
2789
+ var _trimmedEndIndex = trimmedEndIndex;
2790
+
2791
+ /** Used to match leading whitespace. */
2792
+ var reTrimStart = /^\s+/;
2793
+
2794
+ /**
2795
+ * The base implementation of `_.trim`.
2796
+ *
2797
+ * @private
2798
+ * @param {string} string The string to trim.
2799
+ * @returns {string} Returns the trimmed string.
2800
+ */
2801
+ function baseTrim(string) {
2802
+ return string
2803
+ ? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
2804
+ : string;
2805
+ }
2806
+
2807
+ var _baseTrim = baseTrim;
2808
+
2723
2809
  /**
2724
2810
  * Checks if `value` is object-like. A value is object-like if it's not `null`
2725
2811
  * and has a `typeof` result of "object".
@@ -2780,9 +2866,6 @@ var isSymbol_1 = isSymbol;
2780
2866
  /** Used as references for various `Number` constants. */
2781
2867
  var NAN = 0 / 0;
2782
2868
 
2783
- /** Used to match leading and trailing whitespace. */
2784
- var reTrim = /^\s+|\s+$/g;
2785
-
2786
2869
  /** Used to detect bad signed hexadecimal string values. */
2787
2870
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
2788
2871
 
@@ -2832,7 +2915,7 @@ function toNumber(value) {
2832
2915
  if (typeof value != 'string') {
2833
2916
  return value === 0 ? value : +value;
2834
2917
  }
2835
- value = value.replace(reTrim, '');
2918
+ value = _baseTrim(value);
2836
2919
  var isBinary = reIsBinary.test(value);
2837
2920
  return (isBinary || reIsOctal.test(value))
2838
2921
  ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
@@ -3018,20 +3101,20 @@ AtGrid.defaultProps = {
3018
3101
  hasBorder: true
3019
3102
  };
3020
3103
  AtGrid.propTypes = {
3021
- mode: propTypes.string,
3022
- onClick: propTypes.func,
3023
- hasBorder: propTypes.bool,
3024
- columnNum: propTypes.number,
3025
- data: propTypes.arrayOf(propTypes.shape({
3026
- image: propTypes.string,
3027
- value: propTypes.string,
3028
- iconInfo: propTypes.shape({
3029
- size: propTypes.number,
3030
- value: propTypes.string,
3031
- color: propTypes.string,
3032
- prefixClass: propTypes.string,
3033
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3034
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
3104
+ mode: PropTypes.string,
3105
+ onClick: PropTypes.func,
3106
+ hasBorder: PropTypes.bool,
3107
+ columnNum: PropTypes.number,
3108
+ data: PropTypes.arrayOf(PropTypes.shape({
3109
+ image: PropTypes.string,
3110
+ value: PropTypes.string,
3111
+ iconInfo: PropTypes.shape({
3112
+ size: PropTypes.number,
3113
+ value: PropTypes.string,
3114
+ color: PropTypes.string,
3115
+ prefixClass: PropTypes.string,
3116
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3117
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
3035
3118
  })
3036
3119
  }))
3037
3120
  };
@@ -3064,13 +3147,13 @@ AtIcon.defaultProps = {
3064
3147
  size: 24
3065
3148
  };
3066
3149
  AtIcon.propTypes = {
3067
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3068
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3069
- prefixClass: propTypes.string,
3070
- value: propTypes.string,
3071
- color: propTypes.string,
3072
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
3073
- onClick: propTypes.func
3150
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3151
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3152
+ prefixClass: PropTypes.string,
3153
+ value: PropTypes.string,
3154
+ color: PropTypes.string,
3155
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3156
+ onClick: PropTypes.func
3074
3157
  };
3075
3158
 
3076
3159
  function getInputProps(props) {
@@ -3205,37 +3288,37 @@ AtInput.defaultProps = {
3205
3288
  onChange: function () { }
3206
3289
  };
3207
3290
  AtInput.propTypes = {
3208
- className: propTypes.oneOfType([propTypes.string, propTypes.array]),
3209
- customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
3210
- value: propTypes.oneOfType([propTypes.string, propTypes.number]),
3211
- name: propTypes.string,
3212
- placeholder: propTypes.string,
3213
- placeholderStyle: propTypes.string,
3214
- placeholderClass: propTypes.string,
3215
- title: propTypes.string,
3216
- confirmType: propTypes.string,
3217
- cursor: propTypes.oneOfType([propTypes.string, propTypes.number]),
3218
- selectionStart: propTypes.oneOfType([propTypes.string, propTypes.number]),
3219
- selectionEnd: propTypes.oneOfType([propTypes.string, propTypes.number]),
3220
- adjustPosition: propTypes.bool,
3221
- cursorSpacing: propTypes.oneOfType([propTypes.string, propTypes.number]),
3222
- maxlength: propTypes.oneOfType([propTypes.string, propTypes.number]),
3223
- maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
3224
- type: propTypes.string,
3225
- disabled: propTypes.bool,
3226
- border: propTypes.bool,
3227
- editable: propTypes.bool,
3228
- error: propTypes.bool,
3229
- clear: propTypes.bool,
3230
- autoFocus: propTypes.bool,
3231
- focus: propTypes.bool,
3232
- onChange: propTypes.func,
3233
- onFocus: propTypes.func,
3234
- onBlur: propTypes.func,
3235
- onConfirm: propTypes.func,
3236
- onErrorClick: propTypes.func,
3237
- onClick: propTypes.func,
3238
- required: propTypes.bool
3291
+ className: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
3292
+ customStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3293
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3294
+ name: PropTypes.string,
3295
+ placeholder: PropTypes.string,
3296
+ placeholderStyle: PropTypes.string,
3297
+ placeholderClass: PropTypes.string,
3298
+ title: PropTypes.string,
3299
+ confirmType: PropTypes.string,
3300
+ cursor: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3301
+ selectionStart: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3302
+ selectionEnd: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3303
+ adjustPosition: PropTypes.bool,
3304
+ cursorSpacing: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3305
+ maxlength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3306
+ maxLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3307
+ type: PropTypes.string,
3308
+ disabled: PropTypes.bool,
3309
+ border: PropTypes.bool,
3310
+ editable: PropTypes.bool,
3311
+ error: PropTypes.bool,
3312
+ clear: PropTypes.bool,
3313
+ autoFocus: PropTypes.bool,
3314
+ focus: PropTypes.bool,
3315
+ onChange: PropTypes.func,
3316
+ onFocus: PropTypes.func,
3317
+ onBlur: PropTypes.func,
3318
+ onConfirm: PropTypes.func,
3319
+ onErrorClick: PropTypes.func,
3320
+ onClick: PropTypes.func,
3321
+ required: PropTypes.bool
3239
3322
  };
3240
3323
 
3241
3324
  /**
@@ -3495,20 +3578,20 @@ AtInputNumber.defaultProps = {
3495
3578
  onChange: function () { }
3496
3579
  };
3497
3580
  AtInputNumber.propTypes = {
3498
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3499
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3500
- value: propTypes.oneOfType([propTypes.number, propTypes.string]),
3501
- type: propTypes.oneOf(['number', 'digit']),
3502
- disabled: propTypes.bool,
3503
- width: propTypes.number,
3504
- min: propTypes.number,
3505
- max: propTypes.number,
3506
- step: propTypes.number,
3507
- size: propTypes.oneOf(['normal', 'large']),
3508
- disabledInput: propTypes.bool,
3509
- onChange: propTypes.func,
3510
- onBlur: propTypes.func,
3511
- onErrorInput: propTypes.func
3581
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3582
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3583
+ value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
3584
+ type: PropTypes.oneOf(['number', 'digit']),
3585
+ disabled: PropTypes.bool,
3586
+ width: PropTypes.number,
3587
+ min: PropTypes.number,
3588
+ max: PropTypes.number,
3589
+ step: PropTypes.number,
3590
+ size: PropTypes.oneOf(['normal', 'large']),
3591
+ disabledInput: PropTypes.bool,
3592
+ onChange: PropTypes.func,
3593
+ onBlur: PropTypes.func,
3594
+ onErrorInput: PropTypes.func
3512
3595
  };
3513
3596
 
3514
3597
  var AtModalAction = /** @class */ (function (_super) {
@@ -3529,7 +3612,7 @@ AtModalAction.defaultProps = {
3529
3612
  isSimple: false
3530
3613
  };
3531
3614
  AtModalAction.propTypes = {
3532
- isSimple: propTypes.bool
3615
+ isSimple: PropTypes.bool
3533
3616
  };
3534
3617
 
3535
3618
  var AtModalContent = /** @class */ (function (_super) {
@@ -3636,15 +3719,15 @@ AtModal.defaultProps = {
3636
3719
  closeOnClickOverlay: true
3637
3720
  };
3638
3721
  AtModal.propTypes = {
3639
- title: propTypes.string,
3640
- isOpened: propTypes.bool,
3641
- onCancel: propTypes.func,
3642
- onConfirm: propTypes.func,
3643
- onClose: propTypes.func,
3644
- content: propTypes.string,
3645
- closeOnClickOverlay: propTypes.bool,
3646
- cancelText: propTypes.string,
3647
- confirmText: propTypes.string
3722
+ title: PropTypes.string,
3723
+ isOpened: PropTypes.bool,
3724
+ onCancel: PropTypes.func,
3725
+ onConfirm: PropTypes.func,
3726
+ onClose: PropTypes.func,
3727
+ content: PropTypes.string,
3728
+ closeOnClickOverlay: PropTypes.bool,
3729
+ cancelText: PropTypes.string,
3730
+ confirmText: PropTypes.string
3648
3731
  };
3649
3732
 
3650
3733
  var AtNavBar = /** @class */ (function (_super) {
@@ -3734,23 +3817,23 @@ AtNavBar.defaultProps = {
3734
3817
  rightSecondIconType: ''
3735
3818
  };
3736
3819
  AtNavBar.propTypes = {
3737
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3738
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3739
- fixed: propTypes.bool,
3740
- border: propTypes.bool,
3741
- color: propTypes.string,
3742
- leftIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
3743
- leftText: propTypes.string,
3744
- title: propTypes.string,
3745
- rightFirstIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
3746
- rightSecondIconType: propTypes.oneOfType([
3747
- propTypes.string,
3748
- propTypes.object
3820
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3821
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3822
+ fixed: PropTypes.bool,
3823
+ border: PropTypes.bool,
3824
+ color: PropTypes.string,
3825
+ leftIconType: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3826
+ leftText: PropTypes.string,
3827
+ title: PropTypes.string,
3828
+ rightFirstIconType: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3829
+ rightSecondIconType: PropTypes.oneOfType([
3830
+ PropTypes.string,
3831
+ PropTypes.object
3749
3832
  ]),
3750
- onClickLeftIcon: propTypes.func,
3751
- onClickRgIconSt: propTypes.func,
3752
- onClickRgIconNd: propTypes.func,
3753
- onClickTitle: propTypes.func
3833
+ onClickLeftIcon: PropTypes.func,
3834
+ onClickRgIconSt: PropTypes.func,
3835
+ onClickRgIconNd: PropTypes.func,
3836
+ onClickTitle: PropTypes.func
3754
3837
  };
3755
3838
 
3756
3839
  var AtNoticebar = /** @class */ (function (_super) {
@@ -3903,16 +3986,16 @@ AtNoticebar.defaultProps = {
3903
3986
  customStyle: {}
3904
3987
  };
3905
3988
  AtNoticebar.propTypes = {
3906
- close: propTypes.bool,
3907
- single: propTypes.bool,
3908
- marquee: propTypes.bool,
3909
- speed: propTypes.number,
3910
- moreText: propTypes.string,
3911
- showMore: propTypes.bool,
3912
- icon: propTypes.string,
3913
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3914
- onClose: propTypes.func,
3915
- onGotoMore: propTypes.func
3989
+ close: PropTypes.bool,
3990
+ single: PropTypes.bool,
3991
+ marquee: PropTypes.bool,
3992
+ speed: PropTypes.number,
3993
+ moreText: PropTypes.string,
3994
+ showMore: PropTypes.bool,
3995
+ icon: PropTypes.string,
3996
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3997
+ onClose: PropTypes.func,
3998
+ onGotoMore: PropTypes.func
3916
3999
  };
3917
4000
 
3918
4001
  var MIN_MAXPAGE = 1;
@@ -4021,12 +4104,12 @@ AtPagination.defaultProps = {
4021
4104
  customStyle: {}
4022
4105
  };
4023
4106
  AtPagination.propTypes = {
4024
- current: propTypes.number,
4025
- total: propTypes.number,
4026
- pageSize: propTypes.number,
4027
- icon: propTypes.bool,
4028
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4029
- onPageChange: propTypes.func
4107
+ current: PropTypes.number,
4108
+ total: PropTypes.number,
4109
+ pageSize: PropTypes.number,
4110
+ icon: PropTypes.bool,
4111
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4112
+ onPageChange: PropTypes.func
4030
4113
  };
4031
4114
 
4032
4115
  var AtProgress = /** @class */ (function (_super) {
@@ -4069,11 +4152,11 @@ var AtProgress = /** @class */ (function (_super) {
4069
4152
  return AtProgress;
4070
4153
  }(React__default["default"].Component));
4071
4154
  AtProgress.propTypes = {
4072
- color: propTypes.string,
4073
- status: propTypes.string,
4074
- percent: propTypes.number,
4075
- strokeWidth: propTypes.number,
4076
- isHidePercent: propTypes.bool
4155
+ color: PropTypes.string,
4156
+ status: PropTypes.string,
4157
+ percent: PropTypes.number,
4158
+ strokeWidth: PropTypes.number,
4159
+ isHidePercent: PropTypes.bool
4077
4160
  };
4078
4161
 
4079
4162
  var AtRadio = /** @class */ (function (_super) {
@@ -4114,11 +4197,11 @@ AtRadio.defaultProps = {
4114
4197
  onClick: function () { }
4115
4198
  };
4116
4199
  AtRadio.propTypes = {
4117
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4118
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4119
- value: propTypes.string,
4120
- options: propTypes.array,
4121
- onClick: propTypes.func
4200
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4201
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4202
+ value: PropTypes.string,
4203
+ options: PropTypes.array,
4204
+ onClick: PropTypes.func
4122
4205
  };
4123
4206
 
4124
4207
  var AtRate = /** @class */ (function (_super) {
@@ -4169,13 +4252,13 @@ AtRate.defaultProps = {
4169
4252
  margin: 5
4170
4253
  };
4171
4254
  AtRate.propTypes = {
4172
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4173
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4174
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
4175
- value: propTypes.number,
4176
- max: propTypes.number,
4177
- margin: propTypes.number,
4178
- onChange: propTypes.func
4255
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4256
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4257
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4258
+ value: PropTypes.number,
4259
+ max: PropTypes.number,
4260
+ margin: PropTypes.number,
4261
+ onChange: PropTypes.func
4179
4262
  };
4180
4263
 
4181
4264
  var AtSegmentedControl = /** @class */ (function (_super) {
@@ -4228,14 +4311,14 @@ AtSegmentedControl.defaultProps = {
4228
4311
  onClick: function () { }
4229
4312
  };
4230
4313
  AtSegmentedControl.propTypes = {
4231
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4232
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4233
- current: propTypes.number,
4234
- color: propTypes.string,
4235
- fontSize: propTypes.oneOfType([propTypes.string, propTypes.number]),
4236
- disabled: propTypes.bool,
4237
- values: propTypes.array,
4238
- onClick: propTypes.func
4314
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4315
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4316
+ current: PropTypes.number,
4317
+ color: PropTypes.string,
4318
+ fontSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4319
+ disabled: PropTypes.bool,
4320
+ values: PropTypes.array,
4321
+ onClick: PropTypes.func
4239
4322
  };
4240
4323
 
4241
4324
  var AtSwitch = /** @class */ (function (_super) {
@@ -4275,14 +4358,14 @@ AtSwitch.defaultProps = {
4275
4358
  checked: false
4276
4359
  };
4277
4360
  AtSwitch.propTypes = {
4278
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4279
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4280
- title: propTypes.string,
4281
- color: propTypes.string,
4282
- checked: propTypes.bool,
4283
- border: propTypes.bool,
4284
- disabled: propTypes.bool,
4285
- onChange: propTypes.func
4361
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4362
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4363
+ title: PropTypes.string,
4364
+ color: PropTypes.string,
4365
+ checked: PropTypes.bool,
4366
+ border: PropTypes.bool,
4367
+ disabled: PropTypes.bool,
4368
+ onChange: PropTypes.func
4286
4369
  };
4287
4370
 
4288
4371
  var AtTabBar = /** @class */ (function (_super) {
@@ -4371,17 +4454,17 @@ AtTabBar.defaultProps = {
4371
4454
  onClick: function () { }
4372
4455
  };
4373
4456
  AtTabBar.propTypes = {
4374
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4375
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4376
- fixed: propTypes.bool,
4377
- backgroundColor: propTypes.string,
4378
- current: propTypes.number,
4379
- iconSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
4380
- fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
4381
- color: propTypes.string,
4382
- selectedColor: propTypes.string,
4383
- tabList: propTypes.array,
4384
- onClick: propTypes.func
4457
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4458
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4459
+ fixed: PropTypes.bool,
4460
+ backgroundColor: PropTypes.string,
4461
+ current: PropTypes.number,
4462
+ iconSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
4463
+ fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
4464
+ color: PropTypes.string,
4465
+ selectedColor: PropTypes.string,
4466
+ tabList: PropTypes.array,
4467
+ onClick: PropTypes.func
4385
4468
  };
4386
4469
 
4387
4470
  var ENV$3 = Taro__default["default"].getEnv();
@@ -4518,8 +4601,7 @@ var AtTabs = /** @class */ (function (_super) {
4518
4601
  transformStyle = "translate3d(-".concat(current * 100, "%, 0px, 0px)");
4519
4602
  }
4520
4603
  Object.assign(bodyStyle, {
4521
- transform: transformStyle,
4522
- '-webkit-transform': transformStyle
4604
+ transform: transformStyle
4523
4605
  });
4524
4606
  if (!animated) {
4525
4607
  bodyStyle.transition = 'unset';
@@ -4564,16 +4646,16 @@ AtTabs.defaultProps = {
4564
4646
  onClick: function () { }
4565
4647
  };
4566
4648
  AtTabs.propTypes = {
4567
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4568
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4569
- height: propTypes.string,
4570
- tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
4571
- current: propTypes.number,
4572
- swipeable: propTypes.bool,
4573
- scroll: propTypes.bool,
4574
- animated: propTypes.bool,
4575
- tabList: propTypes.array,
4576
- onClick: propTypes.func
4649
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4650
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4651
+ height: PropTypes.string,
4652
+ tabDirection: PropTypes.oneOf(['horizontal', 'vertical']),
4653
+ current: PropTypes.number,
4654
+ swipeable: PropTypes.bool,
4655
+ scroll: PropTypes.bool,
4656
+ animated: PropTypes.bool,
4657
+ tabList: PropTypes.array,
4658
+ onClick: PropTypes.func
4577
4659
  };
4578
4660
 
4579
4661
  var AtTabsPane = /** @class */ (function (_super) {
@@ -4600,11 +4682,11 @@ AtTabsPane.defaultProps = {
4600
4682
  current: 0
4601
4683
  };
4602
4684
  AtTabsPane.propTypes = {
4603
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4604
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4605
- tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
4606
- index: propTypes.number,
4607
- current: propTypes.number
4685
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4686
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4687
+ tabDirection: PropTypes.oneOf(['horizontal', 'vertical']),
4688
+ index: PropTypes.number,
4689
+ current: PropTypes.number
4608
4690
  };
4609
4691
 
4610
4692
  var SIZE_CLASS = {
@@ -4654,14 +4736,14 @@ AtTag.defaultProps = {
4654
4736
  customStyle: {}
4655
4737
  };
4656
4738
  AtTag.propTypes = {
4657
- size: propTypes.oneOf(['normal', 'small']),
4658
- type: propTypes.oneOf(['', 'primary']),
4659
- name: propTypes.string,
4660
- circle: propTypes.bool,
4661
- active: propTypes.bool,
4662
- disabled: propTypes.bool,
4663
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4664
- onClick: propTypes.func
4739
+ size: PropTypes.oneOf(['normal', 'small']),
4740
+ type: PropTypes.oneOf(['', 'primary']),
4741
+ name: PropTypes.string,
4742
+ circle: PropTypes.bool,
4743
+ active: PropTypes.bool,
4744
+ disabled: PropTypes.bool,
4745
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4746
+ onClick: PropTypes.func
4665
4747
  };
4666
4748
 
4667
4749
  function getMaxLength(maxLength, textOverflowForbidden) {
@@ -4731,29 +4813,29 @@ AtTextarea.defaultProps = {
4731
4813
  onChange: function () { }
4732
4814
  };
4733
4815
  AtTextarea.propTypes = {
4734
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4735
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4736
- value: propTypes.string.isRequired,
4737
- cursorSpacing: propTypes.number,
4738
- maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
4739
- placeholderClass: propTypes.string,
4740
- placeholderStyle: propTypes.string,
4741
- placeholder: propTypes.string,
4742
- disabled: propTypes.bool,
4743
- autoFocus: propTypes.bool,
4744
- focus: propTypes.bool,
4745
- showConfirmBar: propTypes.bool,
4746
- selectionStart: propTypes.number,
4747
- selectionEnd: propTypes.number,
4748
- count: propTypes.bool,
4749
- textOverflowForbidden: propTypes.bool,
4750
- fixed: propTypes.bool,
4751
- height: propTypes.oneOfType([propTypes.string, propTypes.number]),
4752
- onLinechange: propTypes.func,
4753
- onChange: propTypes.func.isRequired,
4754
- onFocus: propTypes.func,
4755
- onBlur: propTypes.func,
4756
- onConfirm: propTypes.func
4816
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4817
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4818
+ value: PropTypes.string.isRequired,
4819
+ cursorSpacing: PropTypes.number,
4820
+ maxLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4821
+ placeholderClass: PropTypes.string,
4822
+ placeholderStyle: PropTypes.string,
4823
+ placeholder: PropTypes.string,
4824
+ disabled: PropTypes.bool,
4825
+ autoFocus: PropTypes.bool,
4826
+ focus: PropTypes.bool,
4827
+ showConfirmBar: PropTypes.bool,
4828
+ selectionStart: PropTypes.number,
4829
+ selectionEnd: PropTypes.number,
4830
+ count: PropTypes.bool,
4831
+ textOverflowForbidden: PropTypes.bool,
4832
+ fixed: PropTypes.bool,
4833
+ height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4834
+ onLinechange: PropTypes.func,
4835
+ onChange: PropTypes.func.isRequired,
4836
+ onFocus: PropTypes.func,
4837
+ onBlur: PropTypes.func,
4838
+ onConfirm: PropTypes.func
4757
4839
  };
4758
4840
 
4759
4841
  var AtTimeline = /** @class */ (function (_super) {
@@ -4807,9 +4889,9 @@ AtTimeline.defaultProps = {
4807
4889
  customStyle: {}
4808
4890
  };
4809
4891
  AtTimeline.propTypes = {
4810
- pending: propTypes.bool,
4811
- items: propTypes.arrayOf(propTypes.object),
4812
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string])
4892
+ pending: PropTypes.bool,
4893
+ items: PropTypes.arrayOf(PropTypes.object),
4894
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string])
4813
4895
  };
4814
4896
 
4815
4897
  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+BvoJuBd09g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RC3v9kdD1+BGwDV42P7+/nGBA3CUfiKq/IR/KVr4rXHViQvgxsB1p9zSvquxPcCc6t24a2zScOEi52UhblVb5p5sdr2kZsk/rghBtAzA+L0iwoH1P7HLgFDOYrv7I1sVm2i4OiIl/c2GRM+NxjDOAQOVk/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";
@@ -4928,15 +5010,15 @@ AtToast.defaultProps = {
4928
5010
  isOpened: false
4929
5011
  };
4930
5012
  AtToast.propTypes = {
4931
- text: propTypes.string,
4932
- icon: propTypes.string,
4933
- hasMask: propTypes.bool,
4934
- image: propTypes.string,
4935
- isOpened: propTypes.bool,
4936
- duration: propTypes.number,
4937
- status: propTypes.oneOf(['', 'error', 'loading', 'success']),
4938
- onClick: propTypes.func,
4939
- onClose: propTypes.func
5013
+ text: PropTypes.string,
5014
+ icon: PropTypes.string,
5015
+ hasMask: PropTypes.bool,
5016
+ image: PropTypes.string,
5017
+ isOpened: PropTypes.bool,
5018
+ duration: PropTypes.number,
5019
+ status: PropTypes.oneOf(['', 'error', 'loading', 'success']),
5020
+ onClick: PropTypes.func,
5021
+ onClose: PropTypes.func
4940
5022
  };
4941
5023
 
4942
5024
  var AtAccordion = /** @class */ (function (_super) {
@@ -5044,15 +5126,15 @@ AtAccordion.defaultProps = {
5044
5126
  isAnimation: true
5045
5127
  };
5046
5128
  AtAccordion.propTypes = {
5047
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5048
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5049
- open: propTypes.bool,
5050
- isAnimation: propTypes.bool,
5051
- title: propTypes.string,
5052
- note: propTypes.string,
5053
- icon: propTypes.object,
5054
- hasBorder: propTypes.bool,
5055
- onClick: propTypes.func
5129
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5130
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5131
+ open: PropTypes.bool,
5132
+ isAnimation: PropTypes.bool,
5133
+ title: PropTypes.string,
5134
+ note: PropTypes.string,
5135
+ icon: PropTypes.object,
5136
+ hasBorder: PropTypes.bool,
5137
+ onClick: PropTypes.func
5056
5138
  };
5057
5139
 
5058
5140
  var AtSlider = /** @class */ (function (_super) {
@@ -5115,20 +5197,20 @@ AtSlider.defaultProps = {
5115
5197
  showValue: false
5116
5198
  };
5117
5199
  AtSlider.propTypes = {
5118
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5119
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5120
- min: propTypes.number,
5121
- max: propTypes.number,
5122
- step: propTypes.number,
5123
- value: propTypes.number,
5124
- disabled: propTypes.bool,
5125
- activeColor: propTypes.string,
5126
- backgroundColor: propTypes.string,
5127
- blockSize: propTypes.number,
5128
- blockColor: propTypes.string,
5129
- showValue: propTypes.bool,
5130
- onChange: propTypes.func,
5131
- onChanging: propTypes.func
5200
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5201
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5202
+ min: PropTypes.number,
5203
+ max: PropTypes.number,
5204
+ step: PropTypes.number,
5205
+ value: PropTypes.number,
5206
+ disabled: PropTypes.bool,
5207
+ activeColor: PropTypes.string,
5208
+ backgroundColor: PropTypes.string,
5209
+ blockSize: PropTypes.number,
5210
+ blockColor: PropTypes.string,
5211
+ showValue: PropTypes.bool,
5212
+ onChange: PropTypes.func,
5213
+ onChanging: PropTypes.func
5132
5214
  };
5133
5215
 
5134
5216
  var AtSwipeActionOptions = /** @class */ (function (_super) {
@@ -5171,22 +5253,7 @@ var AtSwipeAction = /** @class */ (function (_super) {
5171
5253
  };
5172
5254
  _this.onTouchEnd = function (e) {
5173
5255
  var maxOffsetSize = _this.state.maxOffsetSize;
5174
- if (_this.moveX === -maxOffsetSize) {
5175
- _this._reset(true);
5176
- _this.handleOpened(e);
5177
- return;
5178
- }
5179
- if (_this.moveX === 0) {
5180
- _this._reset(false);
5181
- _this.handleClosed(e);
5182
- return;
5183
- }
5184
- if (_this.state._isOpened && _this.moveX < 0) {
5185
- _this._reset(false);
5186
- _this.handleClosed(e);
5187
- return;
5188
- }
5189
- if (Math.abs(_this.moveX) < maxOffsetSize * _this.moveRatio) {
5256
+ if (Math.abs(_this.moveX) < maxOffsetSize / 2) {
5190
5257
  _this._reset(false);
5191
5258
  _this.handleClosed(e);
5192
5259
  }
@@ -5198,7 +5265,7 @@ var AtSwipeAction = /** @class */ (function (_super) {
5198
5265
  _this.onChange = function (e) {
5199
5266
  _this.moveX = e.detail.x;
5200
5267
  };
5201
- var isOpened = props.isOpened, moveRatio = props.moveRatio;
5268
+ var isOpened = props.isOpened;
5202
5269
  _this.state = {
5203
5270
  componentId: uuid(),
5204
5271
  // eslint-disable-next-line no-extra-boolean-cast
@@ -5209,7 +5276,6 @@ var AtSwipeAction = /** @class */ (function (_super) {
5209
5276
  maxOffsetSize: 0
5210
5277
  };
5211
5278
  _this.moveX = _this.state.offsetSize;
5212
- _this.moveRatio = moveRatio || 0.5;
5213
5279
  return _this;
5214
5280
  }
5215
5281
  AtSwipeAction.prototype.componentDidMount = function () {
@@ -5332,21 +5398,21 @@ AtSwipeAction.defaultProps = {
5332
5398
  areaWidth: 0
5333
5399
  };
5334
5400
  AtSwipeAction.propTypes = {
5335
- isOpened: propTypes.bool,
5336
- disabled: propTypes.bool,
5337
- autoClose: propTypes.bool,
5338
- options: propTypes.arrayOf(propTypes.shape({
5339
- text: propTypes.string,
5340
- style: propTypes.oneOfType([propTypes.object, propTypes.string]),
5341
- className: propTypes.oneOfType([
5342
- propTypes.object,
5343
- propTypes.string,
5344
- propTypes.array
5401
+ isOpened: PropTypes.bool,
5402
+ disabled: PropTypes.bool,
5403
+ autoClose: PropTypes.bool,
5404
+ options: PropTypes.arrayOf(PropTypes.shape({
5405
+ text: PropTypes.string,
5406
+ style: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5407
+ className: PropTypes.oneOfType([
5408
+ PropTypes.object,
5409
+ PropTypes.string,
5410
+ PropTypes.array
5345
5411
  ])
5346
5412
  })),
5347
- onClick: propTypes.func,
5348
- onOpened: propTypes.func,
5349
- onClosed: propTypes.func
5413
+ onClick: PropTypes.func,
5414
+ onOpened: PropTypes.func,
5415
+ onClosed: PropTypes.func
5350
5416
  };
5351
5417
 
5352
5418
  var AtSearchBar = /** @class */ (function (_super) {
@@ -5451,22 +5517,22 @@ AtSearchBar.defaultProps = {
5451
5517
  enableNative: true
5452
5518
  };
5453
5519
  AtSearchBar.propTypes = {
5454
- value: propTypes.string,
5455
- placeholder: propTypes.string,
5456
- maxLength: propTypes.number,
5457
- fixed: propTypes.bool,
5458
- focus: propTypes.bool,
5459
- disabled: propTypes.bool,
5460
- showActionButton: propTypes.bool,
5461
- actionName: propTypes.string,
5462
- inputType: propTypes.oneOf(['text', 'number', 'idcard', 'digit']),
5463
- onChange: propTypes.func,
5464
- onFocus: propTypes.func,
5465
- onBlur: propTypes.func,
5466
- onConfirm: propTypes.func,
5467
- onActionClick: propTypes.func,
5468
- onClear: propTypes.func,
5469
- enableNative: propTypes.bool
5520
+ value: PropTypes.string,
5521
+ placeholder: PropTypes.string,
5522
+ maxLength: PropTypes.number,
5523
+ fixed: PropTypes.bool,
5524
+ focus: PropTypes.bool,
5525
+ disabled: PropTypes.bool,
5526
+ showActionButton: PropTypes.bool,
5527
+ actionName: PropTypes.string,
5528
+ inputType: PropTypes.oneOf(['text', 'number', 'idcard', 'digit']),
5529
+ onChange: PropTypes.func,
5530
+ onFocus: PropTypes.func,
5531
+ onBlur: PropTypes.func,
5532
+ onConfirm: PropTypes.func,
5533
+ onActionClick: PropTypes.func,
5534
+ onClear: PropTypes.func,
5535
+ enableNative: PropTypes.bool
5470
5536
  };
5471
5537
 
5472
5538
  var AtLoadMore = /** @class */ (function (_super) {
@@ -5505,15 +5571,15 @@ AtLoadMore.defaultProps = {
5505
5571
  noMoreText: '没有更多'
5506
5572
  };
5507
5573
  AtLoadMore.propTypes = {
5508
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5509
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5510
- noMoreTextStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5511
- moreBtnStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5512
- status: propTypes.oneOf(['more', 'loading', 'noMore']),
5513
- loadingText: propTypes.string,
5514
- moreText: propTypes.string,
5515
- noMoreText: propTypes.string,
5516
- onClick: propTypes.func
5574
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5575
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5576
+ noMoreTextStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5577
+ moreBtnStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5578
+ status: PropTypes.oneOf(['more', 'loading', 'noMore']),
5579
+ loadingText: PropTypes.string,
5580
+ moreText: PropTypes.string,
5581
+ noMoreText: PropTypes.string,
5582
+ onClick: PropTypes.func
5517
5583
  };
5518
5584
 
5519
5585
  var AtDivider = /** @class */ (function (_super) {
@@ -5547,13 +5613,13 @@ AtDivider.defaultProps = {
5547
5613
  lineColor: ''
5548
5614
  };
5549
5615
  AtDivider.propTypes = {
5550
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5551
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5552
- content: propTypes.string,
5553
- height: propTypes.oneOfType([propTypes.number, propTypes.string]),
5554
- fontColor: propTypes.string,
5555
- fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
5556
- lineColor: propTypes.string
5616
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5617
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5618
+ content: PropTypes.string,
5619
+ height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
5620
+ fontColor: PropTypes.string,
5621
+ fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
5622
+ lineColor: PropTypes.string
5557
5623
  };
5558
5624
 
5559
5625
  var AtCountdownItem = /** @class */ (function (_super) {
@@ -5578,8 +5644,8 @@ AtCountdownItem.defaultProps = {
5578
5644
  separator: ':'
5579
5645
  };
5580
5646
  AtCountdownItem.propTypes = {
5581
- num: propTypes.number.isRequired,
5582
- separator: propTypes.string
5647
+ num: PropTypes.number.isRequired,
5648
+ separator: PropTypes.string
5583
5649
  };
5584
5650
 
5585
5651
  var toSeconds = function (day, hours, minutes, seconds) { return day * 60 * 60 * 24 + hours * 60 * 60 + minutes * 60 + seconds; };
@@ -5704,18 +5770,18 @@ AtCountdown.defaultProps = {
5704
5770
  seconds: 0
5705
5771
  };
5706
5772
  AtCountdown.propTypes = {
5707
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5708
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5709
- isCard: propTypes.bool,
5710
- isShowDay: propTypes.bool,
5711
- isShowHour: propTypes.bool,
5712
- isShowMinute: propTypes.bool,
5713
- format: propTypes.object,
5714
- day: propTypes.number,
5715
- hours: propTypes.number,
5716
- minutes: propTypes.number,
5717
- seconds: propTypes.number,
5718
- onTimeUp: propTypes.func
5773
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5774
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5775
+ isCard: PropTypes.bool,
5776
+ isShowDay: PropTypes.bool,
5777
+ isShowHour: PropTypes.bool,
5778
+ isShowMinute: PropTypes.bool,
5779
+ format: PropTypes.object,
5780
+ day: PropTypes.number,
5781
+ hours: PropTypes.number,
5782
+ minutes: PropTypes.number,
5783
+ seconds: PropTypes.number,
5784
+ onTimeUp: PropTypes.func
5719
5785
  };
5720
5786
 
5721
5787
  var AtSteps = /** @class */ (function (_super) {
@@ -5766,11 +5832,11 @@ AtSteps.defaultProps = {
5766
5832
  onChange: function () { }
5767
5833
  };
5768
5834
  AtSteps.propTypes = {
5769
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5770
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5771
- current: propTypes.number,
5772
- items: propTypes.array,
5773
- onChange: propTypes.func
5835
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5836
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5837
+ current: PropTypes.number,
5838
+ items: PropTypes.array,
5839
+ onChange: PropTypes.func
5774
5840
  };
5775
5841
 
5776
5842
  var AtCurtain = /** @class */ (function (_super) {
@@ -5814,11 +5880,11 @@ AtCurtain.defaultProps = {
5814
5880
  onClose: function () { }
5815
5881
  };
5816
5882
  AtCurtain.propTypes = {
5817
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5818
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5819
- isOpened: propTypes.bool,
5820
- closeBtnPosition: propTypes.string,
5821
- onClose: propTypes.func
5883
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5884
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5885
+ isOpened: PropTypes.bool,
5886
+ closeBtnPosition: PropTypes.string,
5887
+ onClose: PropTypes.func
5822
5888
  };
5823
5889
 
5824
5890
  var AtMessage = /** @class */ (function (_super) {
@@ -5886,8 +5952,8 @@ AtMessage.defaultProps = {
5886
5952
  className: ''
5887
5953
  };
5888
5954
  AtMessage.propTypes = {
5889
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5890
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
5955
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5956
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
5891
5957
  };
5892
5958
 
5893
5959
  // 生成 jsx 二维矩阵
@@ -5999,10 +6065,10 @@ AtImagePicker.defaultProps = {
5999
6065
  onChange: function () { }
6000
6066
  };
6001
6067
  AtImagePicker.propTypes = {
6002
- className: propTypes.oneOfType([propTypes.string, propTypes.array]),
6003
- customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
6004
- files: propTypes.array,
6005
- mode: propTypes.oneOf([
6068
+ className: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
6069
+ customStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
6070
+ files: PropTypes.array,
6071
+ mode: PropTypes.oneOf([
6006
6072
  'scaleToFill',
6007
6073
  'aspectFit',
6008
6074
  'aspectFill',
@@ -6017,15 +6083,15 @@ AtImagePicker.propTypes = {
6017
6083
  'bottom left',
6018
6084
  'bottom right'
6019
6085
  ]),
6020
- showAddBtn: propTypes.bool,
6021
- multiple: propTypes.bool,
6022
- length: propTypes.number,
6023
- onChange: propTypes.func,
6024
- onImageClick: propTypes.func,
6025
- onFail: propTypes.func,
6026
- count: propTypes.number,
6027
- sizeType: propTypes.array,
6028
- sourceType: propTypes.array
6086
+ showAddBtn: PropTypes.bool,
6087
+ multiple: PropTypes.bool,
6088
+ length: PropTypes.number,
6089
+ onChange: PropTypes.func,
6090
+ onImageClick: PropTypes.func,
6091
+ onFail: PropTypes.func,
6092
+ count: PropTypes.number,
6093
+ sizeType: PropTypes.array,
6094
+ sourceType: PropTypes.array
6029
6095
  };
6030
6096
 
6031
6097
  var AtRange = /** @class */ (function (_super) {
@@ -6167,18 +6233,18 @@ AtRange.defaultProps = {
6167
6233
  blockSize: 0
6168
6234
  };
6169
6235
  AtRange.propTypes = {
6170
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6171
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
6172
- sliderStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6173
- railStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6174
- trackStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6175
- value: propTypes.array,
6176
- min: propTypes.number,
6177
- max: propTypes.number,
6178
- disabled: propTypes.bool,
6179
- blockSize: propTypes.number,
6180
- onChange: propTypes.func,
6181
- onAfterChange: propTypes.func
6236
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6237
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
6238
+ sliderStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6239
+ railStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6240
+ trackStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6241
+ value: PropTypes.array,
6242
+ min: PropTypes.number,
6243
+ max: PropTypes.number,
6244
+ disabled: PropTypes.bool,
6245
+ blockSize: PropTypes.number,
6246
+ onChange: PropTypes.func,
6247
+ onAfterChange: PropTypes.func
6182
6248
  };
6183
6249
 
6184
6250
  var ENV = Taro__default["default"].getEnv();
@@ -6210,7 +6276,8 @@ var AtIndexes = /** @class */ (function (_super) {
6210
6276
  _scrollTop: 0,
6211
6277
  _tipText: '',
6212
6278
  _isShowToast: false,
6213
- isWEB: Taro__default["default"].getEnv() === Taro__default["default"].ENV_TYPE.WEB
6279
+ isWEB: Taro__default["default"].getEnv() === Taro__default["default"].ENV_TYPE.WEB,
6280
+ currentIndex: -1
6214
6281
  };
6215
6282
  // 右侧导航高度
6216
6283
  _this.menuHeight = 0;
@@ -6221,6 +6288,7 @@ var AtIndexes = /** @class */ (function (_super) {
6221
6288
  // 当前索引
6222
6289
  _this.currentIndex = -1;
6223
6290
  _this.listId = isTest() ? 'indexes-list-AOTU2018' : "list-".concat(uuid());
6291
+ _this.indexMap = [];
6224
6292
  return _this;
6225
6293
  }
6226
6294
  AtIndexes.prototype.jumpTarget = function (_scrollIntoView, idx) {
@@ -6278,21 +6346,69 @@ var AtIndexes = /** @class */ (function (_super) {
6278
6346
  }
6279
6347
  };
6280
6348
  AtIndexes.prototype.initData = function () {
6281
- var _this = this;
6282
- delayQuerySelector('.at-indexes__menu').then(function (rect) {
6283
- var len = _this.props.list.length;
6284
- _this.menuHeight = rect[0].height;
6285
- _this.startTop = rect[0].top;
6286
- _this.itemHeight = Math.floor(_this.menuHeight / (len + 1));
6349
+ var _a, _b, _c, _d;
6350
+ return __awaiter(this, void 0, void 0, function () {
6351
+ var headerHeight, itemHeight, titleHeight;
6352
+ var _this = this;
6353
+ return __generator(this, function (_e) {
6354
+ switch (_e.label) {
6355
+ case 0:
6356
+ delayQuerySelector('.at-indexes__menu').then(function (rect) {
6357
+ var len = _this.props.list.length;
6358
+ _this.menuHeight = rect[0].height;
6359
+ _this.startTop = rect[0].top;
6360
+ _this.itemHeight = Math.floor(_this.menuHeight / (len + 1));
6361
+ });
6362
+ return [4 /*yield*/, delayQuerySelector('#at-indexes__top')];
6363
+ case 1:
6364
+ headerHeight = ((_b = (_a = (_e.sent())) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.height) || 0;
6365
+ return [4 /*yield*/, delayQuerySelector('.at-list__item')];
6366
+ case 2:
6367
+ itemHeight = ((_c = (_e.sent())) === null || _c === void 0 ? void 0 : _c[0].height) || 0;
6368
+ return [4 /*yield*/, delayQuerySelector('.at-indexes__list-title')];
6369
+ case 3:
6370
+ titleHeight = ((_d = (_e.sent())) === null || _d === void 0 ? void 0 : _d[0].height) || 0;
6371
+ this.indexMap = [];
6372
+ this.props.list.forEach(function (dataList, i) {
6373
+ if (i === 0) {
6374
+ _this.indexMap.push({
6375
+ key: dataList.key,
6376
+ startHeight: headerHeight,
6377
+ endHeight: dataList.items.length * itemHeight + headerHeight + titleHeight
6378
+ });
6379
+ }
6380
+ else {
6381
+ var prev = _this.indexMap[i - 1];
6382
+ _this.indexMap.push({
6383
+ key: dataList.key,
6384
+ startHeight: prev.endHeight,
6385
+ endHeight: prev.endHeight + dataList.items.length * itemHeight + titleHeight
6386
+ });
6387
+ }
6388
+ });
6389
+ return [2 /*return*/];
6390
+ }
6391
+ });
6287
6392
  });
6288
6393
  };
6289
6394
  AtIndexes.prototype.handleScroll = function (e) {
6290
6395
  if (e && e.detail) {
6396
+ var scrollTop = e.detail.scrollTop;
6291
6397
  this.setState({
6292
- _scrollTop: e.detail.scrollTop
6398
+ _scrollTop: scrollTop
6293
6399
  });
6400
+ this.getAnchorIndex(scrollTop);
6294
6401
  }
6295
6402
  };
6403
+ // 根据滚动高度,判断当前应该显示的索引值
6404
+ AtIndexes.prototype.getAnchorIndex = function (scrollTop) {
6405
+ var index = this.indexMap.findIndex(function (item) {
6406
+ return scrollTop >= item.startHeight && scrollTop < item.endHeight;
6407
+ });
6408
+ this.setState({
6409
+ currentIndex: index
6410
+ });
6411
+ };
6296
6412
  AtIndexes.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
6297
6413
  if (nextProps.list.length !== this.props.list.length) {
6298
6414
  this.initData();
@@ -6311,13 +6427,15 @@ var AtIndexes = /** @class */ (function (_super) {
6311
6427
  AtIndexes.prototype.render = function () {
6312
6428
  var _this = this;
6313
6429
  var _a = this.props, className = _a.className, customStyle = _a.customStyle, animation = _a.animation, topKey = _a.topKey, list = _a.list;
6314
- var _b = this.state, _scrollTop = _b._scrollTop, _scrollIntoView = _b._scrollIntoView, _tipText = _b._tipText, _isShowToast = _b._isShowToast, isWEB = _b.isWEB;
6430
+ var _b = this.state, _scrollTop = _b._scrollTop, _scrollIntoView = _b._scrollIntoView, _tipText = _b._tipText, _isShowToast = _b._isShowToast, isWEB = _b.isWEB, currentIndex = _b.currentIndex;
6315
6431
  var toastStyle = { minWidth: pxTransform(100) };
6316
6432
  var rootCls = classnames('at-indexes', className);
6317
6433
  var menuList = list.map(function (dataList, i) {
6318
6434
  var key = dataList.key;
6319
6435
  var targetView = "at-indexes__list-".concat(key);
6320
- return (React__default["default"].createElement(components.View, { className: 'at-indexes__menu-item', key: key, onClick: _this.jumpTarget.bind(_this, targetView, i + 1) }, key));
6436
+ return (React__default["default"].createElement(components.View, { className: classnames('at-indexes__menu-item', {
6437
+ 'at-indexes__menu-item--active': currentIndex === i
6438
+ }), key: key, onClick: _this.jumpTarget.bind(_this, targetView, i + 1) }, key));
6321
6439
  });
6322
6440
  var indexesList = list.map(function (dataList) { return (React__default["default"].createElement(components.View, { id: "at-indexes__list-".concat(dataList.key), className: 'at-indexes__list', key: dataList.key },
6323
6441
  React__default["default"].createElement(components.View, { className: 'at-indexes__list-title' }, dataList.title),
@@ -6337,15 +6455,15 @@ var AtIndexes = /** @class */ (function (_super) {
6337
6455
  return AtIndexes;
6338
6456
  }(React__default["default"].Component));
6339
6457
  AtIndexes.propTypes = {
6340
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6341
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
6342
- animation: propTypes.bool,
6343
- isVibrate: propTypes.bool,
6344
- isShowToast: propTypes.bool,
6345
- topKey: propTypes.string,
6346
- list: propTypes.array,
6347
- onClick: propTypes.func,
6348
- onScrollIntoView: propTypes.func
6458
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6459
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
6460
+ animation: PropTypes.bool,
6461
+ isVibrate: PropTypes.bool,
6462
+ isShowToast: PropTypes.bool,
6463
+ topKey: PropTypes.string,
6464
+ list: PropTypes.array,
6465
+ onClick: PropTypes.func,
6466
+ onScrollIntoView: PropTypes.func
6349
6467
  };
6350
6468
  AtIndexes.defaultProps = {
6351
6469
  customStyle: '',
@@ -6358,7 +6476,7 @@ AtIndexes.defaultProps = {
6358
6476
  };
6359
6477
 
6360
6478
  var dayjs_min = createCommonjsModule(function (module, exports) {
6361
- !function(t,e){module.exports=e();}(commonjsGlobal,function(){var t="millisecond",e="second",n="minute",r="hour",s="day",i="week",a="month",u="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,o=/\[.*?\]|Y{2,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,h={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("_")},d=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},f={padStart:d,padZoneStr:function(t){var e=Math.abs(t),n=Math.floor(e/60),r=e%60;return (t<=0?"+":"-")+d(n,2,"0")+":"+d(r,2,"0")},monthDiff:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months"),s=e-r<0,i=t.clone().add(n+(s?-1:1),"months");return Number(-(n+(e-r)/(s?r-i:i-r)))},absFloor:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},prettyUnit:function(c){return {M:a,y:u,w:i,d:s,h:r,m:n,s:e,ms:t}[c]||String(c||"").toLowerCase().replace(/s$/,"")},isUndefined:function(t){return void 0===t}},$="en",l={};l[$]=h;var m=function(t){return t instanceof D},y=function(t,e,n){var r;if(!t)return null;if("string"==typeof t)l[t]&&(r=t),e&&(l[t]=e,r=t);else {var s=t.name;l[s]=t,r=s;}return n||($=r),r},M=function(t,e){if(m(t))return t.clone();var n=e||{};return n.date=t,new D(n)},S=function(t,e){return M(t,{locale:e.$L})},p=f;p.parseLocale=y,p.isDayjs=m,p.wrapper=S;var D=function(){function h(t){this.parse(t);}var d=h.prototype;return d.parse=function(t){var e,n;this.$d=null===(e=t.date)?new Date(NaN):p.isUndefined(e)?new Date:e instanceof Date?e:"string"==typeof e&&/.*[^Z]$/i.test(e)&&(n=e.match(c))?new Date(n[1],n[2]-1,n[3]||1,n[5]||0,n[6]||0,n[7]||0,n[8]||0):new Date(e),this.init(t);},d.init=function(t){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds(),this.$L=this.$L||y(t.locale,null,!0)||$;},d.$utils=function(){return p},d.isValid=function(){return !("Invalid Date"===this.$d.toString())},d.$compare=function(t){return this.valueOf()-M(t).valueOf()},d.isSame=function(t){return 0===this.$compare(t)},d.isBefore=function(t){return this.$compare(t)<0},d.isAfter=function(t){return this.$compare(t)>0},d.year=function(){return this.$y},d.month=function(){return this.$M},d.day=function(){return this.$W},d.date=function(){return this.$D},d.hour=function(){return this.$H},d.minute=function(){return this.$m},d.second=function(){return this.$s},d.millisecond=function(){return this.$ms},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,c){var o=this,h=!!p.isUndefined(c)||c,d=function(t,e){var n=S(new Date(o.$y,e,t),o);return h?n:n.endOf(s)},f=function(t,e){return S(o.toDate()[t].apply(o.toDate(),h?[0,0,0,0].slice(e):[23,59,59,999].slice(e)),o)};switch(p.prettyUnit(t)){case u:return h?d(1,0):d(31,11);case a:return h?d(1,this.$M):d(0,this.$M+1);case i:return d(h?this.$D-this.$W:this.$D+(6-this.$W),this.$M);case s:case"date":return f("setHours",0);case r:return f("setMinutes",1);case n:return f("setSeconds",2);case e:return f("setMilliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(i,c){switch(p.prettyUnit(i)){case s:this.$d.setDate(this.$D+(c-this.$W));break;case"date":this.$d.setDate(c);break;case a:this.$d.setMonth(c);break;case u:this.$d.setFullYear(c);break;case r:this.$d.setHours(c);break;case n:this.$d.setMinutes(c);break;case e:this.$d.setSeconds(c);break;case t:this.$d.setMilliseconds(c);}return this.init(),this},d.set=function(t,e){return this.clone().$set(t,e)},d.add=function(t,c){var o=this;t=Number(t);var h,d=p.prettyUnit(c),f=function(e,n){var r=o.set("date",1).set(e,n+t);return r.set("date",Math.min(o.$D,r.daysInMonth()))},$=function(e){var n=new Date(o.$d);return n.setDate(n.getDate()+e*t),S(n,o)};if(d===a)return f(a,this.$M);if(d===u)return f(u,this.$y);if(d===s)return $(1);if(d===i)return $(7);switch(d){case n:h=6e4;break;case r:h=36e5;break;case e:h=1e3;break;default:h=1;}var l=this.valueOf()+t*h;return S(l,this)},d.subtract=function(t,e){return this.add(-1*t,e)},d.format=function(t){var e=this,n=t||"YYYY-MM-DDTHH:mm:ssZ",r=p.padZoneStr(this.$d.getTimezoneOffset()),s=this.$locale(),i=s.weekdays,a=s.months,u=function(t,e,n,r){return t&&t[e]||n[e].substr(0,r)};return n.replace(o,function(t){if(t.indexOf("[")>-1)return t.replace(/\[|\]/g,"");switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return String(e.$y);case"M":return String(e.$M+1);case"MM":return p.padStart(e.$M+1,2,"0");case"MMM":return u(s.monthsShort,e.$M,a,3);case"MMMM":return a[e.$M];case"D":return String(e.$D);case"DD":return p.padStart(e.$D,2,"0");case"d":return String(e.$W);case"dd":return u(s.weekdaysMin,e.$W,i,2);case"ddd":return u(s.weekdaysShort,e.$W,i,3);case"dddd":return i[e.$W];case"H":return String(e.$H);case"HH":return p.padStart(e.$H,2,"0");case"h":case"hh":return 0===e.$H?12:p.padStart(e.$H<13?e.$H:e.$H-12,"hh"===t?2:1,"0");case"a":return e.$H<12?"am":"pm";case"A":return e.$H<12?"AM":"PM";case"m":return String(e.$m);case"mm":return p.padStart(e.$m,2,"0");case"s":return String(e.$s);case"ss":return p.padStart(e.$s,2,"0");case"SSS":return p.padStart(e.$ms,3,"0");case"Z":return r;default:return r.replace(":","")}})},d.diff=function(t,c,o){var h=p.prettyUnit(c),d=M(t),f=this-d,$=p.monthDiff(this,d);switch(h){case u:$/=12;break;case a:break;case"quarter":$/=3;break;case i:$=f/6048e5;break;case s:$=f/864e5;break;case r:$=f/36e5;break;case n:$=f/6e4;break;case e:$=f/1e3;break;default:$=f;}return o?$:p.absFloor($)},d.daysInMonth=function(){return this.endOf(a).$D},d.$locale=function(){return l[this.$L]},d.locale=function(t,e){var n=this.clone();return n.$L=y(t,e,!0),n},d.clone=function(){return S(this.toDate(),this)},d.toDate=function(){return new Date(this.$d)},d.toArray=function(){return [this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},d.toJSON=function(){return this.toISOString()},d.toISOString=function(){return this.toDate().toISOString()},d.toObject=function(){return {years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},d.toString=function(){return this.$d.toUTCString()},h}();return M.extend=function(t,e){return t(e,D,M),M},M.locale=y,M.isDayjs=m,M.unix=function(t){return M(1e3*t)},M.en=l[$],M});
6479
+ !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",c="month",f="quarter",h="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,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);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:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=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},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0;}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(b.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.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 b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.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=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.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 b.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(f){case h:return r?l(1,0):l(31,11);case c: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=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){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[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,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 b.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=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.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}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
6362
6480
  });
6363
6481
 
6364
6482
  /** Built-in value references. */
@@ -8349,8 +8467,8 @@ var AtFab = /** @class */ (function (_super) {
8349
8467
  return AtFab;
8350
8468
  }(React__default["default"].Component));
8351
8469
  AtFab.propTypes = {
8352
- size: propTypes.oneOf(['normal', 'small']),
8353
- onClick: propTypes.func
8470
+ size: PropTypes.oneOf(['normal', 'small']),
8471
+ onClick: PropTypes.func
8354
8472
  };
8355
8473
  AtFab.defaultProps = {
8356
8474
  size: 'normal'