taro-ui 3.1.0-beta.3 → 3.1.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/index.esm.js +562 -540
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +561 -539
  4. package/dist/index.js.map +1 -1
  5. package/dist/style/components/avatar.scss +3 -3
  6. package/dist/style/components/button.scss +2 -2
  7. package/dist/style/components/curtain.scss +3 -3
  8. package/dist/style/components/flex.scss +1 -1
  9. package/dist/style/components/progress.scss +3 -3
  10. package/dist/style/components/range.scss +2 -2
  11. package/dist/style/components/search-bar.scss +1 -1
  12. package/dist/style/components/tag.scss +2 -2
  13. package/dist/style/components/timeline.scss +3 -3
  14. package/dist/style/components/toast.scss +1 -1
  15. package/lib/components/button/index.js +2 -24
  16. package/lib/components/button/index.js.map +1 -1
  17. package/lib/components/calendar/common/plugins.js +7 -8
  18. package/lib/components/calendar/common/plugins.js.map +1 -1
  19. package/lib/components/divider/index.js +1 -1
  20. package/lib/components/divider/index.js.map +1 -1
  21. package/lib/components/icon/index.js +1 -1
  22. package/lib/components/icon/index.js.map +1 -1
  23. package/lib/components/image-picker/index.js +4 -1
  24. package/lib/components/image-picker/index.js.map +1 -1
  25. package/lib/components/indexes/index.js +1 -1
  26. package/lib/components/indexes/index.js.map +1 -1
  27. package/lib/components/input/index.js +8 -5
  28. package/lib/components/input/index.js.map +1 -1
  29. package/lib/components/input-number/index.js +1 -1
  30. package/lib/components/range/index.js +3 -2
  31. package/lib/components/range/index.js.map +1 -1
  32. package/lib/components/search-bar/index.js +5 -0
  33. package/lib/components/search-bar/index.js.map +1 -1
  34. package/lib/components/swipe-action/index.js +2 -2
  35. package/lib/components/swipe-action/index.js.map +1 -1
  36. package/lib/components/tabs/index.js +1 -1
  37. package/lib/components/tabs/index.js.map +1 -1
  38. package/package.json +15 -13
  39. package/rn/components/flex/item/index.scss +1 -1
  40. package/types/base.d.ts +2 -1
  41. package/types/calendar.d.ts +2 -2
  42. package/types/input.d.ts +1 -1
  43. package/types/message.d.ts +6 -0
  44. package/types/swipe-action.d.ts +1 -1
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import React, { Component } from 'react';
2
- import { View, Text, OpenData, Image, Button, Form, Switch, ScrollView, Label, Input, Textarea, Slider, MovableArea, MovableView, Swiper, SwiperItem, Picker } from '@tarojs/components';
2
+ import { View, Text, OpenData, Image, Button, Switch, ScrollView, Form, Label, Input, Textarea, Slider, MovableArea, MovableView, Swiper, SwiperItem, Picker } from '@tarojs/components';
3
3
  import Taro from '@tarojs/taro';
4
4
 
5
- /*! *****************************************************************************
5
+ /******************************************************************************
6
6
  Copyright (c) Microsoft Corporation.
7
7
 
8
8
  Permission to use, copy, modify, and/or distribute this software for any
@@ -76,9 +76,9 @@ function createCommonjsModule(fn, module) {
76
76
 
77
77
  var classnames = createCommonjsModule(function (module) {
78
78
  /*!
79
- Copyright (c) 2018 Jed Watson.
80
- Licensed under the MIT License (MIT), see
81
- http://jedwatson.github.io/classnames
79
+ Copyright (c) 2018 Jed Watson.
80
+ Licensed under the MIT License (MIT), see
81
+ http://jedwatson.github.io/classnames
82
82
  */
83
83
  /* global define */
84
84
 
@@ -105,14 +105,15 @@ var classnames = createCommonjsModule(function (module) {
105
105
  }
106
106
  }
107
107
  } else if (argType === 'object') {
108
- if (arg.toString === Object.prototype.toString) {
109
- for (var key in arg) {
110
- if (hasOwn.call(arg, key) && arg[key]) {
111
- classes.push(key);
112
- }
113
- }
114
- } else {
108
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
115
109
  classes.push(arg.toString());
110
+ continue;
111
+ }
112
+
113
+ for (var key in arg) {
114
+ if (hasOwn.call(arg, key) && arg[key]) {
115
+ classes.push(key);
116
+ }
116
117
  }
117
118
  }
118
119
  }
@@ -481,16 +482,22 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
481
482
  * LICENSE file in the root directory of this source tree.
482
483
  */
483
484
 
484
- var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
485
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
486
+
487
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
485
488
 
486
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
489
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
490
+
491
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
492
+
493
+ var has$1 = has$2;
487
494
 
488
495
  var printWarning$1 = function() {};
489
496
 
490
497
  if (process.env.NODE_ENV !== 'production') {
491
- var ReactPropTypesSecret = ReactPropTypesSecret_1;
498
+ var ReactPropTypesSecret = ReactPropTypesSecret$1;
492
499
  var loggedTypeFailures = {};
493
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
500
+ var has = has$1;
494
501
 
495
502
  printWarning$1 = function(text) {
496
503
  var message = 'Warning: ' + text;
@@ -502,7 +509,7 @@ if (process.env.NODE_ENV !== 'production') {
502
509
  // This error was thrown as a convenience so that you can use this stack
503
510
  // to find the callsite that caused this warning to fire.
504
511
  throw new Error(message);
505
- } catch (x) {}
512
+ } catch (x) { /**/ }
506
513
  };
507
514
  }
508
515
 
