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.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { Component } from 'react';
2
- import { View, Text, OpenData, Image, Button, Switch, ScrollView, Form, Label, Input, Textarea, Slider, MovableArea, MovableView, Swiper, SwiperItem, Picker } from '@tarojs/components';
2
+ import { View, Text, Image, Button, Switch, ScrollView, Form, Label, Input, Textarea, Slider, MovableArea, MovableView, Swiper, SwiperItem, Picker } from '@tarojs/components';
3
3
  import Taro from '@tarojs/taro';
4
4
 
5
5
  /******************************************************************************
@@ -117,9 +117,9 @@ function createCommonjsModule(fn, module) {
117
117
 
118
118
  var classnames = createCommonjsModule(function (module) {
119
119
  /*!
120
- Copyright (c) 2017 Jed Watson.
121
- Licensed under the MIT License (MIT), see
122
- http://jedwatson.github.io/classnames
120
+ Copyright (c) 2018 Jed Watson.
121
+ Licensed under the MIT License (MIT), see
122
+ http://jedwatson.github.io/classnames
123
123
  */
124
124
  /* global define */
125
125
 
@@ -128,31 +128,56 @@ var classnames = createCommonjsModule(function (module) {
128
128
  var hasOwn = {}.hasOwnProperty;
129
129
 
130
130
  function classNames () {
131
- var classes = [];
131
+ var classes = '';
132
132
 
133
133
  for (var i = 0; i < arguments.length; i++) {
134
134
  var arg = arguments[i];
135
- if (!arg) continue;
135
+ if (arg) {
136
+ classes = appendClass(classes, parseValue(arg));
137
+ }
138
+ }
136
139
 
137
- var argType = typeof arg;
140
+ return classes;
141
+ }
138
142
 
139
- if (argType === 'string' || argType === 'number') {
140
- classes.push(arg);
141
- } else if (Array.isArray(arg) && arg.length) {
142
- var inner = classNames.apply(null, arg);
143
- if (inner) {
144
- classes.push(inner);
145
- }
146
- } else if (argType === 'object') {
147
- for (var key in arg) {
148
- if (hasOwn.call(arg, key) && arg[key]) {
149
- classes.push(key);
150
- }
151
- }
143
+ function parseValue (arg) {
144
+ if (typeof arg === 'string' || typeof arg === 'number') {
145
+ return arg;
146
+ }
147
+
148
+ if (typeof arg !== 'object') {
149
+ return '';
150
+ }
151
+
152
+ if (Array.isArray(arg)) {
153
+ return classNames.apply(null, arg);
154
+ }
155
+
156
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
157
+ return arg.toString();
158
+ }
159
+
160
+ var classes = '';
161
+
162
+ for (var key in arg) {
163
+ if (hasOwn.call(arg, key) && arg[key]) {
164
+ classes = appendClass(classes, key);
152
165
  }
153
166
  }
154
167
 
155
- return classes.join(' ');
168
+ return classes;
169
+ }
170
+
171
+ function appendClass (value, newClass) {
172
+ if (!newClass) {
173
+ return value;
174
+ }
175
+
176
+ if (value) {
177
+ return value + ' ' + newClass;
178
+ }
179
+
180
+ return value + newClass;
156
181
  }
157
182
 
158
183
  if (module.exports) {
@@ -516,16 +541,22 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
516
541
  * LICENSE file in the root directory of this source tree.
517
542
  */
518
543
 
519
- var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
544
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
520
545
 
521
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
546
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
547
+
548
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
549
+
550
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
551
+
552
+ var has$1 = has$2;
522
553
 
523
554
  var printWarning$1 = function() {};
524
555
 
525
556
  if (process.env.NODE_ENV !== 'production') {
526
- var ReactPropTypesSecret = ReactPropTypesSecret_1;
557
+ var ReactPropTypesSecret = ReactPropTypesSecret$1;
527
558
  var loggedTypeFailures = {};
528
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
559
+ var has = has$1;
529
560
 
530
561
  printWarning$1 = function(text) {
531
562
  var message = 'Warning: ' + text;
@@ -537,7 +568,7 @@ if (process.env.NODE_ENV !== 'production') {
537
568
  // This error was thrown as a convenience so that you can use this stack
538
569
  // to find the callsite that caused this warning to fire.
539
570
  throw new Error(message);
540
- } catch (x) {}
571
+ } catch (x) { /**/ }
541
572
  };
542
573
  }
543
574
 
@@ -552,10 +583,10 @@ if (process.env.NODE_ENV !== 'production') {
552
583
  * @param {?Function} getStack Returns the component stack.
553
584
  * @private
554
585
  */
555
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
586
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
556
587
  if (process.env.NODE_ENV !== 'production') {
557
588
  for (var typeSpecName in typeSpecs) {
558
- if (has$1(typeSpecs, typeSpecName)) {
589
+ if (has(typeSpecs, typeSpecName)) {
559
590
  var error;
560
591
  // Prop type validation may throw. In case they do, we don't want to
561
592
  // fail the render phase where it didn't fail before. So we log it.
@@ -566,7 +597,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
566
597
  if (typeof typeSpecs[typeSpecName] !== 'function') {
567
598
  var err = Error(
568
599
  (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
569
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
600
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
601
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
570
602
  );
571
603
  err.name = 'Invariant Violation';
572
604
  throw err;
@@ -606,15 +638,16 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
606
638
  *
607
639
  * @private
608
640
  */
609
- checkPropTypes.resetWarningCache = function() {
641
+ checkPropTypes$1.resetWarningCache = function() {
610
642
  if (process.env.NODE_ENV !== 'production') {
611
643
  loggedTypeFailures = {};
612
644
  }
613
645
  };
614
646
 
615
- var checkPropTypes_1 = checkPropTypes;
647
+ var checkPropTypes_1 = checkPropTypes$1;
648
+
649
+ var checkPropTypes = checkPropTypes_1;
616
650
 
617
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
618
651
  var printWarning = function() {};
619
652
 
620
653
  if (process.env.NODE_ENV !== 'production') {
@@ -715,6 +748,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
715
748
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
716
749
  var ReactPropTypes = {
717
750
  array: createPrimitiveTypeChecker('array'),
751
+ bigint: createPrimitiveTypeChecker('bigint'),
718
752
  bool: createPrimitiveTypeChecker('boolean'),
719
753
  func: createPrimitiveTypeChecker('function'),
720
754
  number: createPrimitiveTypeChecker('number'),
@@ -760,8 +794,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
760
794
  * is prohibitively expensive if they are created too often, such as what
761
795
  * happens in oneOfType() for any type before the one that matched.
762
796
  */
763
- function PropTypeError(message) {
797
+ function PropTypeError(message, data) {
764
798
  this.message = message;
799
+ this.data = data && typeof data === 'object' ? data: {};
765
800
  this.stack = '';
766
801
  }
767
802
  // Make `instanceof Error` still work for returned errors.
@@ -776,7 +811,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
776
811
  componentName = componentName || ANONYMOUS;
777
812
  propFullName = propFullName || propName;
778
813
 
779
- if (secret !== ReactPropTypesSecret_1) {
814
+ if (secret !== ReactPropTypesSecret$1) {
780
815
  if (throwOnDirectAccess) {
781
816
  // New behavior only for users of `prop-types` package
782
817
  var err = new Error(
@@ -796,7 +831,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
796
831
  ) {
797
832
  printWarning(
798
833
  'You are manually calling a React.PropTypes validation ' +
799
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
834
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
800
835
  'and will throw in the standalone `prop-types` package. ' +
801
836
  'You may be seeing this warning due to a third-party PropTypes ' +
802
837
  'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
@@ -835,7 +870,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
835
870
  // 'of type `object`'.
836
871
  var preciseType = getPreciseType(propValue);
837
872
 
838
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
873
+ return new PropTypeError(
874
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
875
+ {expectedType: expectedType}
876
+ );
839
877
  }
840
878
  return null;
841
879
  }
@@ -857,7 +895,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
857
895
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
858
896
  }
859
897
  for (var i = 0; i < propValue.length; i++) {
860
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
898
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
861
899
  if (error instanceof Error) {
862
900
  return error;
863
901
  }
@@ -949,8 +987,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
949
987
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
950
988
  }
951
989
  for (var key in propValue) {
952
- if (has(propValue, key)) {
953
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
990
+ if (has$1(propValue, key)) {
991
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
954
992
  if (error instanceof Error) {
955
993
  return error;
956
994
  }
@@ -979,14 +1017,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
979
1017
  }
980
1018
 
981
1019
  function validate(props, propName, componentName, location, propFullName) {
1020
+ var expectedTypes = [];
982
1021
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
983
1022
  var checker = arrayOfTypeCheckers[i];
984
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
1023
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
1024
+ if (checkerResult == null) {
985
1025
  return null;
986
1026
  }
1027
+ if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
1028
+ expectedTypes.push(checkerResult.data.expectedType);
1029
+ }
987
1030
  }
988
-
989
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
1031
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1032
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
990
1033
  }
991
1034
  return createChainableTypeChecker(validate);
992
1035
  }
@@ -1001,6 +1044,13 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1001
1044
  return createChainableTypeChecker(validate);
1002
1045
  }
1003
1046
 
1047
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
1048
+ return new PropTypeError(
1049
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1050
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1051
+ );
1052
+ }
1053
+
1004
1054
  function createShapeTypeChecker(shapeTypes) {
1005
1055
  function validate(props, propName, componentName, location, propFullName) {
1006
1056
  var propValue = props[propName];
@@ -1010,10 +1060,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1010
1060
  }
1011
1061
  for (var key in shapeTypes) {
1012
1062
  var checker = shapeTypes[key];
1013
- if (!checker) {
1014
- continue;
1063
+ if (typeof checker !== 'function') {
1064
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1015
1065
  }
1016
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1066
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1017
1067
  if (error) {
1018
1068
  return error;
1019
1069
  }
@@ -1030,19 +1080,21 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1030
1080
  if (propType !== 'object') {
1031
1081
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1032
1082
  }
1033
- // We need to check all keys in case some are required but missing from
1034
- // props.
1083
+ // We need to check all keys in case some are required but missing from props.
1035
1084
  var allKeys = objectAssign({}, props[propName], shapeTypes);
1036
1085
  for (var key in allKeys) {
1037
1086
  var checker = shapeTypes[key];
1087
+ if (has$1(shapeTypes, key) && typeof checker !== 'function') {
1088
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1089
+ }
1038
1090
  if (!checker) {
1039
1091
  return new PropTypeError(
1040
1092
  'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1041
1093
  '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1042
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1094
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1043
1095
  );
1044
1096
  }
1045
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1097
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1046
1098
  if (error) {
1047
1099
  return error;
1048
1100
  }
@@ -1184,8 +1236,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1184
1236
  return propValue.constructor.name;
1185
1237
  }
1186
1238
 
1187
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
1188
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1239
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1240
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1189
1241
  ReactPropTypes.PropTypes = ReactPropTypes;
1190
1242
 
1191
1243
  return ReactPropTypes;
@@ -1197,7 +1249,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1197
1249
 
1198
1250
  var factoryWithThrowingShims = function() {
1199
1251
  function shim(props, propName, componentName, location, propFullName, secret) {
1200
- if (secret === ReactPropTypesSecret_1) {
1252
+ if (secret === ReactPropTypesSecret$1) {
1201
1253
  // It is still safe when called from React.
1202
1254
  return;
1203
1255
  }
@@ -1215,6 +1267,7 @@ var factoryWithThrowingShims = function() {
1215
1267
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1216
1268
  var ReactPropTypes = {
1217
1269
  array: shim,
1270
+ bigint: shim,
1218
1271
  bool: shim,
1219
1272
  func: shim,
1220
1273
  number: shim,
@@ -1243,6 +1296,10 @@ var factoryWithThrowingShims = function() {
1243
1296
  return ReactPropTypes;
1244
1297
  };
1245
1298
 
1299
+ var require$$1 = factoryWithTypeCheckers;
1300
+
1301
+ var require$$2 = factoryWithThrowingShims;
1302
+
1246
1303
  var propTypes = createCommonjsModule(function (module) {
1247
1304
  /**
1248
1305
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -1257,14 +1314,16 @@ if (process.env.NODE_ENV !== 'production') {
1257
1314
  // By explicitly using `prop-types` you are opting into new development behavior.
1258
1315
  // http://fb.me/prop-types-in-prod
1259
1316
  var throwOnDirectAccess = true;
1260
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1317
+ module.exports = require$$1(ReactIs.isElement, throwOnDirectAccess);
1261
1318
  } else {
1262
1319
  // By explicitly using `prop-types` you are opting into new production behavior.
1263
1320
  // http://fb.me/prop-types-in-prod
1264
- module.exports = factoryWithThrowingShims();
1321
+ module.exports = require$$2();
1265
1322
  }
1266
1323
  });
1267
1324
 
1325
+ var PropTypes = propTypes;
1326
+
1268
1327
  var AtActionSheetBody = /** @class */ (function (_super) {
1269
1328
  __extends(AtActionSheetBody, _super);
1270
1329
  function AtActionSheetBody() {
@@ -1300,7 +1359,7 @@ var AtActionSheetFooter = /** @class */ (function (_super) {
1300
1359
  return AtActionSheetFooter;
1301
1360
  }(React.Component));
1302
1361
  AtActionSheetFooter.propTypes = {
1303
- onClick: propTypes.func
1362
+ onClick: PropTypes.func
1304
1363
  };
1305
1364
 
1306
1365
  var AtActionSheetHeader = /** @class */ (function (_super) {
@@ -1375,11 +1434,11 @@ AtActionSheet.defaultProps = {
1375
1434
  isOpened: false
1376
1435
  };
1377
1436
  AtActionSheet.propTypes = {
1378
- title: propTypes.string,
1379
- onClose: propTypes.func,
1380
- onCancel: propTypes.func,
1381
- isOpened: propTypes.bool.isRequired,
1382
- cancelText: propTypes.string
1437
+ title: PropTypes.string,
1438
+ onClose: PropTypes.func,
1439
+ onCancel: PropTypes.func,
1440
+ isOpened: PropTypes.bool.isRequired,
1441
+ cancelText: PropTypes.string
1383
1442
  };
1384
1443
 
1385
1444
  var AtActionSheetItem = /** @class */ (function (_super) {
@@ -1400,7 +1459,7 @@ var AtActionSheetItem = /** @class */ (function (_super) {
1400
1459
  return AtActionSheetItem;
1401
1460
  }(React.Component));
1402
1461
  AtActionSheetItem.propTypes = {
1403
- onClick: propTypes.func
1462
+ onClick: PropTypes.func
1404
1463
  };
1405
1464
 
1406
1465
  var ENV$4 = Taro.getEnv();
@@ -1415,13 +1474,15 @@ function delay(delayTime) {
1415
1474
  function delayQuerySelector(selectorStr, delayTime) {
1416
1475
  if (delayTime === void 0) { delayTime = 500; }
1417
1476
  return new Promise(function (resolve) {
1418
- var selector = Taro.createSelectorQuery();
1419
- delay(delayTime).then(function () {
1420
- selector
1421
- .select(selectorStr)
1422
- .boundingClientRect()
1423
- .exec(function (res) {
1424
- resolve(res);
1477
+ Taro.nextTick(function () {
1478
+ var selector = Taro.createSelectorQuery();
1479
+ delay(delayTime).then(function () {
1480
+ selector
1481
+ .select(selectorStr)
1482
+ .boundingClientRect()
1483
+ .exec(function (res) {
1484
+ resolve(res);
1485
+ });
1425
1486
  });
1426
1487
  });
1427
1488
  });
@@ -1564,13 +1625,7 @@ function handleTouchScroll(flag) {
1564
1625
  function pxTransform(size) {
1565
1626
  if (!size)
1566
1627
  return '';
1567
- var designWidth = 750;
1568
- var deviceRatio = {
1569
- 640: 2.34 / 2,
1570
- 750: 1,
1571
- 828: 1.81 / 2
1572
- };
1573
- return "".concat(size / deviceRatio[designWidth], "rpx");
1628
+ return Taro.pxTransform(size);
1574
1629
  }
1575
1630
  function objectToString$2(style) {
1576
1631
  if (style && typeof style === 'object') {
@@ -1600,18 +1655,6 @@ function mergeStyle(style1, style2) {
1600
1655
  return Object.assign({}, style1, style2);
1601
1656
  }
1602
1657
  return objectToString$2(style1) + objectToString$2(style2);
1603
- }
1604
- /**
1605
- * 自定义验证器,用于验证参数是否是 JSX.Element
1606
- * @param {any} props
1607
- * @param {string} propName
1608
- * @param {string} componentName
1609
- * @returns
1610
- */
1611
- function isJSXElement(props, propName, componentName) {
1612
- if (!React.isValidElement(props[propName])) {
1613
- return new Error("Invalid prop ".concat(propName, " supplied to ").concat(componentName, ". It must be a valid JSX element."));
1614
- }
1615
1658
  }
1616
1659
 
1617
1660
  var AtLoading = /** @class */ (function (_super) {
@@ -1643,8 +1686,8 @@ AtLoading.defaultProps = {
1643
1686
  color: ''
1644
1687
  };
1645
1688
  AtLoading.propTypes = {
1646
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
1647
- color: propTypes.oneOfType([propTypes.string, propTypes.number])
1689
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1690
+ color: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1648
1691
  };
1649
1692
 
1650
1693
  var AtActivityIndicator = /** @class */ (function (_super) {
@@ -1674,12 +1717,12 @@ AtActivityIndicator.defaultProps = {
1674
1717
  isOpened: true
1675
1718
  };
1676
1719
  AtActivityIndicator.propTypes = {
1677
- size: propTypes.number,
1678
- mode: propTypes.string,
1679
- color: propTypes.string,
1680
- content: propTypes.string,
1681
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
1682
- isOpened: propTypes.bool
1720
+ size: PropTypes.number,
1721
+ mode: PropTypes.string,
1722
+ color: PropTypes.string,
1723
+ content: PropTypes.string,
1724
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
1725
+ isOpened: PropTypes.bool
1683
1726
  };
1684
1727
 
1685
1728
  var SIZE_CLASS$2 = {
@@ -1709,7 +1752,12 @@ var AtAvatar = /** @class */ (function (_super) {
1709
1752
  if (text)
1710
1753
  letter = text[0];
1711
1754
  var elem;
1712
- if (openData && openData.type === 'userAvatarUrl' && this.state.isWEAPP) {
1755
+ if (openData &&
1756
+ openData.type === 'userAvatarUrl' &&
1757
+ this.state.isWEAPP &&
1758
+ Taro.canIUse('open-data')) {
1759
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
1760
+ var OpenData = require('@tarojs/components').OpenData;
1713
1761
  elem = React.createElement(OpenData, { type: openData.type });
1714
1762
  }
1715
1763
  else if (image) {
@@ -1731,13 +1779,13 @@ AtAvatar.defaultProps = {
1731
1779
  className: ''
1732
1780
  };
1733
1781
  AtAvatar.propTypes = {
1734
- size: propTypes.oneOf(['large', 'normal', 'small']),
1735
- circle: propTypes.bool,
1736
- text: propTypes.string,
1737
- image: propTypes.string,
1738
- openData: propTypes.object,
1739
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1740
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
1782
+ size: PropTypes.oneOf(['large', 'normal', 'small']),
1783
+ circle: PropTypes.bool,
1784
+ text: PropTypes.string,
1785
+ image: PropTypes.string,
1786
+ openData: PropTypes.object,
1787
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1788
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
1741
1789
  };
1742
1790
 
1743
1791
  var AtBadge = /** @class */ (function (_super) {
@@ -1774,11 +1822,11 @@ AtBadge.defaultProps = {
1774
1822
  className: ''
1775
1823
  };
1776
1824
  AtBadge.propTypes = {
1777
- dot: propTypes.bool,
1778
- value: propTypes.oneOfType([propTypes.string, propTypes.number]),
1779
- maxValue: propTypes.number,
1780
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1781
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
1825
+ dot: PropTypes.bool,
1826
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1827
+ maxValue: PropTypes.number,
1828
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1829
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
1782
1830
  };
1783
1831
 
1784
1832
  var SIZE_CLASS$1 = {
@@ -1868,16 +1916,16 @@ AtButton.defaultProps = {
1868
1916
  appParameter: ''
1869
1917
  };
1870
1918
  AtButton.propTypes = {
1871
- size: propTypes.oneOf(['normal', 'small']),
1872
- type: propTypes.oneOf(['primary', 'secondary', '']),
1873
- circle: propTypes.bool,
1874
- full: propTypes.bool,
1875
- loading: propTypes.bool,
1876
- disabled: propTypes.bool,
1877
- onClick: propTypes.func,
1878
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1879
- formType: propTypes.oneOf(['submit', 'reset', '']),
1880
- openType: propTypes.oneOf([
1919
+ size: PropTypes.oneOf(['normal', 'small']),
1920
+ type: PropTypes.oneOf(['primary', 'secondary', '']),
1921
+ circle: PropTypes.bool,
1922
+ full: PropTypes.bool,
1923
+ loading: PropTypes.bool,
1924
+ disabled: PropTypes.bool,
1925
+ onClick: PropTypes.func,
1926
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1927
+ formType: PropTypes.oneOf(['submit', 'reset', '']),
1928
+ openType: PropTypes.oneOf([
1881
1929
  'contact',
1882
1930
  'share',
1883
1931
  'getUserInfo',
@@ -1890,18 +1938,18 @@ AtButton.propTypes = {
1890
1938
  'contactShare',
1891
1939
  ''
1892
1940
  ]),
1893
- lang: propTypes.string,
1894
- sessionFrom: propTypes.string,
1895
- sendMessageTitle: propTypes.string,
1896
- sendMessagePath: propTypes.string,
1897
- sendMessageImg: propTypes.string,
1898
- showMessageCard: propTypes.bool,
1899
- appParameter: propTypes.string,
1900
- onGetUserInfo: propTypes.func,
1901
- onContact: propTypes.func,
1902
- onGetPhoneNumber: propTypes.func,
1903
- onError: propTypes.func,
1904
- onOpenSetting: propTypes.func
1941
+ lang: PropTypes.string,
1942
+ sessionFrom: PropTypes.string,
1943
+ sendMessageTitle: PropTypes.string,
1944
+ sendMessagePath: PropTypes.string,
1945
+ sendMessageImg: PropTypes.string,
1946
+ showMessageCard: PropTypes.bool,
1947
+ appParameter: PropTypes.string,
1948
+ onGetUserInfo: PropTypes.func,
1949
+ onContact: PropTypes.func,
1950
+ onGetPhoneNumber: PropTypes.func,
1951
+ onError: PropTypes.func,
1952
+ onOpenSetting: PropTypes.func
1905
1953
  };
1906
1954
 
1907
1955
  var AtCard = /** @class */ (function (_super) {
@@ -1953,15 +2001,15 @@ AtCard.defaultProps = {
1953
2001
  extraStyle: {}
1954
2002
  };
1955
2003
  AtCard.propTypes = {
1956
- note: propTypes.string,
1957
- isFull: propTypes.bool,
1958
- thumb: propTypes.string,
1959
- title: propTypes.string,
1960
- extra: propTypes.oneOfType([propTypes.string, propTypes.element]),
1961
- icon: propTypes.object,
1962
- onClick: propTypes.func,
1963
- renderIcon: propTypes.oneOfType([propTypes.string, propTypes.element]),
1964
- extraStyle: propTypes.object // 自定义extra样式
2004
+ note: PropTypes.string,
2005
+ isFull: PropTypes.bool,
2006
+ thumb: PropTypes.string,
2007
+ title: PropTypes.string,
2008
+ extra: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2009
+ icon: PropTypes.object,
2010
+ onClick: PropTypes.func,
2011
+ renderIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2012
+ extraStyle: PropTypes.object // 自定义extra样式
1965
2013
  };
1966
2014
 
1967
2015
  var AtCheckbox = /** @class */ (function (_super) {
@@ -2014,11 +2062,11 @@ AtCheckbox.defaultProps = {
2014
2062
  onChange: function () { }
2015
2063
  };
2016
2064
  AtCheckbox.propTypes = {
2017
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2018
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
2019
- options: propTypes.array,
2020
- selectedList: propTypes.array,
2021
- onChange: propTypes.func
2065
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2066
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
2067
+ options: PropTypes.array,
2068
+ selectedList: PropTypes.array,
2069
+ onChange: PropTypes.func
2022
2070
  };
2023
2071
 
2024
2072
  var AtList = /** @class */ (function (_super) {
@@ -2038,7 +2086,7 @@ AtList.defaultProps = {
2038
2086
  hasBorder: true
2039
2087
  };
2040
2088
  AtList.propTypes = {
2041
- hasBorder: propTypes.bool
2089
+ hasBorder: PropTypes.bool
2042
2090
  };
2043
2091
 
2044
2092
  var AtListItem = /** @class */ (function (_super) {
@@ -2122,26 +2170,26 @@ AtListItem.defaultProps = {
2122
2170
  iconInfo: { value: '' }
2123
2171
  };
2124
2172
  AtListItem.propTypes = {
2125
- note: isJSXElement,
2126
- disabled: propTypes.bool,
2127
- title: isJSXElement,
2128
- thumb: propTypes.string,
2129
- onClick: propTypes.func,
2130
- isSwitch: propTypes.bool,
2131
- hasBorder: propTypes.bool,
2132
- switchColor: propTypes.string,
2133
- switchIsCheck: propTypes.bool,
2134
- extraText: isJSXElement,
2135
- extraThumb: propTypes.string,
2136
- onSwitchChange: propTypes.func,
2137
- arrow: propTypes.oneOf(['up', 'down', 'right']),
2138
- iconInfo: propTypes.shape({
2139
- size: propTypes.number,
2140
- value: propTypes.string,
2141
- color: propTypes.string,
2142
- prefixClass: propTypes.string,
2143
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2144
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
2173
+ note: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2174
+ disabled: PropTypes.bool,
2175
+ title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2176
+ thumb: PropTypes.string,
2177
+ onClick: PropTypes.func,
2178
+ isSwitch: PropTypes.bool,
2179
+ hasBorder: PropTypes.bool,
2180
+ switchColor: PropTypes.string,
2181
+ switchIsCheck: PropTypes.bool,
2182
+ extraText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2183
+ extraThumb: PropTypes.string,
2184
+ onSwitchChange: PropTypes.func,
2185
+ arrow: PropTypes.oneOf(['up', 'down', 'right']),
2186
+ iconInfo: PropTypes.shape({
2187
+ size: PropTypes.number,
2188
+ value: PropTypes.string,
2189
+ color: PropTypes.string,
2190
+ prefixClass: PropTypes.string,
2191
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2192
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
2145
2193
  })
2146
2194
  };
2147
2195
 
@@ -2231,12 +2279,12 @@ AtDrawer.defaultProps = {
2231
2279
  items: []
2232
2280
  };
2233
2281
  AtDrawer.propTypes = {
2234
- show: propTypes.bool,
2235
- mask: propTypes.bool,
2236
- width: propTypes.string,
2237
- items: propTypes.arrayOf(propTypes.string),
2238
- onItemClick: propTypes.func,
2239
- onClose: propTypes.func
2282
+ show: PropTypes.bool,
2283
+ mask: PropTypes.bool,
2284
+ width: PropTypes.string,
2285
+ items: PropTypes.arrayOf(PropTypes.string),
2286
+ onItemClick: PropTypes.func,
2287
+ onClose: PropTypes.func
2240
2288
  };
2241
2289
 
2242
2290
  var AtFloatLayout = /** @class */ (function (_super) {
@@ -2298,19 +2346,19 @@ AtFloatLayout.defaultProps = {
2298
2346
  scrollWithAnimation: false
2299
2347
  };
2300
2348
  AtFloatLayout.propTypes = {
2301
- title: propTypes.string,
2302
- isOpened: propTypes.bool,
2303
- scrollY: propTypes.bool,
2304
- scrollX: propTypes.bool,
2305
- scrollTop: propTypes.number,
2306
- scrollLeft: propTypes.number,
2307
- upperThreshold: propTypes.number,
2308
- lowerThreshold: propTypes.number,
2309
- scrollWithAnimation: propTypes.bool,
2310
- onClose: propTypes.func,
2311
- onScroll: propTypes.func,
2312
- onScrollToLower: propTypes.func,
2313
- onScrollToUpper: propTypes.func
2349
+ title: PropTypes.string,
2350
+ isOpened: PropTypes.bool,
2351
+ scrollY: PropTypes.bool,
2352
+ scrollX: PropTypes.bool,
2353
+ scrollTop: PropTypes.number,
2354
+ scrollLeft: PropTypes.number,
2355
+ upperThreshold: PropTypes.number,
2356
+ lowerThreshold: PropTypes.number,
2357
+ scrollWithAnimation: PropTypes.bool,
2358
+ onClose: PropTypes.func,
2359
+ onScroll: PropTypes.func,
2360
+ onScrollToLower: PropTypes.func,
2361
+ onScrollToUpper: PropTypes.func
2314
2362
  };
2315
2363
 
2316
2364
  var AtForm = /** @class */ (function (_super) {
@@ -2337,11 +2385,11 @@ AtForm.defaultProps = {
2337
2385
  reportSubmit: false
2338
2386
  };
2339
2387
  AtForm.propTypes = {
2340
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2341
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
2342
- reportSubmit: propTypes.bool,
2343
- onSubmit: propTypes.func,
2344
- onReset: propTypes.func
2388
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2389
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
2390
+ reportSubmit: PropTypes.bool,
2391
+ onSubmit: PropTypes.func,
2392
+ onReset: PropTypes.func
2345
2393
  };
2346
2394
 
2347
2395
  /**
@@ -2711,6 +2759,44 @@ function isIterateeCall(value, index, object) {
2711
2759
 
2712
2760
  var _isIterateeCall = isIterateeCall;
2713
2761
 
2762
+ /** Used to match a single whitespace character. */
2763
+ var reWhitespace = /\s/;
2764
+
2765
+ /**
2766
+ * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
2767
+ * character of `string`.
2768
+ *
2769
+ * @private
2770
+ * @param {string} string The string to inspect.
2771
+ * @returns {number} Returns the index of the last non-whitespace character.
2772
+ */
2773
+ function trimmedEndIndex(string) {
2774
+ var index = string.length;
2775
+
2776
+ while (index-- && reWhitespace.test(string.charAt(index))) {}
2777
+ return index;
2778
+ }
2779
+
2780
+ var _trimmedEndIndex = trimmedEndIndex;
2781
+
2782
+ /** Used to match leading whitespace. */
2783
+ var reTrimStart = /^\s+/;
2784
+
2785
+ /**
2786
+ * The base implementation of `_.trim`.
2787
+ *
2788
+ * @private
2789
+ * @param {string} string The string to trim.
2790
+ * @returns {string} Returns the trimmed string.
2791
+ */
2792
+ function baseTrim(string) {
2793
+ return string
2794
+ ? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
2795
+ : string;
2796
+ }
2797
+
2798
+ var _baseTrim = baseTrim;
2799
+
2714
2800
  /**
2715
2801
  * Checks if `value` is object-like. A value is object-like if it's not `null`
2716
2802
  * and has a `typeof` result of "object".
@@ -2771,9 +2857,6 @@ var isSymbol_1 = isSymbol;
2771
2857
  /** Used as references for various `Number` constants. */
2772
2858
  var NAN = 0 / 0;
2773
2859
 
2774
- /** Used to match leading and trailing whitespace. */
2775
- var reTrim = /^\s+|\s+$/g;
2776
-
2777
2860
  /** Used to detect bad signed hexadecimal string values. */
2778
2861
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
2779
2862
 
@@ -2823,7 +2906,7 @@ function toNumber(value) {
2823
2906
  if (typeof value != 'string') {
2824
2907
  return value === 0 ? value : +value;
2825
2908
  }
2826
- value = value.replace(reTrim, '');
2909
+ value = _baseTrim(value);
2827
2910
  var isBinary = reIsBinary.test(value);
2828
2911
  return (isBinary || reIsOctal.test(value))
2829
2912
  ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
@@ -3009,20 +3092,20 @@ AtGrid.defaultProps = {
3009
3092
  hasBorder: true
3010
3093
  };
3011
3094
  AtGrid.propTypes = {
3012
- mode: propTypes.string,
3013
- onClick: propTypes.func,
3014
- hasBorder: propTypes.bool,
3015
- columnNum: propTypes.number,
3016
- data: propTypes.arrayOf(propTypes.shape({
3017
- image: propTypes.string,
3018
- value: propTypes.string,
3019
- iconInfo: propTypes.shape({
3020
- size: propTypes.number,
3021
- value: propTypes.string,
3022
- color: propTypes.string,
3023
- prefixClass: propTypes.string,
3024
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3025
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
3095
+ mode: PropTypes.string,
3096
+ onClick: PropTypes.func,
3097
+ hasBorder: PropTypes.bool,
3098
+ columnNum: PropTypes.number,
3099
+ data: PropTypes.arrayOf(PropTypes.shape({
3100
+ image: PropTypes.string,
3101
+ value: PropTypes.string,
3102
+ iconInfo: PropTypes.shape({
3103
+ size: PropTypes.number,
3104
+ value: PropTypes.string,
3105
+ color: PropTypes.string,
3106
+ prefixClass: PropTypes.string,
3107
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3108
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
3026
3109
  })
3027
3110
  }))
3028
3111
  };
@@ -3055,13 +3138,13 @@ AtIcon.defaultProps = {
3055
3138
  size: 24
3056
3139
  };
3057
3140
  AtIcon.propTypes = {
3058
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3059
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3060
- prefixClass: propTypes.string,
3061
- value: propTypes.string,
3062
- color: propTypes.string,
3063
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
3064
- onClick: propTypes.func
3141
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3142
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3143
+ prefixClass: PropTypes.string,
3144
+ value: PropTypes.string,
3145
+ color: PropTypes.string,
3146
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3147
+ onClick: PropTypes.func
3065
3148
  };
3066
3149
 
3067
3150
  function getInputProps(props) {
@@ -3196,37 +3279,37 @@ AtInput.defaultProps = {
3196
3279
  onChange: function () { }
3197
3280
  };
3198
3281
  AtInput.propTypes = {
3199
- className: propTypes.oneOfType([propTypes.string, propTypes.array]),
3200
- customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
3201
- value: propTypes.oneOfType([propTypes.string, propTypes.number]),
3202
- name: propTypes.string,
3203
- placeholder: propTypes.string,
3204
- placeholderStyle: propTypes.string,
3205
- placeholderClass: propTypes.string,
3206
- title: propTypes.string,
3207
- confirmType: propTypes.string,
3208
- cursor: propTypes.oneOfType([propTypes.string, propTypes.number]),
3209
- selectionStart: propTypes.oneOfType([propTypes.string, propTypes.number]),
3210
- selectionEnd: propTypes.oneOfType([propTypes.string, propTypes.number]),
3211
- adjustPosition: propTypes.bool,
3212
- cursorSpacing: propTypes.oneOfType([propTypes.string, propTypes.number]),
3213
- maxlength: propTypes.oneOfType([propTypes.string, propTypes.number]),
3214
- maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
3215
- type: propTypes.string,
3216
- disabled: propTypes.bool,
3217
- border: propTypes.bool,
3218
- editable: propTypes.bool,
3219
- error: propTypes.bool,
3220
- clear: propTypes.bool,
3221
- autoFocus: propTypes.bool,
3222
- focus: propTypes.bool,
3223
- onChange: propTypes.func,
3224
- onFocus: propTypes.func,
3225
- onBlur: propTypes.func,
3226
- onConfirm: propTypes.func,
3227
- onErrorClick: propTypes.func,
3228
- onClick: propTypes.func,
3229
- required: propTypes.bool
3282
+ className: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
3283
+ customStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3284
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3285
+ name: PropTypes.string,
3286
+ placeholder: PropTypes.string,
3287
+ placeholderStyle: PropTypes.string,
3288
+ placeholderClass: PropTypes.string,
3289
+ title: PropTypes.string,
3290
+ confirmType: PropTypes.string,
3291
+ cursor: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3292
+ selectionStart: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3293
+ selectionEnd: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3294
+ adjustPosition: PropTypes.bool,
3295
+ cursorSpacing: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3296
+ maxlength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3297
+ maxLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3298
+ type: PropTypes.string,
3299
+ disabled: PropTypes.bool,
3300
+ border: PropTypes.bool,
3301
+ editable: PropTypes.bool,
3302
+ error: PropTypes.bool,
3303
+ clear: PropTypes.bool,
3304
+ autoFocus: PropTypes.bool,
3305
+ focus: PropTypes.bool,
3306
+ onChange: PropTypes.func,
3307
+ onFocus: PropTypes.func,
3308
+ onBlur: PropTypes.func,
3309
+ onConfirm: PropTypes.func,
3310
+ onErrorClick: PropTypes.func,
3311
+ onClick: PropTypes.func,
3312
+ required: PropTypes.bool
3230
3313
  };
3231
3314
 
3232
3315
  /**
@@ -3486,20 +3569,20 @@ AtInputNumber.defaultProps = {
3486
3569
  onChange: function () { }
3487
3570
  };
3488
3571
  AtInputNumber.propTypes = {
3489
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3490
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3491
- value: propTypes.oneOfType([propTypes.number, propTypes.string]),
3492
- type: propTypes.oneOf(['number', 'digit']),
3493
- disabled: propTypes.bool,
3494
- width: propTypes.number,
3495
- min: propTypes.number,
3496
- max: propTypes.number,
3497
- step: propTypes.number,
3498
- size: propTypes.oneOf(['normal', 'large']),
3499
- disabledInput: propTypes.bool,
3500
- onChange: propTypes.func,
3501
- onBlur: propTypes.func,
3502
- onErrorInput: propTypes.func
3572
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3573
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3574
+ value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
3575
+ type: PropTypes.oneOf(['number', 'digit']),
3576
+ disabled: PropTypes.bool,
3577
+ width: PropTypes.number,
3578
+ min: PropTypes.number,
3579
+ max: PropTypes.number,
3580
+ step: PropTypes.number,
3581
+ size: PropTypes.oneOf(['normal', 'large']),
3582
+ disabledInput: PropTypes.bool,
3583
+ onChange: PropTypes.func,
3584
+ onBlur: PropTypes.func,
3585
+ onErrorInput: PropTypes.func
3503
3586
  };
3504
3587
 
3505
3588
  var AtModalAction = /** @class */ (function (_super) {
@@ -3520,7 +3603,7 @@ AtModalAction.defaultProps = {
3520
3603
  isSimple: false
3521
3604
  };
3522
3605
  AtModalAction.propTypes = {
3523
- isSimple: propTypes.bool
3606
+ isSimple: PropTypes.bool
3524
3607
  };
3525
3608
 
3526
3609
  var AtModalContent = /** @class */ (function (_super) {
@@ -3627,15 +3710,15 @@ AtModal.defaultProps = {
3627
3710
  closeOnClickOverlay: true
3628
3711
  };
3629
3712
  AtModal.propTypes = {
3630
- title: propTypes.string,
3631
- isOpened: propTypes.bool,
3632
- onCancel: propTypes.func,
3633
- onConfirm: propTypes.func,
3634
- onClose: propTypes.func,
3635
- content: propTypes.string,
3636
- closeOnClickOverlay: propTypes.bool,
3637
- cancelText: propTypes.string,
3638
- confirmText: propTypes.string
3713
+ title: PropTypes.string,
3714
+ isOpened: PropTypes.bool,
3715
+ onCancel: PropTypes.func,
3716
+ onConfirm: PropTypes.func,
3717
+ onClose: PropTypes.func,
3718
+ content: PropTypes.string,
3719
+ closeOnClickOverlay: PropTypes.bool,
3720
+ cancelText: PropTypes.string,
3721
+ confirmText: PropTypes.string
3639
3722
  };
3640
3723
 
3641
3724
  var AtNavBar = /** @class */ (function (_super) {
@@ -3725,23 +3808,23 @@ AtNavBar.defaultProps = {
3725
3808
  rightSecondIconType: ''
3726
3809
  };
3727
3810
  AtNavBar.propTypes = {
3728
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3729
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3730
- fixed: propTypes.bool,
3731
- border: propTypes.bool,
3732
- color: propTypes.string,
3733
- leftIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
3734
- leftText: propTypes.string,
3735
- title: propTypes.string,
3736
- rightFirstIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
3737
- rightSecondIconType: propTypes.oneOfType([
3738
- propTypes.string,
3739
- propTypes.object
3811
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3812
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3813
+ fixed: PropTypes.bool,
3814
+ border: PropTypes.bool,
3815
+ color: PropTypes.string,
3816
+ leftIconType: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3817
+ leftText: PropTypes.string,
3818
+ title: PropTypes.string,
3819
+ rightFirstIconType: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3820
+ rightSecondIconType: PropTypes.oneOfType([
3821
+ PropTypes.string,
3822
+ PropTypes.object
3740
3823
  ]),
3741
- onClickLeftIcon: propTypes.func,
3742
- onClickRgIconSt: propTypes.func,
3743
- onClickRgIconNd: propTypes.func,
3744
- onClickTitle: propTypes.func
3824
+ onClickLeftIcon: PropTypes.func,
3825
+ onClickRgIconSt: PropTypes.func,
3826
+ onClickRgIconNd: PropTypes.func,
3827
+ onClickTitle: PropTypes.func
3745
3828
  };
3746
3829
 
3747
3830
  var AtNoticebar = /** @class */ (function (_super) {
@@ -3894,16 +3977,16 @@ AtNoticebar.defaultProps = {
3894
3977
  customStyle: {}
3895
3978
  };
3896
3979
  AtNoticebar.propTypes = {
3897
- close: propTypes.bool,
3898
- single: propTypes.bool,
3899
- marquee: propTypes.bool,
3900
- speed: propTypes.number,
3901
- moreText: propTypes.string,
3902
- showMore: propTypes.bool,
3903
- icon: propTypes.string,
3904
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3905
- onClose: propTypes.func,
3906
- onGotoMore: propTypes.func
3980
+ close: PropTypes.bool,
3981
+ single: PropTypes.bool,
3982
+ marquee: PropTypes.bool,
3983
+ speed: PropTypes.number,
3984
+ moreText: PropTypes.string,
3985
+ showMore: PropTypes.bool,
3986
+ icon: PropTypes.string,
3987
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3988
+ onClose: PropTypes.func,
3989
+ onGotoMore: PropTypes.func
3907
3990
  };
3908
3991
 
3909
3992
  var MIN_MAXPAGE = 1;
@@ -4012,12 +4095,12 @@ AtPagination.defaultProps = {
4012
4095
  customStyle: {}
4013
4096
  };
4014
4097
  AtPagination.propTypes = {
4015
- current: propTypes.number,
4016
- total: propTypes.number,
4017
- pageSize: propTypes.number,
4018
- icon: propTypes.bool,
4019
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4020
- onPageChange: propTypes.func
4098
+ current: PropTypes.number,
4099
+ total: PropTypes.number,
4100
+ pageSize: PropTypes.number,
4101
+ icon: PropTypes.bool,
4102
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4103
+ onPageChange: PropTypes.func
4021
4104
  };
4022
4105
 
4023
4106
  var AtProgress = /** @class */ (function (_super) {
@@ -4060,11 +4143,11 @@ var AtProgress = /** @class */ (function (_super) {
4060
4143
  return AtProgress;
4061
4144
  }(React.Component));
4062
4145
  AtProgress.propTypes = {
4063
- color: propTypes.string,
4064
- status: propTypes.string,
4065
- percent: propTypes.number,
4066
- strokeWidth: propTypes.number,
4067
- isHidePercent: propTypes.bool
4146
+ color: PropTypes.string,
4147
+ status: PropTypes.string,
4148
+ percent: PropTypes.number,
4149
+ strokeWidth: PropTypes.number,
4150
+ isHidePercent: PropTypes.bool
4068
4151
  };
4069
4152
 
4070
4153
  var AtRadio = /** @class */ (function (_super) {
@@ -4105,11 +4188,11 @@ AtRadio.defaultProps = {
4105
4188
  onClick: function () { }
4106
4189
  };
4107
4190
  AtRadio.propTypes = {
4108
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4109
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4110
- value: propTypes.string,
4111
- options: propTypes.array,
4112
- onClick: propTypes.func
4191
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4192
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4193
+ value: PropTypes.string,
4194
+ options: PropTypes.array,
4195
+ onClick: PropTypes.func
4113
4196
  };
4114
4197
 
4115
4198
  var AtRate = /** @class */ (function (_super) {
@@ -4160,13 +4243,13 @@ AtRate.defaultProps = {
4160
4243
  margin: 5
4161
4244
  };
4162
4245
  AtRate.propTypes = {
4163
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4164
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4165
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
4166
- value: propTypes.number,
4167
- max: propTypes.number,
4168
- margin: propTypes.number,
4169
- onChange: propTypes.func
4246
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4247
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4248
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4249
+ value: PropTypes.number,
4250
+ max: PropTypes.number,
4251
+ margin: PropTypes.number,
4252
+ onChange: PropTypes.func
4170
4253
  };
4171
4254
 
4172
4255
  var AtSegmentedControl = /** @class */ (function (_super) {
@@ -4219,14 +4302,14 @@ AtSegmentedControl.defaultProps = {
4219
4302
  onClick: function () { }
4220
4303
  };
4221
4304
  AtSegmentedControl.propTypes = {
4222
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4223
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4224
- current: propTypes.number,
4225
- color: propTypes.string,
4226
- fontSize: propTypes.oneOfType([propTypes.string, propTypes.number]),
4227
- disabled: propTypes.bool,
4228
- values: propTypes.array,
4229
- onClick: propTypes.func
4305
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4306
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4307
+ current: PropTypes.number,
4308
+ color: PropTypes.string,
4309
+ fontSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4310
+ disabled: PropTypes.bool,
4311
+ values: PropTypes.array,
4312
+ onClick: PropTypes.func
4230
4313
  };
4231
4314
 
4232
4315
  var AtSwitch = /** @class */ (function (_super) {
@@ -4266,14 +4349,14 @@ AtSwitch.defaultProps = {
4266
4349
  checked: false
4267
4350
  };
4268
4351
  AtSwitch.propTypes = {
4269
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4270
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4271
- title: propTypes.string,
4272
- color: propTypes.string,
4273
- checked: propTypes.bool,
4274
- border: propTypes.bool,
4275
- disabled: propTypes.bool,
4276
- onChange: propTypes.func
4352
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4353
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4354
+ title: PropTypes.string,
4355
+ color: PropTypes.string,
4356
+ checked: PropTypes.bool,
4357
+ border: PropTypes.bool,
4358
+ disabled: PropTypes.bool,
4359
+ onChange: PropTypes.func
4277
4360
  };
4278
4361
 
4279
4362
  var AtTabBar = /** @class */ (function (_super) {
@@ -4362,17 +4445,17 @@ AtTabBar.defaultProps = {
4362
4445
  onClick: function () { }
4363
4446
  };
4364
4447
  AtTabBar.propTypes = {
4365
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4366
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4367
- fixed: propTypes.bool,
4368
- backgroundColor: propTypes.string,
4369
- current: propTypes.number,
4370
- iconSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
4371
- fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
4372
- color: propTypes.string,
4373
- selectedColor: propTypes.string,
4374
- tabList: propTypes.array,
4375
- onClick: propTypes.func
4448
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4449
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4450
+ fixed: PropTypes.bool,
4451
+ backgroundColor: PropTypes.string,
4452
+ current: PropTypes.number,
4453
+ iconSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
4454
+ fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
4455
+ color: PropTypes.string,
4456
+ selectedColor: PropTypes.string,
4457
+ tabList: PropTypes.array,
4458
+ onClick: PropTypes.func
4376
4459
  };
4377
4460
 
4378
4461
  var ENV$3 = Taro.getEnv();
@@ -4509,8 +4592,7 @@ var AtTabs = /** @class */ (function (_super) {
4509
4592
  transformStyle = "translate3d(-".concat(current * 100, "%, 0px, 0px)");
4510
4593
  }
4511
4594
  Object.assign(bodyStyle, {
4512
- transform: transformStyle,
4513
- '-webkit-transform': transformStyle
4595
+ transform: transformStyle
4514
4596
  });
4515
4597
  if (!animated) {
4516
4598
  bodyStyle.transition = 'unset';
@@ -4555,16 +4637,16 @@ AtTabs.defaultProps = {
4555
4637
  onClick: function () { }
4556
4638
  };
4557
4639
  AtTabs.propTypes = {
4558
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4559
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4560
- height: propTypes.string,
4561
- tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
4562
- current: propTypes.number,
4563
- swipeable: propTypes.bool,
4564
- scroll: propTypes.bool,
4565
- animated: propTypes.bool,
4566
- tabList: propTypes.array,
4567
- onClick: propTypes.func
4640
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4641
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4642
+ height: PropTypes.string,
4643
+ tabDirection: PropTypes.oneOf(['horizontal', 'vertical']),
4644
+ current: PropTypes.number,
4645
+ swipeable: PropTypes.bool,
4646
+ scroll: PropTypes.bool,
4647
+ animated: PropTypes.bool,
4648
+ tabList: PropTypes.array,
4649
+ onClick: PropTypes.func
4568
4650
  };
4569
4651
 
4570
4652
  var AtTabsPane = /** @class */ (function (_super) {
@@ -4591,11 +4673,11 @@ AtTabsPane.defaultProps = {
4591
4673
  current: 0
4592
4674
  };
4593
4675
  AtTabsPane.propTypes = {
4594
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4595
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4596
- tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
4597
- index: propTypes.number,
4598
- current: propTypes.number
4676
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4677
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4678
+ tabDirection: PropTypes.oneOf(['horizontal', 'vertical']),
4679
+ index: PropTypes.number,
4680
+ current: PropTypes.number
4599
4681
  };
4600
4682
 
4601
4683
  var SIZE_CLASS = {
@@ -4645,14 +4727,14 @@ AtTag.defaultProps = {
4645
4727
  customStyle: {}
4646
4728
  };
4647
4729
  AtTag.propTypes = {
4648
- size: propTypes.oneOf(['normal', 'small']),
4649
- type: propTypes.oneOf(['', 'primary']),
4650
- name: propTypes.string,
4651
- circle: propTypes.bool,
4652
- active: propTypes.bool,
4653
- disabled: propTypes.bool,
4654
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4655
- onClick: propTypes.func
4730
+ size: PropTypes.oneOf(['normal', 'small']),
4731
+ type: PropTypes.oneOf(['', 'primary']),
4732
+ name: PropTypes.string,
4733
+ circle: PropTypes.bool,
4734
+ active: PropTypes.bool,
4735
+ disabled: PropTypes.bool,
4736
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4737
+ onClick: PropTypes.func
4656
4738
  };
4657
4739
 
4658
4740
  function getMaxLength(maxLength, textOverflowForbidden) {
@@ -4722,29 +4804,29 @@ AtTextarea.defaultProps = {
4722
4804
  onChange: function () { }
4723
4805
  };
4724
4806
  AtTextarea.propTypes = {
4725
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4726
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4727
- value: propTypes.string.isRequired,
4728
- cursorSpacing: propTypes.number,
4729
- maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
4730
- placeholderClass: propTypes.string,
4731
- placeholderStyle: propTypes.string,
4732
- placeholder: propTypes.string,
4733
- disabled: propTypes.bool,
4734
- autoFocus: propTypes.bool,
4735
- focus: propTypes.bool,
4736
- showConfirmBar: propTypes.bool,
4737
- selectionStart: propTypes.number,
4738
- selectionEnd: propTypes.number,
4739
- count: propTypes.bool,
4740
- textOverflowForbidden: propTypes.bool,
4741
- fixed: propTypes.bool,
4742
- height: propTypes.oneOfType([propTypes.string, propTypes.number]),
4743
- onLinechange: propTypes.func,
4744
- onChange: propTypes.func.isRequired,
4745
- onFocus: propTypes.func,
4746
- onBlur: propTypes.func,
4747
- onConfirm: propTypes.func
4807
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4808
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4809
+ value: PropTypes.string.isRequired,
4810
+ cursorSpacing: PropTypes.number,
4811
+ maxLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4812
+ placeholderClass: PropTypes.string,
4813
+ placeholderStyle: PropTypes.string,
4814
+ placeholder: PropTypes.string,
4815
+ disabled: PropTypes.bool,
4816
+ autoFocus: PropTypes.bool,
4817
+ focus: PropTypes.bool,
4818
+ showConfirmBar: PropTypes.bool,
4819
+ selectionStart: PropTypes.number,
4820
+ selectionEnd: PropTypes.number,
4821
+ count: PropTypes.bool,
4822
+ textOverflowForbidden: PropTypes.bool,
4823
+ fixed: PropTypes.bool,
4824
+ height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4825
+ onLinechange: PropTypes.func,
4826
+ onChange: PropTypes.func.isRequired,
4827
+ onFocus: PropTypes.func,
4828
+ onBlur: PropTypes.func,
4829
+ onConfirm: PropTypes.func
4748
4830
  };
4749
4831
 
4750
4832
  var AtTimeline = /** @class */ (function (_super) {
@@ -4798,9 +4880,9 @@ AtTimeline.defaultProps = {
4798
4880
  customStyle: {}
4799
4881
  };
4800
4882
  AtTimeline.propTypes = {
4801
- pending: propTypes.bool,
4802
- items: propTypes.arrayOf(propTypes.object),
4803
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string])
4883
+ pending: PropTypes.bool,
4884
+ items: PropTypes.arrayOf(PropTypes.object),
4885
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string])
4804
4886
  };
4805
4887
 
4806
4888
  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/gXsLwiwvcw7tsgTYbZkiB6v6L55g2LjZ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false
4920
5002
  };
4921
5003
  AtToast.propTypes = {
4922
- text: propTypes.string,
4923
- icon: propTypes.string,
4924
- hasMask: propTypes.bool,
4925
- image: propTypes.string,
4926
- isOpened: propTypes.bool,
4927
- duration: propTypes.number,
4928
- status: propTypes.oneOf(['', 'error', 'loading', 'success']),
4929
- onClick: propTypes.func,
4930
- onClose: propTypes.func
5004
+ text: PropTypes.string,
5005
+ icon: PropTypes.string,
5006
+ hasMask: PropTypes.bool,
5007
+ image: PropTypes.string,
5008
+ isOpened: PropTypes.bool,
5009
+ duration: PropTypes.number,
5010
+ status: PropTypes.oneOf(['', 'error', 'loading', 'success']),
5011
+ onClick: PropTypes.func,
5012
+ onClose: PropTypes.func
4931
5013
  };
4932
5014
 
4933
5015
  var AtAccordion = /** @class */ (function (_super) {
@@ -5035,15 +5117,15 @@ AtAccordion.defaultProps = {
5035
5117
  isAnimation: true
5036
5118
  };
5037
5119
  AtAccordion.propTypes = {
5038
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5039
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5040
- open: propTypes.bool,
5041
- isAnimation: propTypes.bool,
5042
- title: propTypes.string,
5043
- note: propTypes.string,
5044
- icon: propTypes.object,
5045
- hasBorder: propTypes.bool,
5046
- onClick: propTypes.func
5120
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5121
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5122
+ open: PropTypes.bool,
5123
+ isAnimation: PropTypes.bool,
5124
+ title: PropTypes.string,
5125
+ note: PropTypes.string,
5126
+ icon: PropTypes.object,
5127
+ hasBorder: PropTypes.bool,
5128
+ onClick: PropTypes.func
5047
5129
  };
5048
5130
 
5049
5131
  var AtSlider = /** @class */ (function (_super) {
@@ -5106,20 +5188,20 @@ AtSlider.defaultProps = {
5106
5188
  showValue: false
5107
5189
  };
5108
5190
  AtSlider.propTypes = {
5109
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5110
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5111
- min: propTypes.number,
5112
- max: propTypes.number,
5113
- step: propTypes.number,
5114
- value: propTypes.number,
5115
- disabled: propTypes.bool,
5116
- activeColor: propTypes.string,
5117
- backgroundColor: propTypes.string,
5118
- blockSize: propTypes.number,
5119
- blockColor: propTypes.string,
5120
- showValue: propTypes.bool,
5121
- onChange: propTypes.func,
5122
- onChanging: propTypes.func
5191
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5192
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5193
+ min: PropTypes.number,
5194
+ max: PropTypes.number,
5195
+ step: PropTypes.number,
5196
+ value: PropTypes.number,
5197
+ disabled: PropTypes.bool,
5198
+ activeColor: PropTypes.string,
5199
+ backgroundColor: PropTypes.string,
5200
+ blockSize: PropTypes.number,
5201
+ blockColor: PropTypes.string,
5202
+ showValue: PropTypes.bool,
5203
+ onChange: PropTypes.func,
5204
+ onChanging: PropTypes.func
5123
5205
  };
5124
5206
 
5125
5207
  var AtSwipeActionOptions = /** @class */ (function (_super) {
@@ -5162,22 +5244,7 @@ var AtSwipeAction = /** @class */ (function (_super) {
5162
5244
  };
5163
5245
  _this.onTouchEnd = function (e) {
5164
5246
  var maxOffsetSize = _this.state.maxOffsetSize;
5165
- if (_this.moveX === -maxOffsetSize) {
5166
- _this._reset(true);
5167
- _this.handleOpened(e);
5168
- return;
5169
- }
5170
- if (_this.moveX === 0) {
5171
- _this._reset(false);
5172
- _this.handleClosed(e);
5173
- return;
5174
- }
5175
- if (_this.state._isOpened && _this.moveX < 0) {
5176
- _this._reset(false);
5177
- _this.handleClosed(e);
5178
- return;
5179
- }
5180
- if (Math.abs(_this.moveX) < maxOffsetSize * _this.moveRatio) {
5247
+ if (Math.abs(_this.moveX) < maxOffsetSize / 2) {
5181
5248
  _this._reset(false);
5182
5249
  _this.handleClosed(e);
5183
5250
  }
@@ -5189,7 +5256,7 @@ var AtSwipeAction = /** @class */ (function (_super) {
5189
5256
  _this.onChange = function (e) {
5190
5257
  _this.moveX = e.detail.x;
5191
5258
  };
5192
- var isOpened = props.isOpened, moveRatio = props.moveRatio;
5259
+ var isOpened = props.isOpened;
5193
5260
  _this.state = {
5194
5261
  componentId: uuid(),
5195
5262
  // eslint-disable-next-line no-extra-boolean-cast
@@ -5200,7 +5267,6 @@ var AtSwipeAction = /** @class */ (function (_super) {
5200
5267
  maxOffsetSize: 0
5201
5268
  };
5202
5269
  _this.moveX = _this.state.offsetSize;
5203
- _this.moveRatio = moveRatio || 0.5;
5204
5270
  return _this;
5205
5271
  }
5206
5272
  AtSwipeAction.prototype.componentDidMount = function () {
@@ -5323,21 +5389,21 @@ AtSwipeAction.defaultProps = {
5323
5389
  areaWidth: 0
5324
5390
  };
5325
5391
  AtSwipeAction.propTypes = {
5326
- isOpened: propTypes.bool,
5327
- disabled: propTypes.bool,
5328
- autoClose: propTypes.bool,
5329
- options: propTypes.arrayOf(propTypes.shape({
5330
- text: propTypes.string,
5331
- style: propTypes.oneOfType([propTypes.object, propTypes.string]),
5332
- className: propTypes.oneOfType([
5333
- propTypes.object,
5334
- propTypes.string,
5335
- propTypes.array
5392
+ isOpened: PropTypes.bool,
5393
+ disabled: PropTypes.bool,
5394
+ autoClose: PropTypes.bool,
5395
+ options: PropTypes.arrayOf(PropTypes.shape({
5396
+ text: PropTypes.string,
5397
+ style: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5398
+ className: PropTypes.oneOfType([
5399
+ PropTypes.object,
5400
+ PropTypes.string,
5401
+ PropTypes.array
5336
5402
  ])
5337
5403
  })),
5338
- onClick: propTypes.func,
5339
- onOpened: propTypes.func,
5340
- onClosed: propTypes.func
5404
+ onClick: PropTypes.func,
5405
+ onOpened: PropTypes.func,
5406
+ onClosed: PropTypes.func
5341
5407
  };
5342
5408
 
5343
5409
  var AtSearchBar = /** @class */ (function (_super) {
@@ -5442,22 +5508,22 @@ AtSearchBar.defaultProps = {
5442
5508
  enableNative: true
5443
5509
  };
5444
5510
  AtSearchBar.propTypes = {
5445
- value: propTypes.string,
5446
- placeholder: propTypes.string,
5447
- maxLength: propTypes.number,
5448
- fixed: propTypes.bool,
5449
- focus: propTypes.bool,
5450
- disabled: propTypes.bool,
5451
- showActionButton: propTypes.bool,
5452
- actionName: propTypes.string,
5453
- inputType: propTypes.oneOf(['text', 'number', 'idcard', 'digit']),
5454
- onChange: propTypes.func,
5455
- onFocus: propTypes.func,
5456
- onBlur: propTypes.func,
5457
- onConfirm: propTypes.func,
5458
- onActionClick: propTypes.func,
5459
- onClear: propTypes.func,
5460
- enableNative: propTypes.bool
5511
+ value: PropTypes.string,
5512
+ placeholder: PropTypes.string,
5513
+ maxLength: PropTypes.number,
5514
+ fixed: PropTypes.bool,
5515
+ focus: PropTypes.bool,
5516
+ disabled: PropTypes.bool,
5517
+ showActionButton: PropTypes.bool,
5518
+ actionName: PropTypes.string,
5519
+ inputType: PropTypes.oneOf(['text', 'number', 'idcard', 'digit']),
5520
+ onChange: PropTypes.func,
5521
+ onFocus: PropTypes.func,
5522
+ onBlur: PropTypes.func,
5523
+ onConfirm: PropTypes.func,
5524
+ onActionClick: PropTypes.func,
5525
+ onClear: PropTypes.func,
5526
+ enableNative: PropTypes.bool
5461
5527
  };
5462
5528
 
5463
5529
  var AtLoadMore = /** @class */ (function (_super) {
@@ -5496,15 +5562,15 @@ AtLoadMore.defaultProps = {
5496
5562
  noMoreText: '没有更多'
5497
5563
  };
5498
5564
  AtLoadMore.propTypes = {
5499
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5500
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5501
- noMoreTextStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5502
- moreBtnStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5503
- status: propTypes.oneOf(['more', 'loading', 'noMore']),
5504
- loadingText: propTypes.string,
5505
- moreText: propTypes.string,
5506
- noMoreText: propTypes.string,
5507
- onClick: propTypes.func
5565
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5566
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5567
+ noMoreTextStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5568
+ moreBtnStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5569
+ status: PropTypes.oneOf(['more', 'loading', 'noMore']),
5570
+ loadingText: PropTypes.string,
5571
+ moreText: PropTypes.string,
5572
+ noMoreText: PropTypes.string,
5573
+ onClick: PropTypes.func
5508
5574
  };
5509
5575
 
5510
5576
  var AtDivider = /** @class */ (function (_super) {
@@ -5538,13 +5604,13 @@ AtDivider.defaultProps = {
5538
5604
  lineColor: ''
5539
5605
  };
5540
5606
  AtDivider.propTypes = {
5541
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5542
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5543
- content: propTypes.string,
5544
- height: propTypes.oneOfType([propTypes.number, propTypes.string]),
5545
- fontColor: propTypes.string,
5546
- fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
5547
- lineColor: propTypes.string
5607
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5608
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5609
+ content: PropTypes.string,
5610
+ height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
5611
+ fontColor: PropTypes.string,
5612
+ fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
5613
+ lineColor: PropTypes.string
5548
5614
  };
5549
5615
 
5550
5616
  var AtCountdownItem = /** @class */ (function (_super) {
@@ -5569,8 +5635,8 @@ AtCountdownItem.defaultProps = {
5569
5635
  separator: ':'
5570
5636
  };
5571
5637
  AtCountdownItem.propTypes = {
5572
- num: propTypes.number.isRequired,
5573
- separator: propTypes.string
5638
+ num: PropTypes.number.isRequired,
5639
+ separator: PropTypes.string
5574
5640
  };
5575
5641
 
5576
5642
  var toSeconds = function (day, hours, minutes, seconds) { return day * 60 * 60 * 24 + hours * 60 * 60 + minutes * 60 + seconds; };
@@ -5695,18 +5761,18 @@ AtCountdown.defaultProps = {
5695
5761
  seconds: 0
5696
5762
  };
5697
5763
  AtCountdown.propTypes = {
5698
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5699
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5700
- isCard: propTypes.bool,
5701
- isShowDay: propTypes.bool,
5702
- isShowHour: propTypes.bool,
5703
- isShowMinute: propTypes.bool,
5704
- format: propTypes.object,
5705
- day: propTypes.number,
5706
- hours: propTypes.number,
5707
- minutes: propTypes.number,
5708
- seconds: propTypes.number,
5709
- onTimeUp: propTypes.func
5764
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5765
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5766
+ isCard: PropTypes.bool,
5767
+ isShowDay: PropTypes.bool,
5768
+ isShowHour: PropTypes.bool,
5769
+ isShowMinute: PropTypes.bool,
5770
+ format: PropTypes.object,
5771
+ day: PropTypes.number,
5772
+ hours: PropTypes.number,
5773
+ minutes: PropTypes.number,
5774
+ seconds: PropTypes.number,
5775
+ onTimeUp: PropTypes.func
5710
5776
  };
5711
5777
 
5712
5778
  var AtSteps = /** @class */ (function (_super) {
@@ -5757,11 +5823,11 @@ AtSteps.defaultProps = {
5757
5823
  onChange: function () { }
5758
5824
  };
5759
5825
  AtSteps.propTypes = {
5760
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5761
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5762
- current: propTypes.number,
5763
- items: propTypes.array,
5764
- onChange: propTypes.func
5826
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5827
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5828
+ current: PropTypes.number,
5829
+ items: PropTypes.array,
5830
+ onChange: PropTypes.func
5765
5831
  };
5766
5832
 
5767
5833
  var AtCurtain = /** @class */ (function (_super) {
@@ -5805,11 +5871,11 @@ AtCurtain.defaultProps = {
5805
5871
  onClose: function () { }
5806
5872
  };
5807
5873
  AtCurtain.propTypes = {
5808
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5809
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5810
- isOpened: propTypes.bool,
5811
- closeBtnPosition: propTypes.string,
5812
- onClose: propTypes.func
5874
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5875
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5876
+ isOpened: PropTypes.bool,
5877
+ closeBtnPosition: PropTypes.string,
5878
+ onClose: PropTypes.func
5813
5879
  };
5814
5880
 
5815
5881
  var AtMessage = /** @class */ (function (_super) {
@@ -5877,8 +5943,8 @@ AtMessage.defaultProps = {
5877
5943
  className: ''
5878
5944
  };
5879
5945
  AtMessage.propTypes = {
5880
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5881
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
5946
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5947
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
5882
5948
  };
5883
5949
 
5884
5950
  // 生成 jsx 二维矩阵
@@ -5990,10 +6056,10 @@ AtImagePicker.defaultProps = {
5990
6056
  onChange: function () { }
5991
6057
  };
5992
6058
  AtImagePicker.propTypes = {
5993
- className: propTypes.oneOfType([propTypes.string, propTypes.array]),
5994
- customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
5995
- files: propTypes.array,
5996
- mode: propTypes.oneOf([
6059
+ className: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
6060
+ customStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
6061
+ files: PropTypes.array,
6062
+ mode: PropTypes.oneOf([
5997
6063
  'scaleToFill',
5998
6064
  'aspectFit',
5999
6065
  'aspectFill',
@@ -6008,15 +6074,15 @@ AtImagePicker.propTypes = {
6008
6074
  'bottom left',
6009
6075
  'bottom right'
6010
6076
  ]),
6011
- showAddBtn: propTypes.bool,
6012
- multiple: propTypes.bool,
6013
- length: propTypes.number,
6014
- onChange: propTypes.func,
6015
- onImageClick: propTypes.func,
6016
- onFail: propTypes.func,
6017
- count: propTypes.number,
6018
- sizeType: propTypes.array,
6019
- sourceType: propTypes.array
6077
+ showAddBtn: PropTypes.bool,
6078
+ multiple: PropTypes.bool,
6079
+ length: PropTypes.number,
6080
+ onChange: PropTypes.func,
6081
+ onImageClick: PropTypes.func,
6082
+ onFail: PropTypes.func,
6083
+ count: PropTypes.number,
6084
+ sizeType: PropTypes.array,
6085
+ sourceType: PropTypes.array
6020
6086
  };
6021
6087
 
6022
6088
  var AtRange = /** @class */ (function (_super) {
@@ -6158,18 +6224,18 @@ AtRange.defaultProps = {
6158
6224
  blockSize: 0
6159
6225
  };
6160
6226
  AtRange.propTypes = {
6161
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6162
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
6163
- sliderStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6164
- railStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6165
- trackStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6166
- value: propTypes.array,
6167
- min: propTypes.number,
6168
- max: propTypes.number,
6169
- disabled: propTypes.bool,
6170
- blockSize: propTypes.number,
6171
- onChange: propTypes.func,
6172
- onAfterChange: propTypes.func
6227
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6228
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
6229
+ sliderStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6230
+ railStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6231
+ trackStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6232
+ value: PropTypes.array,
6233
+ min: PropTypes.number,
6234
+ max: PropTypes.number,
6235
+ disabled: PropTypes.bool,
6236
+ blockSize: PropTypes.number,
6237
+ onChange: PropTypes.func,
6238
+ onAfterChange: PropTypes.func
6173
6239
  };
6174
6240
 
6175
6241
  var ENV = Taro.getEnv();
@@ -6201,7 +6267,8 @@ var AtIndexes = /** @class */ (function (_super) {
6201
6267
  _scrollTop: 0,
6202
6268
  _tipText: '',
6203
6269
  _isShowToast: false,
6204
- isWEB: Taro.getEnv() === Taro.ENV_TYPE.WEB
6270
+ isWEB: Taro.getEnv() === Taro.ENV_TYPE.WEB,
6271
+ currentIndex: -1
6205
6272
  };
6206
6273
  // 右侧导航高度
6207
6274
  _this.menuHeight = 0;
@@ -6212,6 +6279,7 @@ var AtIndexes = /** @class */ (function (_super) {
6212
6279
  // 当前索引
6213
6280
  _this.currentIndex = -1;
6214
6281
  _this.listId = isTest() ? 'indexes-list-AOTU2018' : "list-".concat(uuid());
6282
+ _this.indexMap = [];
6215
6283
  return _this;
6216
6284
  }
6217
6285
  AtIndexes.prototype.jumpTarget = function (_scrollIntoView, idx) {
@@ -6269,21 +6337,69 @@ var AtIndexes = /** @class */ (function (_super) {
6269
6337
  }
6270
6338
  };
6271
6339
  AtIndexes.prototype.initData = function () {
6272
- var _this = this;
6273
- delayQuerySelector('.at-indexes__menu').then(function (rect) {
6274
- var len = _this.props.list.length;
6275
- _this.menuHeight = rect[0].height;
6276
- _this.startTop = rect[0].top;
6277
- _this.itemHeight = Math.floor(_this.menuHeight / (len + 1));
6340
+ var _a, _b, _c, _d;
6341
+ return __awaiter(this, void 0, void 0, function () {
6342
+ var headerHeight, itemHeight, titleHeight;
6343
+ var _this = this;
6344
+ return __generator(this, function (_e) {
6345
+ switch (_e.label) {
6346
+ case 0:
6347
+ delayQuerySelector('.at-indexes__menu').then(function (rect) {
6348
+ var len = _this.props.list.length;
6349
+ _this.menuHeight = rect[0].height;
6350
+ _this.startTop = rect[0].top;
6351
+ _this.itemHeight = Math.floor(_this.menuHeight / (len + 1));
6352
+ });
6353
+ return [4 /*yield*/, delayQuerySelector('#at-indexes__top')];
6354
+ case 1:
6355
+ headerHeight = ((_b = (_a = (_e.sent())) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.height) || 0;
6356
+ return [4 /*yield*/, delayQuerySelector('.at-list__item')];
6357
+ case 2:
6358
+ itemHeight = ((_c = (_e.sent())) === null || _c === void 0 ? void 0 : _c[0].height) || 0;
6359
+ return [4 /*yield*/, delayQuerySelector('.at-indexes__list-title')];
6360
+ case 3:
6361
+ titleHeight = ((_d = (_e.sent())) === null || _d === void 0 ? void 0 : _d[0].height) || 0;
6362
+ this.indexMap = [];
6363
+ this.props.list.forEach(function (dataList, i) {
6364
+ if (i === 0) {
6365
+ _this.indexMap.push({
6366
+ key: dataList.key,
6367
+ startHeight: headerHeight,
6368
+ endHeight: dataList.items.length * itemHeight + headerHeight + titleHeight
6369
+ });
6370
+ }
6371
+ else {
6372
+ var prev = _this.indexMap[i - 1];
6373
+ _this.indexMap.push({
6374
+ key: dataList.key,
6375
+ startHeight: prev.endHeight,
6376
+ endHeight: prev.endHeight + dataList.items.length * itemHeight + titleHeight
6377
+ });
6378
+ }
6379
+ });
6380
+ return [2 /*return*/];
6381
+ }
6382
+ });
6278
6383
  });
6279
6384
  };
6280
6385
  AtIndexes.prototype.handleScroll = function (e) {
6281
6386
  if (e && e.detail) {
6387
+ var scrollTop = e.detail.scrollTop;
6282
6388
  this.setState({
6283
- _scrollTop: e.detail.scrollTop
6389
+ _scrollTop: scrollTop
6284
6390
  });
6391
+ this.getAnchorIndex(scrollTop);
6285
6392
  }
6286
6393
  };
6394
+ // 根据滚动高度,判断当前应该显示的索引值
6395
+ AtIndexes.prototype.getAnchorIndex = function (scrollTop) {
6396
+ var index = this.indexMap.findIndex(function (item) {
6397
+ return scrollTop >= item.startHeight && scrollTop < item.endHeight;
6398
+ });
6399
+ this.setState({
6400
+ currentIndex: index
6401
+ });
6402
+ };
6287
6403
  AtIndexes.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
6288
6404
  if (nextProps.list.length !== this.props.list.length) {
6289
6405
  this.initData();
@@ -6302,13 +6418,15 @@ var AtIndexes = /** @class */ (function (_super) {
6302
6418
  AtIndexes.prototype.render = function () {
6303
6419
  var _this = this;
6304
6420
  var _a = this.props, className = _a.className, customStyle = _a.customStyle, animation = _a.animation, topKey = _a.topKey, list = _a.list;
6305
- var _b = this.state, _scrollTop = _b._scrollTop, _scrollIntoView = _b._scrollIntoView, _tipText = _b._tipText, _isShowToast = _b._isShowToast, isWEB = _b.isWEB;
6421
+ var _b = this.state, _scrollTop = _b._scrollTop, _scrollIntoView = _b._scrollIntoView, _tipText = _b._tipText, _isShowToast = _b._isShowToast, isWEB = _b.isWEB, currentIndex = _b.currentIndex;
6306
6422
  var toastStyle = { minWidth: pxTransform(100) };
6307
6423
  var rootCls = classnames('at-indexes', className);
6308
6424
  var menuList = list.map(function (dataList, i) {
6309
6425
  var key = dataList.key;
6310
6426
  var targetView = "at-indexes__list-".concat(key);
6311
- return (React.createElement(View, { className: 'at-indexes__menu-item', key: key, onClick: _this.jumpTarget.bind(_this, targetView, i + 1) }, key));
6427
+ return (React.createElement(View, { className: classnames('at-indexes__menu-item', {
6428
+ 'at-indexes__menu-item--active': currentIndex === i
6429
+ }), key: key, onClick: _this.jumpTarget.bind(_this, targetView, i + 1) }, key));
6312
6430
  });
6313
6431
  var indexesList = list.map(function (dataList) { return (React.createElement(View, { id: "at-indexes__list-".concat(dataList.key), className: 'at-indexes__list', key: dataList.key },
6314
6432
  React.createElement(View, { className: 'at-indexes__list-title' }, dataList.title),
@@ -6328,15 +6446,15 @@ var AtIndexes = /** @class */ (function (_super) {
6328
6446
  return AtIndexes;
6329
6447
  }(React.Component));
6330
6448
  AtIndexes.propTypes = {
6331
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6332
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
6333
- animation: propTypes.bool,
6334
- isVibrate: propTypes.bool,
6335
- isShowToast: propTypes.bool,
6336
- topKey: propTypes.string,
6337
- list: propTypes.array,
6338
- onClick: propTypes.func,
6339
- onScrollIntoView: propTypes.func
6449
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6450
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
6451
+ animation: PropTypes.bool,
6452
+ isVibrate: PropTypes.bool,
6453
+ isShowToast: PropTypes.bool,
6454
+ topKey: PropTypes.string,
6455
+ list: PropTypes.array,
6456
+ onClick: PropTypes.func,
6457
+ onScrollIntoView: PropTypes.func
6340
6458
  };
6341
6459
  AtIndexes.defaultProps = {
6342
6460
  customStyle: '',
@@ -6349,7 +6467,7 @@ AtIndexes.defaultProps = {
6349
6467
  };
6350
6468
 
6351
6469
  var dayjs_min = createCommonjsModule(function (module, exports) {
6352
- !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});
6470
+ !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}));
6353
6471
  });
6354
6472
 
6355
6473
  /** Built-in value references. */
@@ -8340,8 +8458,8 @@ var AtFab = /** @class */ (function (_super) {
8340
8458
  return AtFab;
8341
8459
  }(React.Component));
8342
8460
  AtFab.propTypes = {
8343
- size: propTypes.oneOf(['normal', 'small']),
8344
- onClick: propTypes.func
8461
+ size: PropTypes.oneOf(['normal', 'small']),
8462
+ onClick: PropTypes.func
8345
8463
  };
8346
8464
  AtFab.defaultProps = {
8347
8465
  size: 'normal'