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