taro-ui 3.1.1 → 3.2.0-beta.0

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 (75) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.esm.js +702 -767
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +702 -767
  5. package/dist/index.js.map +1 -1
  6. package/lib/common/component.js.map +1 -1
  7. package/lib/common/utils.js +14 -1
  8. package/lib/common/utils.js.map +1 -1
  9. package/lib/components/accordion/index.js +6 -3
  10. package/lib/components/accordion/index.js.map +1 -1
  11. package/lib/components/action-sheet/body/index.js.map +1 -1
  12. package/lib/components/action-sheet/body/item/index.js.map +1 -1
  13. package/lib/components/action-sheet/footer/index.js.map +1 -1
  14. package/lib/components/action-sheet/header/index.js.map +1 -1
  15. package/lib/components/activity-indicator/index.js.map +1 -1
  16. package/lib/components/calendar/body/index.js +1 -1
  17. package/lib/components/calendar/body/index.js.map +1 -1
  18. package/lib/components/calendar/common/helper.js +4 -2
  19. package/lib/components/calendar/common/helper.js.map +1 -1
  20. package/lib/components/calendar/common/plugins.js +4 -3
  21. package/lib/components/calendar/common/plugins.js.map +1 -1
  22. package/lib/components/calendar/controller/index.js.map +1 -1
  23. package/lib/components/card/index.js +2 -3
  24. package/lib/components/card/index.js.map +1 -1
  25. package/lib/components/countdown/index.js +12 -6
  26. package/lib/components/countdown/index.js.map +1 -1
  27. package/lib/components/countdown/item/index.js.map +1 -1
  28. package/lib/components/divider/index.js +1 -1
  29. package/lib/components/divider/index.js.map +1 -1
  30. package/lib/components/float-layout/index.js +5 -17
  31. package/lib/components/float-layout/index.js.map +1 -1
  32. package/lib/components/grid/index.js +1 -2
  33. package/lib/components/grid/index.js.map +1 -1
  34. package/lib/components/image-picker/index.js +4 -3
  35. package/lib/components/image-picker/index.js.map +1 -1
  36. package/lib/components/input/index.js +1 -4
  37. package/lib/components/input/index.js.map +1 -1
  38. package/lib/components/input-number/index.js +4 -4
  39. package/lib/components/input-number/index.js.map +1 -1
  40. package/lib/components/list/item/index.js +25 -17
  41. package/lib/components/list/item/index.js.map +1 -1
  42. package/lib/components/modal/content/index.js.map +1 -1
  43. package/lib/components/modal/index.js +1 -7
  44. package/lib/components/modal/index.js.map +1 -1
  45. package/lib/components/noticebar/index.js +0 -4
  46. package/lib/components/noticebar/index.js.map +1 -1
  47. package/lib/components/range/index.js +6 -5
  48. package/lib/components/range/index.js.map +1 -1
  49. package/lib/components/search-bar/index.js +3 -1
  50. package/lib/components/search-bar/index.js.map +1 -1
  51. package/lib/components/segmented-control/index.js.map +1 -1
  52. package/lib/components/swipe-action/options/index.js.map +1 -1
  53. package/lib/components/switch/index.js.map +1 -1
  54. package/lib/components/tab-bar/index.js +1 -1
  55. package/lib/components/tab-bar/index.js.map +1 -1
  56. package/lib/components/tabs/index.js +1 -3
  57. package/lib/components/tabs/index.js.map +1 -1
  58. package/lib/components/timeline/index.js +5 -2
  59. package/lib/components/timeline/index.js.map +1 -1
  60. package/lib/components/toast/index.js +0 -2
  61. package/lib/components/toast/index.js.map +1 -1
  62. package/package.json +46 -35
  63. package/rn/components/float-layout/index.tsx +13 -22
  64. package/rn/components/input/index.tsx +0 -2
  65. package/rn/components/list/item/index.tsx +35 -27
  66. package/rn/components/modal/index.tsx +1 -3
  67. package/rn/components/timeline/index.tsx +5 -1
  68. package/types/accordion.d.ts +2 -1
  69. package/types/card.d.ts +2 -2
  70. package/types/list.d.ts +7 -1
  71. package/types/tab-bar.d.ts +5 -5
  72. package/types/timeline.d.ts +7 -0
  73. package/README.md +0 -87
  74. package/dist/style/common.scss +0 -10
  75. package/lib/tsconfig.build.tsbuildinfo +0 -39858
package/dist/index.js CHANGED
@@ -108,11 +108,14 @@ function __read(o, n) {
108
108
  return ar;
109
109
  }
110
110
 
111
- /** @deprecated */
112
- function __spread() {
113
- for (var ar = [], i = 0; i < arguments.length; i++)
114
- ar = ar.concat(__read(arguments[i]));
115
- return ar;
111
+ function __spreadArray(to, from, pack) {
112
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
113
+ if (ar || !(i in from)) {
114
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
115
+ ar[i] = from[i];
116
+ }
117
+ }
118
+ return to.concat(ar || Array.prototype.slice.call(from));
116
119
  }
117
120
 