@@ -517,10 +524,10 @@ if (process.env.NODE_ENV !== 'production') {
517
524
  * @param {?Function} getStack Returns the component stack.
518
525
  * @private
519
526
  */
520
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
527
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
521
528
  if (process.env.NODE_ENV !== 'production') {
522
529
  for (var typeSpecName in typeSpecs) {
523
- if (has$1(typeSpecs, typeSpecName)) {
530
+ if (has(typeSpecs, typeSpecName)) {
524
531
  var error;
525
532
  // Prop type validation may throw. In case they do, we don't want to
526
533
  // fail the render phase where it didn't fail before. So we log it.
@@ -531,7 +538,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
531
538
  if (typeof typeSpecs[typeSpecName] !== 'function') {
532
539
  var err = Error(
533
540
  (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
534
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
541
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
542
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
535
543
  );
536
544
  err.name = 'Invariant Violation';
537
545
  throw err;
@@ -571,15 +579,16 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
571
579
  *
572
580
  * @private
573
581
  */
574
- checkPropTypes.resetWarningCache = function() {
582
+ checkPropTypes$1.resetWarningCache = function() {
575
583
  if (process.env.NODE_ENV !== 'production') {
576
584
  loggedTypeFailures = {};
577
585
  }
578
586
  };
579
587
 
580
- var checkPropTypes_1 = checkPropTypes;
588
+ var checkPropTypes_1 = checkPropTypes$1;
589
+
590
+ var checkPropTypes = checkPropTypes_1;
581
591
 
582
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
583
592
  var printWarning = function() {};
584
593
 
585
594
  if (process.env.NODE_ENV !== 'production') {
@@ -680,6 +689,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
680
689
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
681
690
  var ReactPropTypes = {
682
691
  array: createPrimitiveTypeChecker('array'),
692
+ bigint: createPrimitiveTypeChecker('bigint'),
683
693
  bool: createPrimitiveTypeChecker('boolean'),
684
694
  func: createPrimitiveTypeChecker('function'),
685
695
  number: createPrimitiveTypeChecker('number'),
@@ -725,8 +735,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
725
735
  * is prohibitively expensive if they are created too often, such as what
726
736
  * happens in oneOfType() for any type before the one that matched.
727
737
  */
728
- function PropTypeError(message) {
738
+ function PropTypeError(message, data) {
729
739
  this.message = message;
740
+ this.data = data && typeof data === 'object' ? data: {};
730
741
  this.stack = '';
731
742
  }
732
743
  // Make `instanceof Error` still work for returned errors.
@@ -741,7 +752,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
741
752
  componentName = componentName || ANONYMOUS;
742
753
  propFullName = propFullName || propName;
743
754
 
744
- if (secret !== ReactPropTypesSecret_1) {
755
+ if (secret !== ReactPropTypesSecret$1) {
745
756
  if (throwOnDirectAccess) {
746
757
  // New behavior only for users of `prop-types` package
747
758
  var err = new Error(
@@ -761,7 +772,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
761
772
  ) {
762
773
  printWarning(
763
774
  'You are manually calling a React.PropTypes validation ' +
764
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
775
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
765
776
  'and will throw in the standalone `prop-types` package. ' +
766
777
  'You may be seeing this warning due to a third-party PropTypes ' +
767
778
  'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
@@ -800,7 +811,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
800
811
  // 'of type `object`'.
801
812
  var preciseType = getPreciseType(propValue);
802
813
 
803
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
814
+ return new PropTypeError(
815
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
816
+ {expectedType: expectedType}
817
+ );
804
818
  }
805
819
  return null;
806
820
  }
@@ -822,7 +836,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
822
836
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
823
837
  }
824
838
  for (var i = 0; i < propValue.length; i++) {
825
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
839
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
826
840
  if (error instanceof Error) {
827
841
  return error;
828
842
  }
@@ -914,8 +928,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
914
928
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
915
929
  }
916
930
  for (var key in propValue) {
917
- if (has(propValue, key)) {
918
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
931
+ if (has$1(propValue, key)) {
932
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
919
933
  if (error instanceof Error) {
920
934
  return error;
921
935
  }
@@ -944,14 +958,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
944
958
  }
945
959
 
946
960
  function validate(props, propName, componentName, location, propFullName) {
961
+ var expectedTypes = [];
947
962
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
948
963
  var checker = arrayOfTypeCheckers[i];
949
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
964
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
965
+ if (checkerResult == null) {
950
966
  return null;
951
967
  }
968
+ if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
969
+ expectedTypes.push(checkerResult.data.expectedType);
970
+ }
952
971
  }
953
-
954
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
972
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
973
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
955
974
  }
956
975
  return createChainableTypeChecker(validate);
957
976
  }
@@ -966,6 +985,13 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
966
985
  return createChainableTypeChecker(validate);
967
986
  }
968
987
 
988
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
989
+ return new PropTypeError(
990
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
991
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
992
+ );
993
+ }
994
+
969
995
  function createShapeTypeChecker(shapeTypes) {
970
996
  function validate(props, propName, componentName, location, propFullName) {
971
997
  var propValue = props[propName];
@@ -975,10 +1001,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
975
1001
  }
976
1002
  for (var key in shapeTypes) {
977
1003
  var checker = shapeTypes[key];
978
- if (!checker) {
979
- continue;
1004
+ if (typeof checker !== 'function') {
1005
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
980
1006
  }
981
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1007
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
982
1008
  if (error) {
983
1009
  return error;
984
1010
  }
@@ -995,19 +1021,21 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
995
1021
  if (propType !== 'object') {
996
1022
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
997
1023
  }
998
- // We need to check all keys in case some are required but missing from
999
- // props.
1024
+ // We need to check all keys in case some are required but missing from props.
1000
1025
  var allKeys = objectAssign({}, props[propName], shapeTypes);
1001
1026
  for (var key in allKeys) {
1002
1027
  var checker = shapeTypes[key];
1028
+ if (has$1(shapeTypes, key) && typeof checker !== 'function') {
1029
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1030
+ }
1003
1031
  if (!checker) {
1004
1032
  return new PropTypeError(
1005
1033
  'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1006
1034
  '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1007
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1035
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1008
1036
  );
1009
1037
  }
1010
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1038
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1011
1039
  if (error) {
1012
1040
  return error;
1013
1041
  }
@@ -1149,8 +1177,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1149
1177
  return propValue.constructor.name;
1150
1178
  }
1151
1179
 
1152
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
1153
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1180
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1181
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1154
1182
  ReactPropTypes.PropTypes = ReactPropTypes;
1155
1183
 
1156
1184
  return ReactPropTypes;
@@ -1162,7 +1190,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1162
1190
 
1163
1191
  var factoryWithThrowingShims = function() {
1164
1192
  function shim(props, propName, componentName, location, propFullName, secret) {
1165
- if (secret === ReactPropTypesSecret_1) {
1193
+ if (secret === ReactPropTypesSecret$1) {
1166
1194
  // It is still safe when called from React.
1167
1195
  return;
1168
1196
  }
@@ -1180,6 +1208,7 @@ var factoryWithThrowingShims = function() {
1180
1208
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1181
1209
  var ReactPropTypes = {
1182
1210
  array: shim,
1211
+ bigint: shim,
1183
1212
  bool: shim,
1184
1213
  func: shim,
1185
1214
  number: shim,
@@ -1208,6 +1237,10 @@ var factoryWithThrowingShims = function() {
1208
1237
  return ReactPropTypes;
1209
1238
  };
1210
1239
 
1240
+ var require$$1 = factoryWithTypeCheckers;
1241
+
1242
+ var require$$2 = factoryWithThrowingShims;
1243
+
1211
1244
  var propTypes = createCommonjsModule(function (module) {
1212
1245
  /**
1213
1246
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -1222,14 +1255,16 @@ if (process.env.NODE_ENV !== 'production') {
1222
1255
  // By explicitly using `prop-types` you are opting into new development behavior.
1223
1256
  // http://fb.me/prop-types-in-prod
1224
1257
  var throwOnDirectAccess = true;
1225
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1258
+ module.exports = require$$1(ReactIs.isElement, throwOnDirectAccess);
1226
1259
  } else {
1227
1260
  // By explicitly using `prop-types` you are opting into new production behavior.
1228
1261
  // http://fb.me/prop-types-in-prod
1229
- module.exports = factoryWithThrowingShims();
1262
+ module.exports = require$$2();
1230
1263
  }
1231
1264
  });
1232
1265
 
1266
+ var PropTypes = propTypes;
1267
+
1233
1268
  var AtActionSheetBody = /** @class */ (function (_super) {
1234
1269
  __extends(AtActionSheetBody, _super);
1235
1270
  function AtActionSheetBody() {
@@ -1265,7 +1300,7 @@ var AtActionSheetFooter = /** @class */ (function (_super) {
1265
1300
  return AtActionSheetFooter;
1266
1301
  }(React.Component));
1267
1302
  AtActionSheetFooter.propTypes = {
1268
- onClick: propTypes.func
1303
+ onClick: PropTypes.func
1269
1304
  };
1270
1305
 
1271
1306
  var AtActionSheetHeader = /** @class */ (function (_super) {
@@ -1340,11 +1375,11 @@ AtActionSheet.defaultProps = {
1340
1375
  isOpened: false
1341
1376
  };
1342
1377
  AtActionSheet.propTypes = {
1343
- title: propTypes.string,
1344
- onClose: propTypes.func,
1345
- onCancel: propTypes.func,
1346
- isOpened: propTypes.bool.isRequired,
1347
- cancelText: propTypes.string
1378
+ title: PropTypes.string,
1379
+ onClose: PropTypes.func,
1380
+ onCancel: PropTypes.func,
1381
+ isOpened: PropTypes.bool.isRequired,
1382
+ cancelText: PropTypes.string
1348
1383
  };
1349
1384
 
1350
1385
  var AtActionSheetItem = /** @class */ (function (_super) {
@@ -1365,7 +1400,7 @@ var AtActionSheetItem = /** @class */ (function (_super) {
1365
1400
  return AtActionSheetItem;
1366
1401
  }(React.Component));
1367
1402
  AtActionSheetItem.propTypes = {
1368
- onClick: propTypes.func
1403
+ onClick: PropTypes.func
1369
1404
  };
1370
1405
 
1371
1406
  var ENV$4 = Taro.getEnv();
@@ -1582,8 +1617,8 @@ AtLoading.defaultProps = {
1582
1617
  color: ''
1583
1618
  };
1584
1619
  AtLoading.propTypes = {
1585
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
1586
- color: propTypes.oneOfType([propTypes.string, propTypes.number])
1620
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1621
+ color: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1587
1622
  };
1588
1623
 
1589
1624
  var AtActivityIndicator = /** @class */ (function (_super) {
@@ -1613,12 +1648,12 @@ AtActivityIndicator.defaultProps = {
1613
1648
  isOpened: true
1614
1649
  };
1615
1650
  AtActivityIndicator.propTypes = {
1616
- size: propTypes.number,
1617
- mode: propTypes.string,
1618
- color: propTypes.string,
1619
- content: propTypes.string,
1620
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
1621
- isOpened: propTypes.bool
1651
+ size: PropTypes.number,
1652
+ mode: PropTypes.string,
1653
+ color: PropTypes.string,
1654
+ content: PropTypes.string,
1655
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
1656
+ isOpened: PropTypes.bool
1622
1657
  };
1623
1658
 
1624
1659
  var SIZE_CLASS$2 = {
@@ -1670,13 +1705,13 @@ AtAvatar.defaultProps = {
1670
1705
  className: ''
1671
1706
  };
1672
1707
  AtAvatar.propTypes = {
1673
- size: propTypes.oneOf(['large', 'normal', 'small']),
1674
- circle: propTypes.bool,
1675
- text: propTypes.string,
1676
- image: propTypes.string,
1677
- openData: propTypes.object,
1678
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1679
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
1708
+ size: PropTypes.oneOf(['large', 'normal', 'small']),
1709
+ circle: PropTypes.bool,
1710
+ text: PropTypes.string,
1711
+ image: PropTypes.string,
1712
+ openData: PropTypes.object,
1713
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1714
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
1680
1715
  };
1681
1716
 
1682
1717
  var AtBadge = /** @class */ (function (_super) {
@@ -1713,11 +1748,11 @@ AtBadge.defaultProps = {
1713
1748
  className: ''
1714
1749
  };
1715
1750
  AtBadge.propTypes = {
1716
- dot: propTypes.bool,
1717
- value: propTypes.oneOfType([propTypes.string, propTypes.number]),
1718
- maxValue: propTypes.number,
1719
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1720
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
1751
+ dot: PropTypes.bool,
1752
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1753
+ maxValue: PropTypes.number,
1754
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1755
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
1721
1756
  };
1722
1757
 
1723
1758
  var SIZE_CLASS$1 = {
@@ -1759,28 +1794,6 @@ var AtButton = /** @class */ (function (_super) {
1759
1794
  AtButton.prototype.onOpenSetting = function (event) {
1760
1795
  this.props.onOpenSetting && this.props.onOpenSetting(event);
1761
1796
  };
1762
- AtButton.prototype.onSumit = function (event) {
1763
- if (this.state.isWEAPP || this.state.isWEB) {
1764
- // TODO: 3.0 this.$scope
1765
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
1766
- // @ts-ignore
1767
- this.$scope.triggerEvent('submit', event.detail, {
1768
- bubbles: true,
1769
- composed: true
1770
- });
1771
- }
1772
- };
1773
- AtButton.prototype.onReset = function (event) {
1774
- if (this.state.isWEAPP || this.state.isWEB) {
1775
- // TODO: 3.0 this.$scope
1776
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
1777
- // @ts-ignore
1778
- this.$scope.triggerEvent('reset', event.detail, {
1779
- bubbles: true,
1780
- composed: true
1781
- });
1782
- }
1783
- };
1784
1797
  AtButton.prototype.render = function () {
1785
1798
  var _a;
1786
1799
  var _b = this.props, _c = _b.size, size = _c === void 0 ? 'normal' : _c, _d = _b.type, type = _d === void 0 ? '' : _d, circle = _b.circle, full = _b.full, loading = _b.loading, disabled = _b.disabled, customStyle = _b.customStyle, formType = _b.formType, openType = _b.openType, lang = _b.lang, sessionFrom = _b.sessionFrom, sendMessageTitle = _b.sendMessageTitle, sendMessagePath = _b.sendMessagePath, sendMessageImg = _b.sendMessageImg, showMessageCard = _b.showMessageCard, appParameter = _b.appParameter;
@@ -1805,7 +1818,7 @@ var AtButton = /** @class */ (function (_super) {
1805
1818
  var button = (React.createElement(Button, { className: 'at-button__wxbutton', formType: formType, openType: openType, lang: lang, sessionFrom: sessionFrom, sendMessageTitle: sendMessageTitle, sendMessagePath: sendMessagePath, sendMessageImg: sendMessageImg, showMessageCard: showMessageCard, appParameter: appParameter, onGetUserInfo: this.onGetUserInfo.bind(this), onGetPhoneNumber: this.onGetPhoneNumber.bind(this), onOpenSetting: this.onOpenSetting.bind(this), onError: this.onError.bind(this), onContact: this.onContact.bind(this) }));
1806
1819
  return (React.createElement(View, { className: classnames(rootClassName, classObject, this.props.className), style: customStyle, onClick: this.onClick.bind(this) },
1807
1820
  isWEB && !disabled && webButton,
1808
- isWEAPP && !disabled && (React.createElement(Form, { onSubmit: this.onSumit.bind(this), onReset: this.onReset.bind(this) }, button)),
1821
+ isWEAPP && !disabled && button,
1809
1822
  isALIPAY && !disabled && button,
1810
1823
  loadingComponent,
1811
1824
  React.createElement(View, { className: 'at-button__text' }, this.props.children)));
@@ -1829,16 +1842,16 @@ AtButton.defaultProps = {
1829
1842
  appParameter: ''
1830
1843
  };
1831
1844
  AtButton.propTypes = {
1832
- size: propTypes.oneOf(['normal', 'small']),
1833
- type: propTypes.oneOf(['primary', 'secondary', '']),
1834
- circle: propTypes.bool,
1835
- full: propTypes.bool,
1836
- loading: propTypes.bool,
1837
- disabled: propTypes.bool,
1838
- onClick: propTypes.func,
1839
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1840
- formType: propTypes.oneOf(['submit', 'reset', '']),
1841
- openType: propTypes.oneOf([
1845
+ size: PropTypes.oneOf(['normal', 'small']),
1846
+ type: PropTypes.oneOf(['primary', 'secondary', '']),
1847
+ circle: PropTypes.bool,
1848
+ full: PropTypes.bool,
1849
+ loading: PropTypes.bool,
1850
+ disabled: PropTypes.bool,
1851
+ onClick: PropTypes.func,
1852
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1853
+ formType: PropTypes.oneOf(['submit', 'reset', '']),
1854
+ openType: PropTypes.oneOf([
1842
1855
  'contact',
1843
1856
  'share',
1844
1857
  'getUserInfo',
@@ -1851,18 +1864,18 @@ AtButton.propTypes = {
1851
1864
  'contactShare',
1852
1865
  ''
1853
1866
  ]),
1854
- lang: propTypes.string,
1855
- sessionFrom: propTypes.string,
1856
- sendMessageTitle: propTypes.string,
1857
- sendMessagePath: propTypes.string,
1858
- sendMessageImg: propTypes.string,
1859
- showMessageCard: propTypes.bool,
1860
- appParameter: propTypes.string,
1861
- onGetUserInfo: propTypes.func,
1862
- onContact: propTypes.func,
1863
- onGetPhoneNumber: propTypes.func,
1864
- onError: propTypes.func,
1865
- onOpenSetting: propTypes.func
1867
+ lang: PropTypes.string,
1868
+ sessionFrom: PropTypes.string,
1869
+ sendMessageTitle: PropTypes.string,
1870
+ sendMessagePath: PropTypes.string,
1871
+ sendMessageImg: PropTypes.string,
1872
+ showMessageCard: PropTypes.bool,
1873
+ appParameter: PropTypes.string,
1874
+ onGetUserInfo: PropTypes.func,
1875
+ onContact: PropTypes.func,
1876
+ onGetPhoneNumber: PropTypes.func,
1877
+ onError: PropTypes.func,
1878
+ onOpenSetting: PropTypes.func
1866
1879
  };
1867
1880
 
1868
1881
  var AtCard = /** @class */ (function (_super) {
@@ -1915,15 +1928,15 @@ AtCard.defaultProps = {
1915
1928
  extraStyle: {}
1916
1929
  };
1917
1930
  AtCard.propTypes = {
1918
- note: propTypes.string,
1919
- isFull: propTypes.bool,
1920
- thumb: propTypes.string,
1921
- title: propTypes.string,
1922
- extra: propTypes.string,
1923
- icon: propTypes.object,
1924
- onClick: propTypes.func,
1925
- renderIcon: propTypes.oneOfType([propTypes.string, propTypes.element]),
1926
- extraStyle: propTypes.object // 自定义extra样式
1931
+ note: PropTypes.string,
1932
+ isFull: PropTypes.bool,
1933
+ thumb: PropTypes.string,
1934
+ title: PropTypes.string,
1935
+ extra: PropTypes.string,
1936
+ icon: PropTypes.object,
1937
+ onClick: PropTypes.func,
1938
+ renderIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
1939
+ extraStyle: PropTypes.object // 自定义extra样式
1927
1940
  };
1928
1941
 
1929
1942
  var AtCheckbox = /** @class */ (function (_super) {
@@ -1976,11 +1989,11 @@ AtCheckbox.defaultProps = {
1976
1989
  onChange: function () { }
1977
1990
  };
1978
1991
  AtCheckbox.propTypes = {
1979
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1980
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
1981
- options: propTypes.array,
1982
- selectedList: propTypes.array,
1983
- onChange: propTypes.func
1992
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1993
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
1994
+ options: PropTypes.array,
1995
+ selectedList: PropTypes.array,
1996
+ onChange: PropTypes.func
1984
1997
  };
1985
1998
 
1986
1999
  var AtList = /** @class */ (function (_super) {
@@ -2000,7 +2013,7 @@ AtList.defaultProps = {
2000
2013
  hasBorder: true
2001
2014
  };
2002
2015
  AtList.propTypes = {
2003
- hasBorder: propTypes.bool
2016
+ hasBorder: PropTypes.bool
2004
2017
  };
2005
2018
 
2006
2019
  var AtListItem = /** @class */ (function (_super) {
@@ -2076,26 +2089,26 @@ AtListItem.defaultProps = {
2076
2089
  iconInfo: { value: '' }
2077
2090
  };
2078
2091
  AtListItem.propTypes = {
2079
- note: propTypes.string,
2080
- disabled: propTypes.bool,
2081
- title: propTypes.string,
2082
- thumb: propTypes.string,
2083
- onClick: propTypes.func,
2084
- isSwitch: propTypes.bool,
2085
- hasBorder: propTypes.bool,
2086
- switchColor: propTypes.string,
2087
- switchIsCheck: propTypes.bool,
2088
- extraText: propTypes.string,
2089
- extraThumb: propTypes.string,
2090
- onSwitchChange: propTypes.func,
2091
- arrow: propTypes.oneOf(['up', 'down', 'right']),
2092
- iconInfo: propTypes.shape({
2093
- size: propTypes.number,
2094
- value: propTypes.string,
2095
- color: propTypes.string,
2096
- prefixClass: propTypes.string,
2097
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2098
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
2092
+ note: PropTypes.string,
2093
+ disabled: PropTypes.bool,
2094
+ title: PropTypes.string,
2095
+ thumb: PropTypes.string,
2096
+ onClick: PropTypes.func,
2097
+ isSwitch: PropTypes.bool,
2098
+ hasBorder: PropTypes.bool,
2099
+ switchColor: PropTypes.string,
2100
+ switchIsCheck: PropTypes.bool,
2101
+ extraText: PropTypes.string,
2102
+ extraThumb: PropTypes.string,
2103
+ onSwitchChange: PropTypes.func,
2104
+ arrow: PropTypes.oneOf(['up', 'down', 'right']),
2105
+ iconInfo: PropTypes.shape({
2106
+ size: PropTypes.number,
2107
+ value: PropTypes.string,
2108
+ color: PropTypes.string,
2109
+ prefixClass: PropTypes.string,
2110
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2111
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
2099
2112
  })
2100
2113
  };
2101
2114
 
@@ -2185,12 +2198,12 @@ AtDrawer.defaultProps = {
2185
2198
  items: []
2186
2199
  };
2187
2200
  AtDrawer.propTypes = {
2188
- show: propTypes.bool,
2189
- mask: propTypes.bool,
2190
- width: propTypes.string,
2191
- items: propTypes.arrayOf(propTypes.string),
2192
- onItemClick: propTypes.func,
2193
- onClose: propTypes.func
2201
+ show: PropTypes.bool,
2202
+ mask: PropTypes.bool,
2203
+ width: PropTypes.string,
2204
+ items: PropTypes.arrayOf(PropTypes.string),
2205
+ onItemClick: PropTypes.func,
2206
+ onClose: PropTypes.func
2194
2207
  };
2195
2208
 
2196
2209
  var AtFloatLayout = /** @class */ (function (_super) {
@@ -2264,19 +2277,19 @@ AtFloatLayout.defaultProps = {
2264
2277
  scrollWithAnimation: false
2265
2278
  };
2266
2279
  AtFloatLayout.propTypes = {
2267
- title: propTypes.string,
2268
- isOpened: propTypes.bool,
2269
- scrollY: propTypes.bool,
2270
- scrollX: propTypes.bool,
2271
- scrollTop: propTypes.number,
2272
- scrollLeft: propTypes.number,
2273
- upperThreshold: propTypes.number,
2274
- lowerThreshold: propTypes.number,
2275
- scrollWithAnimation: propTypes.bool,
2276
- onClose: propTypes.func,
2277
- onScroll: propTypes.func,
2278
- onScrollToLower: propTypes.func,
2279
- onScrollToUpper: propTypes.func
2280
+ title: PropTypes.string,
2281
+ isOpened: PropTypes.bool,
2282
+ scrollY: PropTypes.bool,
2283
+ scrollX: PropTypes.bool,
2284
+ scrollTop: PropTypes.number,
2285
+ scrollLeft: PropTypes.number,
2286
+ upperThreshold: PropTypes.number,
2287
+ lowerThreshold: PropTypes.number,
2288
+ scrollWithAnimation: PropTypes.bool,
2289
+ onClose: PropTypes.func,
2290
+ onScroll: PropTypes.func,
2291
+ onScrollToLower: PropTypes.func,
2292
+ onScrollToUpper: PropTypes.func
2280
2293
  };
2281
2294
 
2282
2295
  var AtForm = /** @class */ (function (_super) {
@@ -2303,11 +2316,11 @@ AtForm.defaultProps = {
2303
2316
  reportSubmit: false
2304
2317
  };
2305
2318
  AtForm.propTypes = {
2306
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2307
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
2308
- reportSubmit: propTypes.bool,
2309
- onSubmit: propTypes.func,
2310
- onReset: propTypes.func
2319
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2320
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
2321
+ reportSubmit: PropTypes.bool,
2322
+ onSubmit: PropTypes.func,
2323
+ onReset: PropTypes.func
2311
2324
  };
2312
2325
 
2313
2326
  /**
@@ -3011,20 +3024,20 @@ AtGrid.defaultProps = {
3011
3024
  hasBorder: true
3012
3025
  };
3013
3026
  AtGrid.propTypes = {
3014
- mode: propTypes.string,
3015
- onClick: propTypes.func,
3016
- hasBorder: propTypes.bool,
3017
- columnNum: propTypes.number,
3018
- data: propTypes.arrayOf(propTypes.shape({
3019
- image: propTypes.string,
3020
- value: propTypes.string,
3021
- iconInfo: propTypes.shape({
3022
- size: propTypes.number,
3023
- value: propTypes.string,
3024
- color: propTypes.string,
3025
- prefixClass: propTypes.string,
3026
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3027
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
3027
+ mode: PropTypes.string,
3028
+ onClick: PropTypes.func,
3029
+ hasBorder: PropTypes.bool,
3030
+ columnNum: PropTypes.number,
3031
+ data: PropTypes.arrayOf(PropTypes.shape({
3032
+ image: PropTypes.string,
3033
+ value: PropTypes.string,
3034
+ iconInfo: PropTypes.shape({
3035
+ size: PropTypes.number,
3036
+ value: PropTypes.string,
3037
+ color: PropTypes.string,
3038
+ prefixClass: PropTypes.string,
3039
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3040
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
3028
3041
  })
3029
3042
  }))
3030
3043
  };
@@ -3038,7 +3051,7 @@ var AtIcon = /** @class */ (function (_super) {
3038
3051
  this.props.onClick && this.props.onClick(arguments);
3039
3052
  };
3040
3053
  AtIcon.prototype.render = function () {
3041
- var _a = this.props, customStyle = _a.customStyle, className = _a.className, prefixClass = _a.prefixClass, value = _a.value, size = _a.size, color = _a.color;
3054
+ var _a = this.props, _b = _a.customStyle, customStyle = _b === void 0 ? {} : _b, className = _a.className, prefixClass = _a.prefixClass, value = _a.value, size = _a.size, color = _a.color;
3042
3055
  var rootStyle = {
3043
3056
  fontSize: "" + pxTransform(parseInt(String(size)) * 2),
3044
3057
  color: color
@@ -3057,13 +3070,13 @@ AtIcon.defaultProps = {
3057
3070
  size: 24
3058
3071
  };
3059
3072
  AtIcon.propTypes = {
3060
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3061
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3062
- prefixClass: propTypes.string,
3063
- value: propTypes.string,
3064
- color: propTypes.string,
3065
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
3066
- onClick: propTypes.func
3073
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3074
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3075
+ prefixClass: PropTypes.string,
3076
+ value: PropTypes.string,
3077
+ color: PropTypes.string,
3078
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3079
+ onClick: PropTypes.func
3067
3080
  };
3068
3081
 
3069
3082
  function getInputProps(props) {
@@ -3094,21 +3107,20 @@ var AtInput = /** @class */ (function (_super) {
3094
3107
  var _this = _super !== null && _super.apply(this, arguments) || this;
3095
3108
  // TODO: 有待考证是否为合理方式处理 #840
3096
3109
  _this.inputClearing = false;
3097
- _this.handleInput = function (event) {
3098
- return _this.props.onChange(event.detail.value, event);
3099
- };
3110
+ _this.handleInput = function (event) { var _a, _b; return (_b = (_a = _this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, event.detail.value, event); };
3100
3111
  _this.handleFocus = function (event) {
3101
3112
  if (typeof _this.props.onFocus === 'function') {
3102
3113
  _this.props.onFocus(event.detail.value, event);
3103
3114
  }
3104
3115
  };
3105
3116
  _this.handleBlur = function (event) {
3117
+ var _a, _b;
3106
3118
  if (typeof _this.props.onBlur === 'function') {
3107
3119
  _this.props.onBlur(event.detail.value, event);
3108
3120
  }
3109
3121
  if (event.type === 'blur' && !_this.inputClearing) {
3110
3122
  // fix # 583 AtInput 不触发 onChange 的问题
3111
- _this.props.onChange(event.detail.value, event);
3123
+ (_b = (_a = _this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, event.detail.value, event);
3112
3124
  }
3113
3125
  // 还原状态
3114
3126
  _this.inputClearing = false;
@@ -3124,8 +3136,9 @@ var AtInput = /** @class */ (function (_super) {
3124
3136
  }
3125
3137
  };
3126
3138
  _this.handleClearValue = function (event) {
3139
+ var _a, _b;
3127
3140
  _this.inputClearing = true;
3128
- _this.props.onChange('', event);
3141
+ (_b = (_a = _this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, '', event);
3129
3142
  };
3130
3143
  _this.handleKeyboardHeightChange = function (event) {
3131
3144
  if (typeof _this.props.onKeyboardHeightChange === 'function') {
@@ -3140,8 +3153,8 @@ var AtInput = /** @class */ (function (_super) {
3140
3153
  return _this;
3141
3154
  }
3142
3155
  AtInput.prototype.render = function () {
3143
- var _a = this.props, className = _a.className, customStyle = _a.customStyle, name = _a.name, cursorSpacing = _a.cursorSpacing, confirmType = _a.confirmType, cursor = _a.cursor, selectionStart = _a.selectionStart, selectionEnd = _a.selectionEnd, adjustPosition = _a.adjustPosition, border = _a.border, title = _a.title, error = _a.error, clear = _a.clear, placeholder = _a.placeholder, placeholderStyle = _a.placeholderStyle, placeholderClass = _a.placeholderClass, autoFocus = _a.autoFocus, focus = _a.focus, value = _a.value, required = _a.required;
3144
- var _b = getInputProps(this.props), type = _b.type, maxLength = _b.maxLength, disabled = _b.disabled, password = _b.password;
3156
+ var _a = this.props, className = _a.className, customStyle = _a.customStyle, name = _a.name, cursorSpacing = _a.cursorSpacing, confirmType = _a.confirmType, cursor = _a.cursor, selectionStart = _a.selectionStart, selectionEnd = _a.selectionEnd, adjustPosition = _a.adjustPosition, border = _a.border, title = _a.title, error = _a.error, clear = _a.clear, placeholder = _a.placeholder, placeholderStyle = _a.placeholderStyle, placeholderClass = _a.placeholderClass, _b = _a.autoFocus, autoFocus = _b === void 0 ? false : _b, _c = _a.focus, focus = _c === void 0 ? false : _c, value = _a.value, required = _a.required;
3157
+ var _d = getInputProps(this.props), type = _d.type, maxLength = _d.maxLength, disabled = _d.disabled, password = _d.password;
3145
3158
  var rootCls = classnames('at-input', {
3146
3159
  'at-input--without-border': !border
3147
3160
  }, className);
@@ -3149,6 +3162,7 @@ var AtInput = /** @class */ (function (_super) {
3149
3162
  'at-input--error': error,
3150
3163
  'at-input--disabled': disabled
3151
3164
  });
3165
+ // TODO: overlayCls 是否需要移除
3152
3166
  var overlayCls = classnames('at-input__overlay', {
3153
3167
  'at-input__overlay--hidden': !disabled
3154
3168
  });
@@ -3158,7 +3172,7 @@ var AtInput = /** @class */ (function (_super) {
3158
3172
  React.createElement(View, { className: containerCls },
3159
3173
  React.createElement(View, { className: overlayCls, onClick: this.handleClick }),
3160
3174
  title && (React.createElement(Label, { className: "at-input__title " + (required && 'at-input__title--required'), for: name }, title)),
3161
- React.createElement(Input, __assign({ className: 'at-input__input' }, id, { name: name, type: type, disabled: disabled, password: password, placeholderStyle: placeholderStyle, placeholderClass: placeholderCls, placeholder: placeholder, cursorSpacing: cursorSpacing, maxlength: maxLength, autoFocus: autoFocus, focus: focus, value: value, confirmType: confirmType, cursor: cursor, selectionStart: selectionStart, selectionEnd: selectionEnd, adjustPosition: adjustPosition, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onConfirm: this.handleConfirm,
3175
+ React.createElement(Input, __assign({ className: 'at-input__input' }, id, { name: name, type: type, disabled: disabled, password: password, placeholderStyle: placeholderStyle, placeholderClass: placeholderCls, placeholder: placeholder, cursorSpacing: cursorSpacing, maxlength: maxLength, autoFocus: autoFocus }, (focus ? { focus: focus } : {}), { value: value, confirmType: confirmType, cursor: cursor, selectionStart: selectionStart, selectionEnd: selectionEnd, adjustPosition: adjustPosition, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onConfirm: this.handleConfirm,
3162
3176
  // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
3163
3177
  // @ts-ignore
3164
3178
  onKeyboardHeightChange: this.handleKeyboardHeightChange })),
@@ -3200,37 +3214,37 @@ AtInput.defaultProps = {
3200
3214
  onChange: function () { }
3201
3215
  };
3202
3216
  AtInput.propTypes = {
3203
- className: propTypes.oneOfType([propTypes.string, propTypes.array]),
3204
- customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
3205
- value: propTypes.oneOfType([propTypes.string, propTypes.number]),
3206
- name: propTypes.string,
3207
- placeholder: propTypes.string,
3208
- placeholderStyle: propTypes.string,
3209
- placeholderClass: propTypes.string,
3210
- title: propTypes.string,
3211
- confirmType: propTypes.string,
3212
- cursor: propTypes.oneOfType([propTypes.string, propTypes.number]),
3213
- selectionStart: propTypes.oneOfType([propTypes.string, propTypes.number]),
3214
- selectionEnd: propTypes.oneOfType([propTypes.string, propTypes.number]),
3215
- adjustPosition: propTypes.bool,
3216
- cursorSpacing: propTypes.oneOfType([propTypes.string, propTypes.number]),
3217
- maxlength: propTypes.oneOfType([propTypes.string, propTypes.number]),
3218
- maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
3219
- type: propTypes.string,
3220
- disabled: propTypes.bool,
3221
- border: propTypes.bool,
3222
- editable: propTypes.bool,
3223
- error: propTypes.bool,
3224
- clear: propTypes.bool,
3225
- autoFocus: propTypes.bool,
3226
- focus: propTypes.bool,
3227
- onChange: propTypes.func,
3228
- onFocus: propTypes.func,
3229
- onBlur: propTypes.func,
3230
- onConfirm: propTypes.func,
3231
- onErrorClick: propTypes.func,
3232
- onClick: propTypes.func,
3233
- required: propTypes.bool
3217
+ className: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
3218
+ customStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3219
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3220
+ name: PropTypes.string,
3221
+ placeholder: PropTypes.string,
3222
+ placeholderStyle: PropTypes.string,
3223
+ placeholderClass: PropTypes.string,
3224
+ title: PropTypes.string,
3225
+ confirmType: PropTypes.string,
3226
+ cursor: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3227
+ selectionStart: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3228
+ selectionEnd: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3229
+ adjustPosition: PropTypes.bool,
3230
+ cursorSpacing: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3231
+ maxlength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3232
+ maxLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3233
+ type: PropTypes.string,
3234
+ disabled: PropTypes.bool,
3235
+ border: PropTypes.bool,
3236
+ editable: PropTypes.bool,
3237
+ error: PropTypes.bool,
3238
+ clear: PropTypes.bool,
3239
+ autoFocus: PropTypes.bool,
3240
+ focus: PropTypes.bool,
3241
+ onChange: PropTypes.func,
3242
+ onFocus: PropTypes.func,
3243
+ onBlur: PropTypes.func,
3244
+ onConfirm: PropTypes.func,
3245
+ onErrorClick: PropTypes.func,
3246
+ onClick: PropTypes.func,
3247
+ required: PropTypes.bool
3234
3248
  };
3235
3249
 
3236
3250
  /**
@@ -3475,7 +3489,7 @@ var AtInputNumber = /** @class */ (function (_super) {
3475
3489
  return AtInputNumber;
3476
3490
  }(React.Component));
3477
3491
  AtInputNumber.defaultProps = {
3478
- customStyle: '',
3492
+ customStyle: {},
3479
3493
  className: '',
3480
3494
  disabled: false,
3481
3495
  disabledInput: false,
@@ -3490,20 +3504,20 @@ AtInputNumber.defaultProps = {
3490
3504
  onChange: function () { }
3491
3505
  };
3492
3506
  AtInputNumber.propTypes = {
3493
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3494
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3495
- value: propTypes.oneOfType([propTypes.number, propTypes.string]),
3496
- type: propTypes.oneOf(['number', 'digit']),
3497
- disabled: propTypes.bool,
3498
- width: propTypes.number,
3499
- min: propTypes.number,
3500
- max: propTypes.number,
3501
- step: propTypes.number,
3502
- size: propTypes.oneOf(['normal', 'large']),
3503
- disabledInput: propTypes.bool,
3504
- onChange: propTypes.func,
3505
- onBlur: propTypes.func,
3506
- onErrorInput: propTypes.func
3507
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3508
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3509
+ value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
3510
+ type: PropTypes.oneOf(['number', 'digit']),
3511
+ disabled: PropTypes.bool,
3512
+ width: PropTypes.number,
3513
+ min: PropTypes.number,
3514
+ max: PropTypes.number,
3515
+ step: PropTypes.number,
3516
+ size: PropTypes.oneOf(['normal', 'large']),
3517
+ disabledInput: PropTypes.bool,
3518
+ onChange: PropTypes.func,
3519
+ onBlur: PropTypes.func,
3520
+ onErrorInput: PropTypes.func
3507
3521
  };
3508
3522
 
3509
3523
  var AtModalAction = /** @class */ (function (_super) {
@@ -3524,7 +3538,7 @@ AtModalAction.defaultProps = {
3524
3538
  isSimple: false
3525
3539
  };
3526
3540
  AtModalAction.propTypes = {
3527
- isSimple: propTypes.bool
3541
+ isSimple: PropTypes.bool
3528
3542
  };
3529
3543
 
3530
3544
  var AtModalContent = /** @class */ (function (_super) {
@@ -3637,15 +3651,15 @@ AtModal.defaultProps = {
3637
3651
  closeOnClickOverlay: true
3638
3652
  };
3639
3653
  AtModal.propTypes = {
3640
- title: propTypes.string,
3641
- isOpened: propTypes.bool,
3642
- onCancel: propTypes.func,
3643
- onConfirm: propTypes.func,
3644
- onClose: propTypes.func,
3645
- content: propTypes.string,
3646
- closeOnClickOverlay: propTypes.bool,
3647
- cancelText: propTypes.string,
3648
- confirmText: propTypes.string
3654
+ title: PropTypes.string,
3655
+ isOpened: PropTypes.bool,
3656
+ onCancel: PropTypes.func,
3657
+ onConfirm: PropTypes.func,
3658
+ onClose: PropTypes.func,
3659
+ content: PropTypes.string,
3660
+ closeOnClickOverlay: PropTypes.bool,
3661
+ cancelText: PropTypes.string,
3662
+ confirmText: PropTypes.string
3649
3663
  };
3650
3664
 
3651
3665
  var AtNavBar = /** @class */ (function (_super) {
@@ -3732,22 +3746,22 @@ AtNavBar.defaultProps = {
3732
3746
  rightSecondIconType: ''
3733
3747
  };
3734
3748
  AtNavBar.propTypes = {
3735
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3736
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3737
- fixed: propTypes.bool,
3738
- border: propTypes.bool,
3739
- color: propTypes.string,
3740
- leftIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
3741
- leftText: propTypes.string,
3742
- title: propTypes.string,
3743
- rightFirstIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
3744
- rightSecondIconType: propTypes.oneOfType([
3745
- propTypes.string,
3746
- propTypes.object
3749
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3750
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3751
+ fixed: PropTypes.bool,
3752
+ border: PropTypes.bool,
3753
+ color: PropTypes.string,
3754
+ leftIconType: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3755
+ leftText: PropTypes.string,
3756
+ title: PropTypes.string,
3757
+ rightFirstIconType: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3758
+ rightSecondIconType: PropTypes.oneOfType([
3759
+ PropTypes.string,
3760
+ PropTypes.object
3747
3761
  ]),
3748
- onClickLeftIcon: propTypes.func,
3749
- onClickRgIconSt: propTypes.func,
3750
- onClickRgIconNd: propTypes.func
3762
+ onClickLeftIcon: PropTypes.func,
3763
+ onClickRgIconSt: PropTypes.func,
3764
+ onClickRgIconNd: PropTypes.func
3751
3765
  };
3752
3766
 
3753
3767
  var AtNoticebar = /** @class */ (function (_super) {
@@ -3900,16 +3914,16 @@ AtNoticebar.defaultProps = {
3900
3914
  customStyle: {}
3901
3915
  };
3902
3916
  AtNoticebar.propTypes = {
3903
- close: propTypes.bool,
3904
- single: propTypes.bool,
3905
- marquee: propTypes.bool,
3906
- speed: propTypes.number,
3907
- moreText: propTypes.string,
3908
- showMore: propTypes.bool,
3909
- icon: propTypes.string,
3910
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3911
- onClose: propTypes.func,
3912
- onGotoMore: propTypes.func
3917
+ close: PropTypes.bool,
3918
+ single: PropTypes.bool,
3919
+ marquee: PropTypes.bool,
3920
+ speed: PropTypes.number,
3921
+ moreText: PropTypes.string,
3922
+ showMore: PropTypes.bool,
3923
+ icon: PropTypes.string,
3924
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3925
+ onClose: PropTypes.func,
3926
+ onGotoMore: PropTypes.func
3913
3927
  };
3914
3928
 
3915
3929
  var MIN_MAXPAGE = 1;
@@ -4018,12 +4032,12 @@ AtPagination.defaultProps = {
4018
4032
  customStyle: {}
4019
4033
  };
4020
4034
  AtPagination.propTypes = {
4021
- current: propTypes.number,
4022
- total: propTypes.number,
4023
- pageSize: propTypes.number,
4024
- icon: propTypes.bool,
4025
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4026
- onPageChange: propTypes.func
4035
+ current: PropTypes.number,
4036
+ total: PropTypes.number,
4037
+ pageSize: PropTypes.number,
4038
+ icon: PropTypes.bool,
4039
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4040
+ onPageChange: PropTypes.func
4027
4041
  };
4028
4042
 
4029
4043
  var AtProgress = /** @class */ (function (_super) {
@@ -4066,11 +4080,11 @@ var AtProgress = /** @class */ (function (_super) {
4066
4080
  return AtProgress;
4067
4081
  }(React.Component));
4068
4082
  AtProgress.propTypes = {
4069
- color: propTypes.string,
4070
- status: propTypes.string,
4071
- percent: propTypes.number,
4072
- strokeWidth: propTypes.number,
4073
- isHidePercent: propTypes.bool
4083
+ color: PropTypes.string,
4084
+ status: PropTypes.string,
4085
+ percent: PropTypes.number,
4086
+ strokeWidth: PropTypes.number,
4087
+ isHidePercent: PropTypes.bool
4074
4088
  };
4075
4089
 
4076
4090
  var AtRadio = /** @class */ (function (_super) {
@@ -4111,11 +4125,11 @@ AtRadio.defaultProps = {
4111
4125
  onClick: function () { }
4112
4126
  };
4113
4127
  AtRadio.propTypes = {
4114
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4115
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4116
- value: propTypes.string,
4117
- options: propTypes.array,
4118
- onClick: propTypes.func
4128
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4129
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4130
+ value: PropTypes.string,
4131
+ options: PropTypes.array,
4132
+ onClick: PropTypes.func
4119
4133
  };
4120
4134
 
4121
4135
  var AtRate = /** @class */ (function (_super) {
@@ -4166,13 +4180,13 @@ AtRate.defaultProps = {
4166
4180
  margin: 5
4167
4181
  };
4168
4182
  AtRate.propTypes = {
4169
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4170
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4171
- size: propTypes.oneOfType([propTypes.string, propTypes.number]),
4172
- value: propTypes.number,
4173
- max: propTypes.number,
4174
- margin: propTypes.number,
4175
- onChange: propTypes.func
4183
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4184
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4185
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4186
+ value: PropTypes.number,
4187
+ max: PropTypes.number,
4188
+ margin: PropTypes.number,
4189
+ onChange: PropTypes.func
4176
4190
  };
4177
4191
 
4178
4192
  var AtSegmentedControl = /** @class */ (function (_super) {
@@ -4225,14 +4239,14 @@ AtSegmentedControl.defaultProps = {
4225
4239
  onClick: function () { }
4226
4240
  };
4227
4241
  AtSegmentedControl.propTypes = {
4228
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4229
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4230
- current: propTypes.number,
4231
- color: propTypes.string,
4232
- fontSize: propTypes.oneOfType([propTypes.string, propTypes.number]),
4233
- disabled: propTypes.bool,
4234
- values: propTypes.array,
4235
- onClick: propTypes.func
4242
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4243
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4244
+ current: PropTypes.number,
4245
+ color: PropTypes.string,
4246
+ fontSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4247
+ disabled: PropTypes.bool,
4248
+ values: PropTypes.array,
4249
+ onClick: PropTypes.func
4236
4250
  };
4237
4251
 
4238
4252
  var AtSwitch = /** @class */ (function (_super) {
@@ -4272,14 +4286,14 @@ AtSwitch.defaultProps = {
4272
4286
  checked: false
4273
4287
  };
4274
4288
  AtSwitch.propTypes = {
4275
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4276
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4277
- title: propTypes.string,
4278
- color: propTypes.string,
4279
- checked: propTypes.bool,
4280
- border: propTypes.bool,
4281
- disabled: propTypes.bool,
4282
- onChange: propTypes.func
4289
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4290
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4291
+ title: PropTypes.string,
4292
+ color: PropTypes.string,
4293
+ checked: PropTypes.bool,
4294
+ border: PropTypes.bool,
4295
+ disabled: PropTypes.bool,
4296
+ onChange: PropTypes.func
4283
4297
  };
4284
4298
 
4285
4299
  var AtTabBar = /** @class */ (function (_super) {
@@ -4368,17 +4382,17 @@ AtTabBar.defaultProps = {
4368
4382
  onClick: function () { }
4369
4383
  };
4370
4384
  AtTabBar.propTypes = {
4371
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4372
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4373
- fixed: propTypes.bool,
4374
- backgroundColor: propTypes.string,
4375
- current: propTypes.number,
4376
- iconSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
4377
- fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
4378
- color: propTypes.string,
4379
- selectedColor: propTypes.string,
4380
- tabList: propTypes.array,
4381
- onClick: propTypes.func
4385
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4386
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4387
+ fixed: PropTypes.bool,
4388
+ backgroundColor: PropTypes.string,
4389
+ current: PropTypes.number,
4390
+ iconSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
4391
+ fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
4392
+ color: PropTypes.string,
4393
+ selectedColor: PropTypes.string,
4394
+ tabList: PropTypes.array,
4395
+ onClick: PropTypes.func
4382
4396
  };
4383
4397
 
4384
4398
  var ENV$3 = Taro.getEnv();
@@ -4403,7 +4417,7 @@ var AtTabs = /** @class */ (function (_super) {
4403
4417
  }
4404
4418
  case Taro.ENV_TYPE.WEB: {
4405
4419
  var index = Math.max(idx - 1, 0);
4406
- var prevTabItem = _this.tabHeaderRef.childNodes[index];
4420
+ var prevTabItem = _this.tabHeaderRef.children[index];
4407
4421
  prevTabItem &&
4408
4422
  _this.setState({
4409
4423
  _scrollTop: prevTabItem.offsetTop,
@@ -4563,16 +4577,16 @@ AtTabs.defaultProps = {
4563
4577
  onClick: function () { }
4564
4578
  };
4565
4579
  AtTabs.propTypes = {
4566
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4567
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4568
- height: propTypes.string,
4569
- tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
4570
- current: propTypes.number,
4571
- swipeable: propTypes.bool,
4572
- scroll: propTypes.bool,
4573
- animated: propTypes.bool,
4574
- tabList: propTypes.array,
4575
- onClick: propTypes.func
4580
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4581
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4582
+ height: PropTypes.string,
4583
+ tabDirection: PropTypes.oneOf(['horizontal', 'vertical']),
4584
+ current: PropTypes.number,
4585
+ swipeable: PropTypes.bool,
4586
+ scroll: PropTypes.bool,
4587
+ animated: PropTypes.bool,
4588
+ tabList: PropTypes.array,
4589
+ onClick: PropTypes.func
4576
4590
  };
4577
4591
 
4578
4592
  var AtTabsPane = /** @class */ (function (_super) {
@@ -4599,11 +4613,11 @@ AtTabsPane.defaultProps = {
4599
4613
  current: 0
4600
4614
  };
4601
4615
  AtTabsPane.propTypes = {
4602
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4603
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4604
- tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
4605
- index: propTypes.number,
4606
- current: propTypes.number
4616
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4617
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4618
+ tabDirection: PropTypes.oneOf(['horizontal', 'vertical']),
4619
+ index: PropTypes.number,
4620
+ current: PropTypes.number
4607
4621
  };
4608
4622
 
4609
4623
  var SIZE_CLASS = {
@@ -4653,14 +4667,14 @@ AtTag.defaultProps = {
4653
4667
  customStyle: {}
4654
4668
  };
4655
4669
  AtTag.propTypes = {
4656
- size: propTypes.oneOf(['normal', 'small']),
4657
- type: propTypes.oneOf(['', 'primary']),
4658
- name: propTypes.string,
4659
- circle: propTypes.bool,
4660
- active: propTypes.bool,
4661
- disabled: propTypes.bool,
4662
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4663
- onClick: propTypes.func
4670
+ size: PropTypes.oneOf(['normal', 'small']),
4671
+ type: PropTypes.oneOf(['', 'primary']),
4672
+ name: PropTypes.string,
4673
+ circle: PropTypes.bool,
4674
+ active: PropTypes.bool,
4675
+ disabled: PropTypes.bool,
4676
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4677
+ onClick: PropTypes.func
4664
4678
  };
4665
4679
 
4666
4680
  function getMaxLength(maxLength, textOverflowForbidden) {
@@ -4730,29 +4744,29 @@ AtTextarea.defaultProps = {
4730
4744
  onChange: function () { }
4731
4745
  };
4732
4746
  AtTextarea.propTypes = {
4733
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4734
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4735
- value: propTypes.string.isRequired,
4736
- cursorSpacing: propTypes.number,
4737
- maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
4738
- placeholderClass: propTypes.string,
4739
- placeholderStyle: propTypes.string,
4740
- placeholder: propTypes.string,
4741
- disabled: propTypes.bool,
4742
- autoFocus: propTypes.bool,
4743
- focus: propTypes.bool,
4744
- showConfirmBar: propTypes.bool,
4745
- selectionStart: propTypes.number,
4746
- selectionEnd: propTypes.number,
4747
- count: propTypes.bool,
4748
- textOverflowForbidden: propTypes.bool,
4749
- fixed: propTypes.bool,
4750
- height: propTypes.oneOfType([propTypes.string, propTypes.number]),
4751
- onLinechange: propTypes.func,
4752
- onChange: propTypes.func.isRequired,
4753
- onFocus: propTypes.func,
4754
- onBlur: propTypes.func,
4755
- onConfirm: propTypes.func
4747
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4748
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4749
+ value: PropTypes.string.isRequired,
4750
+ cursorSpacing: PropTypes.number,
4751
+ maxLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4752
+ placeholderClass: PropTypes.string,
4753
+ placeholderStyle: PropTypes.string,
4754
+ placeholder: PropTypes.string,
4755
+ disabled: PropTypes.bool,
4756
+ autoFocus: PropTypes.bool,
4757
+ focus: PropTypes.bool,
4758
+ showConfirmBar: PropTypes.bool,
4759
+ selectionStart: PropTypes.number,
4760
+ selectionEnd: PropTypes.number,
4761
+ count: PropTypes.bool,
4762
+ textOverflowForbidden: PropTypes.bool,
4763
+ fixed: PropTypes.bool,
4764
+ height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4765
+ onLinechange: PropTypes.func,
4766
+ onChange: PropTypes.func.isRequired,
4767
+ onFocus: PropTypes.func,
4768
+ onBlur: PropTypes.func,
4769
+ onConfirm: PropTypes.func
4756
4770
  };
4757
4771
 
4758
4772
  var AtTimeline = /** @class */ (function (_super) {
@@ -4803,9 +4817,9 @@ AtTimeline.defaultProps = {
4803
4817
  customStyle: {}
4804
4818
  };
4805
4819
  AtTimeline.propTypes = {
4806
- pending: propTypes.bool,
4807
- items: propTypes.arrayOf(propTypes.object),
4808
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string])
4820
+ pending: PropTypes.bool,
4821
+ items: PropTypes.arrayOf(PropTypes.object),
4822
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string])
4809
4823
  };
4810
4824
 
4811
4825
  var error = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAGwtJREFUeAHtnUusndV1x7mAIYABG/MUYGzLBCUtFHcCtB3YZgISGaCodOQ4QGGSoJAgV5FiOTAALBowY6tFASoUmYyS0EoRYPEonUUKRETYKNhWEnCwFZvWEIzB/f3v/T773HPP2Wt/79da0v/uc85+rfVfa93vsff5zswpLpUwcPz48aUMvAKsTMpLKC8Ey0bKc3h9JjhjpOTlKUfBpyPlEV4fBAdGyv283gPeUzkzM/NnSpeSGZgpebzBDUciXITR1yW4NilXU54P6pTDTPYueBO8lZRvkjgf8tolJwOeIBmJIyGuoMs6sD7B8oxD1N18LxO+DHaqJGH+ULcCXZ7PE8TwXnKESBNC5ZeNLm2v3oWCacLs9CNM2F2eIBP4ISlu4uM7wM3gr0F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LPaSZNGmxnVgfYK6LvCLKT69ty60lRDCTpLiw+lNvcYTJGMMkDBX0GU0YZZnHKLu5rolO5oQv69bgS7P5wlS0HvJEeY6hklxLa91DXN+waGzdj9MB11DvAXeTOFHCJgoIJ4gBcgLdSVxtO1iBViZlJdSai1jdD1DK9Ba8xDSdQ9ezlsX0RrJ/4HR9RO9/gDsAe+pJBH+TOlSMgP/D3W7PKH+6NniAAAAAElFTkSuQmCC";
@@ -4926,15 +4940,15 @@ AtToast.defaultProps = {
4926
4940
  isOpened: false
4927
4941
  };
4928
4942
  AtToast.propTypes = {
4929
- text: propTypes.string,
4930
- icon: propTypes.string,
4931
- hasMask: propTypes.bool,
4932
- image: propTypes.string,
4933
- isOpened: propTypes.bool,
4934
- duration: propTypes.number,
4935
- status: propTypes.oneOf(['', 'error', 'loading', 'success']),
4936
- onClick: propTypes.func,
4937
- onClose: propTypes.func
4943
+ text: PropTypes.string,
4944
+ icon: PropTypes.string,
4945
+ hasMask: PropTypes.bool,
4946
+ image: PropTypes.string,
4947
+ isOpened: PropTypes.bool,
4948
+ duration: PropTypes.number,
4949
+ status: PropTypes.oneOf(['', 'error', 'loading', 'success']),
4950
+ onClick: PropTypes.func,
4951
+ onClose: PropTypes.func
4938
4952
  };
4939
4953
 
4940
4954
  var AtAccordion = /** @class */ (function (_super) {
@@ -5039,15 +5053,15 @@ AtAccordion.defaultProps = {
5039
5053
  isAnimation: true
5040
5054
  };
5041
5055
  AtAccordion.propTypes = {
5042
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5043
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5044
- open: propTypes.bool,
5045
- isAnimation: propTypes.bool,
5046
- title: propTypes.string,
5047
- note: propTypes.string,
5048
- icon: propTypes.object,
5049
- hasBorder: propTypes.bool,
5050
- onClick: propTypes.func
5056
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5057
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5058
+ open: PropTypes.bool,
5059
+ isAnimation: PropTypes.bool,
5060
+ title: PropTypes.string,
5061
+ note: PropTypes.string,
5062
+ icon: PropTypes.object,
5063
+ hasBorder: PropTypes.bool,
5064
+ onClick: PropTypes.func
5051
5065
  };
5052
5066
 
5053
5067
  var AtSlider = /** @class */ (function (_super) {
@@ -5110,20 +5124,20 @@ AtSlider.defaultProps = {
5110
5124
  showValue: false
5111
5125
  };
5112
5126
  AtSlider.propTypes = {
5113
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5114
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5115
- min: propTypes.number,
5116
- max: propTypes.number,
5117
- step: propTypes.number,
5118
- value: propTypes.number,
5119
- disabled: propTypes.bool,
5120
- activeColor: propTypes.string,
5121
- backgroundColor: propTypes.string,
5122
- blockSize: propTypes.number,
5123
- blockColor: propTypes.string,
5124
- showValue: propTypes.bool,
5125
- onChange: propTypes.func,
5126
- onChanging: propTypes.func
5127
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5128
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5129
+ min: PropTypes.number,
5130
+ max: PropTypes.number,
5131
+ step: PropTypes.number,
5132
+ value: PropTypes.number,
5133
+ disabled: PropTypes.bool,
5134
+ activeColor: PropTypes.string,
5135
+ backgroundColor: PropTypes.string,
5136
+ blockSize: PropTypes.number,
5137
+ blockColor: PropTypes.string,
5138
+ showValue: PropTypes.bool,
5139
+ onChange: PropTypes.func,
5140
+ onChanging: PropTypes.func
5127
5141
  };
5128
5142
 
5129
5143
  var AtSwipeActionOptions = /** @class */ (function (_super) {
@@ -5244,7 +5258,7 @@ var AtSwipeAction = /** @class */ (function (_super) {
5244
5258
  AtSwipeAction.prototype.render = function () {
5245
5259
  var _this = this;
5246
5260
  var _a = this.state, componentId = _a.componentId, offsetSize = _a.offsetSize;
5247
- var options = this.props.options;
5261
+ var _b = this.props, options = _b.options, disabled = _b.disabled;
5248
5262
  var rootClass = classnames('at-swipe-action', this.props.className);
5249
5263
  return (React.createElement(View, { id: "swipeAction-" + componentId, className: rootClass, style: {
5250
5264
  width: this.eleWidth + "px"
@@ -5253,7 +5267,7 @@ var AtSwipeAction = /** @class */ (function (_super) {
5253
5267
  width: this.eleWidth + this.maxOffsetSize + "px",
5254
5268
  transform: "translate(-" + this.maxOffsetSize + "px, 0)"
5255
5269
  } },
5256
- React.createElement(MovableView, { className: 'at-swipe-action__content', direction: 'horizontal', damping: 50, x: offsetSize, onTouchEnd: this.onTouchEnd, onChange: this.onChange, style: {
5270
+ React.createElement(MovableView, { className: 'at-swipe-action__content', direction: 'horizontal', damping: 50, x: offsetSize, onTouchEnd: this.onTouchEnd, onChange: this.onChange, disabled: disabled, style: {
5257
5271
  width: this.eleWidth + "px",
5258
5272
  left: this.maxOffsetSize + "px"
5259
5273
  } },
@@ -5275,21 +5289,21 @@ AtSwipeAction.defaultProps = {
5275
5289
  areaWidth: 0
5276
5290
  };
5277
5291
  AtSwipeAction.propTypes = {
5278
- isOpened: propTypes.bool,
5279
- disabled: propTypes.bool,
5280
- autoClose: propTypes.bool,
5281
- options: propTypes.arrayOf(propTypes.shape({
5282
- text: propTypes.string,
5283
- style: propTypes.oneOfType([propTypes.object, propTypes.string]),
5284
- className: propTypes.oneOfType([
5285
- propTypes.object,
5286
- propTypes.string,
5287
- propTypes.array
5292
+ isOpened: PropTypes.bool,
5293
+ disabled: PropTypes.bool,
5294
+ autoClose: PropTypes.bool,
5295
+ options: PropTypes.arrayOf(PropTypes.shape({
5296
+ text: PropTypes.string,
5297
+ style: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5298
+ className: PropTypes.oneOfType([
5299
+ PropTypes.object,
5300
+ PropTypes.string,
5301
+ PropTypes.array
5288
5302
  ])
5289
5303
  })),
5290
- onClick: propTypes.func,
5291
- onOpened: propTypes.func,
5292
- onClosed: propTypes.func
5304
+ onClick: PropTypes.func,
5305
+ onOpened: PropTypes.func,
5306
+ onClosed: PropTypes.func
5293
5307
  };
5294
5308
 
5295
5309
  var AtSearchBar = /** @class */ (function (_super) {
@@ -5330,6 +5344,11 @@ var AtSearchBar = /** @class */ (function (_super) {
5330
5344
  };
5331
5345
  return _this;
5332
5346
  }
5347
+ AtSearchBar.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
5348
+ if (nextProps.focus !== this.props.focus) {
5349
+ this.setState({ isFocus: !!nextProps.focus });
5350
+ }
5351
+ };
5333
5352
  AtSearchBar.prototype.render = function () {
5334
5353
  var _a = this.props, value = _a.value, placeholder = _a.placeholder, maxLength = _a.maxLength, fixed = _a.fixed, disabled = _a.disabled, showActionButton = _a.showActionButton, _b = _a.actionName, actionName = _b === void 0 ? '搜索' : _b, inputType = _a.inputType, // 处理issue#464
5335
5354
  className = _a.className, customStyle = _a.customStyle;
@@ -5386,21 +5405,21 @@ AtSearchBar.defaultProps = {
5386
5405
  onChange: function () { }
5387
5406
  };
5388
5407
  AtSearchBar.propTypes = {
5389
- value: propTypes.string,
5390
- placeholder: propTypes.string,
5391
- maxLength: propTypes.number,
5392
- fixed: propTypes.bool,
5393
- focus: propTypes.bool,
5394
- disabled: propTypes.bool,
5395
- showActionButton: propTypes.bool,
5396
- actionName: propTypes.string,
5397
- inputType: propTypes.oneOf(['text', 'number', 'idcard', 'digit']),
5398
- onChange: propTypes.func,
5399
- onFocus: propTypes.func,
5400
- onBlur: propTypes.func,
5401
- onConfirm: propTypes.func,
5402
- onActionClick: propTypes.func,
5403
- onClear: propTypes.func
5408
+ value: PropTypes.string,
5409
+ placeholder: PropTypes.string,
5410
+ maxLength: PropTypes.number,
5411
+ fixed: PropTypes.bool,
5412
+ focus: PropTypes.bool,
5413
+ disabled: PropTypes.bool,
5414
+ showActionButton: PropTypes.bool,
5415
+ actionName: PropTypes.string,
5416
+ inputType: PropTypes.oneOf(['text', 'number', 'idcard', 'digit']),
5417
+ onChange: PropTypes.func,
5418
+ onFocus: PropTypes.func,
5419
+ onBlur: PropTypes.func,
5420
+ onConfirm: PropTypes.func,
5421
+ onActionClick: PropTypes.func,
5422
+ onClear: PropTypes.func
5404
5423
  };
5405
5424
 
5406
5425
  var AtLoadMore = /** @class */ (function (_super) {
@@ -5439,15 +5458,15 @@ AtLoadMore.defaultProps = {
5439
5458
  noMoreText: '没有更多'
5440
5459
  };
5441
5460
  AtLoadMore.propTypes = {
5442
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5443
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5444
- noMoreTextStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5445
- moreBtnStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5446
- status: propTypes.oneOf(['more', 'loading', 'noMore']),
5447
- loadingText: propTypes.string,
5448
- moreText: propTypes.string,
5449
- noMoreText: propTypes.string,
5450
- onClick: propTypes.func
5461
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5462
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5463
+ noMoreTextStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5464
+ moreBtnStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5465
+ status: PropTypes.oneOf(['more', 'loading', 'noMore']),
5466
+ loadingText: PropTypes.string,
5467
+ moreText: PropTypes.string,
5468
+ noMoreText: PropTypes.string,
5469
+ onClick: PropTypes.func
5451
5470
  };
5452
5471
 
5453
5472
  var AtDivider = /** @class */ (function (_super) {
@@ -5462,7 +5481,7 @@ var AtDivider = /** @class */ (function (_super) {
5462
5481
  };
5463
5482
  var fontStyle = {
5464
5483
  color: fontColor,
5465
- 'font-size': fontSize ? "" + pxTransform(Number(fontSize)) : ''
5484
+ 'fontSize': fontSize ? "" + pxTransform(Number(fontSize)) : ''
5466
5485
  };
5467
5486
  var lineStyle = {
5468
5487
  backgroundColor: lineColor
@@ -5481,13 +5500,13 @@ AtDivider.defaultProps = {
5481
5500
  lineColor: ''
5482
5501
  };
5483
5502
  AtDivider.propTypes = {
5484
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5485
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5486
- content: propTypes.string,
5487
- height: propTypes.oneOfType([propTypes.number, propTypes.string]),
5488
- fontColor: propTypes.string,
5489
- fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
5490
- lineColor: propTypes.string
5503
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5504
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5505
+ content: PropTypes.string,
5506
+ height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
5507
+ fontColor: PropTypes.string,
5508
+ fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
5509
+ lineColor: PropTypes.string
5491
5510
  };
5492
5511
 
5493
5512
  var AtCountdownItem = /** @class */ (function (_super) {
@@ -5512,8 +5531,8 @@ AtCountdownItem.defaultProps = {
5512
5531
  separator: ':'
5513
5532
  };
5514
5533
  AtCountdownItem.propTypes = {
5515
- num: propTypes.number.isRequired,
5516
- separator: propTypes.string
5534
+ num: PropTypes.number.isRequired,
5535
+ separator: PropTypes.string
5517
5536
  };
5518
5537
 
5519
5538
  var toSeconds = function (day, hours, minutes, seconds) { return day * 60 * 60 * 24 + hours * 60 * 60 + minutes * 60 + seconds; };
@@ -5631,17 +5650,17 @@ AtCountdown.defaultProps = {
5631
5650
  seconds: 0
5632
5651
  };
5633
5652
  AtCountdown.propTypes = {
5634
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5635
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5636
- isCard: propTypes.bool,
5637
- isShowDay: propTypes.bool,
5638
- isShowHour: propTypes.bool,
5639
- format: propTypes.object,
5640
- day: propTypes.number,
5641
- hours: propTypes.number,
5642
- minutes: propTypes.number,
5643
- seconds: propTypes.number,
5644
- onTimeUp: propTypes.func
5653
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5654
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5655
+ isCard: PropTypes.bool,
5656
+ isShowDay: PropTypes.bool,
5657
+ isShowHour: PropTypes.bool,
5658
+ format: PropTypes.object,
5659
+ day: PropTypes.number,
5660
+ hours: PropTypes.number,
5661
+ minutes: PropTypes.number,
5662
+ seconds: PropTypes.number,
5663
+ onTimeUp: PropTypes.func
5645
5664
  };
5646
5665
 
5647
5666
  var AtSteps = /** @class */ (function (_super) {
@@ -5692,11 +5711,11 @@ AtSteps.defaultProps = {
5692
5711
  onChange: function () { }
5693
5712
  };
5694
5713
  AtSteps.propTypes = {
5695
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5696
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5697
- current: propTypes.number,
5698
- items: propTypes.array,
5699
- onChange: propTypes.func
5714
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5715
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5716
+ current: PropTypes.number,
5717
+ items: PropTypes.array,
5718
+ onChange: PropTypes.func
5700
5719
  };
5701
5720
 
5702
5721
  var AtCurtain = /** @class */ (function (_super) {
@@ -5740,11 +5759,11 @@ AtCurtain.defaultProps = {
5740
5759
  onClose: function () { }
5741
5760
  };
5742
5761
  AtCurtain.propTypes = {
5743
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5744
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5745
- isOpened: propTypes.bool,
5746
- closeBtnPosition: propTypes.string,
5747
- onClose: propTypes.func
5762
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5763
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5764
+ isOpened: PropTypes.bool,
5765
+ closeBtnPosition: PropTypes.string,
5766
+ onClose: PropTypes.func
5748
5767
  };
5749
5768
 
5750
5769
  var AtMessage = /** @class */ (function (_super) {
@@ -5812,8 +5831,8 @@ AtMessage.defaultProps = {
5812
5831
  className: ''
5813
5832
  };
5814
5833
  AtMessage.propTypes = {
5815
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5816
- className: propTypes.oneOfType([propTypes.array, propTypes.string])
5834
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5835
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
5817
5836
  };
5818
5837
 
5819
5838
  // 生成 jsx 二维矩阵
@@ -5873,7 +5892,10 @@ var AtImagePicker = /** @class */ (function (_super) {
5873
5892
  var newFiles = files.concat(targetFiles);
5874
5893
  _this.props.onChange(newFiles, 'add');
5875
5894
  })
5876
- .catch(_this.props.onFail);
5895
+ .catch(function (err) {
5896
+ var _a, _b;
5897
+ (_b = (_a = _this.props) === null || _a === void 0 ? void 0 : _a.onFail) === null || _b === void 0 ? void 0 : _b.call(_a, err);
5898
+ });
5877
5899
  };
5878
5900
  _this.handleImageClick = function (idx) {
5879
5901
  _this.props.onImageClick &&
@@ -5921,10 +5943,10 @@ AtImagePicker.defaultProps = {
5921
5943
  onChange: function () { }
5922
5944
  };
5923
5945
  AtImagePicker.propTypes = {
5924
- className: propTypes.oneOfType([propTypes.string, propTypes.array]),
5925
- customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
5926
- files: propTypes.array,
5927
- mode: propTypes.oneOf([
5946
+ className: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
5947
+ customStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
5948
+ files: PropTypes.array,
5949
+ mode: PropTypes.oneOf([
5928
5950
  'scaleToFill',
5929
5951
  'aspectFit',
5930
5952
  'aspectFill',
@@ -5939,15 +5961,15 @@ AtImagePicker.propTypes = {
5939
5961
  'bottom left',
5940
5962
  'bottom right'
5941
5963
  ]),
5942
- showAddBtn: propTypes.bool,
5943
- multiple: propTypes.bool,
5944
- length: propTypes.number,
5945
- onChange: propTypes.func,
5946
- onImageClick: propTypes.func,
5947
- onFail: propTypes.func,
5948
- count: propTypes.number,
5949
- sizeType: propTypes.array,
5950
- sourceType: propTypes.array
5964
+ showAddBtn: PropTypes.bool,
5965
+ multiple: PropTypes.bool,
5966
+ length: PropTypes.number,
5967
+ onChange: PropTypes.func,
5968
+ onImageClick: PropTypes.func,
5969
+ onFail: PropTypes.func,
5970
+ count: PropTypes.number,
5971
+ sizeType: PropTypes.array,
5972
+ sourceType: PropTypes.array
5951
5973
  };
5952
5974
 
5953
5975
  var AtRange = /** @class */ (function (_super) {
@@ -6026,8 +6048,9 @@ var AtRange = /** @class */ (function (_super) {
6026
6048
  AtRange.prototype.updatePos = function () {
6027
6049
  var _this = this;
6028
6050
  delayQuerySelector('.at-range__container', 0).then(function (rect) {
6029
- _this.width = Math.round(rect[0].width);
6030
- _this.left = Math.round(rect[0].left);
6051
+ var _a, _b;
6052
+ _this.width = Math.round((_a = rect[0]) === null || _a === void 0 ? void 0 : _a.width);
6053
+ _this.left = Math.round((_b = rect[0]) === null || _b === void 0 ? void 0 : _b.left);
6031
6054
  });
6032
6055
  };
6033
6056
  AtRange.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
@@ -6087,18 +6110,18 @@ AtRange.defaultProps = {
6087
6110
  blockSize: 0
6088
6111
  };
6089
6112
  AtRange.propTypes = {
6090
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6091
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
6092
- sliderStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6093
- railStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6094
- trackStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6095
- value: propTypes.array,
6096
- min: propTypes.number,
6097
- max: propTypes.number,
6098
- disabled: propTypes.bool,
6099
- blockSize: propTypes.number,
6100
- onChange: propTypes.func,
6101
- onAfterChange: propTypes.func
6113
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6114
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
6115
+ sliderStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6116
+ railStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6117
+ trackStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6118
+ value: PropTypes.array,
6119
+ min: PropTypes.number,
6120
+ max: PropTypes.number,
6121
+ disabled: PropTypes.bool,
6122
+ blockSize: PropTypes.number,
6123
+ onChange: PropTypes.func,
6124
+ onAfterChange: PropTypes.func
6102
6125
  };
6103
6126
 
6104
6127
  var ENV = Taro.getEnv();
@@ -6149,7 +6172,7 @@ var AtIndexes = /** @class */ (function (_super) {
6149
6172
  var _tipText = idx === 0 ? topKey : list[idx - 1].key;
6150
6173
  if (ENV === Taro.ENV_TYPE.WEB) {
6151
6174
  delayQuerySelector('.at-indexes', 0).then(function (rect) {
6152
- var targetOffsetTop = _this.listRef.childNodes[idx].offsetTop;
6175
+ var targetOffsetTop = _this.listRef.children[idx].offsetTop;
6153
6176
  var _scrollTop = targetOffsetTop - rect[0].top;
6154
6177
  _this.updateState({
6155
6178
  _scrollTop: _scrollTop,
@@ -6257,15 +6280,15 @@ var AtIndexes = /** @class */ (function (_super) {
6257
6280
  return AtIndexes;
6258
6281
  }(React.Component));
6259
6282
  AtIndexes.propTypes = {
6260
- customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6261
- className: propTypes.oneOfType([propTypes.array, propTypes.string]),
6262
- animation: propTypes.bool,
6263
- isVibrate: propTypes.bool,
6264
- isShowToast: propTypes.bool,
6265
- topKey: propTypes.string,
6266
- list: propTypes.array,
6267
- onClick: propTypes.func,
6268
- onScrollIntoView: propTypes.func
6283
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6284
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
6285
+ animation: PropTypes.bool,
6286
+ isVibrate: PropTypes.bool,
6287
+ isShowToast: PropTypes.bool,
6288
+ topKey: PropTypes.string,
6289
+ list: PropTypes.array,
6290
+ onClick: PropTypes.func,
6291
+ onScrollIntoView: PropTypes.func
6269
6292
  };
6270
6293
  AtIndexes.defaultProps = {
6271
6294
  customStyle: '',
@@ -6278,7 +6301,7 @@ AtIndexes.defaultProps = {
6278
6301
  };
6279
6302
 
6280
6303
  var dayjs_min = createCommonjsModule(function (module, exports) {
6281
- !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
6304
+ !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
6282
6305
  });
6283
6306
 
6284
6307
  /** Built-in value references. */
@@ -7616,12 +7639,11 @@ function handleActive(args, item) {
7616
7639
  var dayjsEnd = dayjs_min(end);
7617
7640
  var dayjsStart = start ? dayjs_min(start) : dayjsEnd;
7618
7641
  item.isSelected =
7619
- _value.isSame(dayjsEnd) ||
7620
- _value.isSame(dayjsStart) ||
7621
- (_value.isAfter(dayjsStart) && _value.isBefore(dayjsEnd));
7622
- item.isSelectedHead = _value.isSame(dayjsStart);
7623
- item.isSelectedTail = _value.isSame(dayjsEnd);
7624
- item.isToday = _value.diff(dayjs_min(Date.now()).startOf('day'), 'day') === 0;
7642
+ (_value === null || _value === void 0 ? void 0 : _value.isSame(dayjsEnd)) || (_value === null || _value === void 0 ? void 0 : _value.isSame(dayjsStart)) ||
7643
+ ((_value === null || _value === void 0 ? void 0 : _value.isAfter(dayjsStart)) && (_value === null || _value === void 0 ? void 0 : _value.isBefore(dayjsEnd)));
7644
+ item.isSelectedHead = _value === null || _value === void 0 ? void 0 : _value.isSame(dayjsStart);
7645
+ item.isSelectedTail = _value === null || _value === void 0 ? void 0 : _value.isSame(dayjsEnd);
7646
+ item.isToday = (_value === null || _value === void 0 ? void 0 : _value.diff(dayjs_min(Date.now()).startOf('day'), 'day')) === 0;
7625
7647
  return item;
7626
7648
  }
7627
7649
  function handleMarks(args, item) {
@@ -7663,8 +7685,8 @@ function handleDisabled(args, item) {
7663
7685
  var dayjsMinDate = dayjs_min(minDate);
7664
7686
  var dayjsMaxDate = dayjs_min(maxDate);
7665
7687
  item.isDisabled =
7666
- !!(minDate && _value.isBefore(dayjsMinDate)) ||
7667
- !!(maxDate && _value.isAfter(dayjsMaxDate));
7688
+ !!(minDate && (_value === null || _value === void 0 ? void 0 : _value.isBefore(dayjsMinDate))) ||
7689
+ !!(maxDate && (_value === null || _value === void 0 ? void 0 : _value.isAfter(dayjsMaxDate)));
7668
7690
  return item;
7669
7691
  }
7670
7692
  function handleValid(args, item) {
@@ -8267,8 +8289,8 @@ var AtFab = /** @class */ (function (_super) {
8267
8289
  return AtFab;
8268
8290
  }(React.Component));
8269
8291
  AtFab.propTypes = {
8270
- size: propTypes.oneOf(['normal', 'small']),
8271
- onClick: propTypes.func
8292
+ size: PropTypes.oneOf(['normal', 'small']),
8293
+ onClick: PropTypes.func
8272
8294
  };
8273
8295
  AtFab.defaultProps = {
8274
8296
  size: 'normal'