118
121
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -123,9 +126,9 @@ function createCommonjsModule(fn, module) {
123
126
 
124
127
  var classnames = createCommonjsModule(function (module) {
125
128
  /*!
126
- Copyright (c) 2018 Jed Watson.
127
- Licensed under the MIT License (MIT), see
128
- http://jedwatson.github.io/classnames
129
+ Copyright (c) 2017 Jed Watson.
130
+ Licensed under the MIT License (MIT), see
131
+ http://jedwatson.github.io/classnames
129
132
  */
130
133
  /* global define */
131
134
 
@@ -133,7 +136,7 @@ var classnames = createCommonjsModule(function (module) {
133
136
 
134
137
  var hasOwn = {}.hasOwnProperty;
135
138
 
136
- function classNames() {
139
+ function classNames () {
137
140
  var classes = [];
138
141
 
139
142
  for (var i = 0; i < arguments.length; i++) {
@@ -144,19 +147,12 @@ var classnames = createCommonjsModule(function (module) {
144
147
 
145
148
  if (argType === 'string' || argType === 'number') {
146
149
  classes.push(arg);
147
- } else if (Array.isArray(arg)) {
148
- if (arg.length) {
149
- var inner = classNames.apply(null, arg);
150
- if (inner) {
151
- classes.push(inner);
152
- }
150
+ } else if (Array.isArray(arg) && arg.length) {
151
+ var inner = classNames.apply(null, arg);
152
+ if (inner) {
153
+ classes.push(inner);
153
154
  }
154
155
  } else if (argType === 'object') {
155
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
156
- classes.push(arg.toString());
157
- continue;
158
- }
159
-
160
156
  for (var key in arg) {
161
157
  if (hasOwn.call(arg, key) && arg[key]) {
162
158
  classes.push(key);
@@ -529,22 +525,16 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
529
525
  * LICENSE file in the root directory of this source tree.
530
526
  */
531
527
 
532
- var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
533
-
534
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
535
-
536
- var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
528
+ var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
537
529
 
538
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
539
-
540
- var has$1 = has$2;
530
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
541
531
 
542
532
  var printWarning$1 = function() {};
543
533
 
544
534
  if (process.env.NODE_ENV !== 'production') {
545
- var ReactPropTypesSecret = ReactPropTypesSecret$1;
535
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
546
536
  var loggedTypeFailures = {};
547
- var has = has$1;
537
+ var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
548
538
 
549
539
  printWarning$1 = function(text) {
550
540
  var message = 'Warning: ' + text;
@@ -556,7 +546,7 @@ if (process.env.NODE_ENV !== 'production') {
556
546
  // This error was thrown as a convenience so that you can use this stack
557
547
  // to find the callsite that caused this warning to fire.
558
548
  throw new Error(message);
559
- } catch (x) { /**/ }
549
+ } catch (x) {}
560
550
  };
561
551
  }
562
552
 
@@ -571,10 +561,10 @@ if (process.env.NODE_ENV !== 'production') {
571
561
  * @param {?Function} getStack Returns the component stack.
572
562
  * @private
573
563
  */
574
- function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
564
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
575
565
  if (process.env.NODE_ENV !== 'production') {
576
566
  for (var typeSpecName in typeSpecs) {
577
- if (has(typeSpecs, typeSpecName)) {
567
+ if (has$1(typeSpecs, typeSpecName)) {
578
568
  var error;
579
569
  // Prop type validation may throw. In case they do, we don't want to
580
570
  // fail the render phase where it didn't fail before. So we log it.
@@ -585,8 +575,7 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
585
575
  if (typeof typeSpecs[typeSpecName] !== 'function') {
586
576
  var err = Error(
587
577
  (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
588
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
589
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
578
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
590
579
  );
591
580
  err.name = 'Invariant Violation';
592
581
  throw err;
@@ -626,16 +615,15 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
626
615
  *
627
616
  * @private
628
617
  */
629
- checkPropTypes$1.resetWarningCache = function() {
618
+ checkPropTypes.resetWarningCache = function() {
630
619
  if (process.env.NODE_ENV !== 'production') {
631
620
  loggedTypeFailures = {};
632
621
  }
633
622
  };
634
623
 
635
- var checkPropTypes_1 = checkPropTypes$1;
636
-
637
- var checkPropTypes = checkPropTypes_1;
624
+ var checkPropTypes_1 = checkPropTypes;
638
625
 
626
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
639
627
  var printWarning = function() {};
640
628
 
641
629
  if (process.env.NODE_ENV !== 'production') {
@@ -736,7 +724,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
736
724
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
737
725
  var ReactPropTypes = {
738
726
  array: createPrimitiveTypeChecker('array'),
739
- bigint: createPrimitiveTypeChecker('bigint'),
740
727
  bool: createPrimitiveTypeChecker('boolean'),
741
728
  func: createPrimitiveTypeChecker('function'),
742
729
  number: createPrimitiveTypeChecker('number'),
@@ -782,9 +769,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
782
769
  * is prohibitively expensive if they are created too often, such as what
783
770
  * happens in oneOfType() for any type before the one that matched.
784
771
  */
785
- function PropTypeError(message, data) {
772
+ function PropTypeError(message) {
786
773
  this.message = message;
787
- this.data = data && typeof data === 'object' ? data: {};
788
774
  this.stack = '';
789
775
  }
790
776
  // Make `instanceof Error` still work for returned errors.
@@ -799,7 +785,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
799
785
  componentName = componentName || ANONYMOUS;
800
786
  propFullName = propFullName || propName;
801
787
 
802
- if (secret !== ReactPropTypesSecret$1) {
788
+ if (secret !== ReactPropTypesSecret_1) {
803
789
  if (throwOnDirectAccess) {
804
790
  // New behavior only for users of `prop-types` package
805
791
  var err = new Error(
@@ -819,7 +805,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
819
805
  ) {
820
806
  printWarning(
821
807
  'You are manually calling a React.PropTypes validation ' +
822
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
808
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
823
809
  'and will throw in the standalone `prop-types` package. ' +
824
810
  'You may be seeing this warning due to a third-party PropTypes ' +
825
811
  'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
@@ -858,10 +844,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
858
844
  // 'of type `object`'.
859
845
  var preciseType = getPreciseType(propValue);
860
846
 
861
- return new PropTypeError(
862
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
863
- {expectedType: expectedType}
864
- );
847
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
865
848
  }
866
849
  return null;
867
850
  }
@@ -883,7 +866,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
883
866
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
884
867
  }
885
868
  for (var i = 0; i < propValue.length; i++) {
886
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
869
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
887
870
  if (error instanceof Error) {
888
871
  return error;
889
872
  }
@@ -975,8 +958,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
975
958
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
976
959
  }
977
960
  for (var key in propValue) {
978
- if (has$1(propValue, key)) {
979
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
961
+ if (has(propValue, key)) {
962
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
980
963
  if (error instanceof Error) {
981
964
  return error;
982
965
  }
@@ -1005,19 +988,14 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1005
988
  }
1006
989
 
1007
990
  function validate(props, propName, componentName, location, propFullName) {
1008
- var expectedTypes = [];
1009
991
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1010
992
  var checker = arrayOfTypeCheckers[i];
1011
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
1012
- if (checkerResult == null) {
993
+ if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
1013
994
  return null;
1014
995
  }
1015
- if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
1016
- expectedTypes.push(checkerResult.data.expectedType);
1017
- }
1018
996
  }
1019
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1020
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
997
+
998
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
1021
999
  }
1022
1000
  return createChainableTypeChecker(validate);
1023
1001
  }
@@ -1032,13 +1010,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1032
1010
  return createChainableTypeChecker(validate);
1033
1011
  }
1034
1012
 
1035
- function invalidValidatorError(componentName, location, propFullName, key, type) {
1036
- return new PropTypeError(
1037
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1038
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1039
- );
1040
- }
1041
-
1042
1013
  function createShapeTypeChecker(shapeTypes) {
1043
1014
  function validate(props, propName, componentName, location, propFullName) {
1044
1015
  var propValue = props[propName];
@@ -1048,10 +1019,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1048
1019
  }
1049
1020
  for (var key in shapeTypes) {
1050
1021
  var checker = shapeTypes[key];
1051
- if (typeof checker !== 'function') {
1052
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1022
+ if (!checker) {
1023
+ continue;
1053
1024
  }
1054
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1025
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1055
1026
  if (error) {
1056
1027
  return error;
1057
1028
  }
@@ -1068,21 +1039,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1068
1039
  if (propType !== 'object') {
1069
1040
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1070
1041
  }
1071
- // We need to check all keys in case some are required but missing from props.
1042
+ // We need to check all keys in case some are required but missing from
1043
+ // props.
1072
1044
  var allKeys = objectAssign({}, props[propName], shapeTypes);
1073
1045
  for (var key in allKeys) {
1074
1046
  var checker = shapeTypes[key];
1075
- if (has$1(shapeTypes, key) && typeof checker !== 'function') {
1076
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1077
- }
1078
1047
  if (!checker) {
1079
1048
  return new PropTypeError(
1080
1049
  'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1081
1050
  '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1082
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1051
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1083
1052
  );
1084
1053
  }
1085
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1054
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1086
1055
  if (error) {
1087
1056
  return error;
1088
1057
  }
@@ -1224,8 +1193,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1224
1193
  return propValue.constructor.name;
1225
1194
  }
1226
1195
 
1227
- ReactPropTypes.checkPropTypes = checkPropTypes;
1228
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1196
+ ReactPropTypes.checkPropTypes = checkPropTypes_1;
1197
+ ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1229
1198
  ReactPropTypes.PropTypes = ReactPropTypes;
1230
1199
 
1231
1200
  return ReactPropTypes;
@@ -1237,7 +1206,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1237
1206
 
1238
1207
  var factoryWithThrowingShims = function() {
1239
1208
  function shim(props, propName, componentName, location, propFullName, secret) {
1240
- if (secret === ReactPropTypesSecret$1) {
1209
+ if (secret === ReactPropTypesSecret_1) {
1241
1210
  // It is still safe when called from React.
1242
1211
  return;
1243
1212
  }
@@ -1255,7 +1224,6 @@ var factoryWithThrowingShims = function() {
1255
1224
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1256
1225
  var ReactPropTypes = {
1257
1226
  array: shim,
1258
- bigint: shim,
1259
1227
  bool: shim,
1260
1228
  func: shim,
1261
1229
  number: shim,
@@ -1284,10 +1252,6 @@ var factoryWithThrowingShims = function() {
1284
1252
  return ReactPropTypes;
1285
1253
  };
1286
1254
 
1287
- var require$$1 = factoryWithTypeCheckers;
1288
-
1289
- var require$$2 = factoryWithThrowingShims;
1290
-
1291
1255
  var propTypes = createCommonjsModule(function (module) {
1292
1256
  /**
1293
1257
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -1302,16 +1266,14 @@ if (process.env.NODE_ENV !== 'production') {
1302
1266
  // By explicitly using `prop-types` you are opting into new development behavior.
1303
1267
  // http://fb.me/prop-types-in-prod
1304
1268
  var throwOnDirectAccess = true;
1305
- module.exports = require$$1(ReactIs.isElement, throwOnDirectAccess);
1269
+ module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1306
1270
  } else {
1307
1271
  // By explicitly using `prop-types` you are opting into new production behavior.
1308
1272
  // http://fb.me/prop-types-in-prod
1309
- module.exports = require$$2();
1273
+ module.exports = factoryWithThrowingShims();
1310
1274
  }
1311
1275
  });
1312
1276
 
1313
- var PropTypes = propTypes;
1314
-
1315
1277
  var AtActionSheetBody = /** @class */ (function (_super) {
1316
1278
  __extends(AtActionSheetBody, _super);
1317
1279
  function AtActionSheetBody() {
@@ -1335,7 +1297,7 @@ var AtActionSheetFooter = /** @class */ (function (_super) {
1335
1297
  args[_i] = arguments[_i];
1336
1298
  }
1337
1299
  if (typeof _this.props.onClick === 'function') {
1338
- (_a = _this.props).onClick.apply(_a, __spread(args));
1300
+ (_a = _this.props).onClick.apply(_a, __spreadArray([], __read(args), false));
1339
1301
  }
1340
1302
  };
1341
1303
  return _this;
@@ -1347,7 +1309,7 @@ var AtActionSheetFooter = /** @class */ (function (_super) {
1347
1309
  return AtActionSheetFooter;
1348
1310
  }(React__default["default"].Component));
1349
1311
  AtActionSheetFooter.propTypes = {
1350
- onClick: PropTypes.func
1312
+ onClick: propTypes.func
1351
1313
  };
1352
1314
 
1353
1315
  var AtActionSheetHeader = /** @class */ (function (_super) {
@@ -1422,11 +1384,11 @@ AtActionSheet.defaultProps = {
1422
1384
  isOpened: false
1423
1385
  };
1424
1386
  AtActionSheet.propTypes = {
1425
- title: PropTypes.string,
1426
- onClose: PropTypes.func,
1427
- onCancel: PropTypes.func,
1428
- isOpened: PropTypes.bool.isRequired,
1429
- cancelText: PropTypes.string
1387
+ title: propTypes.string,
1388
+ onClose: propTypes.func,
1389
+ onCancel: propTypes.func,
1390
+ isOpened: propTypes.bool.isRequired,
1391
+ cancelText: propTypes.string
1430
1392
  };
1431
1393
 
1432
1394
  var AtActionSheetItem = /** @class */ (function (_super) {
@@ -1447,7 +1409,7 @@ var AtActionSheetItem = /** @class */ (function (_super) {
1447
1409
  return AtActionSheetItem;
1448
1410
  }(React__default["default"].Component));
1449
1411
  AtActionSheetItem.propTypes = {
1450
- onClick: PropTypes.func
1412
+ onClick: propTypes.func
1451
1413
  };
1452
1414
 
1453
1415
  var ENV$4 = Taro__default["default"].getEnv();
@@ -1600,7 +1562,7 @@ function handleTouchScroll(flag) {
1600
1562
  // 使body脱离文档流
1601
1563
  document.body.classList.add('at-frozen');
1602
1564
  // 把脱离文档流的body拉上去!否则页面会回到顶部!
1603
- document.body.style.top = -scrollTop + "px";
1565
+ document.body.style.top = "".concat(-scrollTop, "px");
1604
1566
  }
1605
1567
  else {
1606
1568
  document.body.style.top = '';
@@ -1617,14 +1579,14 @@ function pxTransform(size) {
1617
1579
  750: 1,
1618
1580
  828: 1.81 / 2
1619
1581
  };
1620
- return size / deviceRatio[designWidth] + "rpx";
1582
+ return "".concat(size / deviceRatio[designWidth], "rpx");
1621
1583
  }
1622
1584
  function objectToString$2(style) {
1623
1585
  if (style && typeof style === 'object') {
1624
1586
  var styleStr_1 = '';
1625
1587
  Object.keys(style).forEach(function (key) {
1626
1588
  var lowerCaseKey = key.replace(/([A-Z])/g, '-$1').toLowerCase();
1627
- styleStr_1 += lowerCaseKey + ":" + style[key] + ";";
1589
+ styleStr_1 += "".concat(lowerCaseKey, ":").concat(style[key], ";");
1628
1590
  });
1629
1591
  return styleStr_1;
1630
1592
  }
@@ -1647,6 +1609,18 @@ function mergeStyle(style1, style2) {
1647
1609
  return Object.assign({}, style1, style2);
1648
1610
  }
1649
1611
  return objectToString$2(style1) + objectToString$2(style2);
1612
+ }
1613
+ /**
1614
+ * 自定义验证器,用于验证参数是否是 JSX.Element
1615
+ * @param {any} props
1616
+ * @param {string} propName
1617
+ * @param {string} componentName
1618
+ * @returns
1619
+ */
1620
+ function isJSXElement(props, propName, componentName) {
1621
+ if (!React__default["default"].isValidElement(props[propName])) {
1622
+ return new Error("Invalid prop ".concat(propName, " supplied to ").concat(componentName, ". It must be a valid JSX element."));
1623
+ }
1650
1624
  }
1651
1625
 
1652
1626
  var AtLoading = /** @class */ (function (_super) {
@@ -1658,12 +1632,12 @@ var AtLoading = /** @class */ (function (_super) {
1658
1632
  var _a = this.props, color = _a.color, size = _a.size;
1659
1633
  var loadingSize = typeof size === 'string' ? size : String(size);
1660
1634
  var sizeStyle = {
1661
- width: size ? "" + pxTransform(parseInt(loadingSize)) : '',
1662
- height: size ? "" + pxTransform(parseInt(loadingSize)) : ''
1635
+ width: size ? "".concat(pxTransform(parseInt(loadingSize))) : '',
1636
+ height: size ? "".concat(pxTransform(parseInt(loadingSize))) : ''
1663
1637
  };
1664
1638
  var colorStyle = {
1665
- border: color ? "1px solid " + color : '',
1666
- borderColor: color ? color + " transparent transparent transparent" : ''
1639
+ border: color ? "1px solid ".concat(color) : '',
1640
+ borderColor: color ? "".concat(color, " transparent transparent transparent") : ''
1667
1641
  };
1668
1642
  var ringStyle = Object.assign({}, colorStyle, sizeStyle);
1669
1643
  return (React__default["default"].createElement(components.View, { className: 'at-loading', style: sizeStyle },
@@ -1678,8 +1652,8 @@ AtLoading.defaultProps = {
1678
1652
  color: ''
1679
1653
  };
1680
1654
  AtLoading.propTypes = {
1681
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1682
- color: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1655
+ size: propTypes.oneOfType([propTypes.string, propTypes.number]),
1656
+ color: propTypes.oneOfType([propTypes.string, propTypes.number])
1683
1657
  };
1684
1658
 
1685
1659
  var AtActivityIndicator = /** @class */ (function (_super) {
@@ -1709,12 +1683,12 @@ AtActivityIndicator.defaultProps = {
1709
1683
  isOpened: true
1710
1684
  };
1711
1685
  AtActivityIndicator.propTypes = {
1712
- size: PropTypes.number,
1713
- mode: PropTypes.string,
1714
- color: PropTypes.string,
1715
- content: PropTypes.string,
1716
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
1717
- isOpened: PropTypes.bool
1686
+ size: propTypes.number,
1687
+ mode: propTypes.string,
1688
+ color: propTypes.string,
1689
+ content: propTypes.string,
1690
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
1691
+ isOpened: propTypes.bool
1718
1692
  };
1719
1693
 
1720
1694
  var SIZE_CLASS$2 = {
@@ -1737,7 +1711,7 @@ var AtAvatar = /** @class */ (function (_super) {
1737
1711
  var rootClassName = ['at-avatar'];
1738
1712
  var iconSize = SIZE_CLASS$2[size || 'normal'];
1739
1713
  var classObject = (_a = {},
1740
- _a["at-avatar--" + iconSize] = iconSize,
1714
+ _a["at-avatar--".concat(iconSize)] = iconSize,
1741
1715
  _a['at-avatar--circle'] = circle,
1742
1716
  _a);
1743
1717
  var letter = '';
@@ -1766,13 +1740,13 @@ AtAvatar.defaultProps = {
1766
1740
  className: ''
1767
1741
  };
1768
1742
  AtAvatar.propTypes = {
1769
- size: PropTypes.oneOf(['large', 'normal', 'small']),
1770
- circle: PropTypes.bool,
1771
- text: PropTypes.string,
1772
- image: PropTypes.string,
1773
- openData: PropTypes.object,
1774
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1775
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
1743
+ size: propTypes.oneOf(['large', 'normal', 'small']),
1744
+ circle: propTypes.bool,
1745
+ text: propTypes.string,
1746
+ image: propTypes.string,
1747
+ openData: propTypes.object,
1748
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1749
+ className: propTypes.oneOfType([propTypes.array, propTypes.string])
1776
1750
  };
1777
1751
 
1778
1752
  var AtBadge = /** @class */ (function (_super) {
@@ -1789,7 +1763,7 @@ var AtBadge = /** @class */ (function (_super) {
1789
1763
  if (Number.isNaN(numValue)) {
1790
1764
  return value;
1791
1765
  }
1792
- return numValue > maxValue ? maxValue + "+" : numValue;
1766
+ return numValue > maxValue ? "".concat(maxValue, "+") : numValue;
1793
1767
  };
1794
1768
  AtBadge.prototype.render = function () {
1795
1769
  var _a = this.props, dot = _a.dot, value = _a.value, _b = _a.maxValue, maxValue = _b === void 0 ? 99 : _b, customStyle = _a.customStyle;
@@ -1809,11 +1783,11 @@ AtBadge.defaultProps = {
1809
1783
  className: ''
1810
1784
  };
1811
1785
  AtBadge.propTypes = {
1812
- dot: PropTypes.bool,
1813
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1814
- maxValue: PropTypes.number,
1815
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1816
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
1786
+ dot: propTypes.bool,
1787
+ value: propTypes.oneOfType([propTypes.string, propTypes.number]),
1788
+ maxValue: propTypes.number,
1789
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1790
+ className: propTypes.oneOfType([propTypes.array, propTypes.string])
1817
1791
  };
1818
1792
 
1819
1793
  var SIZE_CLASS$1 = {
@@ -1861,9 +1835,9 @@ var AtButton = /** @class */ (function (_super) {
1861
1835
  var _e = this.state, isWEAPP = _e.isWEAPP, isALIPAY = _e.isALIPAY, isWEB = _e.isWEB;
1862
1836
  var rootClassName = ['at-button'];
1863
1837
  var classObject = (_a = {},
1864
- _a["at-button--" + SIZE_CLASS$1[size]] = SIZE_CLASS$1[size],
1838
+ _a["at-button--".concat(SIZE_CLASS$1[size])] = SIZE_CLASS$1[size],
1865
1839
  _a['at-button--disabled'] = disabled,
1866
- _a["at-button--" + type] = TYPE_CLASS$1[type],
1840
+ _a["at-button--".concat(type)] = TYPE_CLASS$1[type],
1867
1841
  _a['at-button--circle'] = circle,
1868
1842
  _a['at-button--full'] = full,
1869
1843
  _a);
@@ -1903,16 +1877,16 @@ AtButton.defaultProps = {
1903
1877
  appParameter: ''
1904
1878
  };
1905
1879
  AtButton.propTypes = {
1906
- size: PropTypes.oneOf(['normal', 'small']),
1907
- type: PropTypes.oneOf(['primary', 'secondary', '']),
1908
- circle: PropTypes.bool,
1909
- full: PropTypes.bool,
1910
- loading: PropTypes.bool,
1911
- disabled: PropTypes.bool,
1912
- onClick: PropTypes.func,
1913
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1914
- formType: PropTypes.oneOf(['submit', 'reset', '']),
1915
- openType: PropTypes.oneOf([
1880
+ size: propTypes.oneOf(['normal', 'small']),
1881
+ type: propTypes.oneOf(['primary', 'secondary', '']),
1882
+ circle: propTypes.bool,
1883
+ full: propTypes.bool,
1884
+ loading: propTypes.bool,
1885
+ disabled: propTypes.bool,
1886
+ onClick: propTypes.func,
1887
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
1888
+ formType: propTypes.oneOf(['submit', 'reset', '']),
1889
+ openType: propTypes.oneOf([
1916
1890
  'contact',
1917
1891
  'share',
1918
1892
  'getUserInfo',
@@ -1925,18 +1899,18 @@ AtButton.propTypes = {
1925
1899
  'contactShare',
1926
1900
  ''
1927
1901
  ]),
1928
- lang: PropTypes.string,
1929
- sessionFrom: PropTypes.string,
1930
- sendMessageTitle: PropTypes.string,
1931
- sendMessagePath: PropTypes.string,
1932
- sendMessageImg: PropTypes.string,
1933
- showMessageCard: PropTypes.bool,
1934
- appParameter: PropTypes.string,
1935
- onGetUserInfo: PropTypes.func,
1936
- onContact: PropTypes.func,
1937
- onGetPhoneNumber: PropTypes.func,
1938
- onError: PropTypes.func,
1939
- onOpenSetting: PropTypes.func
1902
+ lang: propTypes.string,
1903
+ sessionFrom: propTypes.string,
1904
+ sendMessageTitle: propTypes.string,
1905
+ sendMessagePath: propTypes.string,
1906
+ sendMessageImg: propTypes.string,
1907
+ showMessageCard: propTypes.bool,
1908
+ appParameter: propTypes.string,
1909
+ onGetUserInfo: propTypes.func,
1910
+ onContact: propTypes.func,
1911
+ onGetPhoneNumber: propTypes.func,
1912
+ onError: propTypes.func,
1913
+ onOpenSetting: propTypes.func
1940
1914
  };
1941
1915
 
1942
1916
  var AtCard = /** @class */ (function (_super) {
@@ -1959,12 +1933,12 @@ var AtCard = /** @class */ (function (_super) {
1959
1933
  var iconClass = classnames((_a = {
1960
1934
  'at-icon': true
1961
1935
  },
1962
- _a["at-icon-" + (icon && icon.value)] = icon && icon.value,
1936
+ _a["at-icon-".concat(icon && icon.value)] = icon && icon.value,
1963
1937
  _a['at-card__header-icon'] = true,
1964
1938
  _a));
1965
1939
  var iconStyle = {
1966
1940
  color: (icon && icon.color) || '',
1967
- fontSize: (icon && icon.size + "px") || ''
1941
+ fontSize: (icon && "".concat(icon.size, "px")) || ''
1968
1942
  };
1969
1943
  return (React__default["default"].createElement(components.View, { onClick: this.handleClick, className: rootClass },
1970
1944
  React__default["default"].createElement(components.View, { className: 'at-card__header' },
@@ -1973,7 +1947,7 @@ var AtCard = /** @class */ (function (_super) {
1973
1947
  renderIcon || '',
1974
1948
  !thumb && icon && icon.value && (React__default["default"].createElement(components.Text, { className: iconClass, style: iconStyle })),
1975
1949
  React__default["default"].createElement(components.Text, { className: 'at-card__header-title' }, title),
1976
- extra && (React__default["default"].createElement(components.Text, { style: __assign({}, extraStyle), className: 'at-card__header-extra' }, extra))),
1950
+ extra && (React__default["default"].createElement(components.View, { style: __assign({}, extraStyle), className: 'at-card__header-extra' }, extra))),
1977
1951
  React__default["default"].createElement(components.View, { className: 'at-card__content' },
1978
1952
  React__default["default"].createElement(components.View, { className: 'at-card__content-info' }, this.props.children),
1979
1953
  note && React__default["default"].createElement(components.View, { className: 'at-card__content-note' }, note))));
@@ -1985,19 +1959,18 @@ AtCard.defaultProps = {
1985
1959
  isFull: false,
1986
1960
  thumb: '',
1987
1961
  title: '',
1988
- extra: '',
1989
1962
  extraStyle: {}
1990
1963
  };
1991
1964
  AtCard.propTypes = {
1992
- note: PropTypes.string,
1993
- isFull: PropTypes.bool,
1994
- thumb: PropTypes.string,
1995
- title: PropTypes.string,
1996
- extra: PropTypes.string,
1997
- icon: PropTypes.object,
1998
- onClick: PropTypes.func,
1999
- renderIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2000
- extraStyle: PropTypes.object // 自定义extra样式
1965
+ note: propTypes.string,
1966
+ isFull: propTypes.bool,
1967
+ thumb: propTypes.string,
1968
+ title: propTypes.string,
1969
+ extra: propTypes.oneOfType([propTypes.string, propTypes.element]),
1970
+ icon: propTypes.object,
1971
+ onClick: propTypes.func,
1972
+ renderIcon: propTypes.oneOfType([propTypes.string, propTypes.element]),
1973
+ extraStyle: propTypes.object // 自定义extra样式
2001
1974
  };
2002
1975
 
2003
1976
  var AtCheckbox = /** @class */ (function (_super) {
@@ -2018,7 +1991,7 @@ var AtCheckbox = /** @class */ (function (_super) {
2018
1991
  else {
2019
1992
  selectedSet.delete(value);
2020
1993
  }
2021
- this.props.onChange(__spread(selectedSet));
1994
+ this.props.onChange(__spreadArray([], __read(selectedSet), false));
2022
1995
  };
2023
1996
  AtCheckbox.prototype.render = function () {
2024
1997
  var _this = this;
@@ -2050,11 +2023,11 @@ AtCheckbox.defaultProps = {
2050
2023
  onChange: function () { }
2051
2024
  };
2052
2025
  AtCheckbox.propTypes = {
2053
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2054
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
2055
- options: PropTypes.array,
2056
- selectedList: PropTypes.array,
2057
- onChange: PropTypes.func
2026
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2027
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
2028
+ options: propTypes.array,
2029
+ selectedList: propTypes.array,
2030
+ onChange: propTypes.func
2058
2031
  };
2059
2032
 
2060
2033
  var AtList = /** @class */ (function (_super) {
@@ -2074,7 +2047,7 @@ AtList.defaultProps = {
2074
2047
  hasBorder: true
2075
2048
  };
2076
2049
  AtList.propTypes = {
2077
- hasBorder: PropTypes.bool
2050
+ hasBorder: propTypes.bool
2078
2051
  };
2079
2052
 
2080
2053
  var AtListItem = /** @class */ (function (_super) {
@@ -2098,29 +2071,37 @@ var AtListItem = /** @class */ (function (_super) {
2098
2071
  e.stopPropagation();
2099
2072
  };
2100
2073
  AtListItem.prototype.render = function () {
2101
- var _a;
2102
- var _b = this.props, note = _b.note, arrow = _b.arrow, thumb = _b.thumb, iconInfo = _b.iconInfo, disabled = _b.disabled, isSwitch = _b.isSwitch, hasBorder = _b.hasBorder, extraThumb = _b.extraThumb, switchColor = _b.switchColor, switchIsCheck = _b.switchIsCheck;
2103
- var _c = this.props, extraText = _c.extraText, title = _c.title;
2104
- extraText = String(extraText);
2105
- title = String(title);
2074
+ var _a = this.props, note = _a.note, arrow = _a.arrow, thumb = _a.thumb, iconInfo = _a.iconInfo, disabled = _a.disabled, isSwitch = _a.isSwitch, hasBorder = _a.hasBorder, extraThumb = _a.extraThumb, switchColor = _a.switchColor, switchIsCheck = _a.switchIsCheck, icon = _a.icon;
2075
+ var _b = this.props, extraText = _b.extraText, title = _b.title;
2106
2076
  var rootClass = classnames('at-list__item', {
2107
2077
  'at-list__item--thumb': thumb,
2108
2078
  'at-list__item--multiple': note,
2109
2079
  'at-list__item--disabled': disabled,
2110
2080
  'at-list__item--no-border': !hasBorder
2111
2081
  }, this.props.className);
2112
- var iconClass = classnames((iconInfo && iconInfo.prefixClass) || 'at-icon', (_a = {},
2113
- _a[((iconInfo && iconInfo.prefixClass) || 'at-icon') + "-" + (iconInfo && iconInfo.value)] = iconInfo && iconInfo.value,
2114
- _a), iconInfo && iconInfo.className);
2115
- return (React__default["default"].createElement(components.View, { className: rootClass, onClick: this.handleClick },
2116
- React__default["default"].createElement(components.View, { className: 'at-list__item-container' },
2117
- thumb && (React__default["default"].createElement(components.View, { className: 'at-list__item-thumb item-thumb' },
2118
- React__default["default"].createElement(components.Image, { className: 'item-thumb__info', mode: 'scaleToFill', src: thumb }))),
2119
- iconInfo && iconInfo.value && (React__default["default"].createElement(components.View, { className: 'at-list__item-icon item-icon' },
2082
+ var renderIcon = function () {
2083
+ var _a;
2084
+ if (icon) {
2085
+ return React__default["default"].createElement(components.View, { className: 'item-icon' }, icon);
2086
+ }
2087
+ else if (iconInfo === null || iconInfo === void 0 ? void 0 : iconInfo.value) {
2088
+ var iconClass = classnames((iconInfo && iconInfo.prefixClass) || 'at-icon', (_a = {},
2089
+ _a["".concat((iconInfo && iconInfo.prefixClass) || 'at-icon', "-").concat(iconInfo && iconInfo.value)] = iconInfo && iconInfo.value,
2090
+ _a), iconInfo && iconInfo.className);
2091
+ return (React__default["default"].createElement(components.View, { className: 'at-list__item-icon item-icon' },
2120
2092
  React__default["default"].createElement(components.Text, { className: iconClass, style: mergeStyle({
2121
2093
  color: iconInfo.color || '',
2122
- fontSize: (iconInfo.size || 24) + "px"
2123
- }, iconInfo.customStyle || '') }))),
2094
+ fontSize: "".concat(iconInfo.size || 24, "px")
2095
+ }, iconInfo.customStyle || '') })));
2096
+ }
2097
+ else if (thumb) {
2098
+ return (React__default["default"].createElement(components.View, { className: 'at-list__item-thumb item-thumb' },
2099
+ React__default["default"].createElement(components.Image, { className: 'item-thumb__info', mode: 'scaleToFill', src: thumb })));
2100
+ }
2101
+ };
2102
+ return (React__default["default"].createElement(components.View, { className: rootClass, onClick: this.handleClick },
2103
+ React__default["default"].createElement(components.View, { className: 'at-list__item-container' },
2104
+ renderIcon(),
2124
2105
  React__default["default"].createElement(components.View, { className: 'at-list__item-content item-content' },
2125
2106
  React__default["default"].createElement(components.View, { className: 'item-content__info' },
2126
2107
  React__default["default"].createElement(components.View, { className: 'item-content__info-title' }, title),
@@ -2132,7 +2113,7 @@ var AtListItem = /** @class */ (function (_super) {
2132
2113
  isSwitch && !extraThumb && !extraText && (React__default["default"].createElement(components.View, { className: 'item-extra__switch', onClick: this.handleSwitchClick },
2133
2114
  React__default["default"].createElement(components.Switch, { color: switchColor, disabled: disabled, checked: switchIsCheck, onChange: this.handleSwitchChange }))),
2134
2115
  arrow ? (React__default["default"].createElement(components.View, { className: 'item-extra__icon' },
2135
- React__default["default"].createElement(components.Text, { className: "at-icon item-extra__icon-arrow at-icon-chevron-" + arrow }))) : null))));
2116
+ React__default["default"].createElement(components.Text, { className: "at-icon item-extra__icon-arrow at-icon-chevron-".concat(arrow) }))) : null))));
2136
2117
  };
2137
2118
  return AtListItem;
2138
2119
  }(React__default["default"].Component));
@@ -2150,26 +2131,26 @@ AtListItem.defaultProps = {
2150
2131
  iconInfo: { value: '' }
2151
2132
  };
2152
2133
  AtListItem.propTypes = {
2153
- note: PropTypes.string,
2154
- disabled: PropTypes.bool,
2155
- title: PropTypes.string,
2156
- thumb: PropTypes.string,
2157
- onClick: PropTypes.func,
2158
- isSwitch: PropTypes.bool,
2159
- hasBorder: PropTypes.bool,
2160
- switchColor: PropTypes.string,
2161
- switchIsCheck: PropTypes.bool,
2162
- extraText: PropTypes.string,
2163
- extraThumb: PropTypes.string,
2164
- onSwitchChange: PropTypes.func,
2165
- arrow: PropTypes.oneOf(['up', 'down', 'right']),
2166
- iconInfo: PropTypes.shape({
2167
- size: PropTypes.number,
2168
- value: PropTypes.string,
2169
- color: PropTypes.string,
2170
- prefixClass: PropTypes.string,
2171
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2172
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
2134
+ note: isJSXElement,
2135
+ disabled: propTypes.bool,
2136
+ title: isJSXElement,
2137
+ thumb: propTypes.string,
2138
+ onClick: propTypes.func,
2139
+ isSwitch: propTypes.bool,
2140
+ hasBorder: propTypes.bool,
2141
+ switchColor: propTypes.string,
2142
+ switchIsCheck: propTypes.bool,
2143
+ extraText: isJSXElement,
2144
+ extraThumb: propTypes.string,
2145
+ onSwitchChange: propTypes.func,
2146
+ arrow: propTypes.oneOf(['up', 'down', 'right']),
2147
+ iconInfo: propTypes.shape({
2148
+ size: propTypes.number,
2149
+ value: propTypes.string,
2150
+ color: propTypes.string,
2151
+ prefixClass: propTypes.string,
2152
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2153
+ className: propTypes.oneOfType([propTypes.array, propTypes.string])
2173
2154
  })
2174
2155
  };
2175
2156
 
@@ -2247,7 +2228,7 @@ var AtDrawer = /** @class */ (function (_super) {
2247
2228
  };
2248
2229
  return _show ? (React__default["default"].createElement(components.View, { className: classnames(rootClassName, classObject, this.props.className) },
2249
2230
  React__default["default"].createElement(components.View, { className: 'at-drawer__mask', style: maskStyle, onClick: this.onMaskClick.bind(this) }),
2250
- React__default["default"].createElement(components.View, { className: 'at-drawer__content', style: listStyle }, !!items && items.length ? (React__default["default"].createElement(AtList, null, items.map(function (name, index) { return (React__default["default"].createElement(AtListItem, { key: name + "-" + index, "data-index": index, onClick: _this.onItemClick.bind(_this, index), title: name, arrow: 'right' })); }))) : (this.props.children)))) : (React__default["default"].createElement(components.View, null));
2231
+ React__default["default"].createElement(components.View, { className: 'at-drawer__content', style: listStyle }, !!items && items.length ? (React__default["default"].createElement(AtList, null, items.map(function (name, index) { return (React__default["default"].createElement(AtListItem, { key: "".concat(name, "-").concat(index), "data-index": index, onClick: _this.onItemClick.bind(_this, index), title: name, arrow: 'right' })); }))) : (this.props.children)))) : (React__default["default"].createElement(components.View, null));
2251
2232
  };
2252
2233
  return AtDrawer;
2253
2234
  }(React__default["default"].Component));
@@ -2259,30 +2240,27 @@ AtDrawer.defaultProps = {
2259
2240
  items: []
2260
2241
  };
2261
2242
  AtDrawer.propTypes = {
2262
- show: PropTypes.bool,
2263
- mask: PropTypes.bool,
2264
- width: PropTypes.string,
2265
- items: PropTypes.arrayOf(PropTypes.string),
2266
- onItemClick: PropTypes.func,
2267
- onClose: PropTypes.func
2243
+ show: propTypes.bool,
2244
+ mask: propTypes.bool,
2245
+ width: propTypes.string,
2246
+ items: propTypes.arrayOf(propTypes.string),
2247
+ onItemClick: propTypes.func,
2248
+ onClose: propTypes.func
2268
2249
  };
2269
2250
 
2270
2251
  var AtFloatLayout = /** @class */ (function (_super) {
2271
2252
  __extends(AtFloatLayout, _super);
2272
2253
  function AtFloatLayout(props) {
2273
2254
  var _this = _super.call(this, props) || this;
2274
- _this.handleClose = function () {
2255
+ _this.handleClose = function (e) {
2275
2256
  if (typeof _this.props.onClose === 'function') {
2276
- // TODO: Fix typings
2277
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
2278
- // @ts-ignore
2279
- _this.props.onClose();
2257
+ _this.props.onClose(e);
2280
2258
  }
2281
2259
  };
2282
- _this.close = function () {
2260
+ _this.close = function (e) {
2283
2261
  _this.setState({
2284
2262
  _isOpened: false
2285
- }, _this.handleClose);
2263
+ }, function () { return _this.handleClose(e); });
2286
2264
  };
2287
2265
  _this.handleTouchMove = function (e) {
2288
2266
  e.stopPropagation();
@@ -2317,16 +2295,7 @@ var AtFloatLayout = /** @class */ (function (_super) {
2317
2295
  React__default["default"].createElement(components.Text, { className: 'layout-header__title' }, title),
2318
2296
  React__default["default"].createElement(components.View, { className: 'layout-header__btn-close', onClick: this.close }))) : null,
2319
2297
  React__default["default"].createElement(components.View, { className: 'layout-body' },
2320
- React__default["default"].createElement(components.ScrollView, { scrollY: scrollY, scrollX: scrollX, scrollTop: scrollTop, scrollLeft: scrollLeft, upperThreshold: upperThreshold, lowerThreshold: lowerThreshold, scrollWithAnimation: scrollWithAnimation,
2321
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
2322
- // @ts-ignore // TODO: Fix typings
2323
- onScroll: this.props.onScroll,
2324
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
2325
- // @ts-ignore // TODO: Fix typings
2326
- onScrollToLower: this.props.onScrollToLower,
2327
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
2328
- // @ts-ignore // TODO: Fix typings
2329
- onScrollToUpper: this.props.onScrollToUpper, className: 'layout-body__content' }, this.props.children)))));
2298
+ React__default["default"].createElement(components.ScrollView, { scrollY: scrollY, scrollX: scrollX, scrollTop: scrollTop, scrollLeft: scrollLeft, upperThreshold: upperThreshold, lowerThreshold: lowerThreshold, scrollWithAnimation: scrollWithAnimation, onScroll: this.props.onScroll, onScrollToLower: this.props.onScrollToLower, onScrollToUpper: this.props.onScrollToUpper, className: 'layout-body__content' }, this.props.children)))));
2330
2299
  };
2331
2300
  return AtFloatLayout;
2332
2301
  }(React__default["default"].Component));
@@ -2338,19 +2307,19 @@ AtFloatLayout.defaultProps = {
2338
2307
  scrollWithAnimation: false
2339
2308
  };
2340
2309
  AtFloatLayout.propTypes = {
2341
- title: PropTypes.string,
2342
- isOpened: PropTypes.bool,
2343
- scrollY: PropTypes.bool,
2344
- scrollX: PropTypes.bool,
2345
- scrollTop: PropTypes.number,
2346
- scrollLeft: PropTypes.number,
2347
- upperThreshold: PropTypes.number,
2348
- lowerThreshold: PropTypes.number,
2349
- scrollWithAnimation: PropTypes.bool,
2350
- onClose: PropTypes.func,
2351
- onScroll: PropTypes.func,
2352
- onScrollToLower: PropTypes.func,
2353
- onScrollToUpper: PropTypes.func
2310
+ title: propTypes.string,
2311
+ isOpened: propTypes.bool,
2312
+ scrollY: propTypes.bool,
2313
+ scrollX: propTypes.bool,
2314
+ scrollTop: propTypes.number,
2315
+ scrollLeft: propTypes.number,
2316
+ upperThreshold: propTypes.number,
2317
+ lowerThreshold: propTypes.number,
2318
+ scrollWithAnimation: propTypes.bool,
2319
+ onClose: propTypes.func,
2320
+ onScroll: propTypes.func,
2321
+ onScrollToLower: propTypes.func,
2322
+ onScrollToUpper: propTypes.func
2354
2323
  };
2355
2324
 
2356
2325
  var AtForm = /** @class */ (function (_super) {
@@ -2377,11 +2346,11 @@ AtForm.defaultProps = {
2377
2346
  reportSubmit: false
2378
2347
  };
2379
2348
  AtForm.propTypes = {
2380
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
2381
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
2382
- reportSubmit: PropTypes.bool,
2383
- onSubmit: PropTypes.func,
2384
- onReset: PropTypes.func
2349
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
2350
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
2351
+ reportSubmit: propTypes.bool,
2352
+ onSubmit: propTypes.func,
2353
+ onReset: propTypes.func
2385
2354
  };
2386
2355
 
2387
2356
  /**
@@ -2751,44 +2720,6 @@ function isIterateeCall(value, index, object) {
2751
2720
 
2752
2721
  var _isIterateeCall = isIterateeCall;
2753
2722
 
2754
- /** Used to match a single whitespace character. */
2755
- var reWhitespace = /\s/;
2756
-
2757
- /**
2758
- * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
2759
- * character of `string`.
2760
- *
2761
- * @private
2762
- * @param {string} string The string to inspect.
2763
- * @returns {number} Returns the index of the last non-whitespace character.
2764
- */
2765
- function trimmedEndIndex(string) {
2766
- var index = string.length;
2767
-
2768
- while (index-- && reWhitespace.test(string.charAt(index))) {}
2769
- return index;
2770
- }
2771
-
2772
- var _trimmedEndIndex = trimmedEndIndex;
2773
-
2774
- /** Used to match leading whitespace. */
2775
- var reTrimStart = /^\s+/;
2776
-
2777
- /**
2778
- * The base implementation of `_.trim`.
2779
- *
2780
- * @private
2781
- * @param {string} string The string to trim.
2782
- * @returns {string} Returns the trimmed string.
2783
- */
2784
- function baseTrim(string) {
2785
- return string
2786
- ? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
2787
- : string;
2788
- }
2789
-
2790
- var _baseTrim = baseTrim;
2791
-
2792
2723
  /**
2793
2724
  * Checks if `value` is object-like. A value is object-like if it's not `null`
2794
2725
  * and has a `typeof` result of "object".
@@ -2849,6 +2780,9 @@ var isSymbol_1 = isSymbol;
2849
2780
  /** Used as references for various `Number` constants. */
2850
2781
  var NAN = 0 / 0;
2851
2782
 
2783
+ /** Used to match leading and trailing whitespace. */
2784
+ var reTrim = /^\s+|\s+$/g;
2785
+
2852
2786
  /** Used to detect bad signed hexadecimal string values. */
2853
2787
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
2854
2788
 
@@ -2898,7 +2832,7 @@ function toNumber(value) {
2898
2832
  if (typeof value != 'string') {
2899
2833
  return value === 0 ? value : +value;
2900
2834
  }
2901
- value = _baseTrim(value);
2835
+ value = value.replace(reTrim, '');
2902
2836
  var isBinary = reIsBinary.test(value);
2903
2837
  return (isBinary || reIsOctal.test(value))
2904
2838
  ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
@@ -3050,26 +2984,25 @@ var AtGrid = /** @class */ (function (_super) {
3050
2984
  return null;
3051
2985
  }
3052
2986
  var gridGroup = chunk_1(data, columnNum);
3053
- var bodyClass = classnames(['at-grid__flex-item', 'at-grid-item', "at-grid-item--" + mode], {
2987
+ var bodyClass = classnames(['at-grid__flex-item', 'at-grid-item', "at-grid-item--".concat(mode)], {
3054
2988
  'at-grid-item--no-border': !hasBorder
3055
2989
  });
3056
- return (React__default["default"].createElement(components.View, { className: classnames('at-grid', this.props.className) }, gridGroup.map(function (item, i) { return (React__default["default"].createElement(components.View, { className: 'at-grid__flex', key: "at-grid-group-" + i }, item.map(function (childItem, index) {
2990
+ return (React__default["default"].createElement(components.View, { className: classnames('at-grid', this.props.className) }, gridGroup.map(function (item, i) { return (React__default["default"].createElement(components.View, { className: 'at-grid__flex', key: "at-grid-group-".concat(i) }, item.map(function (childItem, index) {
3057
2991
  var _a;
3058
- return (React__default["default"].createElement(components.View, { key: "at-grid-item-" + index, className: classnames(bodyClass, {
2992
+ return (React__default["default"].createElement(components.View, { key: "at-grid-item-".concat(index), className: classnames(bodyClass, {
3059
2993
  'at-grid-item--last': index === columnNum - 1
3060
2994
  }), onClick: _this.handleClick.bind(_this, childItem, index, i), style: {
3061
- flex: "0 0 " + 100 / columnNum + "%"
2995
+ flex: "0 0 ".concat(100 / columnNum, "%")
3062
2996
  } },
3063
2997
  React__default["default"].createElement(components.View, { className: 'at-grid-item__content' },
3064
2998
  React__default["default"].createElement(components.View, { className: 'at-grid-item__content-inner' },
3065
2999
  React__default["default"].createElement(components.View, { className: 'content-inner__icon' },
3066
3000
  childItem.image && (React__default["default"].createElement(components.Image, { className: 'content-inner__img', src: childItem.image, mode: 'scaleToFill' })),
3067
3001
  childItem.iconInfo && !childItem.image && (React__default["default"].createElement(components.Text, { className: classnames(childItem.iconInfo.prefixClass || 'at-icon', (_a = {},
3068
- _a[(childItem.iconInfo.prefixClass || 'at-icon') + "-" + childItem.iconInfo.value] = childItem
3069
- .iconInfo.value,
3002
+ _a["".concat(childItem.iconInfo.prefixClass || 'at-icon', "-").concat(childItem.iconInfo.value)] = childItem.iconInfo.value,
3070
3003
  _a), childItem.iconInfo.className), style: mergeStyle({
3071
3004
  color: childItem.iconInfo.color,
3072
- fontSize: (childItem.iconInfo.size || 24) + "px"
3005
+ fontSize: "".concat(childItem.iconInfo.size || 24, "px")
3073
3006
  },
3074
3007
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3075
3008
  childItem.iconInfo.customStyle) }))),
@@ -3085,20 +3018,20 @@ AtGrid.defaultProps = {
3085
3018
  hasBorder: true
3086
3019
  };
3087
3020
  AtGrid.propTypes = {
3088
- mode: PropTypes.string,
3089
- onClick: PropTypes.func,
3090
- hasBorder: PropTypes.bool,
3091
- columnNum: PropTypes.number,
3092
- data: PropTypes.arrayOf(PropTypes.shape({
3093
- image: PropTypes.string,
3094
- value: PropTypes.string,
3095
- iconInfo: PropTypes.shape({
3096
- size: PropTypes.number,
3097
- value: PropTypes.string,
3098
- color: PropTypes.string,
3099
- prefixClass: PropTypes.string,
3100
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3101
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
3021
+ mode: propTypes.string,
3022
+ onClick: propTypes.func,
3023
+ hasBorder: propTypes.bool,
3024
+ columnNum: propTypes.number,
3025
+ data: propTypes.arrayOf(propTypes.shape({
3026
+ image: propTypes.string,
3027
+ value: propTypes.string,
3028
+ iconInfo: propTypes.shape({
3029
+ size: propTypes.number,
3030
+ value: propTypes.string,
3031
+ color: propTypes.string,
3032
+ prefixClass: propTypes.string,
3033
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3034
+ className: propTypes.oneOfType([propTypes.array, propTypes.string])
3102
3035
  })
3103
3036
  }))
3104
3037
  };
@@ -3114,10 +3047,10 @@ var AtIcon = /** @class */ (function (_super) {
3114
3047
  AtIcon.prototype.render = function () {
3115
3048
  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;
3116
3049
  var rootStyle = {
3117
- fontSize: "" + pxTransform(parseInt(String(size)) * 2),
3050
+ fontSize: "".concat(pxTransform(parseInt(String(size)) * 2)),
3118
3051
  color: color
3119
3052
  };
3120
- var iconName = value ? prefixClass + "-" + value : '';
3053
+ var iconName = value ? "".concat(prefixClass, "-").concat(value) : '';
3121
3054
  return (React__default["default"].createElement(components.Text, { className: classnames(prefixClass, iconName, className), style: mergeStyle(rootStyle, customStyle), onClick: this.handleClick.bind(this) }));
3122
3055
  };
3123
3056
  return AtIcon;
@@ -3131,13 +3064,13 @@ AtIcon.defaultProps = {
3131
3064
  size: 24
3132
3065
  };
3133
3066
  AtIcon.propTypes = {
3134
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3135
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3136
- prefixClass: PropTypes.string,
3137
- value: PropTypes.string,
3138
- color: PropTypes.string,
3139
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3140
- onClick: PropTypes.func
3067
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3068
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3069
+ prefixClass: propTypes.string,
3070
+ value: propTypes.string,
3071
+ color: propTypes.string,
3072
+ size: propTypes.oneOfType([propTypes.string, propTypes.number]),
3073
+ onClick: propTypes.func
3141
3074
  };
3142
3075
 
3143
3076
  function getInputProps(props) {
@@ -3232,11 +3165,8 @@ var AtInput = /** @class */ (function (_super) {
3232
3165
  return (React__default["default"].createElement(components.View, { className: rootCls, style: customStyle },
3233
3166
  React__default["default"].createElement(components.View, { className: containerCls },
3234
3167
  React__default["default"].createElement(components.View, { className: overlayCls, onClick: this.handleClick }),
3235
- title && (React__default["default"].createElement(components.Label, { className: "at-input__title " + (required && 'at-input__title--required'), for: name }, title)),
3236
- React__default["default"].createElement(components.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,
3237
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
3238
- // @ts-ignore
3239
- onKeyboardHeightChange: this.handleKeyboardHeightChange })),
3168
+ title && (React__default["default"].createElement(components.Label, { className: "at-input__title ".concat(required && 'at-input__title--required'), for: name }, title)),
3169
+ React__default["default"].createElement(components.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, onKeyboardHeightChange: this.handleKeyboardHeightChange })),
3240
3170
  clear && value && (React__default["default"].createElement(components.View, { className: 'at-input__icon', onTouchEnd: this.handleClearValue },
3241
3171
  React__default["default"].createElement(components.Text, { className: 'at-icon at-icon-close-circle at-input__icon-close' }))),
3242
3172
  error && (React__default["default"].createElement(components.View, { className: 'at-input__icon', onTouchStart: this.handleErrorClick },
@@ -3275,37 +3205,37 @@ AtInput.defaultProps = {
3275
3205
  onChange: function () { }
3276
3206
  };
3277
3207
  AtInput.propTypes = {
3278
- className: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
3279
- customStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3280
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3281
- name: PropTypes.string,
3282
- placeholder: PropTypes.string,
3283
- placeholderStyle: PropTypes.string,
3284
- placeholderClass: PropTypes.string,
3285
- title: PropTypes.string,
3286
- confirmType: PropTypes.string,
3287
- cursor: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3288
- selectionStart: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3289
- selectionEnd: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3290
- adjustPosition: PropTypes.bool,
3291
- cursorSpacing: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3292
- maxlength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3293
- maxLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3294
- type: PropTypes.string,
3295
- disabled: PropTypes.bool,
3296
- border: PropTypes.bool,
3297
- editable: PropTypes.bool,
3298
- error: PropTypes.bool,
3299
- clear: PropTypes.bool,
3300
- autoFocus: PropTypes.bool,
3301
- focus: PropTypes.bool,
3302
- onChange: PropTypes.func,
3303
- onFocus: PropTypes.func,
3304
- onBlur: PropTypes.func,
3305
- onConfirm: PropTypes.func,
3306
- onErrorClick: PropTypes.func,
3307
- onClick: PropTypes.func,
3308
- required: PropTypes.bool
3208
+ className: propTypes.oneOfType([propTypes.string, propTypes.array]),
3209
+ customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
3210
+ value: propTypes.oneOfType([propTypes.string, propTypes.number]),
3211
+ name: propTypes.string,
3212
+ placeholder: propTypes.string,
3213
+ placeholderStyle: propTypes.string,
3214
+ placeholderClass: propTypes.string,
3215
+ title: propTypes.string,
3216
+ confirmType: propTypes.string,
3217
+ cursor: propTypes.oneOfType([propTypes.string, propTypes.number]),
3218
+ selectionStart: propTypes.oneOfType([propTypes.string, propTypes.number]),
3219
+ selectionEnd: propTypes.oneOfType([propTypes.string, propTypes.number]),
3220
+ adjustPosition: propTypes.bool,
3221
+ cursorSpacing: propTypes.oneOfType([propTypes.string, propTypes.number]),
3222
+ maxlength: propTypes.oneOfType([propTypes.string, propTypes.number]),
3223
+ maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
3224
+ type: propTypes.string,
3225
+ disabled: propTypes.bool,
3226
+ border: propTypes.bool,
3227
+ editable: propTypes.bool,
3228
+ error: propTypes.bool,
3229
+ clear: propTypes.bool,
3230
+ autoFocus: propTypes.bool,
3231
+ focus: propTypes.bool,
3232
+ onChange: propTypes.func,
3233
+ onFocus: propTypes.func,
3234
+ onBlur: propTypes.func,
3235
+ onConfirm: propTypes.func,
3236
+ onErrorClick: propTypes.func,
3237
+ onClick: propTypes.func,
3238
+ required: propTypes.bool
3309
3239
  };
3310
3240
 
3311
3241
  /**
@@ -3455,14 +3385,14 @@ var AtInputNumber = /** @class */ (function (_super) {
3455
3385
  var _a = _this.props, _b = _a.max, max = _b === void 0 ? 100 : _b, _c = _a.min, min = _c === void 0 ? 0 : _c;
3456
3386
  var resultValue = value === '' ? min : value;
3457
3387
  // 此处不能使用 Math.max,会是字符串变数字,并丢失 .
3458
- if (resultValue > max) {
3388
+ if (Number(resultValue) > max) {
3459
3389
  resultValue = max;
3460
3390
  _this.handleError({
3461
3391
  type: 'OVER',
3462
3392
  errorValue: resultValue
3463
3393
  });
3464
3394
  }
3465
- if (resultValue < min) {
3395
+ if (Number(resultValue) < min) {
3466
3396
  resultValue = min;
3467
3397
  _this.handleError({
3468
3398
  type: 'LOW',
@@ -3501,8 +3431,8 @@ var AtInputNumber = /** @class */ (function (_super) {
3501
3431
  }
3502
3432
  AtInputNumber.prototype.handleClick = function (clickType, e) {
3503
3433
  var _a = this.props, disabled = _a.disabled, value = _a.value, _b = _a.min, min = _b === void 0 ? 0 : _b, _c = _a.max, max = _c === void 0 ? 100 : _c, _d = _a.step, step = _d === void 0 ? 1 : _d;
3504
- var lowThanMin = clickType === 'minus' && value <= min;
3505
- var overThanMax = clickType === 'plus' && value >= max;
3434
+ var lowThanMin = clickType === 'minus' && Number(value) <= min;
3435
+ var overThanMax = clickType === 'plus' && Number(value) >= max;
3506
3436
  if (lowThanMin || overThanMax || disabled) {
3507
3437
  var deltaValue_1 = clickType === 'minus' ? -step : step;
3508
3438
  var errorValue = addNum(Number(value), deltaValue_1);
@@ -3528,7 +3458,7 @@ var AtInputNumber = /** @class */ (function (_super) {
3528
3458
  AtInputNumber.prototype.render = function () {
3529
3459
  var _a = this.props, customStyle = _a.customStyle, className = _a.className, width = _a.width, disabled = _a.disabled, value = _a.value, type = _a.type, _b = _a.min, min = _b === void 0 ? 0 : _b, _c = _a.max, max = _c === void 0 ? 100 : _c, size = _a.size, disabledInput = _a.disabledInput;
3530
3460
  var inputStyle = {
3531
- width: width ? "" + pxTransform(width) : ''
3461
+ width: width ? "".concat(pxTransform(width)) : ''
3532
3462
  };
3533
3463
  var inputValue = Number(this.handleValue(value));
3534
3464
  var rootCls = classnames('at-input-number', {
@@ -3565,20 +3495,20 @@ AtInputNumber.defaultProps = {
3565
3495
  onChange: function () { }
3566
3496
  };
3567
3497
  AtInputNumber.propTypes = {
3568
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3569
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3570
- value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
3571
- type: PropTypes.oneOf(['number', 'digit']),
3572
- disabled: PropTypes.bool,
3573
- width: PropTypes.number,
3574
- min: PropTypes.number,
3575
- max: PropTypes.number,
3576
- step: PropTypes.number,
3577
- size: PropTypes.oneOf(['normal', 'large']),
3578
- disabledInput: PropTypes.bool,
3579
- onChange: PropTypes.func,
3580
- onBlur: PropTypes.func,
3581
- onErrorInput: PropTypes.func
3498
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3499
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3500
+ value: propTypes.oneOfType([propTypes.number, propTypes.string]),
3501
+ type: propTypes.oneOf(['number', 'digit']),
3502
+ disabled: propTypes.bool,
3503
+ width: propTypes.number,
3504
+ min: propTypes.number,
3505
+ max: propTypes.number,
3506
+ step: propTypes.number,
3507
+ size: propTypes.oneOf(['normal', 'large']),
3508
+ disabledInput: propTypes.bool,
3509
+ onChange: propTypes.func,
3510
+ onBlur: propTypes.func,
3511
+ onErrorInput: propTypes.func
3582
3512
  };
3583
3513
 
3584
3514
  var AtModalAction = /** @class */ (function (_super) {
@@ -3599,7 +3529,7 @@ AtModalAction.defaultProps = {
3599
3529
  isSimple: false
3600
3530
  };
3601
3531
  AtModalAction.propTypes = {
3602
- isSimple: PropTypes.bool
3532
+ isSimple: propTypes.bool
3603
3533
  };
3604
3534
 
3605
3535
  var AtModalContent = /** @class */ (function (_super) {
@@ -3688,13 +3618,7 @@ var AtModal = /** @class */ (function (_super) {
3688
3618
  title && (React__default["default"].createElement(AtModalHeader, null,
3689
3619
  React__default["default"].createElement(components.Text, null, title))),
3690
3620
  content && (React__default["default"].createElement(AtModalContent, null,
3691
- React__default["default"].createElement(components.View, { className: 'content-simple' }, isWEB ? (React__default["default"].createElement(components.Text
3692
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
3693
- // @ts-ignore
3694
- , {
3695
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
3696
- // @ts-ignore
3697
- dangerouslySetInnerHTML: {
3621
+ React__default["default"].createElement(components.View, { className: 'content-simple' }, isWEB ? (React__default["default"].createElement(components.Text, { dangerouslySetInnerHTML: {
3698
3622
  __html: content.replace(/\\n/g, '<br/>')
3699
3623
  } })) : (React__default["default"].createElement(components.Text, null, content))))),
3700
3624
  isRenderAction && (React__default["default"].createElement(AtModalAction, { isSimple: true },
@@ -3712,15 +3636,15 @@ AtModal.defaultProps = {
3712
3636
  closeOnClickOverlay: true
3713
3637
  };
3714
3638
  AtModal.propTypes = {
3715
- title: PropTypes.string,
3716
- isOpened: PropTypes.bool,
3717
- onCancel: PropTypes.func,
3718
- onConfirm: PropTypes.func,
3719
- onClose: PropTypes.func,
3720
- content: PropTypes.string,
3721
- closeOnClickOverlay: PropTypes.bool,
3722
- cancelText: PropTypes.string,
3723
- confirmText: PropTypes.string
3639
+ title: propTypes.string,
3640
+ isOpened: propTypes.bool,
3641
+ onCancel: propTypes.func,
3642
+ onConfirm: propTypes.func,
3643
+ onClose: propTypes.func,
3644
+ content: propTypes.string,
3645
+ closeOnClickOverlay: propTypes.bool,
3646
+ cancelText: propTypes.string,
3647
+ confirmText: propTypes.string
3724
3648
  };
3725
3649
 
3726
3650
  var AtNavBar = /** @class */ (function (_super) {
@@ -3755,17 +3679,17 @@ var AtNavBar = /** @class */ (function (_super) {
3755
3679
  var leftIconInfo = leftIconType instanceof Object
3756
3680
  ? __assign(__assign({}, defaultIconInfo), leftIconType) : __assign(__assign({}, defaultIconInfo), { value: leftIconType });
3757
3681
  var leftIconClass = classnames(leftIconInfo.prefixClass, (_a = {},
3758
- _a[leftIconInfo.prefixClass + "-" + leftIconInfo.value] = leftIconInfo.value,
3682
+ _a["".concat(leftIconInfo.prefixClass, "-").concat(leftIconInfo.value)] = leftIconInfo.value,
3759
3683
  _a), leftIconInfo.className);
3760
3684
  var rightFirstIconInfo = rightFirstIconType instanceof Object
3761
3685
  ? __assign(__assign({}, defaultIconInfo), rightFirstIconType) : __assign(__assign({}, defaultIconInfo), { value: rightFirstIconType });
3762
3686
  var rightFirstIconClass = classnames(rightFirstIconInfo.prefixClass, (_b = {},
3763
- _b[rightFirstIconInfo.prefixClass + "-" + rightFirstIconInfo.value] = rightFirstIconInfo.value,
3687
+ _b["".concat(rightFirstIconInfo.prefixClass, "-").concat(rightFirstIconInfo.value)] = rightFirstIconInfo.value,
3764
3688
  _b), rightFirstIconInfo.className);
3765
3689
  var rightSecondIconInfo = rightSecondIconType instanceof Object
3766
3690
  ? __assign(__assign({}, defaultIconInfo), rightSecondIconType) : __assign(__assign({}, defaultIconInfo), { value: rightSecondIconType });
3767
3691
  var rightSecondIconClass = classnames(rightSecondIconInfo.prefixClass, (_c = {},
3768
- _c[rightSecondIconInfo.prefixClass + "-" + rightSecondIconInfo.value] = rightSecondIconInfo.value,
3692
+ _c["".concat(rightSecondIconInfo.prefixClass, "-").concat(rightSecondIconInfo.value)] = rightSecondIconInfo.value,
3769
3693
  _c), rightSecondIconInfo.className);
3770
3694
  return (React__default["default"].createElement(components.View, { className: classnames({
3771
3695
  'at-nav-bar': true,
@@ -3775,7 +3699,7 @@ var AtNavBar = /** @class */ (function (_super) {
3775
3699
  React__default["default"].createElement(components.View, { className: 'at-nav-bar__left-view', onClick: this.handleClickLeftView.bind(this), style: linkStyle },
3776
3700
  leftIconType && (React__default["default"].createElement(components.Text, { className: leftIconClass, style: mergeStyle({
3777
3701
  color: leftIconInfo.color,
3778
- fontSize: "" + pxTransform(parseInt(leftIconInfo.size.toString()) * 2)
3702
+ fontSize: "".concat(pxTransform(parseInt(leftIconInfo.size.toString()) * 2))
3779
3703
  }, leftIconInfo.customStyle) })),
3780
3704
  React__default["default"].createElement(components.Text, { className: 'at-nav-bar__text' }, leftText)),
3781
3705
  React__default["default"].createElement(components.View, { className: 'at-nav-bar__title', onClick: this.handleClickTitle.bind(this) }, title || this.props.children),
@@ -3785,14 +3709,14 @@ var AtNavBar = /** @class */ (function (_super) {
3785
3709
  'at-nav-bar__container--hide': !rightSecondIconType
3786
3710
  }), style: linkStyle, onClick: this.handleClickNd.bind(this) }, rightSecondIconType && (React__default["default"].createElement(components.Text, { className: rightSecondIconClass, style: mergeStyle({
3787
3711
  color: rightSecondIconInfo.color,
3788
- fontSize: "" + pxTransform(parseInt(rightSecondIconInfo.size.toString()) * 2)
3712
+ fontSize: "".concat(pxTransform(parseInt(rightSecondIconInfo.size.toString()) * 2))
3789
3713
  }, rightSecondIconInfo.customStyle) }))),
3790
3714
  React__default["default"].createElement(components.View, { className: classnames({
3791
3715
  'at-nav-bar__container': true,
3792
3716
  'at-nav-bar__container--hide': !rightFirstIconType
3793
3717
  }), style: linkStyle, onClick: this.handleClickSt.bind(this) }, rightFirstIconType && (React__default["default"].createElement(components.Text, { className: rightFirstIconClass, style: mergeStyle({
3794
3718
  color: rightFirstIconInfo.color,
3795
- fontSize: "" + pxTransform(parseInt(rightFirstIconInfo.size.toString()) * 2)
3719
+ fontSize: "".concat(pxTransform(parseInt(rightFirstIconInfo.size.toString()) * 2))
3796
3720
  }, rightFirstIconInfo.customStyle) }))))));
3797
3721
  };
3798
3722
  return AtNavBar;
@@ -3810,30 +3734,30 @@ AtNavBar.defaultProps = {
3810
3734
  rightSecondIconType: ''
3811
3735
  };
3812
3736
  AtNavBar.propTypes = {
3813
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3814
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
3815
- fixed: PropTypes.bool,
3816
- border: PropTypes.bool,
3817
- color: PropTypes.string,
3818
- leftIconType: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3819
- leftText: PropTypes.string,
3820
- title: PropTypes.string,
3821
- rightFirstIconType: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3822
- rightSecondIconType: PropTypes.oneOfType([
3823
- PropTypes.string,
3824
- PropTypes.object
3737
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3738
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
3739
+ fixed: propTypes.bool,
3740
+ border: propTypes.bool,
3741
+ color: propTypes.string,
3742
+ leftIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
3743
+ leftText: propTypes.string,
3744
+ title: propTypes.string,
3745
+ rightFirstIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
3746
+ rightSecondIconType: propTypes.oneOfType([
3747
+ propTypes.string,
3748
+ propTypes.object
3825
3749
  ]),
3826
- onClickLeftIcon: PropTypes.func,
3827
- onClickRgIconSt: PropTypes.func,
3828
- onClickRgIconNd: PropTypes.func,
3829
- onClickTitle: PropTypes.func
3750
+ onClickLeftIcon: propTypes.func,
3751
+ onClickRgIconSt: propTypes.func,
3752
+ onClickRgIconNd: propTypes.func,
3753
+ onClickTitle: propTypes.func
3830
3754
  };
3831
3755
 
3832
3756
  var AtNoticebar = /** @class */ (function (_super) {
3833
3757
  __extends(AtNoticebar, _super);
3834
3758
  function AtNoticebar(props) {
3835
3759
  var _this = _super.call(this, props) || this;
3836
- var animElemId = "J_" + Math.ceil(Math.random() * 10e5).toString(36);
3760
+ var animElemId = "J_".concat(Math.ceil(Math.random() * 10e5).toString(36));
3837
3761
  _this.state = {
3838
3762
  show: true,
3839
3763
  animElemId: animElemId,
@@ -3870,13 +3794,11 @@ var AtNoticebar = /** @class */ (function (_super) {
3870
3794
  AtNoticebar.prototype.initAnimation = function () {
3871
3795
  var _this = this;
3872
3796
  var _a = this.state, isWEAPP = _a.isWEAPP, isALIPAY = _a.isALIPAY;
3873
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
3874
- // @ts-ignore
3875
3797
  this.timeout = setTimeout(function () {
3876
3798
  _this.timeout = null;
3877
3799
  if (_this.state.isWEB) {
3878
3800
  var _a = _this.props.speed, speed = _a === void 0 ? 100 : _a;
3879
- var elem = document.querySelector("." + _this.state.animElemId);
3801
+ var elem = document.querySelector(".".concat(_this.state.animElemId));
3880
3802
  if (!elem)
3881
3803
  return;
3882
3804
  var width = elem.getBoundingClientRect().width;
@@ -3886,7 +3808,7 @@ var AtNoticebar = /** @class */ (function (_super) {
3886
3808
  else if (isWEAPP || isALIPAY) {
3887
3809
  var query = Taro__default["default"].createSelectorQuery();
3888
3810
  query
3889
- .select("." + _this.state.animElemId)
3811
+ .select(".".concat(_this.state.animElemId))
3890
3812
  .boundingClientRect()
3891
3813
  .exec(function (res) {
3892
3814
  var queryRes = res[0];
@@ -3924,8 +3846,6 @@ var AtNoticebar = /** @class */ (function (_super) {
3924
3846
  }, 900);
3925
3847
  };
3926
3848
  animBody();
3927
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
3928
- // @ts-ignore
3929
3849
  _this.interval = setInterval(animBody, dura * 1000 + 1000);
3930
3850
  });
3931
3851
  }
@@ -3942,7 +3862,7 @@ var AtNoticebar = /** @class */ (function (_super) {
3942
3862
  var innerClassName = ['at-noticebar__content-inner'];
3943
3863
  if (marquee) {
3944
3864
  close = false;
3945
- style['animation-duration'] = dura + "s";
3865
+ style['animation-duration'] = "".concat(dura, "s");
3946
3866
  innerClassName.push(animElemId);
3947
3867
  }
3948
3868
  var classObject = {
@@ -3952,7 +3872,7 @@ var AtNoticebar = /** @class */ (function (_super) {
3952
3872
  };
3953
3873
  var iconClass = ['at-icon'];
3954
3874
  if (icon)
3955
- iconClass.push("at-icon-" + icon);
3875
+ iconClass.push("at-icon-".concat(icon));
3956
3876
  return (show && (React__default["default"].createElement(components.View, { className: classnames(rootClassName, classObject, className), style: customStyle },
3957
3877
  close && (React__default["default"].createElement(components.View, { className: 'at-noticebar__close', onClick: this.onClose.bind(this) },
3958
3878
  React__default["default"].createElement(components.Text, { className: 'at-icon at-icon-close' }))),
@@ -3979,16 +3899,16 @@ AtNoticebar.defaultProps = {
3979
3899
  customStyle: {}
3980
3900
  };
3981
3901
  AtNoticebar.propTypes = {
3982
- close: PropTypes.bool,
3983
- single: PropTypes.bool,
3984
- marquee: PropTypes.bool,
3985
- speed: PropTypes.number,
3986
- moreText: PropTypes.string,
3987
- showMore: PropTypes.bool,
3988
- icon: PropTypes.string,
3989
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
3990
- onClose: PropTypes.func,
3991
- onGotoMore: PropTypes.func
3902
+ close: propTypes.bool,
3903
+ single: propTypes.bool,
3904
+ marquee: propTypes.bool,
3905
+ speed: propTypes.number,
3906
+ moreText: propTypes.string,
3907
+ showMore: propTypes.bool,
3908
+ icon: propTypes.string,
3909
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
3910
+ onClose: propTypes.func,
3911
+ onGotoMore: propTypes.func
3992
3912
  };
3993
3913
 
3994
3914
  var MIN_MAXPAGE = 1;
@@ -4097,12 +4017,12 @@ AtPagination.defaultProps = {
4097
4017
  customStyle: {}
4098
4018
  };
4099
4019
  AtPagination.propTypes = {
4100
- current: PropTypes.number,
4101
- total: PropTypes.number,
4102
- pageSize: PropTypes.number,
4103
- icon: PropTypes.bool,
4104
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4105
- onPageChange: PropTypes.func
4020
+ current: propTypes.number,
4021
+ total: propTypes.number,
4022
+ pageSize: propTypes.number,
4023
+ icon: propTypes.bool,
4024
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4025
+ onPageChange: propTypes.func
4106
4026
  };
4107
4027
 
4108
4028
  var AtProgress = /** @class */ (function (_super) {
@@ -4125,31 +4045,31 @@ var AtProgress = /** @class */ (function (_super) {
4125
4045
  percent = 100;
4126
4046
  }
4127
4047
  var rootClass = classnames('at-progress', (_a = {},
4128
- _a["at-progress--" + status] = !!status,
4048
+ _a["at-progress--".concat(status)] = !!status,
4129
4049
  _a), this.props.className);
4130
4050
  var iconClass = classnames('at-icon', {
4131
4051
  'at-icon-close-circle': status === 'error',
4132
4052
  'at-icon-check-circle': status === 'success'
4133
4053
  });
4134
4054
  var progressStyle = {
4135
- width: percent && +percent + "%",
4136
- height: strokeWidth && +strokeWidth + "px",
4055
+ width: percent && "".concat(+percent, "%"),
4056
+ height: strokeWidth && "".concat(+strokeWidth, "px"),
4137
4057
  backgroundColor: color
4138
4058
  };
4139
4059
  return (React__default["default"].createElement(components.View, { className: rootClass },
4140
4060
  React__default["default"].createElement(components.View, { className: 'at-progress__outer' },
4141
4061
  React__default["default"].createElement(components.View, { className: 'at-progress__outer-inner' },
4142
4062
  React__default["default"].createElement(components.View, { className: 'at-progress__outer-inner-background', style: progressStyle }))),
4143
- !isHidePercent && (React__default["default"].createElement(components.View, { className: 'at-progress__content' }, !status || status === 'progress' ? (percent + "%") : (React__default["default"].createElement(components.Text, { className: iconClass }))))));
4063
+ !isHidePercent && (React__default["default"].createElement(components.View, { className: 'at-progress__content' }, !status || status === 'progress' ? ("".concat(percent, "%")) : (React__default["default"].createElement(components.Text, { className: iconClass }))))));
4144
4064
  };
4145
4065
  return AtProgress;
4146
4066
  }(React__default["default"].Component));
4147
4067
  AtProgress.propTypes = {
4148
- color: PropTypes.string,
4149
- status: PropTypes.string,
4150
- percent: PropTypes.number,
4151
- strokeWidth: PropTypes.number,
4152
- isHidePercent: PropTypes.bool
4068
+ color: propTypes.string,
4069
+ status: propTypes.string,
4070
+ percent: propTypes.number,
4071
+ strokeWidth: propTypes.number,
4072
+ isHidePercent: propTypes.bool
4153
4073
  };
4154
4074
 
4155
4075
  var AtRadio = /** @class */ (function (_super) {
@@ -4190,11 +4110,11 @@ AtRadio.defaultProps = {
4190
4110
  onClick: function () { }
4191
4111
  };
4192
4112
  AtRadio.propTypes = {
4193
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4194
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4195
- value: PropTypes.string,
4196
- options: PropTypes.array,
4197
- onClick: PropTypes.func
4113
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4114
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4115
+ value: propTypes.string,
4116
+ options: propTypes.array,
4117
+ onClick: propTypes.func
4198
4118
  };
4199
4119
 
4200
4120
  var AtRate = /** @class */ (function (_super) {
@@ -4212,7 +4132,7 @@ var AtRate = /** @class */ (function (_super) {
4212
4132
  marginRight: pxTransform(margin)
4213
4133
  };
4214
4134
  var starIconStyle = {
4215
- fontSize: size ? size + "px" : ''
4135
+ fontSize: size ? "".concat(size, "px") : ''
4216
4136
  };
4217
4137
  // 生成星星颜色 className 数组,方便在jsx中直接map
4218
4138
  var classNameArr = [];
@@ -4229,7 +4149,7 @@ var AtRate = /** @class */ (function (_super) {
4229
4149
  classNameArr.push('at-rate__icon at-rate__icon--off');
4230
4150
  }
4231
4151
  }
4232
- return (React__default["default"].createElement(components.View, { className: classnames('at-rate', className), style: customStyle }, classNameArr.map(function (cls, i) { return (React__default["default"].createElement(components.View, { className: cls, key: "at-rate-star-" + i, style: iconStyle, onClick: _this.handleClick.bind(_this, i + 1) },
4152
+ return (React__default["default"].createElement(components.View, { className: classnames('at-rate', className), style: customStyle }, classNameArr.map(function (cls, i) { return (React__default["default"].createElement(components.View, { className: cls, key: "at-rate-star-".concat(i), style: iconStyle, onClick: _this.handleClick.bind(_this, i + 1) },
4233
4153
  React__default["default"].createElement(components.Text, { className: 'at-icon at-icon-star-2', style: starIconStyle }),
4234
4154
  React__default["default"].createElement(components.View, { className: 'at-rate__left' },
4235
4155
  React__default["default"].createElement(components.Text, { className: 'at-icon at-icon-star-2', style: starIconStyle })))); })));
@@ -4245,13 +4165,13 @@ AtRate.defaultProps = {
4245
4165
  margin: 5
4246
4166
  };
4247
4167
  AtRate.propTypes = {
4248
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4249
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4250
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4251
- value: PropTypes.number,
4252
- max: PropTypes.number,
4253
- margin: PropTypes.number,
4254
- onChange: PropTypes.func
4168
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4169
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4170
+ size: propTypes.oneOfType([propTypes.string, propTypes.number]),
4171
+ value: propTypes.number,
4172
+ max: propTypes.number,
4173
+ margin: propTypes.number,
4174
+ onChange: propTypes.func
4255
4175
  };
4256
4176
 
4257
4177
  var AtSegmentedControl = /** @class */ (function (_super) {
@@ -4304,14 +4224,14 @@ AtSegmentedControl.defaultProps = {
4304
4224
  onClick: function () { }
4305
4225
  };
4306
4226
  AtSegmentedControl.propTypes = {
4307
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4308
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4309
- current: PropTypes.number,
4310
- color: PropTypes.string,
4311
- fontSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4312
- disabled: PropTypes.bool,
4313
- values: PropTypes.array,
4314
- onClick: PropTypes.func
4227
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4228
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4229
+ current: propTypes.number,
4230
+ color: propTypes.string,
4231
+ fontSize: propTypes.oneOfType([propTypes.string, propTypes.number]),
4232
+ disabled: propTypes.bool,
4233
+ values: propTypes.array,
4234
+ onClick: propTypes.func
4315
4235
  };
4316
4236
 
4317
4237
  var AtSwitch = /** @class */ (function (_super) {
@@ -4351,14 +4271,14 @@ AtSwitch.defaultProps = {
4351
4271
  checked: false
4352
4272
  };
4353
4273
  AtSwitch.propTypes = {
4354
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4355
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4356
- title: PropTypes.string,
4357
- color: PropTypes.string,
4358
- checked: PropTypes.bool,
4359
- border: PropTypes.bool,
4360
- disabled: PropTypes.bool,
4361
- onChange: PropTypes.func
4274
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4275
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4276
+ title: propTypes.string,
4277
+ color: propTypes.string,
4278
+ checked: propTypes.bool,
4279
+ border: propTypes.bool,
4280
+ disabled: propTypes.bool,
4281
+ onChange: propTypes.func
4362
4282
  };
4363
4283
 
4364
4284
  var AtTabBar = /** @class */ (function (_super) {
@@ -4395,14 +4315,14 @@ var AtTabBar = /** @class */ (function (_super) {
4395
4315
  color: selectedColor || ''
4396
4316
  };
4397
4317
  var titleStyle = {
4398
- fontSize: fontSize ? fontSize + "px" : ''
4318
+ fontSize: fontSize ? "".concat(fontSize, "px") : ''
4399
4319
  };
4400
4320
  var rootStyle = {
4401
4321
  backgroundColor: backgroundColor || ''
4402
4322
  };
4403
4323
  var imgStyle = {
4404
- width: iconSize + "px",
4405
- height: iconSize + "px"
4324
+ width: "".concat(iconSize, "px"),
4325
+ height: "".concat(iconSize, "px")
4406
4326
  };
4407
4327
  return (React__default["default"].createElement(components.View, { className: classnames({
4408
4328
  'at-tab-bar': true,
@@ -4412,15 +4332,15 @@ var AtTabBar = /** @class */ (function (_super) {
4412
4332
  var _a;
4413
4333
  return (React__default["default"].createElement(components.View, { className: classnames('at-tab-bar__item', {
4414
4334
  'at-tab-bar__item--active': current === i
4415
- }), style: current === i ? selectedStyle : defaultStyle, key: item.title, onClick: _this.handleClick.bind(_this, i) },
4335
+ }), style: current === i ? selectedStyle : defaultStyle, key: i, onClick: _this.handleClick.bind(_this, i) },
4416
4336
  item.iconType ? (React__default["default"].createElement(AtBadge, { dot: !!item.dot, value: item.text, maxValue: Number(item.max) },
4417
4337
  React__default["default"].createElement(components.View, { className: 'at-tab-bar__icon' },
4418
- React__default["default"].createElement(components.Text, { className: classnames("" + (item.iconPrefixClass || 'at-icon'), (_a = {},
4419
- _a[(item.iconPrefixClass || 'at-icon') + "-" + item.selectedIconType] = current === i && item.selectedIconType,
4420
- _a[(item.iconPrefixClass || 'at-icon') + "-" + item.iconType] = !(current === i && item.selectedIconType),
4338
+ React__default["default"].createElement(components.Text, { className: classnames("".concat(item.iconPrefixClass || 'at-icon'), (_a = {},
4339
+ _a["".concat(item.iconPrefixClass || 'at-icon', "-").concat(item.selectedIconType)] = current === i && item.selectedIconType,
4340
+ _a["".concat(item.iconPrefixClass || 'at-icon', "-").concat(item.iconType)] = !(current === i && item.selectedIconType),
4421
4341
  _a)), style: {
4422
4342
  color: current === i ? selectedColor : color,
4423
- fontSize: iconSize ? iconSize + "px" : ''
4343
+ fontSize: iconSize ? "".concat(iconSize, "px") : ''
4424
4344
  } })))) : null,
4425
4345
  item.image ? (React__default["default"].createElement(AtBadge, { dot: !!item.dot, value: item.text, maxValue: Number(item.max) },
4426
4346
  React__default["default"].createElement(components.View, { className: 'at-tab-bar__icon' },
@@ -4447,17 +4367,17 @@ AtTabBar.defaultProps = {
4447
4367
  onClick: function () { }
4448
4368
  };
4449
4369
  AtTabBar.propTypes = {
4450
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4451
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4452
- fixed: PropTypes.bool,
4453
- backgroundColor: PropTypes.string,
4454
- current: PropTypes.number,
4455
- iconSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
4456
- fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
4457
- color: PropTypes.string,
4458
- selectedColor: PropTypes.string,
4459
- tabList: PropTypes.array,
4460
- onClick: PropTypes.func
4370
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4371
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4372
+ fixed: propTypes.bool,
4373
+ backgroundColor: propTypes.string,
4374
+ current: propTypes.number,
4375
+ iconSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
4376
+ fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
4377
+ color: propTypes.string,
4378
+ selectedColor: propTypes.string,
4379
+ tabList: propTypes.array,
4380
+ onClick: propTypes.func
4461
4381
  };
4462
4382
 
4463
4383
  var ENV$3 = Taro__default["default"].getEnv();
@@ -4476,7 +4396,7 @@ var AtTabs = /** @class */ (function (_super) {
4476
4396
  case Taro__default["default"].ENV_TYPE.SWAN: {
4477
4397
  var index = Math.max(idx - 1, 0);
4478
4398
  _this.setState({
4479
- _scrollIntoView: "tab" + _this._tabId + index
4399
+ _scrollIntoView: "tab".concat(_this._tabId).concat(index)
4480
4400
  });
4481
4401
  break;
4482
4402
  }
@@ -4524,8 +4444,6 @@ var AtTabs = /** @class */ (function (_super) {
4524
4444
  // 获取触摸时的原点
4525
4445
  this._touchDot = e.touches[0].pageX;
4526
4446
  // 使用js计时器记录时间
4527
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
4528
- // @ts-ignore
4529
4447
  this._timer = setInterval(function () {
4530
4448
  _this._interval++;
4531
4449
  }, 100);
@@ -4556,7 +4474,7 @@ var AtTabs = /** @class */ (function (_super) {
4556
4474
  var _a = this.props, swipeable = _a.swipeable, tabDirection = _a.tabDirection;
4557
4475
  if (!swipeable || tabDirection === 'vertical')
4558
4476
  return;
4559
- clearInterval(this._timer);
4477
+ this._timer && clearInterval(this._timer);
4560
4478
  this._interval = 0;
4561
4479
  this._isMoving = false;
4562
4480
  };
@@ -4587,13 +4505,13 @@ var AtTabs = /** @class */ (function (_super) {
4587
4505
  var _d = this.state, _scrollLeft = _d._scrollLeft, _scrollTop = _d._scrollTop, _scrollIntoView = _d._scrollIntoView;
4588
4506
  var heightStyle = { height: height };
4589
4507
  var underlineStyle = {
4590
- height: tabDirection === 'vertical' ? tabList.length * 100 + "%" : '1PX',
4591
- width: tabDirection === 'horizontal' ? tabList.length * 100 + "%" : '1PX'
4508
+ height: tabDirection === 'vertical' ? "".concat(tabList.length * 100, "%") : '1PX',
4509
+ width: tabDirection === 'horizontal' ? "".concat(tabList.length * 100, "%") : '1PX'
4592
4510
  };
4593
4511
  var bodyStyle = {};
4594
- var transformStyle = "translate3d(0px, -" + current * 100 + "%, 0px)";
4512
+ var transformStyle = "translate3d(0px, -".concat(current * 100, "%, 0px)");
4595
4513
  if (tabDirection === 'horizontal') {
4596
- transformStyle = "translate3d(-" + current * 100 + "%, 0px, 0px)";
4514
+ transformStyle = "translate3d(-".concat(current * 100, "%, 0px, 0px)");
4597
4515
  }
4598
4516
  Object.assign(bodyStyle, {
4599
4517
  transform: transformStyle,
@@ -4607,7 +4525,7 @@ var AtTabs = /** @class */ (function (_super) {
4607
4525
  'at-tabs__item': true,
4608
4526
  'at-tabs__item--active': current === idx
4609
4527
  });
4610
- return (React__default["default"].createElement(components.View, { className: itemCls, id: "tab" + _this._tabId + idx, key: "at-tabs-item-" + idx, onClick: _this.handleClick.bind(_this, idx) },
4528
+ return (React__default["default"].createElement(components.View, { className: itemCls, id: "tab".concat(_this._tabId).concat(idx), key: "at-tabs-item-".concat(idx), onClick: _this.handleClick.bind(_this, idx) },
4611
4529
  item.title,
4612
4530
  React__default["default"].createElement(components.View, { className: 'at-tabs__item-underline' })));
4613
4531
  });
@@ -4615,8 +4533,8 @@ var AtTabs = /** @class */ (function (_super) {
4615
4533
  'at-tabs': true,
4616
4534
  'at-tabs--scroll': scroll
4617
4535
  },
4618
- _a["at-tabs--" + tabDirection] = true,
4619
- _a["at-tabs--" + ENV$3] = true,
4536
+ _a["at-tabs--".concat(tabDirection)] = true,
4537
+ _a["at-tabs--".concat(ENV$3)] = true,
4620
4538
  _a), className);
4621
4539
  var scrollX = tabDirection === 'horizontal';
4622
4540
  var scrollY = tabDirection === 'vertical';
@@ -4642,16 +4560,16 @@ AtTabs.defaultProps = {
4642
4560
  onClick: function () { }
4643
4561
  };
4644
4562
  AtTabs.propTypes = {
4645
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4646
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4647
- height: PropTypes.string,
4648
- tabDirection: PropTypes.oneOf(['horizontal', 'vertical']),
4649
- current: PropTypes.number,
4650
- swipeable: PropTypes.bool,
4651
- scroll: PropTypes.bool,
4652
- animated: PropTypes.bool,
4653
- tabList: PropTypes.array,
4654
- onClick: PropTypes.func
4563
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4564
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4565
+ height: propTypes.string,
4566
+ tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
4567
+ current: propTypes.number,
4568
+ swipeable: propTypes.bool,
4569
+ scroll: propTypes.bool,
4570
+ animated: propTypes.bool,
4571
+ tabList: propTypes.array,
4572
+ onClick: propTypes.func
4655
4573
  };
4656
4574
 
4657
4575
  var AtTabsPane = /** @class */ (function (_super) {
@@ -4678,11 +4596,11 @@ AtTabsPane.defaultProps = {
4678
4596
  current: 0
4679
4597
  };
4680
4598
  AtTabsPane.propTypes = {
4681
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4682
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4683
- tabDirection: PropTypes.oneOf(['horizontal', 'vertical']),
4684
- index: PropTypes.number,
4685
- current: PropTypes.number
4599
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4600
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4601
+ tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
4602
+ index: propTypes.number,
4603
+ current: propTypes.number
4686
4604
  };
4687
4605
 
4688
4606
  var SIZE_CLASS = {
@@ -4712,8 +4630,8 @@ var AtTag = /** @class */ (function (_super) {
4712
4630
  var _b = this.props, _c = _b.size, size = _c === void 0 ? 'normal' : _c, _d = _b.type, type = _d === void 0 ? '' : _d, _e = _b.circle, circle = _e === void 0 ? false : _e, _f = _b.disabled, disabled = _f === void 0 ? false : _f, _g = _b.active, active = _g === void 0 ? false : _g, customStyle = _b.customStyle;
4713
4631
  var rootClassName = ['at-tag'];
4714
4632
  var classObject = (_a = {},
4715
- _a["at-tag--" + SIZE_CLASS[size]] = SIZE_CLASS[size],
4716
- _a["at-tag--" + type] = TYPE_CLASS[type],
4633
+ _a["at-tag--".concat(SIZE_CLASS[size])] = SIZE_CLASS[size],
4634
+ _a["at-tag--".concat(type)] = TYPE_CLASS[type],
4717
4635
  _a['at-tag--disabled'] = disabled,
4718
4636
  _a['at-tag--active'] = active,
4719
4637
  _a['at-tag--circle'] = circle,
@@ -4732,14 +4650,14 @@ AtTag.defaultProps = {
4732
4650
  customStyle: {}
4733
4651
  };
4734
4652
  AtTag.propTypes = {
4735
- size: PropTypes.oneOf(['normal', 'small']),
4736
- type: PropTypes.oneOf(['', 'primary']),
4737
- name: PropTypes.string,
4738
- circle: PropTypes.bool,
4739
- active: PropTypes.bool,
4740
- disabled: PropTypes.bool,
4741
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4742
- onClick: PropTypes.func
4653
+ size: propTypes.oneOf(['normal', 'small']),
4654
+ type: propTypes.oneOf(['', 'primary']),
4655
+ name: propTypes.string,
4656
+ circle: propTypes.bool,
4657
+ active: propTypes.bool,
4658
+ disabled: propTypes.bool,
4659
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4660
+ onClick: propTypes.func
4743
4661
  };
4744
4662
 
4745
4663
  function getMaxLength(maxLength, textOverflowForbidden) {
@@ -4774,8 +4692,8 @@ var AtTextarea = /** @class */ (function (_super) {
4774
4692
  var _a = this.props, customStyle = _a.customStyle, className = _a.className, value = _a.value, cursorSpacing = _a.cursorSpacing, placeholder = _a.placeholder, placeholderStyle = _a.placeholderStyle, placeholderClass = _a.placeholderClass, _b = _a.maxLength, maxLength = _b === void 0 ? 200 : _b, count = _a.count, disabled = _a.disabled, autoFocus = _a.autoFocus, focus = _a.focus, showConfirmBar = _a.showConfirmBar, selectionStart = _a.selectionStart, selectionEnd = _a.selectionEnd, fixed = _a.fixed, _c = _a.textOverflowForbidden, textOverflowForbidden = _c === void 0 ? true : _c, height = _a.height;
4775
4693
  var _maxLength = parseInt(maxLength.toString());
4776
4694
  var actualMaxLength = getMaxLength(_maxLength, textOverflowForbidden);
4777
- var textareaStyle = height ? "height:" + pxTransform(Number(height)) : '';
4778
- var rootCls = classnames('at-textarea', "at-textarea--" + ENV$2, {
4695
+ var textareaStyle = height ? "height:".concat(pxTransform(Number(height))) : '';
4696
+ var rootCls = classnames('at-textarea', "at-textarea--".concat(ENV$2), {
4779
4697
  'at-textarea--error': _maxLength < value.length
4780
4698
  }, className);
4781
4699
  var placeholderCls = classnames('placeholder', placeholderClass);
@@ -4809,29 +4727,29 @@ AtTextarea.defaultProps = {
4809
4727
  onChange: function () { }
4810
4728
  };
4811
4729
  AtTextarea.propTypes = {
4812
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
4813
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
4814
- value: PropTypes.string.isRequired,
4815
- cursorSpacing: PropTypes.number,
4816
- maxLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4817
- placeholderClass: PropTypes.string,
4818
- placeholderStyle: PropTypes.string,
4819
- placeholder: PropTypes.string,
4820
- disabled: PropTypes.bool,
4821
- autoFocus: PropTypes.bool,
4822
- focus: PropTypes.bool,
4823
- showConfirmBar: PropTypes.bool,
4824
- selectionStart: PropTypes.number,
4825
- selectionEnd: PropTypes.number,
4826
- count: PropTypes.bool,
4827
- textOverflowForbidden: PropTypes.bool,
4828
- fixed: PropTypes.bool,
4829
- height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4830
- onLinechange: PropTypes.func,
4831
- onChange: PropTypes.func.isRequired,
4832
- onFocus: PropTypes.func,
4833
- onBlur: PropTypes.func,
4834
- onConfirm: PropTypes.func
4730
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
4731
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
4732
+ value: propTypes.string.isRequired,
4733
+ cursorSpacing: propTypes.number,
4734
+ maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
4735
+ placeholderClass: propTypes.string,
4736
+ placeholderStyle: propTypes.string,
4737
+ placeholder: propTypes.string,
4738
+ disabled: propTypes.bool,
4739
+ autoFocus: propTypes.bool,
4740
+ focus: propTypes.bool,
4741
+ showConfirmBar: propTypes.bool,
4742
+ selectionStart: propTypes.number,
4743
+ selectionEnd: propTypes.number,
4744
+ count: propTypes.bool,
4745
+ textOverflowForbidden: propTypes.bool,
4746
+ fixed: propTypes.bool,
4747
+ height: propTypes.oneOfType([propTypes.string, propTypes.number]),
4748
+ onLinechange: propTypes.func,
4749
+ onChange: propTypes.func.isRequired,
4750
+ onFocus: propTypes.func,
4751
+ onBlur: propTypes.func,
4752
+ onConfirm: propTypes.func
4835
4753
  };
4836
4754
 
4837
4755
  var AtTimeline = /** @class */ (function (_super) {
@@ -4840,7 +4758,7 @@ var AtTimeline = /** @class */ (function (_super) {
4840
4758
  return _super !== null && _super.apply(this, arguments) || this;
4841
4759
  }
4842
4760
  AtTimeline.prototype.render = function () {
4843
- var _a = this.props, pending = _a.pending, items = _a.items, customStyle = _a.customStyle;
4761
+ var _a = this.props, pending = _a.pending, items = _a.items, customStyle = _a.customStyle, onClickItem = _a.onClickItem;
4844
4762
  var rootClassName = ['at-timeline'];
4845
4763
  if (pending)
4846
4764
  rootClassName.push('at-timeline--pending');
@@ -4853,11 +4771,11 @@ var AtTimeline = /** @class */ (function (_super) {
4853
4771
  var iconClass = classnames((_a = {
4854
4772
  'at-icon': true
4855
4773
  },
4856
- _a["at-icon-" + icon] = icon,
4774
+ _a["at-icon-".concat(icon)] = icon,
4857
4775
  _a));
4858
4776
  var itemRootClassName = ['at-timeline-item'];
4859
4777
  if (color)
4860
- itemRootClassName.push("at-timeline-item--" + color);
4778
+ itemRootClassName.push("at-timeline-item--".concat(color));
4861
4779
  var dotClass = [];
4862
4780
  if (icon) {
4863
4781
  dotClass.push('at-timeline-item__icon');
@@ -4865,7 +4783,10 @@ var AtTimeline = /** @class */ (function (_super) {
4865
4783
  else {
4866
4784
  dotClass.push('at-timeline-item__dot');
4867
4785
  }
4868
- return (React__default["default"].createElement(components.View, { className: classnames(itemRootClassName), key: "at-timeline-item-" + index },
4786
+ var handleItemClick = function (index, e) {
4787
+ onClickItem === null || onClickItem === void 0 ? void 0 : onClickItem(index, e);
4788
+ };
4789
+ return (React__default["default"].createElement(components.View, { className: classnames(itemRootClassName), key: "at-timeline-item-".concat(index), onClick: function (e) { return handleItemClick(index, e); } },
4869
4790
  React__default["default"].createElement(components.View, { className: 'at-timeline-item__tail' }),
4870
4791
  React__default["default"].createElement(components.View, { className: classnames(dotClass) }, icon && React__default["default"].createElement(components.Text, { className: iconClass })),
4871
4792
  React__default["default"].createElement(components.View, { className: 'at-timeline-item__content' },
@@ -4882,9 +4803,9 @@ AtTimeline.defaultProps = {
4882
4803
  customStyle: {}
4883
4804
  };
4884
4805
  AtTimeline.propTypes = {
4885
- pending: PropTypes.bool,
4886
- items: PropTypes.arrayOf(PropTypes.object),
4887
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string])
4806
+ pending: propTypes.bool,
4807
+ items: propTypes.arrayOf(propTypes.object),
4808
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string])
4888
4809
  };
4889
4810
 
4890
4811
  var error = "data:image/png;base64,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";
@@ -4931,8 +4852,6 @@ var AtToast = /** @class */ (function (_super) {
4931
4852
  if (duration === 0) {
4932
4853
  return;
4933
4854
  }
4934
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
4935
- // @ts-ignore
4936
4855
  this._timer = setTimeout(function () {
4937
4856
  _this.close();
4938
4857
  }, +duration);
@@ -4982,10 +4901,10 @@ var AtToast = /** @class */ (function (_super) {
4982
4901
  'at-toast__body--custom-image': image,
4983
4902
  'toast-body--text': !realImg && !icon
4984
4903
  },
4985
- _a["at-toast__body--" + status] = !!status,
4904
+ _a["at-toast__body--".concat(status)] = !!status,
4986
4905
  _a));
4987
4906
  var iconClass = classnames('at-icon', (_b = {},
4988
- _b["at-icon-" + icon] = icon,
4907
+ _b["at-icon-".concat(icon)] = icon,
4989
4908
  _b));
4990
4909
  return _isOpened ? (React__default["default"].createElement(components.View, { className: classnames('at-toast', this.props.className) },
4991
4910
  hasMask && React__default["default"].createElement(components.View, { className: 'at-toast__overlay' }),
@@ -5005,15 +4924,15 @@ AtToast.defaultProps = {
5005
4924
  isOpened: false
5006
4925
  };
5007
4926
  AtToast.propTypes = {
5008
- text: PropTypes.string,
5009
- icon: PropTypes.string,
5010
- hasMask: PropTypes.bool,
5011
- image: PropTypes.string,
5012
- isOpened: PropTypes.bool,
5013
- duration: PropTypes.number,
5014
- status: PropTypes.oneOf(['', 'error', 'loading', 'success']),
5015
- onClick: PropTypes.func,
5016
- onClose: PropTypes.func
4927
+ text: propTypes.string,
4928
+ icon: propTypes.string,
4929
+ hasMask: propTypes.bool,
4930
+ image: propTypes.string,
4931
+ isOpened: propTypes.bool,
4932
+ duration: propTypes.number,
4933
+ status: propTypes.oneOf(['', 'error', 'loading', 'success']),
4934
+ onClick: propTypes.func,
4935
+ onClose: propTypes.func
5017
4936
  };
5018
4937
 
5019
4938
  var AtAccordion = /** @class */ (function (_super) {
@@ -5029,6 +4948,7 @@ var AtAccordion = /** @class */ (function (_super) {
5029
4948
  _this.isCompleted = true;
5030
4949
  _this.startOpen = false;
5031
4950
  _this.state = {
4951
+ componentId: uuid(),
5032
4952
  wrapperHeight: 0
5033
4953
  };
5034
4954
  return _this;
@@ -5036,10 +4956,11 @@ var AtAccordion = /** @class */ (function (_super) {
5036
4956
  AtAccordion.prototype.toggleWithAnimation = function () {
5037
4957
  var _this = this;
5038
4958
  var _a = this.props, open = _a.open, isAnimation = _a.isAnimation;
4959
+ var componentId = this.state.componentId;
5039
4960
  if (!this.isCompleted || !isAnimation)
5040
4961
  return;
5041
4962
  this.isCompleted = false;
5042
- delayQuerySelector('.at-accordion__body', 0).then(function (rect) {
4963
+ delayQuerySelector("#at-accordion__body-".concat(componentId), 0).then(function (rect) {
5043
4964
  var height = parseInt(rect[0].height.toString());
5044
4965
  var startHeight = open ? height : 0;
5045
4966
  var endHeight = open ? 0 : height;
@@ -5074,7 +4995,7 @@ var AtAccordion = /** @class */ (function (_super) {
5074
4995
  var prefixClass = (icon && icon.prefixClass) || 'at-icon';
5075
4996
  var iconCls = classnames((_a = {},
5076
4997
  _a[prefixClass] = true,
5077
- _a[prefixClass + "-" + (icon && icon.value)] = icon && icon.value,
4998
+ _a["".concat(prefixClass, "-").concat(icon && icon.value)] = icon && icon.value,
5078
4999
  _a['at-accordion__icon'] = true,
5079
5000
  _a));
5080
5001
  var headerCls = classnames('at-accordion__header', {
@@ -5088,12 +5009,13 @@ var AtAccordion = /** @class */ (function (_super) {
5088
5009
  });
5089
5010
  var iconStyle = {
5090
5011
  color: (icon && icon.color) || '',
5091
- fontSize: (icon && icon.size + "px") || ''
5012
+ fontSize: (icon && "".concat(icon.size, "px")) || ''
5092
5013
  };
5093
- var contentStyle = { height: wrapperHeight + "px" };
5014
+ var contentStyle = { height: "".concat(wrapperHeight, "px") };
5094
5015
  if (this.isCompleted) {
5095
5016
  contentStyle.height = '';
5096
5017
  }
5018
+ var componentId = this.state.componentId;
5097
5019
  return (React__default["default"].createElement(components.View, { className: rootCls, style: customStyle },
5098
5020
  React__default["default"].createElement(components.View, { className: headerCls, onClick: this.handleClick },
5099
5021
  icon && icon.value && (React__default["default"].createElement(components.Text, { className: iconCls, style: iconStyle })),
@@ -5103,7 +5025,7 @@ var AtAccordion = /** @class */ (function (_super) {
5103
5025
  React__default["default"].createElement(components.View, { className: arrowCls },
5104
5026
  React__default["default"].createElement(components.Text, { className: 'at-icon at-icon-chevron-down' }))),
5105
5027
  React__default["default"].createElement(components.View, { style: contentStyle, className: contentCls },
5106
- React__default["default"].createElement(components.View, { className: 'at-accordion__body' }, this.props.children))));
5028
+ React__default["default"].createElement(components.View, { id: "at-accordion__body-".concat(componentId), className: 'at-accordion__body' }, this.props.children))));
5107
5029
  };
5108
5030
  return AtAccordion;
5109
5031
  }(React__default["default"].Component));
@@ -5118,15 +5040,15 @@ AtAccordion.defaultProps = {
5118
5040
  isAnimation: true
5119
5041
  };
5120
5042
  AtAccordion.propTypes = {
5121
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5122
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5123
- open: PropTypes.bool,
5124
- isAnimation: PropTypes.bool,
5125
- title: PropTypes.string,
5126
- note: PropTypes.string,
5127
- icon: PropTypes.object,
5128
- hasBorder: PropTypes.bool,
5129
- onClick: PropTypes.func
5043
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5044
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5045
+ open: propTypes.bool,
5046
+ isAnimation: propTypes.bool,
5047
+ title: propTypes.string,
5048
+ note: propTypes.string,
5049
+ icon: propTypes.object,
5050
+ hasBorder: propTypes.bool,
5051
+ onClick: propTypes.func
5130
5052
  };
5131
5053
 
5132
5054
  var AtSlider = /** @class */ (function (_super) {
@@ -5170,7 +5092,7 @@ var AtSlider = /** @class */ (function (_super) {
5170
5092
  }, className), style: customStyle },
5171
5093
  React__default["default"].createElement(components.View, { className: 'at-slider__inner' },
5172
5094
  React__default["default"].createElement(components.Slider, { min: min, max: max, step: step, value: _value, disabled: disabled, activeColor: activeColor, backgroundColor: backgroundColor, blockSize: blockSize, blockColor: blockColor, onChanging: this.handleChanging.bind(this), onChange: this.handleChange.bind(this) })),
5173
- showValue && React__default["default"].createElement(components.View, { className: 'at-slider__text' }, "" + _value)));
5095
+ showValue && React__default["default"].createElement(components.View, { className: 'at-slider__text' }, "".concat(_value))));
5174
5096
  };
5175
5097
  return AtSlider;
5176
5098
  }(React__default["default"].Component));
@@ -5189,20 +5111,20 @@ AtSlider.defaultProps = {
5189
5111
  showValue: false
5190
5112
  };
5191
5113
  AtSlider.propTypes = {
5192
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5193
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5194
- min: PropTypes.number,
5195
- max: PropTypes.number,
5196
- step: PropTypes.number,
5197
- value: PropTypes.number,
5198
- disabled: PropTypes.bool,
5199
- activeColor: PropTypes.string,
5200
- backgroundColor: PropTypes.string,
5201
- blockSize: PropTypes.number,
5202
- blockColor: PropTypes.string,
5203
- showValue: PropTypes.bool,
5204
- onChange: PropTypes.func,
5205
- onChanging: PropTypes.func
5114
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5115
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5116
+ min: propTypes.number,
5117
+ max: propTypes.number,
5118
+ step: propTypes.number,
5119
+ value: propTypes.number,
5120
+ disabled: propTypes.bool,
5121
+ activeColor: propTypes.string,
5122
+ backgroundColor: propTypes.string,
5123
+ blockSize: propTypes.number,
5124
+ blockColor: propTypes.string,
5125
+ showValue: propTypes.bool,
5126
+ onChange: propTypes.func,
5127
+ onChanging: propTypes.func
5206
5128
  };
5207
5129
 
5208
5130
  var AtSwipeActionOptions = /** @class */ (function (_super) {
@@ -5212,7 +5134,7 @@ var AtSwipeActionOptions = /** @class */ (function (_super) {
5212
5134
  }
5213
5135
  AtSwipeActionOptions.prototype.render = function () {
5214
5136
  var rootClass = classnames('at-swipe-action__options', this.props.className);
5215
- return (React__default["default"].createElement(components.View, { id: "swipeActionOptions-" + this.props.componentId, className: rootClass, style: this.props.customStyle }, this.props.children));
5137
+ return (React__default["default"].createElement(components.View, { id: "swipeActionOptions-".concat(this.props.componentId), className: rootClass, style: this.props.customStyle }, this.props.children));
5216
5138
  };
5217
5139
  return AtSwipeActionOptions;
5218
5140
  }(React__default["default"].Component));
@@ -5334,7 +5256,7 @@ var AtSwipeAction = /** @class */ (function (_super) {
5334
5256
  case 0:
5335
5257
  componentId = this.state.componentId;
5336
5258
  return [4 /*yield*/, delayGetClientRect({
5337
- selectorStr: "#swipeActionOptions-" + componentId
5259
+ selectorStr: "#swipeActionOptions-".concat(componentId)
5338
5260
  })];
5339
5261
  case 1:
5340
5262
  actionOptionsRect = _a.sent();
@@ -5380,19 +5302,19 @@ var AtSwipeAction = /** @class */ (function (_super) {
5380
5302
  var _a = this.state, componentId = _a.componentId, maxOffsetSize = _a.maxOffsetSize, eleWidth = _a.eleWidth, offsetSize = _a.offsetSize;
5381
5303
  var _b = this.props, options = _b.options, disabled = _b.disabled;
5382
5304
  var rootClass = classnames('at-swipe-action', this.props.className);
5383
- return (React__default["default"].createElement(components.View, { id: "swipeAction-" + componentId, className: rootClass, style: {
5384
- width: eleWidth + "px"
5305
+ return (React__default["default"].createElement(components.View, { id: "swipeAction-".concat(componentId), className: rootClass, style: {
5306
+ width: "".concat(eleWidth, "px")
5385
5307
  } },
5386
5308
  React__default["default"].createElement(components.MovableArea, { className: 'at-swipe-action__area', style: {
5387
- width: eleWidth + "px"
5309
+ width: "".concat(eleWidth, "px")
5388
5310
  } },
5389
5311
  React__default["default"].createElement(components.MovableView, { className: 'at-swipe-action__content', direction: 'horizontal', damping: 50, x: offsetSize, onTouchEnd: this.onTouchEnd, onChange: this.onChange, disabled: disabled, style: {
5390
- width: eleWidth + maxOffsetSize + "px"
5312
+ width: "".concat(eleWidth + maxOffsetSize, "px")
5391
5313
  } },
5392
5314
  this.props.children,
5393
5315
  Array.isArray(options) && options.length > 0 ? (React__default["default"].createElement(AtSwipeActionOptions, { options: options, componentId: componentId, customStyle: {
5394
5316
  opacity: maxOffsetSize ? 1 : 0
5395
- } }, options.map(function (item, key) { return (React__default["default"].createElement(components.View, { key: item.text + "-" + key, style: item.style, onClick: function (e) { return _this.handleClick(item, key, e); }, className: classnames('at-swipe-action__option', item.className) },
5317
+ } }, options.map(function (item, key) { return (React__default["default"].createElement(components.View, { key: "".concat(item.text, "-").concat(key), style: item.style, onClick: function (e) { return _this.handleClick(item, key, e); }, className: classnames('at-swipe-action__option', item.className) },
5396
5318
  React__default["default"].createElement(components.Text, { className: 'option__text' }, item.text))); }))) : null))));
5397
5319
  };
5398
5320
  return AtSwipeAction;
@@ -5406,21 +5328,21 @@ AtSwipeAction.defaultProps = {
5406
5328
  areaWidth: 0
5407
5329
  };
5408
5330
  AtSwipeAction.propTypes = {
5409
- isOpened: PropTypes.bool,
5410
- disabled: PropTypes.bool,
5411
- autoClose: PropTypes.bool,
5412
- options: PropTypes.arrayOf(PropTypes.shape({
5413
- text: PropTypes.string,
5414
- style: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5415
- className: PropTypes.oneOfType([
5416
- PropTypes.object,
5417
- PropTypes.string,
5418
- PropTypes.array
5331
+ isOpened: propTypes.bool,
5332
+ disabled: propTypes.bool,
5333
+ autoClose: propTypes.bool,
5334
+ options: propTypes.arrayOf(propTypes.shape({
5335
+ text: propTypes.string,
5336
+ style: propTypes.oneOfType([propTypes.object, propTypes.string]),
5337
+ className: propTypes.oneOfType([
5338
+ propTypes.object,
5339
+ propTypes.string,
5340
+ propTypes.array
5419
5341
  ])
5420
5342
  })),
5421
- onClick: PropTypes.func,
5422
- onOpened: PropTypes.func,
5423
- onClosed: PropTypes.func
5343
+ onClick: propTypes.func,
5344
+ onOpened: propTypes.func,
5345
+ onClosed: propTypes.func
5424
5346
  };
5425
5347
 
5426
5348
  var AtSearchBar = /** @class */ (function (_super) {
@@ -5484,7 +5406,7 @@ var AtSearchBar = /** @class */ (function (_super) {
5484
5406
  else if (!isFocus && !value) {
5485
5407
  placeholderWrapStyle.flexGrow = 1;
5486
5408
  actionStyle.opacity = 0;
5487
- actionStyle.marginRight = "-" + ((actionName.length + 1) * fontSize + fontSize / 2 + 10) + "px";
5409
+ actionStyle.marginRight = "-".concat((actionName.length + 1) * fontSize + fontSize / 2 + 10, "px");
5488
5410
  }
5489
5411
  if (showActionButton) {
5490
5412
  actionStyle.opacity = 1;
@@ -5501,7 +5423,9 @@ var AtSearchBar = /** @class */ (function (_super) {
5501
5423
  React__default["default"].createElement(components.View, { className: 'at-search-bar__placeholder-wrap', style: placeholderWrapStyle },
5502
5424
  React__default["default"].createElement(components.Text, { className: 'at-icon at-icon-search' }),
5503
5425
  React__default["default"].createElement(components.Text, { className: 'at-search-bar__placeholder', style: placeholderStyle }, isFocus ? '' : placeholder)),
5504
- React__default["default"].createElement(components.Input, { className: 'at-search-bar__input', type: inputType, confirmType: 'search', value: value, focus: isFocus, disabled: disabled, maxlength: maxLength, enableNative: enableNative, onInput: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onConfirm: this.handleConfirm }),
5426
+ React__default["default"].createElement(components.Input, { className: 'at-search-bar__input', type: inputType, confirmType: 'search', value: value, focus: isFocus, disabled: disabled, maxlength: maxLength,
5427
+ // @ts-ignore ci 上面这个检查不通过, 暂时跳过ts检查
5428
+ enableNative: enableNative, onInput: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onConfirm: this.handleConfirm }),
5505
5429
  React__default["default"].createElement(components.View, { className: 'at-search-bar__clear', style: clearIconStyle, onTouchStart: this.handleClear },
5506
5430
  React__default["default"].createElement(components.Text, { className: 'at-icon at-icon-close-circle' }))),
5507
5431
  React__default["default"].createElement(components.View, { className: 'at-search-bar__action', style: actionStyle, onClick: this.handleActionClick }, actionName)));
@@ -5523,22 +5447,22 @@ AtSearchBar.defaultProps = {
5523
5447
  enableNative: true
5524
5448
  };
5525
5449
  AtSearchBar.propTypes = {
5526
- value: PropTypes.string,
5527
- placeholder: PropTypes.string,
5528
- maxLength: PropTypes.number,
5529
- fixed: PropTypes.bool,
5530
- focus: PropTypes.bool,
5531
- disabled: PropTypes.bool,
5532
- showActionButton: PropTypes.bool,
5533
- actionName: PropTypes.string,
5534
- inputType: PropTypes.oneOf(['text', 'number', 'idcard', 'digit']),
5535
- onChange: PropTypes.func,
5536
- onFocus: PropTypes.func,
5537
- onBlur: PropTypes.func,
5538
- onConfirm: PropTypes.func,
5539
- onActionClick: PropTypes.func,
5540
- onClear: PropTypes.func,
5541
- enableNative: PropTypes.bool
5450
+ value: propTypes.string,
5451
+ placeholder: propTypes.string,
5452
+ maxLength: propTypes.number,
5453
+ fixed: propTypes.bool,
5454
+ focus: propTypes.bool,
5455
+ disabled: propTypes.bool,
5456
+ showActionButton: propTypes.bool,
5457
+ actionName: propTypes.string,
5458
+ inputType: propTypes.oneOf(['text', 'number', 'idcard', 'digit']),
5459
+ onChange: propTypes.func,
5460
+ onFocus: propTypes.func,
5461
+ onBlur: propTypes.func,
5462
+ onConfirm: propTypes.func,
5463
+ onActionClick: propTypes.func,
5464
+ onClear: propTypes.func,
5465
+ enableNative: propTypes.bool
5542
5466
  };
5543
5467
 
5544
5468
  var AtLoadMore = /** @class */ (function (_super) {
@@ -5577,15 +5501,15 @@ AtLoadMore.defaultProps = {
5577
5501
  noMoreText: '没有更多'
5578
5502
  };
5579
5503
  AtLoadMore.propTypes = {
5580
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5581
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5582
- noMoreTextStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5583
- moreBtnStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5584
- status: PropTypes.oneOf(['more', 'loading', 'noMore']),
5585
- loadingText: PropTypes.string,
5586
- moreText: PropTypes.string,
5587
- noMoreText: PropTypes.string,
5588
- onClick: PropTypes.func
5504
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5505
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5506
+ noMoreTextStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5507
+ moreBtnStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5508
+ status: propTypes.oneOf(['more', 'loading', 'noMore']),
5509
+ loadingText: propTypes.string,
5510
+ moreText: propTypes.string,
5511
+ noMoreText: propTypes.string,
5512
+ onClick: propTypes.func
5589
5513
  };
5590
5514
 
5591
5515
  var AtDivider = /** @class */ (function (_super) {
@@ -5596,11 +5520,11 @@ var AtDivider = /** @class */ (function (_super) {
5596
5520
  AtDivider.prototype.render = function () {
5597
5521
  var _a = this.props, className = _a.className, customStyle = _a.customStyle, content = _a.content, height = _a.height, fontColor = _a.fontColor, fontSize = _a.fontSize, lineColor = _a.lineColor;
5598
5522
  var rootStyle = {
5599
- height: height ? "" + pxTransform(Number(height)) : ''
5523
+ height: height ? "".concat(pxTransform(Number(height))) : ''
5600
5524
  };
5601
5525
  var fontStyle = {
5602
5526
  color: fontColor,
5603
- 'fontSize': fontSize ? "" + pxTransform(Number(fontSize)) : ''
5527
+ fontSize: fontSize ? "".concat(pxTransform(Number(fontSize))) : ''
5604
5528
  };
5605
5529
  var lineStyle = {
5606
5530
  backgroundColor: lineColor
@@ -5619,13 +5543,13 @@ AtDivider.defaultProps = {
5619
5543
  lineColor: ''
5620
5544
  };
5621
5545
  AtDivider.propTypes = {
5622
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5623
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5624
- content: PropTypes.string,
5625
- height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
5626
- fontColor: PropTypes.string,
5627
- fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
5628
- lineColor: PropTypes.string
5546
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5547
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5548
+ content: propTypes.string,
5549
+ height: propTypes.oneOfType([propTypes.number, propTypes.string]),
5550
+ fontColor: propTypes.string,
5551
+ fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
5552
+ lineColor: propTypes.string
5629
5553
  };
5630
5554
 
5631
5555
  var AtCountdownItem = /** @class */ (function (_super) {
@@ -5634,7 +5558,7 @@ var AtCountdownItem = /** @class */ (function (_super) {
5634
5558
  return _super !== null && _super.apply(this, arguments) || this;
5635
5559
  }
5636
5560
  AtCountdownItem.prototype.formatNum = function (num) {
5637
- return num <= 9 ? "0" + num : "" + num;
5561
+ return num <= 9 ? "0".concat(num) : "".concat(num);
5638
5562
  };
5639
5563
  AtCountdownItem.prototype.render = function () {
5640
5564
  var _a = this.props, num = _a.num, separator = _a.separator;
@@ -5650,8 +5574,8 @@ AtCountdownItem.defaultProps = {
5650
5574
  separator: ':'
5651
5575
  };
5652
5576
  AtCountdownItem.propTypes = {
5653
- num: PropTypes.number.isRequired,
5654
- separator: PropTypes.string
5577
+ num: propTypes.number.isRequired,
5578
+ separator: propTypes.string
5655
5579
  };
5656
5580
 
5657
5581
  var toSeconds = function (day, hours, minutes, seconds) { return day * 60 * 60 * 24 + hours * 60 * 60 + minutes * 60 + seconds; };
@@ -5677,6 +5601,7 @@ var AtCountdown = /** @class */ (function (_super) {
5677
5601
  AtCountdown.prototype.clearTimer = function () {
5678
5602
  if (this.timer) {
5679
5603
  clearTimeout(this.timer);
5604
+ this.timer = 0;
5680
5605
  }
5681
5606
  };
5682
5607
  AtCountdown.prototype.calculateTime = function () {
@@ -5720,7 +5645,7 @@ var AtCountdown = /** @class */ (function (_super) {
5720
5645
  AtCountdown.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
5721
5646
  if (JSON.stringify(this.props) === JSON.stringify(nextProps))
5722
5647
  return;
5723
- var day = nextProps.day, hours = nextProps.hours, minutes = nextProps.minutes, seconds = nextProps.seconds;
5648
+ var _a = nextProps.day, day = _a === void 0 ? 0 : _a, _b = nextProps.hours, hours = _b === void 0 ? 0 : _b, _c = nextProps.minutes, minutes = _c === void 0 ? 0 : _c, _d = nextProps.seconds, seconds = _d === void 0 ? 0 : _d;
5724
5649
  this.seconds = toSeconds(day, hours, minutes, seconds);
5725
5650
  this.clearTimer();
5726
5651
  this.setTimer();
@@ -5738,16 +5663,21 @@ var AtCountdown = /** @class */ (function (_super) {
5738
5663
  this.setTimer();
5739
5664
  };
5740
5665
  AtCountdown.prototype.render = function () {
5741
- var _a = this.props, className = _a.className, customStyle = _a.customStyle, format = _a.format, isShowDay = _a.isShowDay, isCard = _a.isCard, isShowHour = _a.isShowHour;
5742
- var _b = this.state, _day = _b._day, _hours = _b._hours, _minutes = _b._minutes, _seconds = _b._seconds;
5666
+ var _a = this.props, className = _a.className, customStyle = _a.customStyle, _b = _a.format, format = _b === void 0 ? {
5667
+ day: '天',
5668
+ hours: '时',
5669
+ minutes: '分',
5670
+ seconds: '秒'
5671
+ } : _b, isShowDay = _a.isShowDay, isCard = _a.isCard, isShowHour = _a.isShowHour;
5672
+ var _c = this.state, _day = _c._day, _hours = _c._hours, _minutes = _c._minutes, _seconds = _c._seconds;
5743
5673
  return (React__default["default"].createElement(components.View, { className: classnames({
5744
5674
  'at-countdown': true,
5745
5675
  'at-countdown--card': isCard
5746
5676
  }, className), style: customStyle },
5747
- isShowDay && React__default["default"].createElement(AtCountdownItem, { num: _day, separator: format.day }),
5748
- isShowHour && (React__default["default"].createElement(AtCountdownItem, { num: _hours, separator: format.hours })),
5749
- React__default["default"].createElement(AtCountdownItem, { num: _minutes, separator: format.minutes }),
5750
- React__default["default"].createElement(AtCountdownItem, { num: _seconds, separator: format.seconds })));
5677
+ isShowDay && (React__default["default"].createElement(AtCountdownItem, { num: _day, separator: (format === null || format === void 0 ? void 0 : format.day) || '天' })),
5678
+ isShowHour && (React__default["default"].createElement(AtCountdownItem, { num: _hours, separator: (format === null || format === void 0 ? void 0 : format.hours) || '' })),
5679
+ React__default["default"].createElement(AtCountdownItem, { num: _minutes, separator: (format === null || format === void 0 ? void 0 : format.minutes) || '' }),
5680
+ React__default["default"].createElement(AtCountdownItem, { num: _seconds, separator: (format === null || format === void 0 ? void 0 : format.seconds) || '' })));
5751
5681
  };
5752
5682
  return AtCountdown;
5753
5683
  }(React__default["default"].Component));
@@ -5769,17 +5699,17 @@ AtCountdown.defaultProps = {
5769
5699
  seconds: 0
5770
5700
  };
5771
5701
  AtCountdown.propTypes = {
5772
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5773
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5774
- isCard: PropTypes.bool,
5775
- isShowDay: PropTypes.bool,
5776
- isShowHour: PropTypes.bool,
5777
- format: PropTypes.object,
5778
- day: PropTypes.number,
5779
- hours: PropTypes.number,
5780
- minutes: PropTypes.number,
5781
- seconds: PropTypes.number,
5782
- onTimeUp: PropTypes.func
5702
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5703
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5704
+ isCard: propTypes.bool,
5705
+ isShowDay: propTypes.bool,
5706
+ isShowHour: propTypes.bool,
5707
+ format: propTypes.object,
5708
+ day: propTypes.number,
5709
+ hours: propTypes.number,
5710
+ minutes: propTypes.number,
5711
+ seconds: propTypes.number,
5712
+ onTimeUp: propTypes.func
5783
5713
  };
5784
5714
 
5785
5715
  var AtSteps = /** @class */ (function (_super) {
@@ -5811,7 +5741,7 @@ var AtSteps = /** @class */ (function (_super) {
5811
5741
  'at-steps__single-icon--success': item.status === 'success',
5812
5742
  'at-steps__single-icon--error': item.status === 'error'
5813
5743
  }) })) : (React__default["default"].createElement(components.View, { className: 'at-steps__circular' }, item.icon ? (React__default["default"].createElement(components.Text, { className: classnames('at-icon', (_a = {},
5814
- _a["at-icon-" + item.icon.value] = item.icon.value,
5744
+ _a["at-icon-".concat(item.icon.value)] = item.icon.value,
5815
5745
  _a['at-steps__circle-icon'] = true,
5816
5746
  _a)) })) : (React__default["default"].createElement(components.Text, { className: 'at-steps__num' }, i + 1)))),
5817
5747
  i !== items.length - 1 && (React__default["default"].createElement(components.View, { className: 'at-steps__right-line' }))),
@@ -5830,11 +5760,11 @@ AtSteps.defaultProps = {
5830
5760
  onChange: function () { }
5831
5761
  };
5832
5762
  AtSteps.propTypes = {
5833
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5834
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5835
- current: PropTypes.number,
5836
- items: PropTypes.array,
5837
- onChange: PropTypes.func
5763
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5764
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5765
+ current: propTypes.number,
5766
+ items: propTypes.array,
5767
+ onChange: propTypes.func
5838
5768
  };
5839
5769
 
5840
5770
  var AtCurtain = /** @class */ (function (_super) {
@@ -5859,7 +5789,7 @@ var AtCurtain = /** @class */ (function (_super) {
5859
5789
  var btnCloseClass = classnames((_a = {
5860
5790
  'at-curtain__btn-close': true
5861
5791
  },
5862
- _a["at-curtain__btn-close--" + closeBtnPosition] = closeBtnPosition,
5792
+ _a["at-curtain__btn-close--".concat(closeBtnPosition)] = closeBtnPosition,
5863
5793
  _a));
5864
5794
  return (React__default["default"].createElement(components.View, { className: curtainClass, style: customStyle, onClick: this._stopPropagation },
5865
5795
  React__default["default"].createElement(components.View, { className: 'at-curtain__container' },
@@ -5878,11 +5808,11 @@ AtCurtain.defaultProps = {
5878
5808
  onClose: function () { }
5879
5809
  };
5880
5810
  AtCurtain.propTypes = {
5881
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5882
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
5883
- isOpened: PropTypes.bool,
5884
- closeBtnPosition: PropTypes.string,
5885
- onClose: PropTypes.func
5811
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5812
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
5813
+ isOpened: propTypes.bool,
5814
+ closeBtnPosition: propTypes.string,
5815
+ onClose: propTypes.func
5886
5816
  };
5887
5817
 
5888
5818
  var AtMessage = /** @class */ (function (_super) {
@@ -5940,7 +5870,7 @@ var AtMessage = /** @class */ (function (_super) {
5940
5870
  'at-message': true,
5941
5871
  'at-message--show': _isOpened,
5942
5872
  'at-message--hidden': !_isOpened
5943
- }, "at-message--" + _type, className);
5873
+ }, "at-message--".concat(_type), className);
5944
5874
  return (React__default["default"].createElement(components.View, { className: rootCls, style: customStyle }, _message));
5945
5875
  };
5946
5876
  return AtMessage;
@@ -5950,8 +5880,8 @@ AtMessage.defaultProps = {
5950
5880
  className: ''
5951
5881
  };
5952
5882
  AtMessage.propTypes = {
5953
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
5954
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
5883
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
5884
+ className: propTypes.oneOfType([propTypes.array, propTypes.string])
5955
5885
  };
5956
5886
 
5957
5887
  // 生成 jsx 二维矩阵
@@ -6043,9 +5973,10 @@ var AtImagePicker = /** @class */ (function (_super) {
6043
5973
  return item.url ? (React__default["default"].createElement(components.View, { className: 'at-image-picker__flex-item', key: i * length + j },
6044
5974
  React__default["default"].createElement(components.View, { className: 'at-image-picker__item' },
6045
5975
  React__default["default"].createElement(components.View, { className: 'at-image-picker__remove-btn', onClick: _this.handleRemoveImg.bind(_this, i * length + j) }),
6046
- React__default["default"].createElement(components.Image, { className: 'at-image-picker__preview-img', mode: mode, src: item.url, onClick: _this.handleImageClick.bind(_this, i * length + j) })))) : (React__default["default"].createElement(components.View, { className: 'at-image-picker__flex-item', key: 'empty_' + i * length + j }, item.type === 'btn' && (React__default["default"].createElement(components.View, { className: 'at-image-picker__item at-image-picker__choose-btn', onClick: _this.chooseFile },
6047
- React__default["default"].createElement(components.View, { className: 'add-bar' }),
6048
- React__default["default"].createElement(components.View, { className: 'add-bar' })))));
5976
+ React__default["default"].createElement(components.Image, { className: 'at-image-picker__preview-img', mode: mode, src: item.url, onClick: _this.handleImageClick.bind(_this, i * length + j) })))) : (React__default["default"].createElement(components.View, { className: 'at-image-picker__flex-item', key: "empty_".concat(i * length).concat(j) }, item.type === 'btn' && (React__default["default"].createElement(components.View, { onClick: _this.chooseFile }, _this.props.children
5977
+ || React__default["default"].createElement(components.View, { className: 'at-image-picker__item at-image-picker__choose-btn' },
5978
+ React__default["default"].createElement(components.View, { className: 'add-bar' }),
5979
+ React__default["default"].createElement(components.View, { className: 'add-bar' }))))));
6049
5980
  }))); })));
6050
5981
  };
6051
5982
  return AtImagePicker;
@@ -6062,10 +5993,10 @@ AtImagePicker.defaultProps = {
6062
5993
  onChange: function () { }
6063
5994
  };
6064
5995
  AtImagePicker.propTypes = {
6065
- className: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
6066
- customStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
6067
- files: PropTypes.array,
6068
- mode: PropTypes.oneOf([
5996
+ className: propTypes.oneOfType([propTypes.string, propTypes.array]),
5997
+ customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
5998
+ files: propTypes.array,
5999
+ mode: propTypes.oneOf([
6069
6000
  'scaleToFill',
6070
6001
  'aspectFit',
6071
6002
  'aspectFill',
@@ -6080,15 +6011,15 @@ AtImagePicker.propTypes = {
6080
6011
  'bottom left',
6081
6012
  'bottom right'
6082
6013
  ]),
6083
- showAddBtn: PropTypes.bool,
6084
- multiple: PropTypes.bool,
6085
- length: PropTypes.number,
6086
- onChange: PropTypes.func,
6087
- onImageClick: PropTypes.func,
6088
- onFail: PropTypes.func,
6089
- count: PropTypes.number,
6090
- sizeType: PropTypes.array,
6091
- sourceType: PropTypes.array
6014
+ showAddBtn: propTypes.bool,
6015
+ multiple: propTypes.bool,
6016
+ length: propTypes.number,
6017
+ onChange: propTypes.func,
6018
+ onImageClick: propTypes.func,
6019
+ onFail: propTypes.func,
6020
+ count: propTypes.number,
6021
+ sizeType: propTypes.array,
6022
+ sourceType: propTypes.array
6092
6023
  };
6093
6024
 
6094
6025
  var AtRange = /** @class */ (function (_super) {
@@ -6173,39 +6104,40 @@ var AtRange = /** @class */ (function (_super) {
6173
6104
  });
6174
6105
  };
6175
6106
  AtRange.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
6176
- var value = nextProps.value;
6107
+ var _a, _b;
6108
+ var _c = nextProps.value, value = _c === void 0 ? [] : _c;
6177
6109
  this.updatePos();
6178
- if (this.props.value[0] !== value[0] ||
6179
- this.props.value[1] !== value[1]) {
6110
+ if (((_a = this.props.value) === null || _a === void 0 ? void 0 : _a[0]) !== (value === null || value === void 0 ? void 0 : value[0]) ||
6111
+ ((_b = this.props.value) === null || _b === void 0 ? void 0 : _b[1]) !== (value === null || value === void 0 ? void 0 : value[1])) {
6180
6112
  this.setValue(value);
6181
6113
  }
6182
6114
  };
6183
6115
  AtRange.prototype.componentDidMount = function () {
6184
- var value = this.props.value;
6116
+ var _a = this.props.value, value = _a === void 0 ? [] : _a;
6185
6117
  this.updatePos();
6186
6118
  this.setValue(value);
6187
6119
  };
6188
6120
  AtRange.prototype.render = function () {
6189
- var _a = this.props, className = _a.className, customStyle = _a.customStyle, sliderStyle = _a.sliderStyle, railStyle = _a.railStyle, trackStyle = _a.trackStyle, blockSize = _a.blockSize, disabled = _a.disabled;
6121
+ var _a = this.props, className = _a.className, customStyle = _a.customStyle, _b = _a.sliderStyle, sliderStyle = _b === void 0 ? {} : _b, _c = _a.railStyle, railStyle = _c === void 0 ? {} : _c, _d = _a.trackStyle, trackStyle = _d === void 0 ? {} : _d, blockSize = _a.blockSize, disabled = _a.disabled;
6190
6122
  var rootCls = classnames('at-range', {
6191
6123
  'at-range--disabled': disabled
6192
6124
  }, className);
6193
- var _b = this.state, aX = _b.aX, bX = _b.bX;
6125
+ var _e = this.state, aX = _e.aX, bX = _e.bX;
6194
6126
  var sliderCommonStyle = {
6195
- width: blockSize ? blockSize + "PX" : '',
6196
- height: blockSize ? blockSize + "PX" : '',
6197
- marginLeft: blockSize ? -blockSize / 2 + "PX" : ''
6127
+ width: blockSize ? "".concat(blockSize, "PX") : '',
6128
+ height: blockSize ? "".concat(blockSize, "PX") : '',
6129
+ marginLeft: blockSize ? "".concat(-blockSize / 2, "PX") : ''
6198
6130
  };
6199
- var sliderAStyle = __assign(__assign({}, sliderCommonStyle), { left: aX + "%" });
6200
- var sliderBStyle = __assign(__assign({}, sliderCommonStyle), { left: bX + "%" });
6131
+ var sliderAStyle = __assign(__assign({}, sliderCommonStyle), { left: "".concat(aX, "%") });
6132
+ var sliderBStyle = __assign(__assign({}, sliderCommonStyle), { left: "".concat(bX, "%") });
6201
6133
  var containerStyle = {
6202
- height: blockSize ? blockSize + "PX" : ''
6134
+ height: blockSize ? "".concat(blockSize, "PX") : ''
6203
6135
  };
6204
6136
  var smallerX = Math.min(aX, bX);
6205
6137
  var deltaX = Math.abs(aX - bX);
6206
6138
  var atTrackStyle = {
6207
- left: smallerX + "%",
6208
- width: deltaX + "%"
6139
+ left: "".concat(smallerX, "%"),
6140
+ width: "".concat(deltaX, "%")
6209
6141
  };
6210
6142
  return (React__default["default"].createElement(components.View, { className: rootCls, style: customStyle, onClick: this.handleClick },
6211
6143
  React__default["default"].createElement(components.View, { className: 'at-range__container', style: containerStyle },
@@ -6229,18 +6161,18 @@ AtRange.defaultProps = {
6229
6161
  blockSize: 0
6230
6162
  };
6231
6163
  AtRange.propTypes = {
6232
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6233
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
6234
- sliderStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6235
- railStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6236
- trackStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6237
- value: PropTypes.array,
6238
- min: PropTypes.number,
6239
- max: PropTypes.number,
6240
- disabled: PropTypes.bool,
6241
- blockSize: PropTypes.number,
6242
- onChange: PropTypes.func,
6243
- onAfterChange: PropTypes.func
6164
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6165
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
6166
+ sliderStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6167
+ railStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6168
+ trackStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6169
+ value: propTypes.array,
6170
+ min: propTypes.number,
6171
+ max: propTypes.number,
6172
+ disabled: propTypes.bool,
6173
+ blockSize: propTypes.number,
6174
+ onChange: propTypes.func,
6175
+ onAfterChange: propTypes.func
6244
6176
  };
6245
6177
 
6246
6178
  var ENV = Taro__default["default"].getEnv();
@@ -6260,7 +6192,7 @@ var AtIndexes = /** @class */ (function (_super) {
6260
6192
  if (index >= 0 && index <= list.length && _this.currentIndex !== index) {
6261
6193
  _this.currentIndex = index;
6262
6194
  var key = index > 0 ? list[index - 1].key : 'top';
6263
- var touchView = "at-indexes__list-" + key;
6195
+ var touchView = "at-indexes__list-".concat(key);
6264
6196
  _this.jumpTarget(touchView, index);
6265
6197
  }
6266
6198
  };
@@ -6282,7 +6214,7 @@ var AtIndexes = /** @class */ (function (_super) {
6282
6214
  _this.itemHeight = 0;
6283
6215
  // 当前索引
6284
6216
  _this.currentIndex = -1;
6285
- _this.listId = isTest() ? 'indexes-list-AOTU2018' : "list-" + uuid();
6217
+ _this.listId = isTest() ? 'indexes-list-AOTU2018' : "list-".concat(uuid());
6286
6218
  return _this;
6287
6219
  }
6288
6220
  AtIndexes.prototype.jumpTarget = function (_scrollIntoView, idx) {
@@ -6310,7 +6242,7 @@ var AtIndexes = /** @class */ (function (_super) {
6310
6242
  var list = this.props.list;
6311
6243
  // const index = _findIndex(list, ['key', key])
6312
6244
  var index = list.findIndex(function (item) { return item.key === key; });
6313
- var targetView = "at-indexes__list-" + key;
6245
+ var targetView = "at-indexes__list-".concat(key);
6314
6246
  this.jumpTarget(targetView, index + 1);
6315
6247
  };
6316
6248
  AtIndexes.prototype.updateState = function (state) {
@@ -6378,10 +6310,10 @@ var AtIndexes = /** @class */ (function (_super) {
6378
6310
  var rootCls = classnames('at-indexes', className);
6379
6311
  var menuList = list.map(function (dataList, i) {
6380
6312
  var key = dataList.key;
6381
- var targetView = "at-indexes__list-" + key;
6313
+ var targetView = "at-indexes__list-".concat(key);
6382
6314
  return (React__default["default"].createElement(components.View, { className: 'at-indexes__menu-item', key: key, onClick: _this.jumpTarget.bind(_this, targetView, i + 1) }, key));
6383
6315
  });
6384
- var indexesList = list.map(function (dataList) { return (React__default["default"].createElement(components.View, { id: "at-indexes__list-" + dataList.key, className: 'at-indexes__list', key: dataList.key },
6316
+ var indexesList = list.map(function (dataList) { return (React__default["default"].createElement(components.View, { id: "at-indexes__list-".concat(dataList.key), className: 'at-indexes__list', key: dataList.key },
6385
6317
  React__default["default"].createElement(components.View, { className: 'at-indexes__list-title' }, dataList.title),
6386
6318
  React__default["default"].createElement(AtList, null, dataList.items &&
6387
6319
  dataList.items.map(function (item) { return (React__default["default"].createElement(AtListItem, { key: item.name, title: item.name, onClick: _this.handleClick.bind(_this, item) })); })))); });
@@ -6399,15 +6331,15 @@ var AtIndexes = /** @class */ (function (_super) {
6399
6331
  return AtIndexes;
6400
6332
  }(React__default["default"].Component));
6401
6333
  AtIndexes.propTypes = {
6402
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
6403
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
6404
- animation: PropTypes.bool,
6405
- isVibrate: PropTypes.bool,
6406
- isShowToast: PropTypes.bool,
6407
- topKey: PropTypes.string,
6408
- list: PropTypes.array,
6409
- onClick: PropTypes.func,
6410
- onScrollIntoView: PropTypes.func
6334
+ customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
6335
+ className: propTypes.oneOfType([propTypes.array, propTypes.string]),
6336
+ animation: propTypes.bool,
6337
+ isVibrate: propTypes.bool,
6338
+ isShowToast: propTypes.bool,
6339
+ topKey: propTypes.string,
6340
+ list: propTypes.array,
6341
+ onClick: propTypes.func,
6342
+ onScrollIntoView: propTypes.func
6411
6343
  };
6412
6344
  AtIndexes.defaultProps = {
6413
6345
  customStyle: '',
@@ -6420,7 +6352,7 @@ AtIndexes.defaultProps = {
6420
6352
  };
6421
6353
 
6422
6354
  var dayjs_min = createCommonjsModule(function (module, exports) {
6423
- !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}));
6355
+ !function(t,e){module.exports=e();}(commonjsGlobal,function(){var t="millisecond",e="second",n="minute",r="hour",s="day",i="week",a="month",u="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,o=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},d=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},f={padStart:d,padZoneStr:function(t){var e=Math.abs(t),n=Math.floor(e/60),r=e%60;return (t<=0?"+":"-")+d(n,2,"0")+":"+d(r,2,"0")},monthDiff:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months"),s=e-r<0,i=t.clone().add(n+(s?-1:1),"months");return Number(-(n+(e-r)/(s?r-i:i-r)))},absFloor:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},prettyUnit:function(c){return {M:a,y:u,w:i,d:s,h:r,m:n,s:e,ms:t}[c]||String(c||"").toLowerCase().replace(/s$/,"")},isUndefined:function(t){return void 0===t}},$="en",l={};l[$]=h;var m=function(t){return t instanceof D},y=function(t,e,n){var r;if(!t)return null;if("string"==typeof t)l[t]&&(r=t),e&&(l[t]=e,r=t);else {var s=t.name;l[s]=t,r=s;}return n||($=r),r},M=function(t,e){if(m(t))return t.clone();var n=e||{};return n.date=t,new D(n)},S=function(t,e){return M(t,{locale:e.$L})},p=f;p.parseLocale=y,p.isDayjs=m,p.wrapper=S;var D=function(){function h(t){this.parse(t);}var d=h.prototype;return d.parse=function(t){var e,n;this.$d=null===(e=t.date)?new Date(NaN):p.isUndefined(e)?new Date:e instanceof Date?e:"string"==typeof e&&/.*[^Z]$/i.test(e)&&(n=e.match(c))?new Date(n[1],n[2]-1,n[3]||1,n[5]||0,n[6]||0,n[7]||0,n[8]||0):new Date(e),this.init(t);},d.init=function(t){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds(),this.$L=this.$L||y(t.locale,null,!0)||$;},d.$utils=function(){return p},d.isValid=function(){return !("Invalid Date"===this.$d.toString())},d.$compare=function(t){return this.valueOf()-M(t).valueOf()},d.isSame=function(t){return 0===this.$compare(t)},d.isBefore=function(t){return this.$compare(t)<0},d.isAfter=function(t){return this.$compare(t)>0},d.year=function(){return this.$y},d.month=function(){return this.$M},d.day=function(){return this.$W},d.date=function(){return this.$D},d.hour=function(){return this.$H},d.minute=function(){return this.$m},d.second=function(){return this.$s},d.millisecond=function(){return this.$ms},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,c){var o=this,h=!!p.isUndefined(c)||c,d=function(t,e){var n=S(new Date(o.$y,e,t),o);return h?n:n.endOf(s)},f=function(t,e){return S(o.toDate()[t].apply(o.toDate(),h?[0,0,0,0].slice(e):[23,59,59,999].slice(e)),o)};switch(p.prettyUnit(t)){case u:return h?d(1,0):d(31,11);case a:return h?d(1,this.$M):d(0,this.$M+1);case i:return d(h?this.$D-this.$W:this.$D+(6-this.$W),this.$M);case s:case"date":return f("setHours",0);case r:return f("setMinutes",1);case n:return f("setSeconds",2);case e:return f("setMilliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(i,c){switch(p.prettyUnit(i)){case s:this.$d.setDate(this.$D+(c-this.$W));break;case"date":this.$d.setDate(c);break;case a:this.$d.setMonth(c);break;case u:this.$d.setFullYear(c);break;case r:this.$d.setHours(c);break;case n:this.$d.setMinutes(c);break;case e:this.$d.setSeconds(c);break;case t:this.$d.setMilliseconds(c);}return this.init(),this},d.set=function(t,e){return this.clone().$set(t,e)},d.add=function(t,c){var o=this;t=Number(t);var h,d=p.prettyUnit(c),f=function(e,n){var r=o.set("date",1).set(e,n+t);return r.set("date",Math.min(o.$D,r.daysInMonth()))},$=function(e){var n=new Date(o.$d);return n.setDate(n.getDate()+e*t),S(n,o)};if(d===a)return f(a,this.$M);if(d===u)return f(u,this.$y);if(d===s)return $(1);if(d===i)return $(7);switch(d){case n:h=6e4;break;case r:h=36e5;break;case e:h=1e3;break;default:h=1;}var l=this.valueOf()+t*h;return S(l,this)},d.subtract=function(t,e){return this.add(-1*t,e)},d.format=function(t){var e=this,n=t||"YYYY-MM-DDTHH:mm:ssZ",r=p.padZoneStr(this.$d.getTimezoneOffset()),s=this.$locale(),i=s.weekdays,a=s.months,u=function(t,e,n,r){return t&&t[e]||n[e].substr(0,r)};return n.replace(o,function(t){if(t.indexOf("[")>-1)return t.replace(/\[|\]/g,"");switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return String(e.$y);case"M":return String(e.$M+1);case"MM":return p.padStart(e.$M+1,2,"0");case"MMM":return u(s.monthsShort,e.$M,a,3);case"MMMM":return a[e.$M];case"D":return String(e.$D);case"DD":return p.padStart(e.$D,2,"0");case"d":return String(e.$W);case"dd":return u(s.weekdaysMin,e.$W,i,2);case"ddd":return u(s.weekdaysShort,e.$W,i,3);case"dddd":return i[e.$W];case"H":return String(e.$H);case"HH":return p.padStart(e.$H,2,"0");case"h":case"hh":return 0===e.$H?12:p.padStart(e.$H<13?e.$H:e.$H-12,"hh"===t?2:1,"0");case"a":return e.$H<12?"am":"pm";case"A":return e.$H<12?"AM":"PM";case"m":return String(e.$m);case"mm":return p.padStart(e.$m,2,"0");case"s":return String(e.$s);case"ss":return p.padStart(e.$s,2,"0");case"SSS":return p.padStart(e.$ms,3,"0");case"Z":return r;default:return r.replace(":","")}})},d.diff=function(t,c,o){var h=p.prettyUnit(c),d=M(t),f=this-d,$=p.monthDiff(this,d);switch(h){case u:$/=12;break;case a:break;case"quarter":$/=3;break;case i:$=f/6048e5;break;case s:$=f/864e5;break;case r:$=f/36e5;break;case n:$=f/6e4;break;case e:$=f/1e3;break;default:$=f;}return o?$:p.absFloor($)},d.daysInMonth=function(){return this.endOf(a).$D},d.$locale=function(){return l[this.$L]},d.locale=function(t,e){var n=this.clone();return n.$L=y(t,e,!0),n},d.clone=function(){return S(this.toDate(),this)},d.toDate=function(){return new Date(this.$d)},d.toArray=function(){return [this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},d.toJSON=function(){return this.toISOString()},d.toISOString=function(){return this.toDate().toISOString()},d.toObject=function(){return {years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},d.toString=function(){return this.$d.toUTCString()},h}();return M.extend=function(t,e){return t(e,D,M),M},M.locale=y,M.isDayjs=m,M.unix=function(t){return M(1e3*t)},M.en=l[$],M});
6424
6356
  });
6425
6357
 
6426
6358
  /** Built-in value references. */
@@ -7758,7 +7690,8 @@ function handleActive(args, item) {
7758
7690
  var dayjsEnd = dayjs_min(end);
7759
7691
  var dayjsStart = start ? dayjs_min(start) : dayjsEnd;
7760
7692
  item.isSelected =
7761
- (_value === null || _value === void 0 ? void 0 : _value.isSame(dayjsEnd)) || (_value === null || _value === void 0 ? void 0 : _value.isSame(dayjsStart)) ||
7693
+ (_value === null || _value === void 0 ? void 0 : _value.isSame(dayjsEnd)) ||
7694
+ (_value === null || _value === void 0 ? void 0 : _value.isSame(dayjsStart)) ||
7762
7695
  ((_value === null || _value === void 0 ? void 0 : _value.isAfter(dayjsStart)) && (_value === null || _value === void 0 ? void 0 : _value.isBefore(dayjsEnd)));
7763
7696
  item.isSelectedHead = _value === null || _value === void 0 ? void 0 : _value.isSame(dayjsStart);
7764
7697
  item.isSelectedTail = _value === null || _value === void 0 ? void 0 : _value.isSame(dayjsEnd);
@@ -7770,7 +7703,7 @@ function handleMarks(args, item) {
7770
7703
  var _value = item._value;
7771
7704
  var marks = options.marks;
7772
7705
  var markList = marks.filter(function (mark) {
7773
- return dayjs_min(mark.value).startOf('day').isSame(_value);
7706
+ return _value ? dayjs_min(mark.value).startOf('day').isSame(_value) : false;
7774
7707
  });
7775
7708
  item.marks = markList.slice(0, 1);
7776
7709
  return item;
@@ -7814,7 +7747,7 @@ function handleValid(args, item) {
7814
7747
  var validDates = options.validDates;
7815
7748
  if (!isEmpty_1(validDates)) {
7816
7749
  var isInclude = validDates.some(function (date) {
7817
- return dayjs_min(date.value).startOf('day').isSame(_value);
7750
+ return _value ? dayjs_min(date.value).startOf('day').isSame(_value) : false;
7818
7751
  });
7819
7752
  item.isDisabled = !isInclude;
7820
7753
  }
@@ -7826,9 +7759,11 @@ var plugins = [handleActive, handleMarks, handleDisabled, handleValid];
7826
7759
  var TOTAL = 7 * 6;
7827
7760
  function getFullItem(item, options, selectedDate, isShowStatus) {
7828
7761
  if (options.marks.find(function (x) { return x.value === item.value; })) {
7829
- item.marks = [{
7762
+ item.marks = [
7763
+ {
7830
7764
  value: item.value
7831
- }];
7765
+ }
7766
+ ];
7832
7767
  }
7833
7768
  if (!isShowStatus)
7834
7769
  return item;
@@ -7926,7 +7861,7 @@ var AtCalendarList = /** @class */ (function (_super) {
7926
7861
  var list = this.props.list;
7927
7862
  if (!list || list.length === 0)
7928
7863
  return null;
7929
- return (React__default["default"].createElement(components.View, { className: 'at-calendar__list flex' }, list.map(function (item) { return (React__default["default"].createElement(components.View, { key: "list-item-" + item.value, onClick: _this.handleClick.bind(_this, item), onLongPress: _this.handleLongClick.bind(_this, item), className: classnames('flex__item', "flex__item--" + MAP[item.type], {
7864
+ return (React__default["default"].createElement(components.View, { className: 'at-calendar__list flex' }, list.map(function (item) { return (React__default["default"].createElement(components.View, { key: "list-item-".concat(item.value), onClick: _this.handleClick.bind(_this, item), onLongPress: _this.handleLongClick.bind(_this, item), className: classnames('flex__item', "flex__item--".concat(MAP[item.type]), {
7930
7865
  'flex__item--today': item.isToday,
7931
7866
  'flex__item--active': item.isActive,
7932
7867
  'flex__item--selected': item.isSelected,
@@ -8026,7 +7961,7 @@ var AtCalendarBody = /** @class */ (function (_super) {
8026
7961
  _this.setState({
8027
7962
  isAnimate: false
8028
7963
  }, function () {
8029
- callback && callback();
7964
+ callback === null || callback === void 0 ? void 0 : callback();
8030
7965
  });
8031
7966
  }, ANIMTE_DURATION);
8032
7967
  });
@@ -8115,7 +8050,7 @@ var AtCalendarBody = /** @class */ (function (_super) {
8115
8050
  var isSwiper = this.props.isSwiper;
8116
8051
  var _a = this.state, isAnimate = _a.isAnimate, offsetSize = _a.offsetSize, listGroup = _a.listGroup;
8117
8052
  if (!isSwiper) {
8118
- return (React__default["default"].createElement(components.View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--" + process.env.TARO_ENV) },
8053
+ return (React__default["default"].createElement(components.View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--".concat(process.env.TARO_ENV)) },
8119
8054
  React__default["default"].createElement(AtCalendarHeader, null),
8120
8055
  React__default["default"].createElement(components.View, { className: 'main__body body' },
8121
8056
  React__default["default"].createElement(components.View, { className: 'body__slider body__slider--now' },
@@ -8123,17 +8058,17 @@ var AtCalendarBody = /** @class */ (function (_super) {
8123
8058
  }
8124
8059
  /* 需要 Taro 组件库维护 Swiper 使 小程序 和 H5 的表现保持一致 */
8125
8060
  if (process.env.TARO_ENV === 'h5') {
8126
- return (React__default["default"].createElement(components.View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--" + process.env.TARO_ENV), onTouchEnd: this.handleTouchEnd, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart },
8061
+ return (React__default["default"].createElement(components.View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--".concat(process.env.TARO_ENV)), onTouchEnd: this.handleTouchEnd, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart },
8127
8062
  React__default["default"].createElement(AtCalendarHeader, null),
8128
8063
  React__default["default"].createElement(components.View, { className: classnames('main__body body', {
8129
8064
  'main__body--slider': isSwiper,
8130
8065
  'main__body--animate': isAnimate
8131
8066
  }), style: {
8132
8067
  transform: isSwiper
8133
- ? "translateX(-100%) translate3d(" + offsetSize + ",0,0)"
8068
+ ? "translateX(-100%) translate3d(".concat(offsetSize, ",0,0)")
8134
8069
  : '',
8135
8070
  WebkitTransform: isSwiper
8136
- ? "translateX(-100%) translate3d(" + offsetSize + "px,0,0)"
8071
+ ? "translateX(-100%) translate3d(".concat(offsetSize, "px,0,0)")
8137
8072
  : ''
8138
8073
  } },
8139
8074
  React__default["default"].createElement(components.View, { className: 'body__slider body__slider--pre' },
@@ -8143,7 +8078,7 @@ var AtCalendarBody = /** @class */ (function (_super) {
8143
8078
  React__default["default"].createElement(components.View, { className: 'body__slider body__slider--next' },
8144
8079
  React__default["default"].createElement(AtCalendarList, { list: listGroup[2].list })))));
8145
8080
  }
8146
- return (React__default["default"].createElement(components.View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--" + process.env.TARO_ENV) },
8081
+ return (React__default["default"].createElement(components.View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--".concat(process.env.TARO_ENV)) },
8147
8082
  React__default["default"].createElement(AtCalendarHeader, null),
8148
8083
  React__default["default"].createElement(components.Swiper, { circular: true, current: 1, skipHiddenItemLayout: true, className: classnames('main__body'), onChange: this.handleChange, vertical: this.props.isVertical, onAnimationFinish: this.handleAnimateFinish, onTouchEnd: this.handleSwipeTouchEnd, onTouchStart: this.handleSwipeTouchStart }, listGroup.map(function (item, key) { return (React__default["default"].createElement(components.SwiperItem, { key: key, itemId: key.toString() },
8149
8084
  React__default["default"].createElement(AtCalendarList, { list: item.list, onClick: _this.props.onDayClick, onLongClick: _this.props.onLongClick }))); }))));
@@ -8401,15 +8336,15 @@ var AtFab = /** @class */ (function (_super) {
8401
8336
  var _a;
8402
8337
  var _b = this.props, size = _b.size, className = _b.className, children = _b.children;
8403
8338
  var rootClass = classnames('at-fab', className, (_a = {},
8404
- _a["at-fab--" + size] = size,
8339
+ _a["at-fab--".concat(size)] = size,
8405
8340
  _a));
8406
8341
  return (React__default["default"].createElement(components.View, { className: rootClass, onClick: this.onClick.bind(this) }, children));
8407
8342
  };
8408
8343
  return AtFab;
8409
8344
  }(React__default["default"].Component));
8410
8345
  AtFab.propTypes = {
8411
- size: PropTypes.oneOf(['normal', 'small']),
8412
- onClick: PropTypes.func
8346
+ size: propTypes.oneOf(['normal', 'small']),
8347
+ onClick: propTypes.func
8413
8348
  };
8414
8349
  AtFab.defaultProps = {
8415
8350
  size: 'normal'
@@ -8420,7 +8355,7 @@ var objectToString = function (style) {
8420
8355
  var styleStr_1 = '';
8421
8356
  Object.keys(style).forEach(function (key) {
8422
8357
  var lowerCaseKey = key.replace(/([A-Z])/g, '-$1').toLowerCase();
8423
- styleStr_1 += lowerCaseKey + ":" + style[key] + ";";
8358
+ styleStr_1 += "".concat(lowerCaseKey, ":").concat(style[key], ";");
8424
8359
  });
8425
8360
  return styleStr_1;
8426
8361
  }