taro-ui 3.1.0 → 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.
- package/LICENSE +21 -0
- package/dist/index.esm.js +702 -767
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +702 -767
- package/dist/index.js.map +1 -1
- package/lib/common/component.js.map +1 -1
- package/lib/common/utils.js +14 -1
- package/lib/common/utils.js.map +1 -1
- package/lib/components/accordion/index.js +6 -3
- package/lib/components/accordion/index.js.map +1 -1
- package/lib/components/action-sheet/body/index.js.map +1 -1
- package/lib/components/action-sheet/body/item/index.js.map +1 -1
- package/lib/components/action-sheet/footer/index.js.map +1 -1
- package/lib/components/action-sheet/header/index.js.map +1 -1
- package/lib/components/activity-indicator/index.js.map +1 -1
- package/lib/components/calendar/body/index.js +1 -1
- package/lib/components/calendar/body/index.js.map +1 -1
- package/lib/components/calendar/common/helper.js +4 -2
- package/lib/components/calendar/common/helper.js.map +1 -1
- package/lib/components/calendar/common/plugins.js +4 -3
- package/lib/components/calendar/common/plugins.js.map +1 -1
- package/lib/components/calendar/controller/index.js.map +1 -1
- package/lib/components/card/index.js +2 -3
- package/lib/components/card/index.js.map +1 -1
- package/lib/components/countdown/index.js +12 -6
- package/lib/components/countdown/index.js.map +1 -1
- package/lib/components/countdown/item/index.js.map +1 -1
- package/lib/components/divider/index.js +1 -1
- package/lib/components/divider/index.js.map +1 -1
- package/lib/components/float-layout/index.js +5 -17
- package/lib/components/float-layout/index.js.map +1 -1
- package/lib/components/grid/index.js +1 -2
- package/lib/components/grid/index.js.map +1 -1
- package/lib/components/image-picker/index.js +4 -3
- package/lib/components/image-picker/index.js.map +1 -1
- package/lib/components/input/index.js +1 -4
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/input-number/index.js +4 -4
- package/lib/components/input-number/index.js.map +1 -1
- package/lib/components/list/item/index.js +25 -17
- package/lib/components/list/item/index.js.map +1 -1
- package/lib/components/modal/content/index.js.map +1 -1
- package/lib/components/modal/index.js +1 -7
- package/lib/components/modal/index.js.map +1 -1
- package/lib/components/noticebar/index.js +0 -4
- package/lib/components/noticebar/index.js.map +1 -1
- package/lib/components/range/index.js +6 -5
- package/lib/components/range/index.js.map +1 -1
- package/lib/components/search-bar/index.js +3 -1
- package/lib/components/search-bar/index.js.map +1 -1
- package/lib/components/segmented-control/index.js.map +1 -1
- package/lib/components/swipe-action/options/index.js.map +1 -1
- package/lib/components/switch/index.js.map +1 -1
- package/lib/components/tab-bar/index.js +1 -1
- package/lib/components/tab-bar/index.js.map +1 -1
- package/lib/components/tabs/index.js +1 -3
- package/lib/components/tabs/index.js.map +1 -1
- package/lib/components/timeline/index.js +5 -2
- package/lib/components/timeline/index.js.map +1 -1
- package/lib/components/toast/index.js +0 -2
- package/lib/components/toast/index.js.map +1 -1
- package/package.json +46 -35
- package/rn/components/float-layout/index.tsx +13 -22
- package/rn/components/input/index.tsx +0 -2
- package/rn/components/list/item/index.tsx +35 -27
- package/rn/components/modal/index.tsx +1 -3
- package/rn/components/timeline/index.tsx +5 -1
- package/types/accordion.d.ts +2 -1
- package/types/card.d.ts +2 -2
- package/types/list.d.ts +7 -1
- package/types/tab-bar.d.ts +5 -5
- package/types/timeline.d.ts +7 -0
- package/dist/style/common.scss +0 -10
- package/lib/tsconfig.build.tsbuildinfo +0 -39858
package/dist/index.esm.js
CHANGED
|
@@ -99,11 +99,14 @@ function __read(o, n) {
|
|
|
99
99
|
return ar;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
function __spreadArray(to, from, pack) {
|
|
103
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
104
|
+
if (ar || !(i in from)) {
|
|
105
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
106
|
+
ar[i] = from[i];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -114,9 +117,9 @@ function createCommonjsModule(fn, module) {
|
|
|
114
117
|
|
|
115
118
|
var classnames = createCommonjsModule(function (module) {
|
|
116
119
|
/*!
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
Copyright (c) 2017 Jed Watson.
|
|
121
|
+
Licensed under the MIT License (MIT), see
|
|
122
|
+
http://jedwatson.github.io/classnames
|
|
120
123
|
*/
|
|
121
124
|
/* global define */
|
|
122
125
|
|
|
@@ -124,7 +127,7 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
124
127
|
|
|
125
128
|
var hasOwn = {}.hasOwnProperty;
|
|
126
129
|
|
|
127
|
-
function classNames() {
|
|
130
|
+
function classNames () {
|
|
128
131
|
var classes = [];
|
|
129
132
|
|
|
130
133
|
for (var i = 0; i < arguments.length; i++) {
|
|
@@ -135,19 +138,12 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
135
138
|
|
|
136
139
|
if (argType === 'string' || argType === 'number') {
|
|
137
140
|
classes.push(arg);
|
|
138
|
-
} else if (Array.isArray(arg)) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
classes.push(inner);
|
|
143
|
-
}
|
|
141
|
+
} else if (Array.isArray(arg) && arg.length) {
|
|
142
|
+
var inner = classNames.apply(null, arg);
|
|
143
|
+
if (inner) {
|
|
144
|
+
classes.push(inner);
|
|
144
145
|
}
|
|
145
146
|
} else if (argType === 'object') {
|
|
146
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
147
|
-
classes.push(arg.toString());
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
147
|
for (var key in arg) {
|
|
152
148
|
if (hasOwn.call(arg, key) && arg[key]) {
|
|
153
149
|
classes.push(key);
|
|
@@ -520,22 +516,16 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
520
516
|
* LICENSE file in the root directory of this source tree.
|
|
521
517
|
*/
|
|
522
518
|
|
|
523
|
-
var ReactPropTypesSecret$
|
|
524
|
-
|
|
525
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
|
|
526
|
-
|
|
527
|
-
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
519
|
+
var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
528
520
|
|
|
529
|
-
var ReactPropTypesSecret$1
|
|
530
|
-
|
|
531
|
-
var has$1 = has$2;
|
|
521
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
532
522
|
|
|
533
523
|
var printWarning$1 = function() {};
|
|
534
524
|
|
|
535
525
|
if (process.env.NODE_ENV !== 'production') {
|
|
536
|
-
var ReactPropTypesSecret =
|
|
526
|
+
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
537
527
|
var loggedTypeFailures = {};
|
|
538
|
-
var has =
|
|
528
|
+
var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
539
529
|
|
|
540
530
|
printWarning$1 = function(text) {
|
|
541
531
|
var message = 'Warning: ' + text;
|
|
@@ -547,7 +537,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
547
537
|
// This error was thrown as a convenience so that you can use this stack
|
|
548
538
|
// to find the callsite that caused this warning to fire.
|
|
549
539
|
throw new Error(message);
|
|
550
|
-
} catch (x) {
|
|
540
|
+
} catch (x) {}
|
|
551
541
|
};
|
|
552
542
|
}
|
|
553
543
|
|
|
@@ -562,10 +552,10 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
562
552
|
* @param {?Function} getStack Returns the component stack.
|
|
563
553
|
* @private
|
|
564
554
|
*/
|
|
565
|
-
function checkPropTypes
|
|
555
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
566
556
|
if (process.env.NODE_ENV !== 'production') {
|
|
567
557
|
for (var typeSpecName in typeSpecs) {
|
|
568
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
558
|
+
if (has$1(typeSpecs, typeSpecName)) {
|
|
569
559
|
var error;
|
|
570
560
|
// Prop type validation may throw. In case they do, we don't want to
|
|
571
561
|
// fail the render phase where it didn't fail before. So we log it.
|
|
@@ -576,8 +566,7 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
576
566
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
577
567
|
var err = Error(
|
|
578
568
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
579
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
580
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
569
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
581
570
|
);
|
|
582
571
|
err.name = 'Invariant Violation';
|
|
583
572
|
throw err;
|
|
@@ -617,16 +606,15 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
617
606
|
*
|
|
618
607
|
* @private
|
|
619
608
|
*/
|
|
620
|
-
checkPropTypes
|
|
609
|
+
checkPropTypes.resetWarningCache = function() {
|
|
621
610
|
if (process.env.NODE_ENV !== 'production') {
|
|
622
611
|
loggedTypeFailures = {};
|
|
623
612
|
}
|
|
624
613
|
};
|
|
625
614
|
|
|
626
|
-
var checkPropTypes_1 = checkPropTypes
|
|
627
|
-
|
|
628
|
-
var checkPropTypes = checkPropTypes_1;
|
|
615
|
+
var checkPropTypes_1 = checkPropTypes;
|
|
629
616
|
|
|
617
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
630
618
|
var printWarning = function() {};
|
|
631
619
|
|
|
632
620
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -727,7 +715,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
727
715
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
728
716
|
var ReactPropTypes = {
|
|
729
717
|
array: createPrimitiveTypeChecker('array'),
|
|
730
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
731
718
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
732
719
|
func: createPrimitiveTypeChecker('function'),
|
|
733
720
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -773,9 +760,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
773
760
|
* is prohibitively expensive if they are created too often, such as what
|
|
774
761
|
* happens in oneOfType() for any type before the one that matched.
|
|
775
762
|
*/
|
|
776
|
-
function PropTypeError(message
|
|
763
|
+
function PropTypeError(message) {
|
|
777
764
|
this.message = message;
|
|
778
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
779
765
|
this.stack = '';
|
|
780
766
|
}
|
|
781
767
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -790,7 +776,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
790
776
|
componentName = componentName || ANONYMOUS;
|
|
791
777
|
propFullName = propFullName || propName;
|
|
792
778
|
|
|
793
|
-
if (secret !==
|
|
779
|
+
if (secret !== ReactPropTypesSecret_1) {
|
|
794
780
|
if (throwOnDirectAccess) {
|
|
795
781
|
// New behavior only for users of `prop-types` package
|
|
796
782
|
var err = new Error(
|
|
@@ -810,7 +796,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
810
796
|
) {
|
|
811
797
|
printWarning(
|
|
812
798
|
'You are manually calling a React.PropTypes validation ' +
|
|
813
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
799
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
814
800
|
'and will throw in the standalone `prop-types` package. ' +
|
|
815
801
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
816
802
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -849,10 +835,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
849
835
|
// 'of type `object`'.
|
|
850
836
|
var preciseType = getPreciseType(propValue);
|
|
851
837
|
|
|
852
|
-
return new PropTypeError(
|
|
853
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
854
|
-
{expectedType: expectedType}
|
|
855
|
-
);
|
|
838
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
856
839
|
}
|
|
857
840
|
return null;
|
|
858
841
|
}
|
|
@@ -874,7 +857,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
874
857
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
875
858
|
}
|
|
876
859
|
for (var i = 0; i < propValue.length; i++) {
|
|
877
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']',
|
|
860
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
|
|
878
861
|
if (error instanceof Error) {
|
|
879
862
|
return error;
|
|
880
863
|
}
|
|
@@ -966,8 +949,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
966
949
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
967
950
|
}
|
|
968
951
|
for (var key in propValue) {
|
|
969
|
-
if (has
|
|
970
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
952
|
+
if (has(propValue, key)) {
|
|
953
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
971
954
|
if (error instanceof Error) {
|
|
972
955
|
return error;
|
|
973
956
|
}
|
|
@@ -996,19 +979,14 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
996
979
|
}
|
|
997
980
|
|
|
998
981
|
function validate(props, propName, componentName, location, propFullName) {
|
|
999
|
-
var expectedTypes = [];
|
|
1000
982
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1001
983
|
var checker = arrayOfTypeCheckers[i];
|
|
1002
|
-
|
|
1003
|
-
if (checkerResult == null) {
|
|
984
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
|
|
1004
985
|
return null;
|
|
1005
986
|
}
|
|
1006
|
-
if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
|
|
1007
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
1008
|
-
}
|
|
1009
987
|
}
|
|
1010
|
-
|
|
1011
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
988
|
+
|
|
989
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
1012
990
|
}
|
|
1013
991
|
return createChainableTypeChecker(validate);
|
|
1014
992
|
}
|
|
@@ -1023,13 +1001,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1023
1001
|
return createChainableTypeChecker(validate);
|
|
1024
1002
|
}
|
|
1025
1003
|
|
|
1026
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
1027
|
-
return new PropTypeError(
|
|
1028
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
1029
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
1030
|
-
);
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
1004
|
function createShapeTypeChecker(shapeTypes) {
|
|
1034
1005
|
function validate(props, propName, componentName, location, propFullName) {
|
|
1035
1006
|
var propValue = props[propName];
|
|
@@ -1039,10 +1010,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1039
1010
|
}
|
|
1040
1011
|
for (var key in shapeTypes) {
|
|
1041
1012
|
var checker = shapeTypes[key];
|
|
1042
|
-
if (
|
|
1043
|
-
|
|
1013
|
+
if (!checker) {
|
|
1014
|
+
continue;
|
|
1044
1015
|
}
|
|
1045
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
1016
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1046
1017
|
if (error) {
|
|
1047
1018
|
return error;
|
|
1048
1019
|
}
|
|
@@ -1059,21 +1030,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1059
1030
|
if (propType !== 'object') {
|
|
1060
1031
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
1061
1032
|
}
|
|
1062
|
-
// We need to check all keys in case some are required but missing from
|
|
1033
|
+
// We need to check all keys in case some are required but missing from
|
|
1034
|
+
// props.
|
|
1063
1035
|
var allKeys = objectAssign({}, props[propName], shapeTypes);
|
|
1064
1036
|
for (var key in allKeys) {
|
|
1065
1037
|
var checker = shapeTypes[key];
|
|
1066
|
-
if (has$1(shapeTypes, key) && typeof checker !== 'function') {
|
|
1067
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1068
|
-
}
|
|
1069
1038
|
if (!checker) {
|
|
1070
1039
|
return new PropTypeError(
|
|
1071
1040
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
1072
1041
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
1073
|
-
'\nValid keys: ' +
|
|
1042
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
1074
1043
|
);
|
|
1075
1044
|
}
|
|
1076
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
1045
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1077
1046
|
if (error) {
|
|
1078
1047
|
return error;
|
|
1079
1048
|
}
|
|
@@ -1215,8 +1184,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1215
1184
|
return propValue.constructor.name;
|
|
1216
1185
|
}
|
|
1217
1186
|
|
|
1218
|
-
ReactPropTypes.checkPropTypes =
|
|
1219
|
-
ReactPropTypes.resetWarningCache =
|
|
1187
|
+
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
1188
|
+
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
1220
1189
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1221
1190
|
|
|
1222
1191
|
return ReactPropTypes;
|
|
@@ -1228,7 +1197,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
|
1228
1197
|
|
|
1229
1198
|
var factoryWithThrowingShims = function() {
|
|
1230
1199
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1231
|
-
if (secret ===
|
|
1200
|
+
if (secret === ReactPropTypesSecret_1) {
|
|
1232
1201
|
// It is still safe when called from React.
|
|
1233
1202
|
return;
|
|
1234
1203
|
}
|
|
@@ -1246,7 +1215,6 @@ var factoryWithThrowingShims = function() {
|
|
|
1246
1215
|
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1247
1216
|
var ReactPropTypes = {
|
|
1248
1217
|
array: shim,
|
|
1249
|
-
bigint: shim,
|
|
1250
1218
|
bool: shim,
|
|
1251
1219
|
func: shim,
|
|
1252
1220
|
number: shim,
|
|
@@ -1275,10 +1243,6 @@ var factoryWithThrowingShims = function() {
|
|
|
1275
1243
|
return ReactPropTypes;
|
|
1276
1244
|
};
|
|
1277
1245
|
|
|
1278
|
-
var require$$1 = factoryWithTypeCheckers;
|
|
1279
|
-
|
|
1280
|
-
var require$$2 = factoryWithThrowingShims;
|
|
1281
|
-
|
|
1282
1246
|
var propTypes = createCommonjsModule(function (module) {
|
|
1283
1247
|
/**
|
|
1284
1248
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -1293,16 +1257,14 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1293
1257
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1294
1258
|
// http://fb.me/prop-types-in-prod
|
|
1295
1259
|
var throwOnDirectAccess = true;
|
|
1296
|
-
module.exports =
|
|
1260
|
+
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
1297
1261
|
} else {
|
|
1298
1262
|
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1299
1263
|
// http://fb.me/prop-types-in-prod
|
|
1300
|
-
module.exports =
|
|
1264
|
+
module.exports = factoryWithThrowingShims();
|
|
1301
1265
|
}
|
|
1302
1266
|
});
|
|
1303
1267
|
|
|
1304
|
-
var PropTypes = propTypes;
|
|
1305
|
-
|
|
1306
1268
|
var AtActionSheetBody = /** @class */ (function (_super) {
|
|
1307
1269
|
__extends(AtActionSheetBody, _super);
|
|
1308
1270
|
function AtActionSheetBody() {
|
|
@@ -1326,7 +1288,7 @@ var AtActionSheetFooter = /** @class */ (function (_super) {
|
|
|
1326
1288
|
args[_i] = arguments[_i];
|
|
1327
1289
|
}
|
|
1328
1290
|
if (typeof _this.props.onClick === 'function') {
|
|
1329
|
-
(_a = _this.props).onClick.apply(_a,
|
|
1291
|
+
(_a = _this.props).onClick.apply(_a, __spreadArray([], __read(args), false));
|
|
1330
1292
|
}
|
|
1331
1293
|
};
|
|
1332
1294
|
return _this;
|
|
@@ -1338,7 +1300,7 @@ var AtActionSheetFooter = /** @class */ (function (_super) {
|
|
|
1338
1300
|
return AtActionSheetFooter;
|
|
1339
1301
|
}(React.Component));
|
|
1340
1302
|
AtActionSheetFooter.propTypes = {
|
|
1341
|
-
onClick:
|
|
1303
|
+
onClick: propTypes.func
|
|
1342
1304
|
};
|
|
1343
1305
|
|
|
1344
1306
|
var AtActionSheetHeader = /** @class */ (function (_super) {
|
|
@@ -1413,11 +1375,11 @@ AtActionSheet.defaultProps = {
|
|
|
1413
1375
|
isOpened: false
|
|
1414
1376
|
};
|
|
1415
1377
|
AtActionSheet.propTypes = {
|
|
1416
|
-
title:
|
|
1417
|
-
onClose:
|
|
1418
|
-
onCancel:
|
|
1419
|
-
isOpened:
|
|
1420
|
-
cancelText:
|
|
1378
|
+
title: propTypes.string,
|
|
1379
|
+
onClose: propTypes.func,
|
|
1380
|
+
onCancel: propTypes.func,
|
|
1381
|
+
isOpened: propTypes.bool.isRequired,
|
|
1382
|
+
cancelText: propTypes.string
|
|
1421
1383
|
};
|
|
1422
1384
|
|
|
1423
1385
|
var AtActionSheetItem = /** @class */ (function (_super) {
|
|
@@ -1438,7 +1400,7 @@ var AtActionSheetItem = /** @class */ (function (_super) {
|
|
|
1438
1400
|
return AtActionSheetItem;
|
|
1439
1401
|
}(React.Component));
|
|
1440
1402
|
AtActionSheetItem.propTypes = {
|
|
1441
|
-
onClick:
|
|
1403
|
+
onClick: propTypes.func
|
|
1442
1404
|
};
|
|
1443
1405
|
|
|
1444
1406
|
var ENV$4 = Taro.getEnv();
|
|
@@ -1591,7 +1553,7 @@ function handleTouchScroll(flag) {
|
|
|
1591
1553
|
// 使body脱离文档流
|
|
1592
1554
|
document.body.classList.add('at-frozen');
|
|
1593
1555
|
// 把脱离文档流的body拉上去!否则页面会回到顶部!
|
|
1594
|
-
document.body.style.top = -scrollTop
|
|
1556
|
+
document.body.style.top = "".concat(-scrollTop, "px");
|
|
1595
1557
|
}
|
|
1596
1558
|
else {
|
|
1597
1559
|
document.body.style.top = '';
|
|
@@ -1608,14 +1570,14 @@ function pxTransform(size) {
|
|
|
1608
1570
|
750: 1,
|
|
1609
1571
|
828: 1.81 / 2
|
|
1610
1572
|
};
|
|
1611
|
-
return size / deviceRatio[designWidth]
|
|
1573
|
+
return "".concat(size / deviceRatio[designWidth], "rpx");
|
|
1612
1574
|
}
|
|
1613
1575
|
function objectToString$2(style) {
|
|
1614
1576
|
if (style && typeof style === 'object') {
|
|
1615
1577
|
var styleStr_1 = '';
|
|
1616
1578
|
Object.keys(style).forEach(function (key) {
|
|
1617
1579
|
var lowerCaseKey = key.replace(/([A-Z])/g, '-$1').toLowerCase();
|
|
1618
|
-
styleStr_1 += lowerCaseKey
|
|
1580
|
+
styleStr_1 += "".concat(lowerCaseKey, ":").concat(style[key], ";");
|
|
1619
1581
|
});
|
|
1620
1582
|
return styleStr_1;
|
|
1621
1583
|
}
|
|
@@ -1638,6 +1600,18 @@ function mergeStyle(style1, style2) {
|
|
|
1638
1600
|
return Object.assign({}, style1, style2);
|
|
1639
1601
|
}
|
|
1640
1602
|
return objectToString$2(style1) + objectToString$2(style2);
|
|
1603
|
+
}
|
|
1604
|
+
/**
|
|
1605
|
+
* 自定义验证器,用于验证参数是否是 JSX.Element
|
|
1606
|
+
* @param {any} props
|
|
1607
|
+
* @param {string} propName
|
|
1608
|
+
* @param {string} componentName
|
|
1609
|
+
* @returns
|
|
1610
|
+
*/
|
|
1611
|
+
function isJSXElement(props, propName, componentName) {
|
|
1612
|
+
if (!React.isValidElement(props[propName])) {
|
|
1613
|
+
return new Error("Invalid prop ".concat(propName, " supplied to ").concat(componentName, ". It must be a valid JSX element."));
|
|
1614
|
+
}
|
|
1641
1615
|
}
|
|
1642
1616
|
|
|
1643
1617
|
var AtLoading = /** @class */ (function (_super) {
|
|
@@ -1649,12 +1623,12 @@ var AtLoading = /** @class */ (function (_super) {
|
|
|
1649
1623
|
var _a = this.props, color = _a.color, size = _a.size;
|
|
1650
1624
|
var loadingSize = typeof size === 'string' ? size : String(size);
|
|
1651
1625
|
var sizeStyle = {
|
|
1652
|
-
width: size ? ""
|
|
1653
|
-
height: size ? ""
|
|
1626
|
+
width: size ? "".concat(pxTransform(parseInt(loadingSize))) : '',
|
|
1627
|
+
height: size ? "".concat(pxTransform(parseInt(loadingSize))) : ''
|
|
1654
1628
|
};
|
|
1655
1629
|
var colorStyle = {
|
|
1656
|
-
border: color ? "1px solid "
|
|
1657
|
-
borderColor: color ? color
|
|
1630
|
+
border: color ? "1px solid ".concat(color) : '',
|
|
1631
|
+
borderColor: color ? "".concat(color, " transparent transparent transparent") : ''
|
|
1658
1632
|
};
|
|
1659
1633
|
var ringStyle = Object.assign({}, colorStyle, sizeStyle);
|
|
1660
1634
|
return (React.createElement(View, { className: 'at-loading', style: sizeStyle },
|
|
@@ -1669,8 +1643,8 @@ AtLoading.defaultProps = {
|
|
|
1669
1643
|
color: ''
|
|
1670
1644
|
};
|
|
1671
1645
|
AtLoading.propTypes = {
|
|
1672
|
-
size:
|
|
1673
|
-
color:
|
|
1646
|
+
size: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
1647
|
+
color: propTypes.oneOfType([propTypes.string, propTypes.number])
|
|
1674
1648
|
};
|
|
1675
1649
|
|
|
1676
1650
|
var AtActivityIndicator = /** @class */ (function (_super) {
|
|
@@ -1700,12 +1674,12 @@ AtActivityIndicator.defaultProps = {
|
|
|
1700
1674
|
isOpened: true
|
|
1701
1675
|
};
|
|
1702
1676
|
AtActivityIndicator.propTypes = {
|
|
1703
|
-
size:
|
|
1704
|
-
mode:
|
|
1705
|
-
color:
|
|
1706
|
-
content:
|
|
1707
|
-
className:
|
|
1708
|
-
isOpened:
|
|
1677
|
+
size: propTypes.number,
|
|
1678
|
+
mode: propTypes.string,
|
|
1679
|
+
color: propTypes.string,
|
|
1680
|
+
content: propTypes.string,
|
|
1681
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
1682
|
+
isOpened: propTypes.bool
|
|
1709
1683
|
};
|
|
1710
1684
|
|
|
1711
1685
|
var SIZE_CLASS$2 = {
|
|
@@ -1728,7 +1702,7 @@ var AtAvatar = /** @class */ (function (_super) {
|
|
|
1728
1702
|
var rootClassName = ['at-avatar'];
|
|
1729
1703
|
var iconSize = SIZE_CLASS$2[size || 'normal'];
|
|
1730
1704
|
var classObject = (_a = {},
|
|
1731
|
-
_a["at-avatar--"
|
|
1705
|
+
_a["at-avatar--".concat(iconSize)] = iconSize,
|
|
1732
1706
|
_a['at-avatar--circle'] = circle,
|
|
1733
1707
|
_a);
|
|
1734
1708
|
var letter = '';
|
|
@@ -1757,13 +1731,13 @@ AtAvatar.defaultProps = {
|
|
|
1757
1731
|
className: ''
|
|
1758
1732
|
};
|
|
1759
1733
|
AtAvatar.propTypes = {
|
|
1760
|
-
size:
|
|
1761
|
-
circle:
|
|
1762
|
-
text:
|
|
1763
|
-
image:
|
|
1764
|
-
openData:
|
|
1765
|
-
customStyle:
|
|
1766
|
-
className:
|
|
1734
|
+
size: propTypes.oneOf(['large', 'normal', 'small']),
|
|
1735
|
+
circle: propTypes.bool,
|
|
1736
|
+
text: propTypes.string,
|
|
1737
|
+
image: propTypes.string,
|
|
1738
|
+
openData: propTypes.object,
|
|
1739
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
1740
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string])
|
|
1767
1741
|
};
|
|
1768
1742
|
|
|
1769
1743
|
var AtBadge = /** @class */ (function (_super) {
|
|
@@ -1780,7 +1754,7 @@ var AtBadge = /** @class */ (function (_super) {
|
|
|
1780
1754
|
if (Number.isNaN(numValue)) {
|
|
1781
1755
|
return value;
|
|
1782
1756
|
}
|
|
1783
|
-
return numValue > maxValue ? maxValue
|
|
1757
|
+
return numValue > maxValue ? "".concat(maxValue, "+") : numValue;
|
|
1784
1758
|
};
|
|
1785
1759
|
AtBadge.prototype.render = function () {
|
|
1786
1760
|
var _a = this.props, dot = _a.dot, value = _a.value, _b = _a.maxValue, maxValue = _b === void 0 ? 99 : _b, customStyle = _a.customStyle;
|
|
@@ -1800,11 +1774,11 @@ AtBadge.defaultProps = {
|
|
|
1800
1774
|
className: ''
|
|
1801
1775
|
};
|
|
1802
1776
|
AtBadge.propTypes = {
|
|
1803
|
-
dot:
|
|
1804
|
-
value:
|
|
1805
|
-
maxValue:
|
|
1806
|
-
customStyle:
|
|
1807
|
-
className:
|
|
1777
|
+
dot: propTypes.bool,
|
|
1778
|
+
value: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
1779
|
+
maxValue: propTypes.number,
|
|
1780
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
1781
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string])
|
|
1808
1782
|
};
|
|
1809
1783
|
|
|
1810
1784
|
var SIZE_CLASS$1 = {
|
|
@@ -1852,9 +1826,9 @@ var AtButton = /** @class */ (function (_super) {
|
|
|
1852
1826
|
var _e = this.state, isWEAPP = _e.isWEAPP, isALIPAY = _e.isALIPAY, isWEB = _e.isWEB;
|
|
1853
1827
|
var rootClassName = ['at-button'];
|
|
1854
1828
|
var classObject = (_a = {},
|
|
1855
|
-
_a["at-button--"
|
|
1829
|
+
_a["at-button--".concat(SIZE_CLASS$1[size])] = SIZE_CLASS$1[size],
|
|
1856
1830
|
_a['at-button--disabled'] = disabled,
|
|
1857
|
-
_a["at-button--"
|
|
1831
|
+
_a["at-button--".concat(type)] = TYPE_CLASS$1[type],
|
|
1858
1832
|
_a['at-button--circle'] = circle,
|
|
1859
1833
|
_a['at-button--full'] = full,
|
|
1860
1834
|
_a);
|
|
@@ -1894,16 +1868,16 @@ AtButton.defaultProps = {
|
|
|
1894
1868
|
appParameter: ''
|
|
1895
1869
|
};
|
|
1896
1870
|
AtButton.propTypes = {
|
|
1897
|
-
size:
|
|
1898
|
-
type:
|
|
1899
|
-
circle:
|
|
1900
|
-
full:
|
|
1901
|
-
loading:
|
|
1902
|
-
disabled:
|
|
1903
|
-
onClick:
|
|
1904
|
-
customStyle:
|
|
1905
|
-
formType:
|
|
1906
|
-
openType:
|
|
1871
|
+
size: propTypes.oneOf(['normal', 'small']),
|
|
1872
|
+
type: propTypes.oneOf(['primary', 'secondary', '']),
|
|
1873
|
+
circle: propTypes.bool,
|
|
1874
|
+
full: propTypes.bool,
|
|
1875
|
+
loading: propTypes.bool,
|
|
1876
|
+
disabled: propTypes.bool,
|
|
1877
|
+
onClick: propTypes.func,
|
|
1878
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
1879
|
+
formType: propTypes.oneOf(['submit', 'reset', '']),
|
|
1880
|
+
openType: propTypes.oneOf([
|
|
1907
1881
|
'contact',
|
|
1908
1882
|
'share',
|
|
1909
1883
|
'getUserInfo',
|
|
@@ -1916,18 +1890,18 @@ AtButton.propTypes = {
|
|
|
1916
1890
|
'contactShare',
|
|
1917
1891
|
''
|
|
1918
1892
|
]),
|
|
1919
|
-
lang:
|
|
1920
|
-
sessionFrom:
|
|
1921
|
-
sendMessageTitle:
|
|
1922
|
-
sendMessagePath:
|
|
1923
|
-
sendMessageImg:
|
|
1924
|
-
showMessageCard:
|
|
1925
|
-
appParameter:
|
|
1926
|
-
onGetUserInfo:
|
|
1927
|
-
onContact:
|
|
1928
|
-
onGetPhoneNumber:
|
|
1929
|
-
onError:
|
|
1930
|
-
onOpenSetting:
|
|
1893
|
+
lang: propTypes.string,
|
|
1894
|
+
sessionFrom: propTypes.string,
|
|
1895
|
+
sendMessageTitle: propTypes.string,
|
|
1896
|
+
sendMessagePath: propTypes.string,
|
|
1897
|
+
sendMessageImg: propTypes.string,
|
|
1898
|
+
showMessageCard: propTypes.bool,
|
|
1899
|
+
appParameter: propTypes.string,
|
|
1900
|
+
onGetUserInfo: propTypes.func,
|
|
1901
|
+
onContact: propTypes.func,
|
|
1902
|
+
onGetPhoneNumber: propTypes.func,
|
|
1903
|
+
onError: propTypes.func,
|
|
1904
|
+
onOpenSetting: propTypes.func
|
|
1931
1905
|
};
|
|
1932
1906
|
|
|
1933
1907
|
var AtCard = /** @class */ (function (_super) {
|
|
@@ -1950,12 +1924,12 @@ var AtCard = /** @class */ (function (_super) {
|
|
|
1950
1924
|
var iconClass = classnames((_a = {
|
|
1951
1925
|
'at-icon': true
|
|
1952
1926
|
},
|
|
1953
|
-
_a["at-icon-"
|
|
1927
|
+
_a["at-icon-".concat(icon && icon.value)] = icon && icon.value,
|
|
1954
1928
|
_a['at-card__header-icon'] = true,
|
|
1955
1929
|
_a));
|
|
1956
1930
|
var iconStyle = {
|
|
1957
1931
|
color: (icon && icon.color) || '',
|
|
1958
|
-
fontSize: (icon && icon.size
|
|
1932
|
+
fontSize: (icon && "".concat(icon.size, "px")) || ''
|
|
1959
1933
|
};
|
|
1960
1934
|
return (React.createElement(View, { onClick: this.handleClick, className: rootClass },
|
|
1961
1935
|
React.createElement(View, { className: 'at-card__header' },
|
|
@@ -1964,7 +1938,7 @@ var AtCard = /** @class */ (function (_super) {
|
|
|
1964
1938
|
renderIcon || '',
|
|
1965
1939
|
!thumb && icon && icon.value && (React.createElement(Text, { className: iconClass, style: iconStyle })),
|
|
1966
1940
|
React.createElement(Text, { className: 'at-card__header-title' }, title),
|
|
1967
|
-
extra && (React.createElement(
|
|
1941
|
+
extra && (React.createElement(View, { style: __assign({}, extraStyle), className: 'at-card__header-extra' }, extra))),
|
|
1968
1942
|
React.createElement(View, { className: 'at-card__content' },
|
|
1969
1943
|
React.createElement(View, { className: 'at-card__content-info' }, this.props.children),
|
|
1970
1944
|
note && React.createElement(View, { className: 'at-card__content-note' }, note))));
|
|
@@ -1976,19 +1950,18 @@ AtCard.defaultProps = {
|
|
|
1976
1950
|
isFull: false,
|
|
1977
1951
|
thumb: '',
|
|
1978
1952
|
title: '',
|
|
1979
|
-
extra: '',
|
|
1980
1953
|
extraStyle: {}
|
|
1981
1954
|
};
|
|
1982
1955
|
AtCard.propTypes = {
|
|
1983
|
-
note:
|
|
1984
|
-
isFull:
|
|
1985
|
-
thumb:
|
|
1986
|
-
title:
|
|
1987
|
-
extra:
|
|
1988
|
-
icon:
|
|
1989
|
-
onClick:
|
|
1990
|
-
renderIcon:
|
|
1991
|
-
extraStyle:
|
|
1956
|
+
note: propTypes.string,
|
|
1957
|
+
isFull: propTypes.bool,
|
|
1958
|
+
thumb: propTypes.string,
|
|
1959
|
+
title: propTypes.string,
|
|
1960
|
+
extra: propTypes.oneOfType([propTypes.string, propTypes.element]),
|
|
1961
|
+
icon: propTypes.object,
|
|
1962
|
+
onClick: propTypes.func,
|
|
1963
|
+
renderIcon: propTypes.oneOfType([propTypes.string, propTypes.element]),
|
|
1964
|
+
extraStyle: propTypes.object // 自定义extra样式
|
|
1992
1965
|
};
|
|
1993
1966
|
|
|
1994
1967
|
var AtCheckbox = /** @class */ (function (_super) {
|
|
@@ -2009,7 +1982,7 @@ var AtCheckbox = /** @class */ (function (_super) {
|
|
|
2009
1982
|
else {
|
|
2010
1983
|
selectedSet.delete(value);
|
|
2011
1984
|
}
|
|
2012
|
-
this.props.onChange(
|
|
1985
|
+
this.props.onChange(__spreadArray([], __read(selectedSet), false));
|
|
2013
1986
|
};
|
|
2014
1987
|
AtCheckbox.prototype.render = function () {
|
|
2015
1988
|
var _this = this;
|
|
@@ -2041,11 +2014,11 @@ AtCheckbox.defaultProps = {
|
|
|
2041
2014
|
onChange: function () { }
|
|
2042
2015
|
};
|
|
2043
2016
|
AtCheckbox.propTypes = {
|
|
2044
|
-
customStyle:
|
|
2045
|
-
className:
|
|
2046
|
-
options:
|
|
2047
|
-
selectedList:
|
|
2048
|
-
onChange:
|
|
2017
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
2018
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
2019
|
+
options: propTypes.array,
|
|
2020
|
+
selectedList: propTypes.array,
|
|
2021
|
+
onChange: propTypes.func
|
|
2049
2022
|
};
|
|
2050
2023
|
|
|
2051
2024
|
var AtList = /** @class */ (function (_super) {
|
|
@@ -2065,7 +2038,7 @@ AtList.defaultProps = {
|
|
|
2065
2038
|
hasBorder: true
|
|
2066
2039
|
};
|
|
2067
2040
|
AtList.propTypes = {
|
|
2068
|
-
hasBorder:
|
|
2041
|
+
hasBorder: propTypes.bool
|
|
2069
2042
|
};
|
|
2070
2043
|
|
|
2071
2044
|
var AtListItem = /** @class */ (function (_super) {
|
|
@@ -2089,29 +2062,37 @@ var AtListItem = /** @class */ (function (_super) {
|
|
|
2089
2062
|
e.stopPropagation();
|
|
2090
2063
|
};
|
|
2091
2064
|
AtListItem.prototype.render = function () {
|
|
2092
|
-
var _a;
|
|
2093
|
-
var _b = this.props,
|
|
2094
|
-
var _c = this.props, extraText = _c.extraText, title = _c.title;
|
|
2095
|
-
extraText = String(extraText);
|
|
2096
|
-
title = String(title);
|
|
2065
|
+
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;
|
|
2066
|
+
var _b = this.props, extraText = _b.extraText, title = _b.title;
|
|
2097
2067
|
var rootClass = classnames('at-list__item', {
|
|
2098
2068
|
'at-list__item--thumb': thumb,
|
|
2099
2069
|
'at-list__item--multiple': note,
|
|
2100
2070
|
'at-list__item--disabled': disabled,
|
|
2101
2071
|
'at-list__item--no-border': !hasBorder
|
|
2102
2072
|
}, this.props.className);
|
|
2103
|
-
var
|
|
2104
|
-
_a
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2073
|
+
var renderIcon = function () {
|
|
2074
|
+
var _a;
|
|
2075
|
+
if (icon) {
|
|
2076
|
+
return React.createElement(View, { className: 'item-icon' }, icon);
|
|
2077
|
+
}
|
|
2078
|
+
else if (iconInfo === null || iconInfo === void 0 ? void 0 : iconInfo.value) {
|
|
2079
|
+
var iconClass = classnames((iconInfo && iconInfo.prefixClass) || 'at-icon', (_a = {},
|
|
2080
|
+
_a["".concat((iconInfo && iconInfo.prefixClass) || 'at-icon', "-").concat(iconInfo && iconInfo.value)] = iconInfo && iconInfo.value,
|
|
2081
|
+
_a), iconInfo && iconInfo.className);
|
|
2082
|
+
return (React.createElement(View, { className: 'at-list__item-icon item-icon' },
|
|
2111
2083
|
React.createElement(Text, { className: iconClass, style: mergeStyle({
|
|
2112
2084
|
color: iconInfo.color || '',
|
|
2113
|
-
fontSize: (iconInfo.size || 24
|
|
2114
|
-
}, iconInfo.customStyle || '') })))
|
|
2085
|
+
fontSize: "".concat(iconInfo.size || 24, "px")
|
|
2086
|
+
}, iconInfo.customStyle || '') })));
|
|
2087
|
+
}
|
|
2088
|
+
else if (thumb) {
|
|
2089
|
+
return (React.createElement(View, { className: 'at-list__item-thumb item-thumb' },
|
|
2090
|
+
React.createElement(Image, { className: 'item-thumb__info', mode: 'scaleToFill', src: thumb })));
|
|
2091
|
+
}
|
|
2092
|
+
};
|
|
2093
|
+
return (React.createElement(View, { className: rootClass, onClick: this.handleClick },
|
|
2094
|
+
React.createElement(View, { className: 'at-list__item-container' },
|
|
2095
|
+
renderIcon(),
|
|
2115
2096
|
React.createElement(View, { className: 'at-list__item-content item-content' },
|
|
2116
2097
|
React.createElement(View, { className: 'item-content__info' },
|
|
2117
2098
|
React.createElement(View, { className: 'item-content__info-title' }, title),
|
|
@@ -2123,7 +2104,7 @@ var AtListItem = /** @class */ (function (_super) {
|
|
|
2123
2104
|
isSwitch && !extraThumb && !extraText && (React.createElement(View, { className: 'item-extra__switch', onClick: this.handleSwitchClick },
|
|
2124
2105
|
React.createElement(Switch, { color: switchColor, disabled: disabled, checked: switchIsCheck, onChange: this.handleSwitchChange }))),
|
|
2125
2106
|
arrow ? (React.createElement(View, { className: 'item-extra__icon' },
|
|
2126
|
-
React.createElement(Text, { className: "at-icon item-extra__icon-arrow at-icon-chevron-"
|
|
2107
|
+
React.createElement(Text, { className: "at-icon item-extra__icon-arrow at-icon-chevron-".concat(arrow) }))) : null))));
|
|
2127
2108
|
};
|
|
2128
2109
|
return AtListItem;
|
|
2129
2110
|
}(React.Component));
|
|
@@ -2141,26 +2122,26 @@ AtListItem.defaultProps = {
|
|
|
2141
2122
|
iconInfo: { value: '' }
|
|
2142
2123
|
};
|
|
2143
2124
|
AtListItem.propTypes = {
|
|
2144
|
-
note:
|
|
2145
|
-
disabled:
|
|
2146
|
-
title:
|
|
2147
|
-
thumb:
|
|
2148
|
-
onClick:
|
|
2149
|
-
isSwitch:
|
|
2150
|
-
hasBorder:
|
|
2151
|
-
switchColor:
|
|
2152
|
-
switchIsCheck:
|
|
2153
|
-
extraText:
|
|
2154
|
-
extraThumb:
|
|
2155
|
-
onSwitchChange:
|
|
2156
|
-
arrow:
|
|
2157
|
-
iconInfo:
|
|
2158
|
-
size:
|
|
2159
|
-
value:
|
|
2160
|
-
color:
|
|
2161
|
-
prefixClass:
|
|
2162
|
-
customStyle:
|
|
2163
|
-
className:
|
|
2125
|
+
note: isJSXElement,
|
|
2126
|
+
disabled: propTypes.bool,
|
|
2127
|
+
title: isJSXElement,
|
|
2128
|
+
thumb: propTypes.string,
|
|
2129
|
+
onClick: propTypes.func,
|
|
2130
|
+
isSwitch: propTypes.bool,
|
|
2131
|
+
hasBorder: propTypes.bool,
|
|
2132
|
+
switchColor: propTypes.string,
|
|
2133
|
+
switchIsCheck: propTypes.bool,
|
|
2134
|
+
extraText: isJSXElement,
|
|
2135
|
+
extraThumb: propTypes.string,
|
|
2136
|
+
onSwitchChange: propTypes.func,
|
|
2137
|
+
arrow: propTypes.oneOf(['up', 'down', 'right']),
|
|
2138
|
+
iconInfo: propTypes.shape({
|
|
2139
|
+
size: propTypes.number,
|
|
2140
|
+
value: propTypes.string,
|
|
2141
|
+
color: propTypes.string,
|
|
2142
|
+
prefixClass: propTypes.string,
|
|
2143
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
2144
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string])
|
|
2164
2145
|
})
|
|
2165
2146
|
};
|
|
2166
2147
|
|
|
@@ -2238,7 +2219,7 @@ var AtDrawer = /** @class */ (function (_super) {
|
|
|
2238
2219
|
};
|
|
2239
2220
|
return _show ? (React.createElement(View, { className: classnames(rootClassName, classObject, this.props.className) },
|
|
2240
2221
|
React.createElement(View, { className: 'at-drawer__mask', style: maskStyle, onClick: this.onMaskClick.bind(this) }),
|
|
2241
|
-
React.createElement(View, { className: 'at-drawer__content', style: listStyle }, !!items && items.length ? (React.createElement(AtList, null, items.map(function (name, index) { return (React.createElement(AtListItem, { key: name
|
|
2222
|
+
React.createElement(View, { className: 'at-drawer__content', style: listStyle }, !!items && items.length ? (React.createElement(AtList, null, items.map(function (name, index) { return (React.createElement(AtListItem, { key: "".concat(name, "-").concat(index), "data-index": index, onClick: _this.onItemClick.bind(_this, index), title: name, arrow: 'right' })); }))) : (this.props.children)))) : (React.createElement(View, null));
|
|
2242
2223
|
};
|
|
2243
2224
|
return AtDrawer;
|
|
2244
2225
|
}(React.Component));
|
|
@@ -2250,30 +2231,27 @@ AtDrawer.defaultProps = {
|
|
|
2250
2231
|
items: []
|
|
2251
2232
|
};
|
|
2252
2233
|
AtDrawer.propTypes = {
|
|
2253
|
-
show:
|
|
2254
|
-
mask:
|
|
2255
|
-
width:
|
|
2256
|
-
items:
|
|
2257
|
-
onItemClick:
|
|
2258
|
-
onClose:
|
|
2234
|
+
show: propTypes.bool,
|
|
2235
|
+
mask: propTypes.bool,
|
|
2236
|
+
width: propTypes.string,
|
|
2237
|
+
items: propTypes.arrayOf(propTypes.string),
|
|
2238
|
+
onItemClick: propTypes.func,
|
|
2239
|
+
onClose: propTypes.func
|
|
2259
2240
|
};
|
|
2260
2241
|
|
|
2261
2242
|
var AtFloatLayout = /** @class */ (function (_super) {
|
|
2262
2243
|
__extends(AtFloatLayout, _super);
|
|
2263
2244
|
function AtFloatLayout(props) {
|
|
2264
2245
|
var _this = _super.call(this, props) || this;
|
|
2265
|
-
_this.handleClose = function () {
|
|
2246
|
+
_this.handleClose = function (e) {
|
|
2266
2247
|
if (typeof _this.props.onClose === 'function') {
|
|
2267
|
-
|
|
2268
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
2269
|
-
// @ts-ignore
|
|
2270
|
-
_this.props.onClose();
|
|
2248
|
+
_this.props.onClose(e);
|
|
2271
2249
|
}
|
|
2272
2250
|
};
|
|
2273
|
-
_this.close = function () {
|
|
2251
|
+
_this.close = function (e) {
|
|
2274
2252
|
_this.setState({
|
|
2275
2253
|
_isOpened: false
|
|
2276
|
-
}, _this.handleClose);
|
|
2254
|
+
}, function () { return _this.handleClose(e); });
|
|
2277
2255
|
};
|
|
2278
2256
|
_this.handleTouchMove = function (e) {
|
|
2279
2257
|
e.stopPropagation();
|
|
@@ -2308,16 +2286,7 @@ var AtFloatLayout = /** @class */ (function (_super) {
|
|
|
2308
2286
|
React.createElement(Text, { className: 'layout-header__title' }, title),
|
|
2309
2287
|
React.createElement(View, { className: 'layout-header__btn-close', onClick: this.close }))) : null,
|
|
2310
2288
|
React.createElement(View, { className: 'layout-body' },
|
|
2311
|
-
React.createElement(ScrollView, { scrollY: scrollY, scrollX: scrollX, scrollTop: scrollTop, scrollLeft: scrollLeft, upperThreshold: upperThreshold, lowerThreshold: lowerThreshold, scrollWithAnimation: scrollWithAnimation,
|
|
2312
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
2313
|
-
// @ts-ignore // TODO: Fix typings
|
|
2314
|
-
onScroll: this.props.onScroll,
|
|
2315
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
2316
|
-
// @ts-ignore // TODO: Fix typings
|
|
2317
|
-
onScrollToLower: this.props.onScrollToLower,
|
|
2318
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
2319
|
-
// @ts-ignore // TODO: Fix typings
|
|
2320
|
-
onScrollToUpper: this.props.onScrollToUpper, className: 'layout-body__content' }, this.props.children)))));
|
|
2289
|
+
React.createElement(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)))));
|
|
2321
2290
|
};
|
|
2322
2291
|
return AtFloatLayout;
|
|
2323
2292
|
}(React.Component));
|
|
@@ -2329,19 +2298,19 @@ AtFloatLayout.defaultProps = {
|
|
|
2329
2298
|
scrollWithAnimation: false
|
|
2330
2299
|
};
|
|
2331
2300
|
AtFloatLayout.propTypes = {
|
|
2332
|
-
title:
|
|
2333
|
-
isOpened:
|
|
2334
|
-
scrollY:
|
|
2335
|
-
scrollX:
|
|
2336
|
-
scrollTop:
|
|
2337
|
-
scrollLeft:
|
|
2338
|
-
upperThreshold:
|
|
2339
|
-
lowerThreshold:
|
|
2340
|
-
scrollWithAnimation:
|
|
2341
|
-
onClose:
|
|
2342
|
-
onScroll:
|
|
2343
|
-
onScrollToLower:
|
|
2344
|
-
onScrollToUpper:
|
|
2301
|
+
title: propTypes.string,
|
|
2302
|
+
isOpened: propTypes.bool,
|
|
2303
|
+
scrollY: propTypes.bool,
|
|
2304
|
+
scrollX: propTypes.bool,
|
|
2305
|
+
scrollTop: propTypes.number,
|
|
2306
|
+
scrollLeft: propTypes.number,
|
|
2307
|
+
upperThreshold: propTypes.number,
|
|
2308
|
+
lowerThreshold: propTypes.number,
|
|
2309
|
+
scrollWithAnimation: propTypes.bool,
|
|
2310
|
+
onClose: propTypes.func,
|
|
2311
|
+
onScroll: propTypes.func,
|
|
2312
|
+
onScrollToLower: propTypes.func,
|
|
2313
|
+
onScrollToUpper: propTypes.func
|
|
2345
2314
|
};
|
|
2346
2315
|
|
|
2347
2316
|
var AtForm = /** @class */ (function (_super) {
|
|
@@ -2368,11 +2337,11 @@ AtForm.defaultProps = {
|
|
|
2368
2337
|
reportSubmit: false
|
|
2369
2338
|
};
|
|
2370
2339
|
AtForm.propTypes = {
|
|
2371
|
-
customStyle:
|
|
2372
|
-
className:
|
|
2373
|
-
reportSubmit:
|
|
2374
|
-
onSubmit:
|
|
2375
|
-
onReset:
|
|
2340
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
2341
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
2342
|
+
reportSubmit: propTypes.bool,
|
|
2343
|
+
onSubmit: propTypes.func,
|
|
2344
|
+
onReset: propTypes.func
|
|
2376
2345
|
};
|
|
2377
2346
|
|
|
2378
2347
|
/**
|
|
@@ -2742,44 +2711,6 @@ function isIterateeCall(value, index, object) {
|
|
|
2742
2711
|
|
|
2743
2712
|
var _isIterateeCall = isIterateeCall;
|
|
2744
2713
|
|
|
2745
|
-
/** Used to match a single whitespace character. */
|
|
2746
|
-
var reWhitespace = /\s/;
|
|
2747
|
-
|
|
2748
|
-
/**
|
|
2749
|
-
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
2750
|
-
* character of `string`.
|
|
2751
|
-
*
|
|
2752
|
-
* @private
|
|
2753
|
-
* @param {string} string The string to inspect.
|
|
2754
|
-
* @returns {number} Returns the index of the last non-whitespace character.
|
|
2755
|
-
*/
|
|
2756
|
-
function trimmedEndIndex(string) {
|
|
2757
|
-
var index = string.length;
|
|
2758
|
-
|
|
2759
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
2760
|
-
return index;
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
var _trimmedEndIndex = trimmedEndIndex;
|
|
2764
|
-
|
|
2765
|
-
/** Used to match leading whitespace. */
|
|
2766
|
-
var reTrimStart = /^\s+/;
|
|
2767
|
-
|
|
2768
|
-
/**
|
|
2769
|
-
* The base implementation of `_.trim`.
|
|
2770
|
-
*
|
|
2771
|
-
* @private
|
|
2772
|
-
* @param {string} string The string to trim.
|
|
2773
|
-
* @returns {string} Returns the trimmed string.
|
|
2774
|
-
*/
|
|
2775
|
-
function baseTrim(string) {
|
|
2776
|
-
return string
|
|
2777
|
-
? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
2778
|
-
: string;
|
|
2779
|
-
}
|
|
2780
|
-
|
|
2781
|
-
var _baseTrim = baseTrim;
|
|
2782
|
-
|
|
2783
2714
|
/**
|
|
2784
2715
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
2785
2716
|
* and has a `typeof` result of "object".
|
|
@@ -2840,6 +2771,9 @@ var isSymbol_1 = isSymbol;
|
|
|
2840
2771
|
/** Used as references for various `Number` constants. */
|
|
2841
2772
|
var NAN = 0 / 0;
|
|
2842
2773
|
|
|
2774
|
+
/** Used to match leading and trailing whitespace. */
|
|
2775
|
+
var reTrim = /^\s+|\s+$/g;
|
|
2776
|
+
|
|
2843
2777
|
/** Used to detect bad signed hexadecimal string values. */
|
|
2844
2778
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
2845
2779
|
|
|
@@ -2889,7 +2823,7 @@ function toNumber(value) {
|
|
|
2889
2823
|
if (typeof value != 'string') {
|
|
2890
2824
|
return value === 0 ? value : +value;
|
|
2891
2825
|
}
|
|
2892
|
-
value =
|
|
2826
|
+
value = value.replace(reTrim, '');
|
|
2893
2827
|
var isBinary = reIsBinary.test(value);
|
|
2894
2828
|
return (isBinary || reIsOctal.test(value))
|
|
2895
2829
|
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
@@ -3041,26 +2975,25 @@ var AtGrid = /** @class */ (function (_super) {
|
|
|
3041
2975
|
return null;
|
|
3042
2976
|
}
|
|
3043
2977
|
var gridGroup = chunk_1(data, columnNum);
|
|
3044
|
-
var bodyClass = classnames(['at-grid__flex-item', 'at-grid-item', "at-grid-item--"
|
|
2978
|
+
var bodyClass = classnames(['at-grid__flex-item', 'at-grid-item', "at-grid-item--".concat(mode)], {
|
|
3045
2979
|
'at-grid-item--no-border': !hasBorder
|
|
3046
2980
|
});
|
|
3047
|
-
return (React.createElement(View, { className: classnames('at-grid', this.props.className) }, gridGroup.map(function (item, i) { return (React.createElement(View, { className: 'at-grid__flex', key: "at-grid-group-"
|
|
2981
|
+
return (React.createElement(View, { className: classnames('at-grid', this.props.className) }, gridGroup.map(function (item, i) { return (React.createElement(View, { className: 'at-grid__flex', key: "at-grid-group-".concat(i) }, item.map(function (childItem, index) {
|
|
3048
2982
|
var _a;
|
|
3049
|
-
return (React.createElement(View, { key: "at-grid-item-"
|
|
2983
|
+
return (React.createElement(View, { key: "at-grid-item-".concat(index), className: classnames(bodyClass, {
|
|
3050
2984
|
'at-grid-item--last': index === columnNum - 1
|
|
3051
2985
|
}), onClick: _this.handleClick.bind(_this, childItem, index, i), style: {
|
|
3052
|
-
flex: "0 0 "
|
|
2986
|
+
flex: "0 0 ".concat(100 / columnNum, "%")
|
|
3053
2987
|
} },
|
|
3054
2988
|
React.createElement(View, { className: 'at-grid-item__content' },
|
|
3055
2989
|
React.createElement(View, { className: 'at-grid-item__content-inner' },
|
|
3056
2990
|
React.createElement(View, { className: 'content-inner__icon' },
|
|
3057
2991
|
childItem.image && (React.createElement(Image, { className: 'content-inner__img', src: childItem.image, mode: 'scaleToFill' })),
|
|
3058
2992
|
childItem.iconInfo && !childItem.image && (React.createElement(Text, { className: classnames(childItem.iconInfo.prefixClass || 'at-icon', (_a = {},
|
|
3059
|
-
_a[(childItem.iconInfo.prefixClass || 'at-icon'
|
|
3060
|
-
.iconInfo.value,
|
|
2993
|
+
_a["".concat(childItem.iconInfo.prefixClass || 'at-icon', "-").concat(childItem.iconInfo.value)] = childItem.iconInfo.value,
|
|
3061
2994
|
_a), childItem.iconInfo.className), style: mergeStyle({
|
|
3062
2995
|
color: childItem.iconInfo.color,
|
|
3063
|
-
fontSize: (childItem.iconInfo.size || 24
|
|
2996
|
+
fontSize: "".concat(childItem.iconInfo.size || 24, "px")
|
|
3064
2997
|
},
|
|
3065
2998
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3066
2999
|
childItem.iconInfo.customStyle) }))),
|
|
@@ -3076,20 +3009,20 @@ AtGrid.defaultProps = {
|
|
|
3076
3009
|
hasBorder: true
|
|
3077
3010
|
};
|
|
3078
3011
|
AtGrid.propTypes = {
|
|
3079
|
-
mode:
|
|
3080
|
-
onClick:
|
|
3081
|
-
hasBorder:
|
|
3082
|
-
columnNum:
|
|
3083
|
-
data:
|
|
3084
|
-
image:
|
|
3085
|
-
value:
|
|
3086
|
-
iconInfo:
|
|
3087
|
-
size:
|
|
3088
|
-
value:
|
|
3089
|
-
color:
|
|
3090
|
-
prefixClass:
|
|
3091
|
-
customStyle:
|
|
3092
|
-
className:
|
|
3012
|
+
mode: propTypes.string,
|
|
3013
|
+
onClick: propTypes.func,
|
|
3014
|
+
hasBorder: propTypes.bool,
|
|
3015
|
+
columnNum: propTypes.number,
|
|
3016
|
+
data: propTypes.arrayOf(propTypes.shape({
|
|
3017
|
+
image: propTypes.string,
|
|
3018
|
+
value: propTypes.string,
|
|
3019
|
+
iconInfo: propTypes.shape({
|
|
3020
|
+
size: propTypes.number,
|
|
3021
|
+
value: propTypes.string,
|
|
3022
|
+
color: propTypes.string,
|
|
3023
|
+
prefixClass: propTypes.string,
|
|
3024
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
3025
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string])
|
|
3093
3026
|
})
|
|
3094
3027
|
}))
|
|
3095
3028
|
};
|
|
@@ -3105,10 +3038,10 @@ var AtIcon = /** @class */ (function (_super) {
|
|
|
3105
3038
|
AtIcon.prototype.render = function () {
|
|
3106
3039
|
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;
|
|
3107
3040
|
var rootStyle = {
|
|
3108
|
-
fontSize: ""
|
|
3041
|
+
fontSize: "".concat(pxTransform(parseInt(String(size)) * 2)),
|
|
3109
3042
|
color: color
|
|
3110
3043
|
};
|
|
3111
|
-
var iconName = value ? prefixClass
|
|
3044
|
+
var iconName = value ? "".concat(prefixClass, "-").concat(value) : '';
|
|
3112
3045
|
return (React.createElement(Text, { className: classnames(prefixClass, iconName, className), style: mergeStyle(rootStyle, customStyle), onClick: this.handleClick.bind(this) }));
|
|
3113
3046
|
};
|
|
3114
3047
|
return AtIcon;
|
|
@@ -3122,13 +3055,13 @@ AtIcon.defaultProps = {
|
|
|
3122
3055
|
size: 24
|
|
3123
3056
|
};
|
|
3124
3057
|
AtIcon.propTypes = {
|
|
3125
|
-
customStyle:
|
|
3126
|
-
className:
|
|
3127
|
-
prefixClass:
|
|
3128
|
-
value:
|
|
3129
|
-
color:
|
|
3130
|
-
size:
|
|
3131
|
-
onClick:
|
|
3058
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
3059
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
3060
|
+
prefixClass: propTypes.string,
|
|
3061
|
+
value: propTypes.string,
|
|
3062
|
+
color: propTypes.string,
|
|
3063
|
+
size: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
3064
|
+
onClick: propTypes.func
|
|
3132
3065
|
};
|
|
3133
3066
|
|
|
3134
3067
|
function getInputProps(props) {
|
|
@@ -3223,11 +3156,8 @@ var AtInput = /** @class */ (function (_super) {
|
|
|
3223
3156
|
return (React.createElement(View, { className: rootCls, style: customStyle },
|
|
3224
3157
|
React.createElement(View, { className: containerCls },
|
|
3225
3158
|
React.createElement(View, { className: overlayCls, onClick: this.handleClick }),
|
|
3226
|
-
title && (React.createElement(Label, { className: "at-input__title "
|
|
3227
|
-
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,
|
|
3228
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
3229
|
-
// @ts-ignore
|
|
3230
|
-
onKeyboardHeightChange: this.handleKeyboardHeightChange })),
|
|
3159
|
+
title && (React.createElement(Label, { className: "at-input__title ".concat(required && 'at-input__title--required'), for: name }, title)),
|
|
3160
|
+
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, onKeyboardHeightChange: this.handleKeyboardHeightChange })),
|
|
3231
3161
|
clear && value && (React.createElement(View, { className: 'at-input__icon', onTouchEnd: this.handleClearValue },
|
|
3232
3162
|
React.createElement(Text, { className: 'at-icon at-icon-close-circle at-input__icon-close' }))),
|
|
3233
3163
|
error && (React.createElement(View, { className: 'at-input__icon', onTouchStart: this.handleErrorClick },
|
|
@@ -3266,37 +3196,37 @@ AtInput.defaultProps = {
|
|
|
3266
3196
|
onChange: function () { }
|
|
3267
3197
|
};
|
|
3268
3198
|
AtInput.propTypes = {
|
|
3269
|
-
className:
|
|
3270
|
-
customStyle:
|
|
3271
|
-
value:
|
|
3272
|
-
name:
|
|
3273
|
-
placeholder:
|
|
3274
|
-
placeholderStyle:
|
|
3275
|
-
placeholderClass:
|
|
3276
|
-
title:
|
|
3277
|
-
confirmType:
|
|
3278
|
-
cursor:
|
|
3279
|
-
selectionStart:
|
|
3280
|
-
selectionEnd:
|
|
3281
|
-
adjustPosition:
|
|
3282
|
-
cursorSpacing:
|
|
3283
|
-
maxlength:
|
|
3284
|
-
maxLength:
|
|
3285
|
-
type:
|
|
3286
|
-
disabled:
|
|
3287
|
-
border:
|
|
3288
|
-
editable:
|
|
3289
|
-
error:
|
|
3290
|
-
clear:
|
|
3291
|
-
autoFocus:
|
|
3292
|
-
focus:
|
|
3293
|
-
onChange:
|
|
3294
|
-
onFocus:
|
|
3295
|
-
onBlur:
|
|
3296
|
-
onConfirm:
|
|
3297
|
-
onErrorClick:
|
|
3298
|
-
onClick:
|
|
3299
|
-
required:
|
|
3199
|
+
className: propTypes.oneOfType([propTypes.string, propTypes.array]),
|
|
3200
|
+
customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
|
|
3201
|
+
value: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
3202
|
+
name: propTypes.string,
|
|
3203
|
+
placeholder: propTypes.string,
|
|
3204
|
+
placeholderStyle: propTypes.string,
|
|
3205
|
+
placeholderClass: propTypes.string,
|
|
3206
|
+
title: propTypes.string,
|
|
3207
|
+
confirmType: propTypes.string,
|
|
3208
|
+
cursor: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
3209
|
+
selectionStart: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
3210
|
+
selectionEnd: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
3211
|
+
adjustPosition: propTypes.bool,
|
|
3212
|
+
cursorSpacing: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
3213
|
+
maxlength: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
3214
|
+
maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
3215
|
+
type: propTypes.string,
|
|
3216
|
+
disabled: propTypes.bool,
|
|
3217
|
+
border: propTypes.bool,
|
|
3218
|
+
editable: propTypes.bool,
|
|
3219
|
+
error: propTypes.bool,
|
|
3220
|
+
clear: propTypes.bool,
|
|
3221
|
+
autoFocus: propTypes.bool,
|
|
3222
|
+
focus: propTypes.bool,
|
|
3223
|
+
onChange: propTypes.func,
|
|
3224
|
+
onFocus: propTypes.func,
|
|
3225
|
+
onBlur: propTypes.func,
|
|
3226
|
+
onConfirm: propTypes.func,
|
|
3227
|
+
onErrorClick: propTypes.func,
|
|
3228
|
+
onClick: propTypes.func,
|
|
3229
|
+
required: propTypes.bool
|
|
3300
3230
|
};
|
|
3301
3231
|
|
|
3302
3232
|
/**
|
|
@@ -3446,14 +3376,14 @@ var AtInputNumber = /** @class */ (function (_super) {
|
|
|
3446
3376
|
var _a = _this.props, _b = _a.max, max = _b === void 0 ? 100 : _b, _c = _a.min, min = _c === void 0 ? 0 : _c;
|
|
3447
3377
|
var resultValue = value === '' ? min : value;
|
|
3448
3378
|
// 此处不能使用 Math.max,会是字符串变数字,并丢失 .
|
|
3449
|
-
if (resultValue > max) {
|
|
3379
|
+
if (Number(resultValue) > max) {
|
|
3450
3380
|
resultValue = max;
|
|
3451
3381
|
_this.handleError({
|
|
3452
3382
|
type: 'OVER',
|
|
3453
3383
|
errorValue: resultValue
|
|
3454
3384
|
});
|
|
3455
3385
|
}
|
|
3456
|
-
if (resultValue < min) {
|
|
3386
|
+
if (Number(resultValue) < min) {
|
|
3457
3387
|
resultValue = min;
|
|
3458
3388
|
_this.handleError({
|
|
3459
3389
|
type: 'LOW',
|
|
@@ -3492,8 +3422,8 @@ var AtInputNumber = /** @class */ (function (_super) {
|
|
|
3492
3422
|
}
|
|
3493
3423
|
AtInputNumber.prototype.handleClick = function (clickType, e) {
|
|
3494
3424
|
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;
|
|
3495
|
-
var lowThanMin = clickType === 'minus' && value <= min;
|
|
3496
|
-
var overThanMax = clickType === 'plus' && value >= max;
|
|
3425
|
+
var lowThanMin = clickType === 'minus' && Number(value) <= min;
|
|
3426
|
+
var overThanMax = clickType === 'plus' && Number(value) >= max;
|
|
3497
3427
|
if (lowThanMin || overThanMax || disabled) {
|
|
3498
3428
|
var deltaValue_1 = clickType === 'minus' ? -step : step;
|
|
3499
3429
|
var errorValue = addNum(Number(value), deltaValue_1);
|
|
@@ -3519,7 +3449,7 @@ var AtInputNumber = /** @class */ (function (_super) {
|
|
|
3519
3449
|
AtInputNumber.prototype.render = function () {
|
|
3520
3450
|
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;
|
|
3521
3451
|
var inputStyle = {
|
|
3522
|
-
width: width ? ""
|
|
3452
|
+
width: width ? "".concat(pxTransform(width)) : ''
|
|
3523
3453
|
};
|
|
3524
3454
|
var inputValue = Number(this.handleValue(value));
|
|
3525
3455
|
var rootCls = classnames('at-input-number', {
|
|
@@ -3556,20 +3486,20 @@ AtInputNumber.defaultProps = {
|
|
|
3556
3486
|
onChange: function () { }
|
|
3557
3487
|
};
|
|
3558
3488
|
AtInputNumber.propTypes = {
|
|
3559
|
-
customStyle:
|
|
3560
|
-
className:
|
|
3561
|
-
value:
|
|
3562
|
-
type:
|
|
3563
|
-
disabled:
|
|
3564
|
-
width:
|
|
3565
|
-
min:
|
|
3566
|
-
max:
|
|
3567
|
-
step:
|
|
3568
|
-
size:
|
|
3569
|
-
disabledInput:
|
|
3570
|
-
onChange:
|
|
3571
|
-
onBlur:
|
|
3572
|
-
onErrorInput:
|
|
3489
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
3490
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
3491
|
+
value: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
3492
|
+
type: propTypes.oneOf(['number', 'digit']),
|
|
3493
|
+
disabled: propTypes.bool,
|
|
3494
|
+
width: propTypes.number,
|
|
3495
|
+
min: propTypes.number,
|
|
3496
|
+
max: propTypes.number,
|
|
3497
|
+
step: propTypes.number,
|
|
3498
|
+
size: propTypes.oneOf(['normal', 'large']),
|
|
3499
|
+
disabledInput: propTypes.bool,
|
|
3500
|
+
onChange: propTypes.func,
|
|
3501
|
+
onBlur: propTypes.func,
|
|
3502
|
+
onErrorInput: propTypes.func
|
|
3573
3503
|
};
|
|
3574
3504
|
|
|
3575
3505
|
var AtModalAction = /** @class */ (function (_super) {
|
|
@@ -3590,7 +3520,7 @@ AtModalAction.defaultProps = {
|
|
|
3590
3520
|
isSimple: false
|
|
3591
3521
|
};
|
|
3592
3522
|
AtModalAction.propTypes = {
|
|
3593
|
-
isSimple:
|
|
3523
|
+
isSimple: propTypes.bool
|
|
3594
3524
|
};
|
|
3595
3525
|
|
|
3596
3526
|
var AtModalContent = /** @class */ (function (_super) {
|
|
@@ -3679,13 +3609,7 @@ var AtModal = /** @class */ (function (_super) {
|
|
|
3679
3609
|
title && (React.createElement(AtModalHeader, null,
|
|
3680
3610
|
React.createElement(Text, null, title))),
|
|
3681
3611
|
content && (React.createElement(AtModalContent, null,
|
|
3682
|
-
React.createElement(View, { className: 'content-simple' }, isWEB ? (React.createElement(Text
|
|
3683
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
3684
|
-
// @ts-ignore
|
|
3685
|
-
, {
|
|
3686
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
3687
|
-
// @ts-ignore
|
|
3688
|
-
dangerouslySetInnerHTML: {
|
|
3612
|
+
React.createElement(View, { className: 'content-simple' }, isWEB ? (React.createElement(Text, { dangerouslySetInnerHTML: {
|
|
3689
3613
|
__html: content.replace(/\\n/g, '<br/>')
|
|
3690
3614
|
} })) : (React.createElement(Text, null, content))))),
|
|
3691
3615
|
isRenderAction && (React.createElement(AtModalAction, { isSimple: true },
|
|
@@ -3703,15 +3627,15 @@ AtModal.defaultProps = {
|
|
|
3703
3627
|
closeOnClickOverlay: true
|
|
3704
3628
|
};
|
|
3705
3629
|
AtModal.propTypes = {
|
|
3706
|
-
title:
|
|
3707
|
-
isOpened:
|
|
3708
|
-
onCancel:
|
|
3709
|
-
onConfirm:
|
|
3710
|
-
onClose:
|
|
3711
|
-
content:
|
|
3712
|
-
closeOnClickOverlay:
|
|
3713
|
-
cancelText:
|
|
3714
|
-
confirmText:
|
|
3630
|
+
title: propTypes.string,
|
|
3631
|
+
isOpened: propTypes.bool,
|
|
3632
|
+
onCancel: propTypes.func,
|
|
3633
|
+
onConfirm: propTypes.func,
|
|
3634
|
+
onClose: propTypes.func,
|
|
3635
|
+
content: propTypes.string,
|
|
3636
|
+
closeOnClickOverlay: propTypes.bool,
|
|
3637
|
+
cancelText: propTypes.string,
|
|
3638
|
+
confirmText: propTypes.string
|
|
3715
3639
|
};
|
|
3716
3640
|
|
|
3717
3641
|
var AtNavBar = /** @class */ (function (_super) {
|
|
@@ -3746,17 +3670,17 @@ var AtNavBar = /** @class */ (function (_super) {
|
|
|
3746
3670
|
var leftIconInfo = leftIconType instanceof Object
|
|
3747
3671
|
? __assign(__assign({}, defaultIconInfo), leftIconType) : __assign(__assign({}, defaultIconInfo), { value: leftIconType });
|
|
3748
3672
|
var leftIconClass = classnames(leftIconInfo.prefixClass, (_a = {},
|
|
3749
|
-
_a[leftIconInfo.prefixClass
|
|
3673
|
+
_a["".concat(leftIconInfo.prefixClass, "-").concat(leftIconInfo.value)] = leftIconInfo.value,
|
|
3750
3674
|
_a), leftIconInfo.className);
|
|
3751
3675
|
var rightFirstIconInfo = rightFirstIconType instanceof Object
|
|
3752
3676
|
? __assign(__assign({}, defaultIconInfo), rightFirstIconType) : __assign(__assign({}, defaultIconInfo), { value: rightFirstIconType });
|
|
3753
3677
|
var rightFirstIconClass = classnames(rightFirstIconInfo.prefixClass, (_b = {},
|
|
3754
|
-
_b[rightFirstIconInfo.prefixClass
|
|
3678
|
+
_b["".concat(rightFirstIconInfo.prefixClass, "-").concat(rightFirstIconInfo.value)] = rightFirstIconInfo.value,
|
|
3755
3679
|
_b), rightFirstIconInfo.className);
|
|
3756
3680
|
var rightSecondIconInfo = rightSecondIconType instanceof Object
|
|
3757
3681
|
? __assign(__assign({}, defaultIconInfo), rightSecondIconType) : __assign(__assign({}, defaultIconInfo), { value: rightSecondIconType });
|
|
3758
3682
|
var rightSecondIconClass = classnames(rightSecondIconInfo.prefixClass, (_c = {},
|
|
3759
|
-
_c[rightSecondIconInfo.prefixClass
|
|
3683
|
+
_c["".concat(rightSecondIconInfo.prefixClass, "-").concat(rightSecondIconInfo.value)] = rightSecondIconInfo.value,
|
|
3760
3684
|
_c), rightSecondIconInfo.className);
|
|
3761
3685
|
return (React.createElement(View, { className: classnames({
|
|
3762
3686
|
'at-nav-bar': true,
|
|
@@ -3766,7 +3690,7 @@ var AtNavBar = /** @class */ (function (_super) {
|
|
|
3766
3690
|
React.createElement(View, { className: 'at-nav-bar__left-view', onClick: this.handleClickLeftView.bind(this), style: linkStyle },
|
|
3767
3691
|
leftIconType && (React.createElement(Text, { className: leftIconClass, style: mergeStyle({
|
|
3768
3692
|
color: leftIconInfo.color,
|
|
3769
|
-
fontSize: ""
|
|
3693
|
+
fontSize: "".concat(pxTransform(parseInt(leftIconInfo.size.toString()) * 2))
|
|
3770
3694
|
}, leftIconInfo.customStyle) })),
|
|
3771
3695
|
React.createElement(Text, { className: 'at-nav-bar__text' }, leftText)),
|
|
3772
3696
|
React.createElement(View, { className: 'at-nav-bar__title', onClick: this.handleClickTitle.bind(this) }, title || this.props.children),
|
|
@@ -3776,14 +3700,14 @@ var AtNavBar = /** @class */ (function (_super) {
|
|
|
3776
3700
|
'at-nav-bar__container--hide': !rightSecondIconType
|
|
3777
3701
|
}), style: linkStyle, onClick: this.handleClickNd.bind(this) }, rightSecondIconType && (React.createElement(Text, { className: rightSecondIconClass, style: mergeStyle({
|
|
3778
3702
|
color: rightSecondIconInfo.color,
|
|
3779
|
-
fontSize: ""
|
|
3703
|
+
fontSize: "".concat(pxTransform(parseInt(rightSecondIconInfo.size.toString()) * 2))
|
|
3780
3704
|
}, rightSecondIconInfo.customStyle) }))),
|
|
3781
3705
|
React.createElement(View, { className: classnames({
|
|
3782
3706
|
'at-nav-bar__container': true,
|
|
3783
3707
|
'at-nav-bar__container--hide': !rightFirstIconType
|
|
3784
3708
|
}), style: linkStyle, onClick: this.handleClickSt.bind(this) }, rightFirstIconType && (React.createElement(Text, { className: rightFirstIconClass, style: mergeStyle({
|
|
3785
3709
|
color: rightFirstIconInfo.color,
|
|
3786
|
-
fontSize: ""
|
|
3710
|
+
fontSize: "".concat(pxTransform(parseInt(rightFirstIconInfo.size.toString()) * 2))
|
|
3787
3711
|
}, rightFirstIconInfo.customStyle) }))))));
|
|
3788
3712
|
};
|
|
3789
3713
|
return AtNavBar;
|
|
@@ -3801,30 +3725,30 @@ AtNavBar.defaultProps = {
|
|
|
3801
3725
|
rightSecondIconType: ''
|
|
3802
3726
|
};
|
|
3803
3727
|
AtNavBar.propTypes = {
|
|
3804
|
-
customStyle:
|
|
3805
|
-
className:
|
|
3806
|
-
fixed:
|
|
3807
|
-
border:
|
|
3808
|
-
color:
|
|
3809
|
-
leftIconType:
|
|
3810
|
-
leftText:
|
|
3811
|
-
title:
|
|
3812
|
-
rightFirstIconType:
|
|
3813
|
-
rightSecondIconType:
|
|
3814
|
-
|
|
3815
|
-
|
|
3728
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
3729
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
3730
|
+
fixed: propTypes.bool,
|
|
3731
|
+
border: propTypes.bool,
|
|
3732
|
+
color: propTypes.string,
|
|
3733
|
+
leftIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
|
|
3734
|
+
leftText: propTypes.string,
|
|
3735
|
+
title: propTypes.string,
|
|
3736
|
+
rightFirstIconType: propTypes.oneOfType([propTypes.string, propTypes.object]),
|
|
3737
|
+
rightSecondIconType: propTypes.oneOfType([
|
|
3738
|
+
propTypes.string,
|
|
3739
|
+
propTypes.object
|
|
3816
3740
|
]),
|
|
3817
|
-
onClickLeftIcon:
|
|
3818
|
-
onClickRgIconSt:
|
|
3819
|
-
onClickRgIconNd:
|
|
3820
|
-
onClickTitle:
|
|
3741
|
+
onClickLeftIcon: propTypes.func,
|
|
3742
|
+
onClickRgIconSt: propTypes.func,
|
|
3743
|
+
onClickRgIconNd: propTypes.func,
|
|
3744
|
+
onClickTitle: propTypes.func
|
|
3821
3745
|
};
|
|
3822
3746
|
|
|
3823
3747
|
var AtNoticebar = /** @class */ (function (_super) {
|
|
3824
3748
|
__extends(AtNoticebar, _super);
|
|
3825
3749
|
function AtNoticebar(props) {
|
|
3826
3750
|
var _this = _super.call(this, props) || this;
|
|
3827
|
-
var animElemId = "J_"
|
|
3751
|
+
var animElemId = "J_".concat(Math.ceil(Math.random() * 10e5).toString(36));
|
|
3828
3752
|
_this.state = {
|
|
3829
3753
|
show: true,
|
|
3830
3754
|
animElemId: animElemId,
|
|
@@ -3861,13 +3785,11 @@ var AtNoticebar = /** @class */ (function (_super) {
|
|
|
3861
3785
|
AtNoticebar.prototype.initAnimation = function () {
|
|
3862
3786
|
var _this = this;
|
|
3863
3787
|
var _a = this.state, isWEAPP = _a.isWEAPP, isALIPAY = _a.isALIPAY;
|
|
3864
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
3865
|
-
// @ts-ignore
|
|
3866
3788
|
this.timeout = setTimeout(function () {
|
|
3867
3789
|
_this.timeout = null;
|
|
3868
3790
|
if (_this.state.isWEB) {
|
|
3869
3791
|
var _a = _this.props.speed, speed = _a === void 0 ? 100 : _a;
|
|
3870
|
-
var elem = document.querySelector("."
|
|
3792
|
+
var elem = document.querySelector(".".concat(_this.state.animElemId));
|
|
3871
3793
|
if (!elem)
|
|
3872
3794
|
return;
|
|
3873
3795
|
var width = elem.getBoundingClientRect().width;
|
|
@@ -3877,7 +3799,7 @@ var AtNoticebar = /** @class */ (function (_super) {
|
|
|
3877
3799
|
else if (isWEAPP || isALIPAY) {
|
|
3878
3800
|
var query = Taro.createSelectorQuery();
|
|
3879
3801
|
query
|
|
3880
|
-
.select("."
|
|
3802
|
+
.select(".".concat(_this.state.animElemId))
|
|
3881
3803
|
.boundingClientRect()
|
|
3882
3804
|
.exec(function (res) {
|
|
3883
3805
|
var queryRes = res[0];
|
|
@@ -3915,8 +3837,6 @@ var AtNoticebar = /** @class */ (function (_super) {
|
|
|
3915
3837
|
}, 900);
|
|
3916
3838
|
};
|
|
3917
3839
|
animBody();
|
|
3918
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
3919
|
-
// @ts-ignore
|
|
3920
3840
|
_this.interval = setInterval(animBody, dura * 1000 + 1000);
|
|
3921
3841
|
});
|
|
3922
3842
|
}
|
|
@@ -3933,7 +3853,7 @@ var AtNoticebar = /** @class */ (function (_super) {
|
|
|
3933
3853
|
var innerClassName = ['at-noticebar__content-inner'];
|
|
3934
3854
|
if (marquee) {
|
|
3935
3855
|
close = false;
|
|
3936
|
-
style['animation-duration'] = dura
|
|
3856
|
+
style['animation-duration'] = "".concat(dura, "s");
|
|
3937
3857
|
innerClassName.push(animElemId);
|
|
3938
3858
|
}
|
|
3939
3859
|
var classObject = {
|
|
@@ -3943,7 +3863,7 @@ var AtNoticebar = /** @class */ (function (_super) {
|
|
|
3943
3863
|
};
|
|
3944
3864
|
var iconClass = ['at-icon'];
|
|
3945
3865
|
if (icon)
|
|
3946
|
-
iconClass.push("at-icon-"
|
|
3866
|
+
iconClass.push("at-icon-".concat(icon));
|
|
3947
3867
|
return (show && (React.createElement(View, { className: classnames(rootClassName, classObject, className), style: customStyle },
|
|
3948
3868
|
close && (React.createElement(View, { className: 'at-noticebar__close', onClick: this.onClose.bind(this) },
|
|
3949
3869
|
React.createElement(Text, { className: 'at-icon at-icon-close' }))),
|
|
@@ -3970,16 +3890,16 @@ AtNoticebar.defaultProps = {
|
|
|
3970
3890
|
customStyle: {}
|
|
3971
3891
|
};
|
|
3972
3892
|
AtNoticebar.propTypes = {
|
|
3973
|
-
close:
|
|
3974
|
-
single:
|
|
3975
|
-
marquee:
|
|
3976
|
-
speed:
|
|
3977
|
-
moreText:
|
|
3978
|
-
showMore:
|
|
3979
|
-
icon:
|
|
3980
|
-
customStyle:
|
|
3981
|
-
onClose:
|
|
3982
|
-
onGotoMore:
|
|
3893
|
+
close: propTypes.bool,
|
|
3894
|
+
single: propTypes.bool,
|
|
3895
|
+
marquee: propTypes.bool,
|
|
3896
|
+
speed: propTypes.number,
|
|
3897
|
+
moreText: propTypes.string,
|
|
3898
|
+
showMore: propTypes.bool,
|
|
3899
|
+
icon: propTypes.string,
|
|
3900
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
3901
|
+
onClose: propTypes.func,
|
|
3902
|
+
onGotoMore: propTypes.func
|
|
3983
3903
|
};
|
|
3984
3904
|
|
|
3985
3905
|
var MIN_MAXPAGE = 1;
|
|
@@ -4088,12 +4008,12 @@ AtPagination.defaultProps = {
|
|
|
4088
4008
|
customStyle: {}
|
|
4089
4009
|
};
|
|
4090
4010
|
AtPagination.propTypes = {
|
|
4091
|
-
current:
|
|
4092
|
-
total:
|
|
4093
|
-
pageSize:
|
|
4094
|
-
icon:
|
|
4095
|
-
customStyle:
|
|
4096
|
-
onPageChange:
|
|
4011
|
+
current: propTypes.number,
|
|
4012
|
+
total: propTypes.number,
|
|
4013
|
+
pageSize: propTypes.number,
|
|
4014
|
+
icon: propTypes.bool,
|
|
4015
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
4016
|
+
onPageChange: propTypes.func
|
|
4097
4017
|
};
|
|
4098
4018
|
|
|
4099
4019
|
var AtProgress = /** @class */ (function (_super) {
|
|
@@ -4116,31 +4036,31 @@ var AtProgress = /** @class */ (function (_super) {
|
|
|
4116
4036
|
percent = 100;
|
|
4117
4037
|
}
|
|
4118
4038
|
var rootClass = classnames('at-progress', (_a = {},
|
|
4119
|
-
_a["at-progress--"
|
|
4039
|
+
_a["at-progress--".concat(status)] = !!status,
|
|
4120
4040
|
_a), this.props.className);
|
|
4121
4041
|
var iconClass = classnames('at-icon', {
|
|
4122
4042
|
'at-icon-close-circle': status === 'error',
|
|
4123
4043
|
'at-icon-check-circle': status === 'success'
|
|
4124
4044
|
});
|
|
4125
4045
|
var progressStyle = {
|
|
4126
|
-
width: percent && +percent
|
|
4127
|
-
height: strokeWidth && +strokeWidth
|
|
4046
|
+
width: percent && "".concat(+percent, "%"),
|
|
4047
|
+
height: strokeWidth && "".concat(+strokeWidth, "px"),
|
|
4128
4048
|
backgroundColor: color
|
|
4129
4049
|
};
|
|
4130
4050
|
return (React.createElement(View, { className: rootClass },
|
|
4131
4051
|
React.createElement(View, { className: 'at-progress__outer' },
|
|
4132
4052
|
React.createElement(View, { className: 'at-progress__outer-inner' },
|
|
4133
4053
|
React.createElement(View, { className: 'at-progress__outer-inner-background', style: progressStyle }))),
|
|
4134
|
-
!isHidePercent && (React.createElement(View, { className: 'at-progress__content' }, !status || status === 'progress' ? (percent
|
|
4054
|
+
!isHidePercent && (React.createElement(View, { className: 'at-progress__content' }, !status || status === 'progress' ? ("".concat(percent, "%")) : (React.createElement(Text, { className: iconClass }))))));
|
|
4135
4055
|
};
|
|
4136
4056
|
return AtProgress;
|
|
4137
4057
|
}(React.Component));
|
|
4138
4058
|
AtProgress.propTypes = {
|
|
4139
|
-
color:
|
|
4140
|
-
status:
|
|
4141
|
-
percent:
|
|
4142
|
-
strokeWidth:
|
|
4143
|
-
isHidePercent:
|
|
4059
|
+
color: propTypes.string,
|
|
4060
|
+
status: propTypes.string,
|
|
4061
|
+
percent: propTypes.number,
|
|
4062
|
+
strokeWidth: propTypes.number,
|
|
4063
|
+
isHidePercent: propTypes.bool
|
|
4144
4064
|
};
|
|
4145
4065
|
|
|
4146
4066
|
var AtRadio = /** @class */ (function (_super) {
|
|
@@ -4181,11 +4101,11 @@ AtRadio.defaultProps = {
|
|
|
4181
4101
|
onClick: function () { }
|
|
4182
4102
|
};
|
|
4183
4103
|
AtRadio.propTypes = {
|
|
4184
|
-
customStyle:
|
|
4185
|
-
className:
|
|
4186
|
-
value:
|
|
4187
|
-
options:
|
|
4188
|
-
onClick:
|
|
4104
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
4105
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
4106
|
+
value: propTypes.string,
|
|
4107
|
+
options: propTypes.array,
|
|
4108
|
+
onClick: propTypes.func
|
|
4189
4109
|
};
|
|
4190
4110
|
|
|
4191
4111
|
var AtRate = /** @class */ (function (_super) {
|
|
@@ -4203,7 +4123,7 @@ var AtRate = /** @class */ (function (_super) {
|
|
|
4203
4123
|
marginRight: pxTransform(margin)
|
|
4204
4124
|
};
|
|
4205
4125
|
var starIconStyle = {
|
|
4206
|
-
fontSize: size ? size
|
|
4126
|
+
fontSize: size ? "".concat(size, "px") : ''
|
|
4207
4127
|
};
|
|
4208
4128
|
// 生成星星颜色 className 数组,方便在jsx中直接map
|
|
4209
4129
|
var classNameArr = [];
|
|
@@ -4220,7 +4140,7 @@ var AtRate = /** @class */ (function (_super) {
|
|
|
4220
4140
|
classNameArr.push('at-rate__icon at-rate__icon--off');
|
|
4221
4141
|
}
|
|
4222
4142
|
}
|
|
4223
|
-
return (React.createElement(View, { className: classnames('at-rate', className), style: customStyle }, classNameArr.map(function (cls, i) { return (React.createElement(View, { className: cls, key: "at-rate-star-"
|
|
4143
|
+
return (React.createElement(View, { className: classnames('at-rate', className), style: customStyle }, classNameArr.map(function (cls, i) { return (React.createElement(View, { className: cls, key: "at-rate-star-".concat(i), style: iconStyle, onClick: _this.handleClick.bind(_this, i + 1) },
|
|
4224
4144
|
React.createElement(Text, { className: 'at-icon at-icon-star-2', style: starIconStyle }),
|
|
4225
4145
|
React.createElement(View, { className: 'at-rate__left' },
|
|
4226
4146
|
React.createElement(Text, { className: 'at-icon at-icon-star-2', style: starIconStyle })))); })));
|
|
@@ -4236,13 +4156,13 @@ AtRate.defaultProps = {
|
|
|
4236
4156
|
margin: 5
|
|
4237
4157
|
};
|
|
4238
4158
|
AtRate.propTypes = {
|
|
4239
|
-
customStyle:
|
|
4240
|
-
className:
|
|
4241
|
-
size:
|
|
4242
|
-
value:
|
|
4243
|
-
max:
|
|
4244
|
-
margin:
|
|
4245
|
-
onChange:
|
|
4159
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
4160
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
4161
|
+
size: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
4162
|
+
value: propTypes.number,
|
|
4163
|
+
max: propTypes.number,
|
|
4164
|
+
margin: propTypes.number,
|
|
4165
|
+
onChange: propTypes.func
|
|
4246
4166
|
};
|
|
4247
4167
|
|
|
4248
4168
|
var AtSegmentedControl = /** @class */ (function (_super) {
|
|
@@ -4295,14 +4215,14 @@ AtSegmentedControl.defaultProps = {
|
|
|
4295
4215
|
onClick: function () { }
|
|
4296
4216
|
};
|
|
4297
4217
|
AtSegmentedControl.propTypes = {
|
|
4298
|
-
customStyle:
|
|
4299
|
-
className:
|
|
4300
|
-
current:
|
|
4301
|
-
color:
|
|
4302
|
-
fontSize:
|
|
4303
|
-
disabled:
|
|
4304
|
-
values:
|
|
4305
|
-
onClick:
|
|
4218
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
4219
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
4220
|
+
current: propTypes.number,
|
|
4221
|
+
color: propTypes.string,
|
|
4222
|
+
fontSize: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
4223
|
+
disabled: propTypes.bool,
|
|
4224
|
+
values: propTypes.array,
|
|
4225
|
+
onClick: propTypes.func
|
|
4306
4226
|
};
|
|
4307
4227
|
|
|
4308
4228
|
var AtSwitch = /** @class */ (function (_super) {
|
|
@@ -4342,14 +4262,14 @@ AtSwitch.defaultProps = {
|
|
|
4342
4262
|
checked: false
|
|
4343
4263
|
};
|
|
4344
4264
|
AtSwitch.propTypes = {
|
|
4345
|
-
customStyle:
|
|
4346
|
-
className:
|
|
4347
|
-
title:
|
|
4348
|
-
color:
|
|
4349
|
-
checked:
|
|
4350
|
-
border:
|
|
4351
|
-
disabled:
|
|
4352
|
-
onChange:
|
|
4265
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
4266
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
4267
|
+
title: propTypes.string,
|
|
4268
|
+
color: propTypes.string,
|
|
4269
|
+
checked: propTypes.bool,
|
|
4270
|
+
border: propTypes.bool,
|
|
4271
|
+
disabled: propTypes.bool,
|
|
4272
|
+
onChange: propTypes.func
|
|
4353
4273
|
};
|
|
4354
4274
|
|
|
4355
4275
|
var AtTabBar = /** @class */ (function (_super) {
|
|
@@ -4386,14 +4306,14 @@ var AtTabBar = /** @class */ (function (_super) {
|
|
|
4386
4306
|
color: selectedColor || ''
|
|
4387
4307
|
};
|
|
4388
4308
|
var titleStyle = {
|
|
4389
|
-
fontSize: fontSize ? fontSize
|
|
4309
|
+
fontSize: fontSize ? "".concat(fontSize, "px") : ''
|
|
4390
4310
|
};
|
|
4391
4311
|
var rootStyle = {
|
|
4392
4312
|
backgroundColor: backgroundColor || ''
|
|
4393
4313
|
};
|
|
4394
4314
|
var imgStyle = {
|
|
4395
|
-
width: iconSize
|
|
4396
|
-
height: iconSize
|
|
4315
|
+
width: "".concat(iconSize, "px"),
|
|
4316
|
+
height: "".concat(iconSize, "px")
|
|
4397
4317
|
};
|
|
4398
4318
|
return (React.createElement(View, { className: classnames({
|
|
4399
4319
|
'at-tab-bar': true,
|
|
@@ -4403,15 +4323,15 @@ var AtTabBar = /** @class */ (function (_super) {
|
|
|
4403
4323
|
var _a;
|
|
4404
4324
|
return (React.createElement(View, { className: classnames('at-tab-bar__item', {
|
|
4405
4325
|
'at-tab-bar__item--active': current === i
|
|
4406
|
-
}), style: current === i ? selectedStyle : defaultStyle, key:
|
|
4326
|
+
}), style: current === i ? selectedStyle : defaultStyle, key: i, onClick: _this.handleClick.bind(_this, i) },
|
|
4407
4327
|
item.iconType ? (React.createElement(AtBadge, { dot: !!item.dot, value: item.text, maxValue: Number(item.max) },
|
|
4408
4328
|
React.createElement(View, { className: 'at-tab-bar__icon' },
|
|
4409
|
-
React.createElement(Text, { className: classnames(""
|
|
4410
|
-
_a[(item.iconPrefixClass || 'at-icon'
|
|
4411
|
-
_a[(item.iconPrefixClass || 'at-icon'
|
|
4329
|
+
React.createElement(Text, { className: classnames("".concat(item.iconPrefixClass || 'at-icon'), (_a = {},
|
|
4330
|
+
_a["".concat(item.iconPrefixClass || 'at-icon', "-").concat(item.selectedIconType)] = current === i && item.selectedIconType,
|
|
4331
|
+
_a["".concat(item.iconPrefixClass || 'at-icon', "-").concat(item.iconType)] = !(current === i && item.selectedIconType),
|
|
4412
4332
|
_a)), style: {
|
|
4413
4333
|
color: current === i ? selectedColor : color,
|
|
4414
|
-
fontSize: iconSize ? iconSize
|
|
4334
|
+
fontSize: iconSize ? "".concat(iconSize, "px") : ''
|
|
4415
4335
|
} })))) : null,
|
|
4416
4336
|
item.image ? (React.createElement(AtBadge, { dot: !!item.dot, value: item.text, maxValue: Number(item.max) },
|
|
4417
4337
|
React.createElement(View, { className: 'at-tab-bar__icon' },
|
|
@@ -4438,17 +4358,17 @@ AtTabBar.defaultProps = {
|
|
|
4438
4358
|
onClick: function () { }
|
|
4439
4359
|
};
|
|
4440
4360
|
AtTabBar.propTypes = {
|
|
4441
|
-
customStyle:
|
|
4442
|
-
className:
|
|
4443
|
-
fixed:
|
|
4444
|
-
backgroundColor:
|
|
4445
|
-
current:
|
|
4446
|
-
iconSize:
|
|
4447
|
-
fontSize:
|
|
4448
|
-
color:
|
|
4449
|
-
selectedColor:
|
|
4450
|
-
tabList:
|
|
4451
|
-
onClick:
|
|
4361
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
4362
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
4363
|
+
fixed: propTypes.bool,
|
|
4364
|
+
backgroundColor: propTypes.string,
|
|
4365
|
+
current: propTypes.number,
|
|
4366
|
+
iconSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
4367
|
+
fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
4368
|
+
color: propTypes.string,
|
|
4369
|
+
selectedColor: propTypes.string,
|
|
4370
|
+
tabList: propTypes.array,
|
|
4371
|
+
onClick: propTypes.func
|
|
4452
4372
|
};
|
|
4453
4373
|
|
|
4454
4374
|
var ENV$3 = Taro.getEnv();
|
|
@@ -4467,7 +4387,7 @@ var AtTabs = /** @class */ (function (_super) {
|
|
|
4467
4387
|
case Taro.ENV_TYPE.SWAN: {
|
|
4468
4388
|
var index = Math.max(idx - 1, 0);
|
|
4469
4389
|
_this.setState({
|
|
4470
|
-
_scrollIntoView: "tab"
|
|
4390
|
+
_scrollIntoView: "tab".concat(_this._tabId).concat(index)
|
|
4471
4391
|
});
|
|
4472
4392
|
break;
|
|
4473
4393
|
}
|
|
@@ -4515,8 +4435,6 @@ var AtTabs = /** @class */ (function (_super) {
|
|
|
4515
4435
|
// 获取触摸时的原点
|
|
4516
4436
|
this._touchDot = e.touches[0].pageX;
|
|
4517
4437
|
// 使用js计时器记录时间
|
|
4518
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
4519
|
-
// @ts-ignore
|
|
4520
4438
|
this._timer = setInterval(function () {
|
|
4521
4439
|
_this._interval++;
|
|
4522
4440
|
}, 100);
|
|
@@ -4547,7 +4465,7 @@ var AtTabs = /** @class */ (function (_super) {
|
|
|
4547
4465
|
var _a = this.props, swipeable = _a.swipeable, tabDirection = _a.tabDirection;
|
|
4548
4466
|
if (!swipeable || tabDirection === 'vertical')
|
|
4549
4467
|
return;
|
|
4550
|
-
clearInterval(this._timer);
|
|
4468
|
+
this._timer && clearInterval(this._timer);
|
|
4551
4469
|
this._interval = 0;
|
|
4552
4470
|
this._isMoving = false;
|
|
4553
4471
|
};
|
|
@@ -4578,13 +4496,13 @@ var AtTabs = /** @class */ (function (_super) {
|
|
|
4578
4496
|
var _d = this.state, _scrollLeft = _d._scrollLeft, _scrollTop = _d._scrollTop, _scrollIntoView = _d._scrollIntoView;
|
|
4579
4497
|
var heightStyle = { height: height };
|
|
4580
4498
|
var underlineStyle = {
|
|
4581
|
-
height: tabDirection === 'vertical' ? tabList.length * 100
|
|
4582
|
-
width: tabDirection === 'horizontal' ? tabList.length * 100
|
|
4499
|
+
height: tabDirection === 'vertical' ? "".concat(tabList.length * 100, "%") : '1PX',
|
|
4500
|
+
width: tabDirection === 'horizontal' ? "".concat(tabList.length * 100, "%") : '1PX'
|
|
4583
4501
|
};
|
|
4584
4502
|
var bodyStyle = {};
|
|
4585
|
-
var transformStyle = "translate3d(0px, -"
|
|
4503
|
+
var transformStyle = "translate3d(0px, -".concat(current * 100, "%, 0px)");
|
|
4586
4504
|
if (tabDirection === 'horizontal') {
|
|
4587
|
-
transformStyle = "translate3d(-"
|
|
4505
|
+
transformStyle = "translate3d(-".concat(current * 100, "%, 0px, 0px)");
|
|
4588
4506
|
}
|
|
4589
4507
|
Object.assign(bodyStyle, {
|
|
4590
4508
|
transform: transformStyle,
|
|
@@ -4598,7 +4516,7 @@ var AtTabs = /** @class */ (function (_super) {
|
|
|
4598
4516
|
'at-tabs__item': true,
|
|
4599
4517
|
'at-tabs__item--active': current === idx
|
|
4600
4518
|
});
|
|
4601
|
-
return (React.createElement(View, { className: itemCls, id: "tab"
|
|
4519
|
+
return (React.createElement(View, { className: itemCls, id: "tab".concat(_this._tabId).concat(idx), key: "at-tabs-item-".concat(idx), onClick: _this.handleClick.bind(_this, idx) },
|
|
4602
4520
|
item.title,
|
|
4603
4521
|
React.createElement(View, { className: 'at-tabs__item-underline' })));
|
|
4604
4522
|
});
|
|
@@ -4606,8 +4524,8 @@ var AtTabs = /** @class */ (function (_super) {
|
|
|
4606
4524
|
'at-tabs': true,
|
|
4607
4525
|
'at-tabs--scroll': scroll
|
|
4608
4526
|
},
|
|
4609
|
-
_a["at-tabs--"
|
|
4610
|
-
_a["at-tabs--"
|
|
4527
|
+
_a["at-tabs--".concat(tabDirection)] = true,
|
|
4528
|
+
_a["at-tabs--".concat(ENV$3)] = true,
|
|
4611
4529
|
_a), className);
|
|
4612
4530
|
var scrollX = tabDirection === 'horizontal';
|
|
4613
4531
|
var scrollY = tabDirection === 'vertical';
|
|
@@ -4633,16 +4551,16 @@ AtTabs.defaultProps = {
|
|
|
4633
4551
|
onClick: function () { }
|
|
4634
4552
|
};
|
|
4635
4553
|
AtTabs.propTypes = {
|
|
4636
|
-
customStyle:
|
|
4637
|
-
className:
|
|
4638
|
-
height:
|
|
4639
|
-
tabDirection:
|
|
4640
|
-
current:
|
|
4641
|
-
swipeable:
|
|
4642
|
-
scroll:
|
|
4643
|
-
animated:
|
|
4644
|
-
tabList:
|
|
4645
|
-
onClick:
|
|
4554
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
4555
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
4556
|
+
height: propTypes.string,
|
|
4557
|
+
tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
|
|
4558
|
+
current: propTypes.number,
|
|
4559
|
+
swipeable: propTypes.bool,
|
|
4560
|
+
scroll: propTypes.bool,
|
|
4561
|
+
animated: propTypes.bool,
|
|
4562
|
+
tabList: propTypes.array,
|
|
4563
|
+
onClick: propTypes.func
|
|
4646
4564
|
};
|
|
4647
4565
|
|
|
4648
4566
|
var AtTabsPane = /** @class */ (function (_super) {
|
|
@@ -4669,11 +4587,11 @@ AtTabsPane.defaultProps = {
|
|
|
4669
4587
|
current: 0
|
|
4670
4588
|
};
|
|
4671
4589
|
AtTabsPane.propTypes = {
|
|
4672
|
-
customStyle:
|
|
4673
|
-
className:
|
|
4674
|
-
tabDirection:
|
|
4675
|
-
index:
|
|
4676
|
-
current:
|
|
4590
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
4591
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
4592
|
+
tabDirection: propTypes.oneOf(['horizontal', 'vertical']),
|
|
4593
|
+
index: propTypes.number,
|
|
4594
|
+
current: propTypes.number
|
|
4677
4595
|
};
|
|
4678
4596
|
|
|
4679
4597
|
var SIZE_CLASS = {
|
|
@@ -4703,8 +4621,8 @@ var AtTag = /** @class */ (function (_super) {
|
|
|
4703
4621
|
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;
|
|
4704
4622
|
var rootClassName = ['at-tag'];
|
|
4705
4623
|
var classObject = (_a = {},
|
|
4706
|
-
_a["at-tag--"
|
|
4707
|
-
_a["at-tag--"
|
|
4624
|
+
_a["at-tag--".concat(SIZE_CLASS[size])] = SIZE_CLASS[size],
|
|
4625
|
+
_a["at-tag--".concat(type)] = TYPE_CLASS[type],
|
|
4708
4626
|
_a['at-tag--disabled'] = disabled,
|
|
4709
4627
|
_a['at-tag--active'] = active,
|
|
4710
4628
|
_a['at-tag--circle'] = circle,
|
|
@@ -4723,14 +4641,14 @@ AtTag.defaultProps = {
|
|
|
4723
4641
|
customStyle: {}
|
|
4724
4642
|
};
|
|
4725
4643
|
AtTag.propTypes = {
|
|
4726
|
-
size:
|
|
4727
|
-
type:
|
|
4728
|
-
name:
|
|
4729
|
-
circle:
|
|
4730
|
-
active:
|
|
4731
|
-
disabled:
|
|
4732
|
-
customStyle:
|
|
4733
|
-
onClick:
|
|
4644
|
+
size: propTypes.oneOf(['normal', 'small']),
|
|
4645
|
+
type: propTypes.oneOf(['', 'primary']),
|
|
4646
|
+
name: propTypes.string,
|
|
4647
|
+
circle: propTypes.bool,
|
|
4648
|
+
active: propTypes.bool,
|
|
4649
|
+
disabled: propTypes.bool,
|
|
4650
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
4651
|
+
onClick: propTypes.func
|
|
4734
4652
|
};
|
|
4735
4653
|
|
|
4736
4654
|
function getMaxLength(maxLength, textOverflowForbidden) {
|
|
@@ -4765,8 +4683,8 @@ var AtTextarea = /** @class */ (function (_super) {
|
|
|
4765
4683
|
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;
|
|
4766
4684
|
var _maxLength = parseInt(maxLength.toString());
|
|
4767
4685
|
var actualMaxLength = getMaxLength(_maxLength, textOverflowForbidden);
|
|
4768
|
-
var textareaStyle = height ? "height:"
|
|
4769
|
-
var rootCls = classnames('at-textarea', "at-textarea--"
|
|
4686
|
+
var textareaStyle = height ? "height:".concat(pxTransform(Number(height))) : '';
|
|
4687
|
+
var rootCls = classnames('at-textarea', "at-textarea--".concat(ENV$2), {
|
|
4770
4688
|
'at-textarea--error': _maxLength < value.length
|
|
4771
4689
|
}, className);
|
|
4772
4690
|
var placeholderCls = classnames('placeholder', placeholderClass);
|
|
@@ -4800,29 +4718,29 @@ AtTextarea.defaultProps = {
|
|
|
4800
4718
|
onChange: function () { }
|
|
4801
4719
|
};
|
|
4802
4720
|
AtTextarea.propTypes = {
|
|
4803
|
-
customStyle:
|
|
4804
|
-
className:
|
|
4805
|
-
value:
|
|
4806
|
-
cursorSpacing:
|
|
4807
|
-
maxLength:
|
|
4808
|
-
placeholderClass:
|
|
4809
|
-
placeholderStyle:
|
|
4810
|
-
placeholder:
|
|
4811
|
-
disabled:
|
|
4812
|
-
autoFocus:
|
|
4813
|
-
focus:
|
|
4814
|
-
showConfirmBar:
|
|
4815
|
-
selectionStart:
|
|
4816
|
-
selectionEnd:
|
|
4817
|
-
count:
|
|
4818
|
-
textOverflowForbidden:
|
|
4819
|
-
fixed:
|
|
4820
|
-
height:
|
|
4821
|
-
onLinechange:
|
|
4822
|
-
onChange:
|
|
4823
|
-
onFocus:
|
|
4824
|
-
onBlur:
|
|
4825
|
-
onConfirm:
|
|
4721
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
4722
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
4723
|
+
value: propTypes.string.isRequired,
|
|
4724
|
+
cursorSpacing: propTypes.number,
|
|
4725
|
+
maxLength: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
4726
|
+
placeholderClass: propTypes.string,
|
|
4727
|
+
placeholderStyle: propTypes.string,
|
|
4728
|
+
placeholder: propTypes.string,
|
|
4729
|
+
disabled: propTypes.bool,
|
|
4730
|
+
autoFocus: propTypes.bool,
|
|
4731
|
+
focus: propTypes.bool,
|
|
4732
|
+
showConfirmBar: propTypes.bool,
|
|
4733
|
+
selectionStart: propTypes.number,
|
|
4734
|
+
selectionEnd: propTypes.number,
|
|
4735
|
+
count: propTypes.bool,
|
|
4736
|
+
textOverflowForbidden: propTypes.bool,
|
|
4737
|
+
fixed: propTypes.bool,
|
|
4738
|
+
height: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
4739
|
+
onLinechange: propTypes.func,
|
|
4740
|
+
onChange: propTypes.func.isRequired,
|
|
4741
|
+
onFocus: propTypes.func,
|
|
4742
|
+
onBlur: propTypes.func,
|
|
4743
|
+
onConfirm: propTypes.func
|
|
4826
4744
|
};
|
|
4827
4745
|
|
|
4828
4746
|
var AtTimeline = /** @class */ (function (_super) {
|
|
@@ -4831,7 +4749,7 @@ var AtTimeline = /** @class */ (function (_super) {
|
|
|
4831
4749
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4832
4750
|
}
|
|
4833
4751
|
AtTimeline.prototype.render = function () {
|
|
4834
|
-
var _a = this.props, pending = _a.pending, items = _a.items, customStyle = _a.customStyle;
|
|
4752
|
+
var _a = this.props, pending = _a.pending, items = _a.items, customStyle = _a.customStyle, onClickItem = _a.onClickItem;
|
|
4835
4753
|
var rootClassName = ['at-timeline'];
|
|
4836
4754
|
if (pending)
|
|
4837
4755
|
rootClassName.push('at-timeline--pending');
|
|
@@ -4844,11 +4762,11 @@ var AtTimeline = /** @class */ (function (_super) {
|
|
|
4844
4762
|
var iconClass = classnames((_a = {
|
|
4845
4763
|
'at-icon': true
|
|
4846
4764
|
},
|
|
4847
|
-
_a["at-icon-"
|
|
4765
|
+
_a["at-icon-".concat(icon)] = icon,
|
|
4848
4766
|
_a));
|
|
4849
4767
|
var itemRootClassName = ['at-timeline-item'];
|
|
4850
4768
|
if (color)
|
|
4851
|
-
itemRootClassName.push("at-timeline-item--"
|
|
4769
|
+
itemRootClassName.push("at-timeline-item--".concat(color));
|
|
4852
4770
|
var dotClass = [];
|
|
4853
4771
|
if (icon) {
|
|
4854
4772
|
dotClass.push('at-timeline-item__icon');
|
|
@@ -4856,7 +4774,10 @@ var AtTimeline = /** @class */ (function (_super) {
|
|
|
4856
4774
|
else {
|
|
4857
4775
|
dotClass.push('at-timeline-item__dot');
|
|
4858
4776
|
}
|
|
4859
|
-
|
|
4777
|
+
var handleItemClick = function (index, e) {
|
|
4778
|
+
onClickItem === null || onClickItem === void 0 ? void 0 : onClickItem(index, e);
|
|
4779
|
+
};
|
|
4780
|
+
return (React.createElement(View, { className: classnames(itemRootClassName), key: "at-timeline-item-".concat(index), onClick: function (e) { return handleItemClick(index, e); } },
|
|
4860
4781
|
React.createElement(View, { className: 'at-timeline-item__tail' }),
|
|
4861
4782
|
React.createElement(View, { className: classnames(dotClass) }, icon && React.createElement(Text, { className: iconClass })),
|
|
4862
4783
|
React.createElement(View, { className: 'at-timeline-item__content' },
|
|
@@ -4873,9 +4794,9 @@ AtTimeline.defaultProps = {
|
|
|
4873
4794
|
customStyle: {}
|
|
4874
4795
|
};
|
|
4875
4796
|
AtTimeline.propTypes = {
|
|
4876
|
-
pending:
|
|
4877
|
-
items:
|
|
4878
|
-
customStyle:
|
|
4797
|
+
pending: propTypes.bool,
|
|
4798
|
+
items: propTypes.arrayOf(propTypes.object),
|
|
4799
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string])
|
|
4879
4800
|
};
|
|
4880
4801
|
|
|
4881
4802
|
var error = "data:image/png;base64,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";
|
|
@@ -4922,8 +4843,6 @@ var AtToast = /** @class */ (function (_super) {
|
|
|
4922
4843
|
if (duration === 0) {
|
|
4923
4844
|
return;
|
|
4924
4845
|
}
|
|
4925
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
4926
|
-
// @ts-ignore
|
|
4927
4846
|
this._timer = setTimeout(function () {
|
|
4928
4847
|
_this.close();
|
|
4929
4848
|
}, +duration);
|
|
@@ -4973,10 +4892,10 @@ var AtToast = /** @class */ (function (_super) {
|
|
|
4973
4892
|
'at-toast__body--custom-image': image,
|
|
4974
4893
|
'toast-body--text': !realImg && !icon
|
|
4975
4894
|
},
|
|
4976
|
-
_a["at-toast__body--"
|
|
4895
|
+
_a["at-toast__body--".concat(status)] = !!status,
|
|
4977
4896
|
_a));
|
|
4978
4897
|
var iconClass = classnames('at-icon', (_b = {},
|
|
4979
|
-
_b["at-icon-"
|
|
4898
|
+
_b["at-icon-".concat(icon)] = icon,
|
|
4980
4899
|
_b));
|
|
4981
4900
|
return _isOpened ? (React.createElement(View, { className: classnames('at-toast', this.props.className) },
|
|
4982
4901
|
hasMask && React.createElement(View, { className: 'at-toast__overlay' }),
|
|
@@ -4996,15 +4915,15 @@ AtToast.defaultProps = {
|
|
|
4996
4915
|
isOpened: false
|
|
4997
4916
|
};
|
|
4998
4917
|
AtToast.propTypes = {
|
|
4999
|
-
text:
|
|
5000
|
-
icon:
|
|
5001
|
-
hasMask:
|
|
5002
|
-
image:
|
|
5003
|
-
isOpened:
|
|
5004
|
-
duration:
|
|
5005
|
-
status:
|
|
5006
|
-
onClick:
|
|
5007
|
-
onClose:
|
|
4918
|
+
text: propTypes.string,
|
|
4919
|
+
icon: propTypes.string,
|
|
4920
|
+
hasMask: propTypes.bool,
|
|
4921
|
+
image: propTypes.string,
|
|
4922
|
+
isOpened: propTypes.bool,
|
|
4923
|
+
duration: propTypes.number,
|
|
4924
|
+
status: propTypes.oneOf(['', 'error', 'loading', 'success']),
|
|
4925
|
+
onClick: propTypes.func,
|
|
4926
|
+
onClose: propTypes.func
|
|
5008
4927
|
};
|
|
5009
4928
|
|
|
5010
4929
|
var AtAccordion = /** @class */ (function (_super) {
|
|
@@ -5020,6 +4939,7 @@ var AtAccordion = /** @class */ (function (_super) {
|
|
|
5020
4939
|
_this.isCompleted = true;
|
|
5021
4940
|
_this.startOpen = false;
|
|
5022
4941
|
_this.state = {
|
|
4942
|
+
componentId: uuid(),
|
|
5023
4943
|
wrapperHeight: 0
|
|
5024
4944
|
};
|
|
5025
4945
|
return _this;
|
|
@@ -5027,10 +4947,11 @@ var AtAccordion = /** @class */ (function (_super) {
|
|
|
5027
4947
|
AtAccordion.prototype.toggleWithAnimation = function () {
|
|
5028
4948
|
var _this = this;
|
|
5029
4949
|
var _a = this.props, open = _a.open, isAnimation = _a.isAnimation;
|
|
4950
|
+
var componentId = this.state.componentId;
|
|
5030
4951
|
if (!this.isCompleted || !isAnimation)
|
|
5031
4952
|
return;
|
|
5032
4953
|
this.isCompleted = false;
|
|
5033
|
-
delayQuerySelector(
|
|
4954
|
+
delayQuerySelector("#at-accordion__body-".concat(componentId), 0).then(function (rect) {
|
|
5034
4955
|
var height = parseInt(rect[0].height.toString());
|
|
5035
4956
|
var startHeight = open ? height : 0;
|
|
5036
4957
|
var endHeight = open ? 0 : height;
|
|
@@ -5065,7 +4986,7 @@ var AtAccordion = /** @class */ (function (_super) {
|
|
|
5065
4986
|
var prefixClass = (icon && icon.prefixClass) || 'at-icon';
|
|
5066
4987
|
var iconCls = classnames((_a = {},
|
|
5067
4988
|
_a[prefixClass] = true,
|
|
5068
|
-
_a[prefixClass
|
|
4989
|
+
_a["".concat(prefixClass, "-").concat(icon && icon.value)] = icon && icon.value,
|
|
5069
4990
|
_a['at-accordion__icon'] = true,
|
|
5070
4991
|
_a));
|
|
5071
4992
|
var headerCls = classnames('at-accordion__header', {
|
|
@@ -5079,12 +5000,13 @@ var AtAccordion = /** @class */ (function (_super) {
|
|
|
5079
5000
|
});
|
|
5080
5001
|
var iconStyle = {
|
|
5081
5002
|
color: (icon && icon.color) || '',
|
|
5082
|
-
fontSize: (icon && icon.size
|
|
5003
|
+
fontSize: (icon && "".concat(icon.size, "px")) || ''
|
|
5083
5004
|
};
|
|
5084
|
-
var contentStyle = { height: wrapperHeight
|
|
5005
|
+
var contentStyle = { height: "".concat(wrapperHeight, "px") };
|
|
5085
5006
|
if (this.isCompleted) {
|
|
5086
5007
|
contentStyle.height = '';
|
|
5087
5008
|
}
|
|
5009
|
+
var componentId = this.state.componentId;
|
|
5088
5010
|
return (React.createElement(View, { className: rootCls, style: customStyle },
|
|
5089
5011
|
React.createElement(View, { className: headerCls, onClick: this.handleClick },
|
|
5090
5012
|
icon && icon.value && (React.createElement(Text, { className: iconCls, style: iconStyle })),
|
|
@@ -5094,7 +5016,7 @@ var AtAccordion = /** @class */ (function (_super) {
|
|
|
5094
5016
|
React.createElement(View, { className: arrowCls },
|
|
5095
5017
|
React.createElement(Text, { className: 'at-icon at-icon-chevron-down' }))),
|
|
5096
5018
|
React.createElement(View, { style: contentStyle, className: contentCls },
|
|
5097
|
-
React.createElement(View, { className: 'at-accordion__body' }, this.props.children))));
|
|
5019
|
+
React.createElement(View, { id: "at-accordion__body-".concat(componentId), className: 'at-accordion__body' }, this.props.children))));
|
|
5098
5020
|
};
|
|
5099
5021
|
return AtAccordion;
|
|
5100
5022
|
}(React.Component));
|
|
@@ -5109,15 +5031,15 @@ AtAccordion.defaultProps = {
|
|
|
5109
5031
|
isAnimation: true
|
|
5110
5032
|
};
|
|
5111
5033
|
AtAccordion.propTypes = {
|
|
5112
|
-
customStyle:
|
|
5113
|
-
className:
|
|
5114
|
-
open:
|
|
5115
|
-
isAnimation:
|
|
5116
|
-
title:
|
|
5117
|
-
note:
|
|
5118
|
-
icon:
|
|
5119
|
-
hasBorder:
|
|
5120
|
-
onClick:
|
|
5034
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
5035
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
5036
|
+
open: propTypes.bool,
|
|
5037
|
+
isAnimation: propTypes.bool,
|
|
5038
|
+
title: propTypes.string,
|
|
5039
|
+
note: propTypes.string,
|
|
5040
|
+
icon: propTypes.object,
|
|
5041
|
+
hasBorder: propTypes.bool,
|
|
5042
|
+
onClick: propTypes.func
|
|
5121
5043
|
};
|
|
5122
5044
|
|
|
5123
5045
|
var AtSlider = /** @class */ (function (_super) {
|
|
@@ -5161,7 +5083,7 @@ var AtSlider = /** @class */ (function (_super) {
|
|
|
5161
5083
|
}, className), style: customStyle },
|
|
5162
5084
|
React.createElement(View, { className: 'at-slider__inner' },
|
|
5163
5085
|
React.createElement(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) })),
|
|
5164
|
-
showValue && React.createElement(View, { className: 'at-slider__text' }, ""
|
|
5086
|
+
showValue && React.createElement(View, { className: 'at-slider__text' }, "".concat(_value))));
|
|
5165
5087
|
};
|
|
5166
5088
|
return AtSlider;
|
|
5167
5089
|
}(React.Component));
|
|
@@ -5180,20 +5102,20 @@ AtSlider.defaultProps = {
|
|
|
5180
5102
|
showValue: false
|
|
5181
5103
|
};
|
|
5182
5104
|
AtSlider.propTypes = {
|
|
5183
|
-
customStyle:
|
|
5184
|
-
className:
|
|
5185
|
-
min:
|
|
5186
|
-
max:
|
|
5187
|
-
step:
|
|
5188
|
-
value:
|
|
5189
|
-
disabled:
|
|
5190
|
-
activeColor:
|
|
5191
|
-
backgroundColor:
|
|
5192
|
-
blockSize:
|
|
5193
|
-
blockColor:
|
|
5194
|
-
showValue:
|
|
5195
|
-
onChange:
|
|
5196
|
-
onChanging:
|
|
5105
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
5106
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
5107
|
+
min: propTypes.number,
|
|
5108
|
+
max: propTypes.number,
|
|
5109
|
+
step: propTypes.number,
|
|
5110
|
+
value: propTypes.number,
|
|
5111
|
+
disabled: propTypes.bool,
|
|
5112
|
+
activeColor: propTypes.string,
|
|
5113
|
+
backgroundColor: propTypes.string,
|
|
5114
|
+
blockSize: propTypes.number,
|
|
5115
|
+
blockColor: propTypes.string,
|
|
5116
|
+
showValue: propTypes.bool,
|
|
5117
|
+
onChange: propTypes.func,
|
|
5118
|
+
onChanging: propTypes.func
|
|
5197
5119
|
};
|
|
5198
5120
|
|
|
5199
5121
|
var AtSwipeActionOptions = /** @class */ (function (_super) {
|
|
@@ -5203,7 +5125,7 @@ var AtSwipeActionOptions = /** @class */ (function (_super) {
|
|
|
5203
5125
|
}
|
|
5204
5126
|
AtSwipeActionOptions.prototype.render = function () {
|
|
5205
5127
|
var rootClass = classnames('at-swipe-action__options', this.props.className);
|
|
5206
|
-
return (React.createElement(View, { id: "swipeActionOptions-"
|
|
5128
|
+
return (React.createElement(View, { id: "swipeActionOptions-".concat(this.props.componentId), className: rootClass, style: this.props.customStyle }, this.props.children));
|
|
5207
5129
|
};
|
|
5208
5130
|
return AtSwipeActionOptions;
|
|
5209
5131
|
}(React.Component));
|
|
@@ -5325,7 +5247,7 @@ var AtSwipeAction = /** @class */ (function (_super) {
|
|
|
5325
5247
|
case 0:
|
|
5326
5248
|
componentId = this.state.componentId;
|
|
5327
5249
|
return [4 /*yield*/, delayGetClientRect({
|
|
5328
|
-
selectorStr: "#swipeActionOptions-"
|
|
5250
|
+
selectorStr: "#swipeActionOptions-".concat(componentId)
|
|
5329
5251
|
})];
|
|
5330
5252
|
case 1:
|
|
5331
5253
|
actionOptionsRect = _a.sent();
|
|
@@ -5371,19 +5293,19 @@ var AtSwipeAction = /** @class */ (function (_super) {
|
|
|
5371
5293
|
var _a = this.state, componentId = _a.componentId, maxOffsetSize = _a.maxOffsetSize, eleWidth = _a.eleWidth, offsetSize = _a.offsetSize;
|
|
5372
5294
|
var _b = this.props, options = _b.options, disabled = _b.disabled;
|
|
5373
5295
|
var rootClass = classnames('at-swipe-action', this.props.className);
|
|
5374
|
-
return (React.createElement(View, { id: "swipeAction-"
|
|
5375
|
-
width: eleWidth
|
|
5296
|
+
return (React.createElement(View, { id: "swipeAction-".concat(componentId), className: rootClass, style: {
|
|
5297
|
+
width: "".concat(eleWidth, "px")
|
|
5376
5298
|
} },
|
|
5377
5299
|
React.createElement(MovableArea, { className: 'at-swipe-action__area', style: {
|
|
5378
|
-
width: eleWidth
|
|
5300
|
+
width: "".concat(eleWidth, "px")
|
|
5379
5301
|
} },
|
|
5380
5302
|
React.createElement(MovableView, { className: 'at-swipe-action__content', direction: 'horizontal', damping: 50, x: offsetSize, onTouchEnd: this.onTouchEnd, onChange: this.onChange, disabled: disabled, style: {
|
|
5381
|
-
width: eleWidth + maxOffsetSize
|
|
5303
|
+
width: "".concat(eleWidth + maxOffsetSize, "px")
|
|
5382
5304
|
} },
|
|
5383
5305
|
this.props.children,
|
|
5384
5306
|
Array.isArray(options) && options.length > 0 ? (React.createElement(AtSwipeActionOptions, { options: options, componentId: componentId, customStyle: {
|
|
5385
5307
|
opacity: maxOffsetSize ? 1 : 0
|
|
5386
|
-
} }, options.map(function (item, key) { return (React.createElement(View, { key: item.text
|
|
5308
|
+
} }, options.map(function (item, key) { return (React.createElement(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) },
|
|
5387
5309
|
React.createElement(Text, { className: 'option__text' }, item.text))); }))) : null))));
|
|
5388
5310
|
};
|
|
5389
5311
|
return AtSwipeAction;
|
|
@@ -5397,21 +5319,21 @@ AtSwipeAction.defaultProps = {
|
|
|
5397
5319
|
areaWidth: 0
|
|
5398
5320
|
};
|
|
5399
5321
|
AtSwipeAction.propTypes = {
|
|
5400
|
-
isOpened:
|
|
5401
|
-
disabled:
|
|
5402
|
-
autoClose:
|
|
5403
|
-
options:
|
|
5404
|
-
text:
|
|
5405
|
-
style:
|
|
5406
|
-
className:
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5322
|
+
isOpened: propTypes.bool,
|
|
5323
|
+
disabled: propTypes.bool,
|
|
5324
|
+
autoClose: propTypes.bool,
|
|
5325
|
+
options: propTypes.arrayOf(propTypes.shape({
|
|
5326
|
+
text: propTypes.string,
|
|
5327
|
+
style: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
5328
|
+
className: propTypes.oneOfType([
|
|
5329
|
+
propTypes.object,
|
|
5330
|
+
propTypes.string,
|
|
5331
|
+
propTypes.array
|
|
5410
5332
|
])
|
|
5411
5333
|
})),
|
|
5412
|
-
onClick:
|
|
5413
|
-
onOpened:
|
|
5414
|
-
onClosed:
|
|
5334
|
+
onClick: propTypes.func,
|
|
5335
|
+
onOpened: propTypes.func,
|
|
5336
|
+
onClosed: propTypes.func
|
|
5415
5337
|
};
|
|
5416
5338
|
|
|
5417
5339
|
var AtSearchBar = /** @class */ (function (_super) {
|
|
@@ -5475,7 +5397,7 @@ var AtSearchBar = /** @class */ (function (_super) {
|
|
|
5475
5397
|
else if (!isFocus && !value) {
|
|
5476
5398
|
placeholderWrapStyle.flexGrow = 1;
|
|
5477
5399
|
actionStyle.opacity = 0;
|
|
5478
|
-
actionStyle.marginRight = "-"
|
|
5400
|
+
actionStyle.marginRight = "-".concat((actionName.length + 1) * fontSize + fontSize / 2 + 10, "px");
|
|
5479
5401
|
}
|
|
5480
5402
|
if (showActionButton) {
|
|
5481
5403
|
actionStyle.opacity = 1;
|
|
@@ -5492,7 +5414,9 @@ var AtSearchBar = /** @class */ (function (_super) {
|
|
|
5492
5414
|
React.createElement(View, { className: 'at-search-bar__placeholder-wrap', style: placeholderWrapStyle },
|
|
5493
5415
|
React.createElement(Text, { className: 'at-icon at-icon-search' }),
|
|
5494
5416
|
React.createElement(Text, { className: 'at-search-bar__placeholder', style: placeholderStyle }, isFocus ? '' : placeholder)),
|
|
5495
|
-
React.createElement(Input, { className: 'at-search-bar__input', type: inputType, confirmType: 'search', value: value, focus: isFocus, disabled: disabled, maxlength: maxLength,
|
|
5417
|
+
React.createElement(Input, { className: 'at-search-bar__input', type: inputType, confirmType: 'search', value: value, focus: isFocus, disabled: disabled, maxlength: maxLength,
|
|
5418
|
+
// @ts-ignore ci 上面这个检查不通过, 暂时跳过ts检查
|
|
5419
|
+
enableNative: enableNative, onInput: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onConfirm: this.handleConfirm }),
|
|
5496
5420
|
React.createElement(View, { className: 'at-search-bar__clear', style: clearIconStyle, onTouchStart: this.handleClear },
|
|
5497
5421
|
React.createElement(Text, { className: 'at-icon at-icon-close-circle' }))),
|
|
5498
5422
|
React.createElement(View, { className: 'at-search-bar__action', style: actionStyle, onClick: this.handleActionClick }, actionName)));
|
|
@@ -5514,22 +5438,22 @@ AtSearchBar.defaultProps = {
|
|
|
5514
5438
|
enableNative: true
|
|
5515
5439
|
};
|
|
5516
5440
|
AtSearchBar.propTypes = {
|
|
5517
|
-
value:
|
|
5518
|
-
placeholder:
|
|
5519
|
-
maxLength:
|
|
5520
|
-
fixed:
|
|
5521
|
-
focus:
|
|
5522
|
-
disabled:
|
|
5523
|
-
showActionButton:
|
|
5524
|
-
actionName:
|
|
5525
|
-
inputType:
|
|
5526
|
-
onChange:
|
|
5527
|
-
onFocus:
|
|
5528
|
-
onBlur:
|
|
5529
|
-
onConfirm:
|
|
5530
|
-
onActionClick:
|
|
5531
|
-
onClear:
|
|
5532
|
-
enableNative:
|
|
5441
|
+
value: propTypes.string,
|
|
5442
|
+
placeholder: propTypes.string,
|
|
5443
|
+
maxLength: propTypes.number,
|
|
5444
|
+
fixed: propTypes.bool,
|
|
5445
|
+
focus: propTypes.bool,
|
|
5446
|
+
disabled: propTypes.bool,
|
|
5447
|
+
showActionButton: propTypes.bool,
|
|
5448
|
+
actionName: propTypes.string,
|
|
5449
|
+
inputType: propTypes.oneOf(['text', 'number', 'idcard', 'digit']),
|
|
5450
|
+
onChange: propTypes.func,
|
|
5451
|
+
onFocus: propTypes.func,
|
|
5452
|
+
onBlur: propTypes.func,
|
|
5453
|
+
onConfirm: propTypes.func,
|
|
5454
|
+
onActionClick: propTypes.func,
|
|
5455
|
+
onClear: propTypes.func,
|
|
5456
|
+
enableNative: propTypes.bool
|
|
5533
5457
|
};
|
|
5534
5458
|
|
|
5535
5459
|
var AtLoadMore = /** @class */ (function (_super) {
|
|
@@ -5568,15 +5492,15 @@ AtLoadMore.defaultProps = {
|
|
|
5568
5492
|
noMoreText: '没有更多'
|
|
5569
5493
|
};
|
|
5570
5494
|
AtLoadMore.propTypes = {
|
|
5571
|
-
customStyle:
|
|
5572
|
-
className:
|
|
5573
|
-
noMoreTextStyle:
|
|
5574
|
-
moreBtnStyle:
|
|
5575
|
-
status:
|
|
5576
|
-
loadingText:
|
|
5577
|
-
moreText:
|
|
5578
|
-
noMoreText:
|
|
5579
|
-
onClick:
|
|
5495
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
5496
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
5497
|
+
noMoreTextStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
5498
|
+
moreBtnStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
5499
|
+
status: propTypes.oneOf(['more', 'loading', 'noMore']),
|
|
5500
|
+
loadingText: propTypes.string,
|
|
5501
|
+
moreText: propTypes.string,
|
|
5502
|
+
noMoreText: propTypes.string,
|
|
5503
|
+
onClick: propTypes.func
|
|
5580
5504
|
};
|
|
5581
5505
|
|
|
5582
5506
|
var AtDivider = /** @class */ (function (_super) {
|
|
@@ -5587,11 +5511,11 @@ var AtDivider = /** @class */ (function (_super) {
|
|
|
5587
5511
|
AtDivider.prototype.render = function () {
|
|
5588
5512
|
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;
|
|
5589
5513
|
var rootStyle = {
|
|
5590
|
-
height: height ? ""
|
|
5514
|
+
height: height ? "".concat(pxTransform(Number(height))) : ''
|
|
5591
5515
|
};
|
|
5592
5516
|
var fontStyle = {
|
|
5593
5517
|
color: fontColor,
|
|
5594
|
-
|
|
5518
|
+
fontSize: fontSize ? "".concat(pxTransform(Number(fontSize))) : ''
|
|
5595
5519
|
};
|
|
5596
5520
|
var lineStyle = {
|
|
5597
5521
|
backgroundColor: lineColor
|
|
@@ -5610,13 +5534,13 @@ AtDivider.defaultProps = {
|
|
|
5610
5534
|
lineColor: ''
|
|
5611
5535
|
};
|
|
5612
5536
|
AtDivider.propTypes = {
|
|
5613
|
-
customStyle:
|
|
5614
|
-
className:
|
|
5615
|
-
content:
|
|
5616
|
-
height:
|
|
5617
|
-
fontColor:
|
|
5618
|
-
fontSize:
|
|
5619
|
-
lineColor:
|
|
5537
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
5538
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
5539
|
+
content: propTypes.string,
|
|
5540
|
+
height: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
5541
|
+
fontColor: propTypes.string,
|
|
5542
|
+
fontSize: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
5543
|
+
lineColor: propTypes.string
|
|
5620
5544
|
};
|
|
5621
5545
|
|
|
5622
5546
|
var AtCountdownItem = /** @class */ (function (_super) {
|
|
@@ -5625,7 +5549,7 @@ var AtCountdownItem = /** @class */ (function (_super) {
|
|
|
5625
5549
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
5626
5550
|
}
|
|
5627
5551
|
AtCountdownItem.prototype.formatNum = function (num) {
|
|
5628
|
-
return num <= 9 ? "0"
|
|
5552
|
+
return num <= 9 ? "0".concat(num) : "".concat(num);
|
|
5629
5553
|
};
|
|
5630
5554
|
AtCountdownItem.prototype.render = function () {
|
|
5631
5555
|
var _a = this.props, num = _a.num, separator = _a.separator;
|
|
@@ -5641,8 +5565,8 @@ AtCountdownItem.defaultProps = {
|
|
|
5641
5565
|
separator: ':'
|
|
5642
5566
|
};
|
|
5643
5567
|
AtCountdownItem.propTypes = {
|
|
5644
|
-
num:
|
|
5645
|
-
separator:
|
|
5568
|
+
num: propTypes.number.isRequired,
|
|
5569
|
+
separator: propTypes.string
|
|
5646
5570
|
};
|
|
5647
5571
|
|
|
5648
5572
|
var toSeconds = function (day, hours, minutes, seconds) { return day * 60 * 60 * 24 + hours * 60 * 60 + minutes * 60 + seconds; };
|
|
@@ -5668,6 +5592,7 @@ var AtCountdown = /** @class */ (function (_super) {
|
|
|
5668
5592
|
AtCountdown.prototype.clearTimer = function () {
|
|
5669
5593
|
if (this.timer) {
|
|
5670
5594
|
clearTimeout(this.timer);
|
|
5595
|
+
this.timer = 0;
|
|
5671
5596
|
}
|
|
5672
5597
|
};
|
|
5673
5598
|
AtCountdown.prototype.calculateTime = function () {
|
|
@@ -5711,7 +5636,7 @@ var AtCountdown = /** @class */ (function (_super) {
|
|
|
5711
5636
|
AtCountdown.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
|
|
5712
5637
|
if (JSON.stringify(this.props) === JSON.stringify(nextProps))
|
|
5713
5638
|
return;
|
|
5714
|
-
var
|
|
5639
|
+
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;
|
|
5715
5640
|
this.seconds = toSeconds(day, hours, minutes, seconds);
|
|
5716
5641
|
this.clearTimer();
|
|
5717
5642
|
this.setTimer();
|
|
@@ -5729,16 +5654,21 @@ var AtCountdown = /** @class */ (function (_super) {
|
|
|
5729
5654
|
this.setTimer();
|
|
5730
5655
|
};
|
|
5731
5656
|
AtCountdown.prototype.render = function () {
|
|
5732
|
-
var _a = this.props, className = _a.className, customStyle = _a.customStyle,
|
|
5733
|
-
|
|
5657
|
+
var _a = this.props, className = _a.className, customStyle = _a.customStyle, _b = _a.format, format = _b === void 0 ? {
|
|
5658
|
+
day: '天',
|
|
5659
|
+
hours: '时',
|
|
5660
|
+
minutes: '分',
|
|
5661
|
+
seconds: '秒'
|
|
5662
|
+
} : _b, isShowDay = _a.isShowDay, isCard = _a.isCard, isShowHour = _a.isShowHour;
|
|
5663
|
+
var _c = this.state, _day = _c._day, _hours = _c._hours, _minutes = _c._minutes, _seconds = _c._seconds;
|
|
5734
5664
|
return (React.createElement(View, { className: classnames({
|
|
5735
5665
|
'at-countdown': true,
|
|
5736
5666
|
'at-countdown--card': isCard
|
|
5737
5667
|
}, className), style: customStyle },
|
|
5738
|
-
isShowDay && React.createElement(AtCountdownItem, { num: _day, separator: format.day }),
|
|
5739
|
-
isShowHour && (React.createElement(AtCountdownItem, { num: _hours, separator: format.hours })),
|
|
5740
|
-
React.createElement(AtCountdownItem, { num: _minutes, separator: format.minutes }),
|
|
5741
|
-
React.createElement(AtCountdownItem, { num: _seconds, separator: format.seconds })));
|
|
5668
|
+
isShowDay && (React.createElement(AtCountdownItem, { num: _day, separator: (format === null || format === void 0 ? void 0 : format.day) || '天' })),
|
|
5669
|
+
isShowHour && (React.createElement(AtCountdownItem, { num: _hours, separator: (format === null || format === void 0 ? void 0 : format.hours) || '' })),
|
|
5670
|
+
React.createElement(AtCountdownItem, { num: _minutes, separator: (format === null || format === void 0 ? void 0 : format.minutes) || '' }),
|
|
5671
|
+
React.createElement(AtCountdownItem, { num: _seconds, separator: (format === null || format === void 0 ? void 0 : format.seconds) || '' })));
|
|
5742
5672
|
};
|
|
5743
5673
|
return AtCountdown;
|
|
5744
5674
|
}(React.Component));
|
|
@@ -5760,17 +5690,17 @@ AtCountdown.defaultProps = {
|
|
|
5760
5690
|
seconds: 0
|
|
5761
5691
|
};
|
|
5762
5692
|
AtCountdown.propTypes = {
|
|
5763
|
-
customStyle:
|
|
5764
|
-
className:
|
|
5765
|
-
isCard:
|
|
5766
|
-
isShowDay:
|
|
5767
|
-
isShowHour:
|
|
5768
|
-
format:
|
|
5769
|
-
day:
|
|
5770
|
-
hours:
|
|
5771
|
-
minutes:
|
|
5772
|
-
seconds:
|
|
5773
|
-
onTimeUp:
|
|
5693
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
5694
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
5695
|
+
isCard: propTypes.bool,
|
|
5696
|
+
isShowDay: propTypes.bool,
|
|
5697
|
+
isShowHour: propTypes.bool,
|
|
5698
|
+
format: propTypes.object,
|
|
5699
|
+
day: propTypes.number,
|
|
5700
|
+
hours: propTypes.number,
|
|
5701
|
+
minutes: propTypes.number,
|
|
5702
|
+
seconds: propTypes.number,
|
|
5703
|
+
onTimeUp: propTypes.func
|
|
5774
5704
|
};
|
|
5775
5705
|
|
|
5776
5706
|
var AtSteps = /** @class */ (function (_super) {
|
|
@@ -5802,7 +5732,7 @@ var AtSteps = /** @class */ (function (_super) {
|
|
|
5802
5732
|
'at-steps__single-icon--success': item.status === 'success',
|
|
5803
5733
|
'at-steps__single-icon--error': item.status === 'error'
|
|
5804
5734
|
}) })) : (React.createElement(View, { className: 'at-steps__circular' }, item.icon ? (React.createElement(Text, { className: classnames('at-icon', (_a = {},
|
|
5805
|
-
_a["at-icon-"
|
|
5735
|
+
_a["at-icon-".concat(item.icon.value)] = item.icon.value,
|
|
5806
5736
|
_a['at-steps__circle-icon'] = true,
|
|
5807
5737
|
_a)) })) : (React.createElement(Text, { className: 'at-steps__num' }, i + 1)))),
|
|
5808
5738
|
i !== items.length - 1 && (React.createElement(View, { className: 'at-steps__right-line' }))),
|
|
@@ -5821,11 +5751,11 @@ AtSteps.defaultProps = {
|
|
|
5821
5751
|
onChange: function () { }
|
|
5822
5752
|
};
|
|
5823
5753
|
AtSteps.propTypes = {
|
|
5824
|
-
customStyle:
|
|
5825
|
-
className:
|
|
5826
|
-
current:
|
|
5827
|
-
items:
|
|
5828
|
-
onChange:
|
|
5754
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
5755
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
5756
|
+
current: propTypes.number,
|
|
5757
|
+
items: propTypes.array,
|
|
5758
|
+
onChange: propTypes.func
|
|
5829
5759
|
};
|
|
5830
5760
|
|
|
5831
5761
|
var AtCurtain = /** @class */ (function (_super) {
|
|
@@ -5850,7 +5780,7 @@ var AtCurtain = /** @class */ (function (_super) {
|
|
|
5850
5780
|
var btnCloseClass = classnames((_a = {
|
|
5851
5781
|
'at-curtain__btn-close': true
|
|
5852
5782
|
},
|
|
5853
|
-
_a["at-curtain__btn-close--"
|
|
5783
|
+
_a["at-curtain__btn-close--".concat(closeBtnPosition)] = closeBtnPosition,
|
|
5854
5784
|
_a));
|
|
5855
5785
|
return (React.createElement(View, { className: curtainClass, style: customStyle, onClick: this._stopPropagation },
|
|
5856
5786
|
React.createElement(View, { className: 'at-curtain__container' },
|
|
@@ -5869,11 +5799,11 @@ AtCurtain.defaultProps = {
|
|
|
5869
5799
|
onClose: function () { }
|
|
5870
5800
|
};
|
|
5871
5801
|
AtCurtain.propTypes = {
|
|
5872
|
-
customStyle:
|
|
5873
|
-
className:
|
|
5874
|
-
isOpened:
|
|
5875
|
-
closeBtnPosition:
|
|
5876
|
-
onClose:
|
|
5802
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
5803
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
5804
|
+
isOpened: propTypes.bool,
|
|
5805
|
+
closeBtnPosition: propTypes.string,
|
|
5806
|
+
onClose: propTypes.func
|
|
5877
5807
|
};
|
|
5878
5808
|
|
|
5879
5809
|
var AtMessage = /** @class */ (function (_super) {
|
|
@@ -5931,7 +5861,7 @@ var AtMessage = /** @class */ (function (_super) {
|
|
|
5931
5861
|
'at-message': true,
|
|
5932
5862
|
'at-message--show': _isOpened,
|
|
5933
5863
|
'at-message--hidden': !_isOpened
|
|
5934
|
-
}, "at-message--"
|
|
5864
|
+
}, "at-message--".concat(_type), className);
|
|
5935
5865
|
return (React.createElement(View, { className: rootCls, style: customStyle }, _message));
|
|
5936
5866
|
};
|
|
5937
5867
|
return AtMessage;
|
|
@@ -5941,8 +5871,8 @@ AtMessage.defaultProps = {
|
|
|
5941
5871
|
className: ''
|
|
5942
5872
|
};
|
|
5943
5873
|
AtMessage.propTypes = {
|
|
5944
|
-
customStyle:
|
|
5945
|
-
className:
|
|
5874
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
5875
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string])
|
|
5946
5876
|
};
|
|
5947
5877
|
|
|
5948
5878
|
// 生成 jsx 二维矩阵
|
|
@@ -6034,9 +5964,10 @@ var AtImagePicker = /** @class */ (function (_super) {
|
|
|
6034
5964
|
return item.url ? (React.createElement(View, { className: 'at-image-picker__flex-item', key: i * length + j },
|
|
6035
5965
|
React.createElement(View, { className: 'at-image-picker__item' },
|
|
6036
5966
|
React.createElement(View, { className: 'at-image-picker__remove-btn', onClick: _this.handleRemoveImg.bind(_this, i * length + j) }),
|
|
6037
|
-
React.createElement(Image, { className: 'at-image-picker__preview-img', mode: mode, src: item.url, onClick: _this.handleImageClick.bind(_this, i * length + j) })))) : (React.createElement(View, { className: 'at-image-picker__flex-item', key:
|
|
6038
|
-
React.createElement(View, { className: '
|
|
6039
|
-
|
|
5967
|
+
React.createElement(Image, { className: 'at-image-picker__preview-img', mode: mode, src: item.url, onClick: _this.handleImageClick.bind(_this, i * length + j) })))) : (React.createElement(View, { className: 'at-image-picker__flex-item', key: "empty_".concat(i * length).concat(j) }, item.type === 'btn' && (React.createElement(View, { onClick: _this.chooseFile }, _this.props.children
|
|
5968
|
+
|| React.createElement(View, { className: 'at-image-picker__item at-image-picker__choose-btn' },
|
|
5969
|
+
React.createElement(View, { className: 'add-bar' }),
|
|
5970
|
+
React.createElement(View, { className: 'add-bar' }))))));
|
|
6040
5971
|
}))); })));
|
|
6041
5972
|
};
|
|
6042
5973
|
return AtImagePicker;
|
|
@@ -6053,10 +5984,10 @@ AtImagePicker.defaultProps = {
|
|
|
6053
5984
|
onChange: function () { }
|
|
6054
5985
|
};
|
|
6055
5986
|
AtImagePicker.propTypes = {
|
|
6056
|
-
className:
|
|
6057
|
-
customStyle:
|
|
6058
|
-
files:
|
|
6059
|
-
mode:
|
|
5987
|
+
className: propTypes.oneOfType([propTypes.string, propTypes.array]),
|
|
5988
|
+
customStyle: propTypes.oneOfType([propTypes.string, propTypes.object]),
|
|
5989
|
+
files: propTypes.array,
|
|
5990
|
+
mode: propTypes.oneOf([
|
|
6060
5991
|
'scaleToFill',
|
|
6061
5992
|
'aspectFit',
|
|
6062
5993
|
'aspectFill',
|
|
@@ -6071,15 +6002,15 @@ AtImagePicker.propTypes = {
|
|
|
6071
6002
|
'bottom left',
|
|
6072
6003
|
'bottom right'
|
|
6073
6004
|
]),
|
|
6074
|
-
showAddBtn:
|
|
6075
|
-
multiple:
|
|
6076
|
-
length:
|
|
6077
|
-
onChange:
|
|
6078
|
-
onImageClick:
|
|
6079
|
-
onFail:
|
|
6080
|
-
count:
|
|
6081
|
-
sizeType:
|
|
6082
|
-
sourceType:
|
|
6005
|
+
showAddBtn: propTypes.bool,
|
|
6006
|
+
multiple: propTypes.bool,
|
|
6007
|
+
length: propTypes.number,
|
|
6008
|
+
onChange: propTypes.func,
|
|
6009
|
+
onImageClick: propTypes.func,
|
|
6010
|
+
onFail: propTypes.func,
|
|
6011
|
+
count: propTypes.number,
|
|
6012
|
+
sizeType: propTypes.array,
|
|
6013
|
+
sourceType: propTypes.array
|
|
6083
6014
|
};
|
|
6084
6015
|
|
|
6085
6016
|
var AtRange = /** @class */ (function (_super) {
|
|
@@ -6164,39 +6095,40 @@ var AtRange = /** @class */ (function (_super) {
|
|
|
6164
6095
|
});
|
|
6165
6096
|
};
|
|
6166
6097
|
AtRange.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
|
|
6167
|
-
var
|
|
6098
|
+
var _a, _b;
|
|
6099
|
+
var _c = nextProps.value, value = _c === void 0 ? [] : _c;
|
|
6168
6100
|
this.updatePos();
|
|
6169
|
-
if (this.props.value[0] !== value[0] ||
|
|
6170
|
-
this.props.value[1] !== value[1]) {
|
|
6101
|
+
if (((_a = this.props.value) === null || _a === void 0 ? void 0 : _a[0]) !== (value === null || value === void 0 ? void 0 : value[0]) ||
|
|
6102
|
+
((_b = this.props.value) === null || _b === void 0 ? void 0 : _b[1]) !== (value === null || value === void 0 ? void 0 : value[1])) {
|
|
6171
6103
|
this.setValue(value);
|
|
6172
6104
|
}
|
|
6173
6105
|
};
|
|
6174
6106
|
AtRange.prototype.componentDidMount = function () {
|
|
6175
|
-
var
|
|
6107
|
+
var _a = this.props.value, value = _a === void 0 ? [] : _a;
|
|
6176
6108
|
this.updatePos();
|
|
6177
6109
|
this.setValue(value);
|
|
6178
6110
|
};
|
|
6179
6111
|
AtRange.prototype.render = function () {
|
|
6180
|
-
var _a = this.props, className = _a.className, customStyle = _a.customStyle,
|
|
6112
|
+
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;
|
|
6181
6113
|
var rootCls = classnames('at-range', {
|
|
6182
6114
|
'at-range--disabled': disabled
|
|
6183
6115
|
}, className);
|
|
6184
|
-
var
|
|
6116
|
+
var _e = this.state, aX = _e.aX, bX = _e.bX;
|
|
6185
6117
|
var sliderCommonStyle = {
|
|
6186
|
-
width: blockSize ? blockSize
|
|
6187
|
-
height: blockSize ? blockSize
|
|
6188
|
-
marginLeft: blockSize ? -blockSize / 2
|
|
6118
|
+
width: blockSize ? "".concat(blockSize, "PX") : '',
|
|
6119
|
+
height: blockSize ? "".concat(blockSize, "PX") : '',
|
|
6120
|
+
marginLeft: blockSize ? "".concat(-blockSize / 2, "PX") : ''
|
|
6189
6121
|
};
|
|
6190
|
-
var sliderAStyle = __assign(__assign({}, sliderCommonStyle), { left: aX
|
|
6191
|
-
var sliderBStyle = __assign(__assign({}, sliderCommonStyle), { left: bX
|
|
6122
|
+
var sliderAStyle = __assign(__assign({}, sliderCommonStyle), { left: "".concat(aX, "%") });
|
|
6123
|
+
var sliderBStyle = __assign(__assign({}, sliderCommonStyle), { left: "".concat(bX, "%") });
|
|
6192
6124
|
var containerStyle = {
|
|
6193
|
-
height: blockSize ? blockSize
|
|
6125
|
+
height: blockSize ? "".concat(blockSize, "PX") : ''
|
|
6194
6126
|
};
|
|
6195
6127
|
var smallerX = Math.min(aX, bX);
|
|
6196
6128
|
var deltaX = Math.abs(aX - bX);
|
|
6197
6129
|
var atTrackStyle = {
|
|
6198
|
-
left: smallerX
|
|
6199
|
-
width: deltaX
|
|
6130
|
+
left: "".concat(smallerX, "%"),
|
|
6131
|
+
width: "".concat(deltaX, "%")
|
|
6200
6132
|
};
|
|
6201
6133
|
return (React.createElement(View, { className: rootCls, style: customStyle, onClick: this.handleClick },
|
|
6202
6134
|
React.createElement(View, { className: 'at-range__container', style: containerStyle },
|
|
@@ -6220,18 +6152,18 @@ AtRange.defaultProps = {
|
|
|
6220
6152
|
blockSize: 0
|
|
6221
6153
|
};
|
|
6222
6154
|
AtRange.propTypes = {
|
|
6223
|
-
customStyle:
|
|
6224
|
-
className:
|
|
6225
|
-
sliderStyle:
|
|
6226
|
-
railStyle:
|
|
6227
|
-
trackStyle:
|
|
6228
|
-
value:
|
|
6229
|
-
min:
|
|
6230
|
-
max:
|
|
6231
|
-
disabled:
|
|
6232
|
-
blockSize:
|
|
6233
|
-
onChange:
|
|
6234
|
-
onAfterChange:
|
|
6155
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
6156
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
6157
|
+
sliderStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
6158
|
+
railStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
6159
|
+
trackStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
6160
|
+
value: propTypes.array,
|
|
6161
|
+
min: propTypes.number,
|
|
6162
|
+
max: propTypes.number,
|
|
6163
|
+
disabled: propTypes.bool,
|
|
6164
|
+
blockSize: propTypes.number,
|
|
6165
|
+
onChange: propTypes.func,
|
|
6166
|
+
onAfterChange: propTypes.func
|
|
6235
6167
|
};
|
|
6236
6168
|
|
|
6237
6169
|
var ENV = Taro.getEnv();
|
|
@@ -6251,7 +6183,7 @@ var AtIndexes = /** @class */ (function (_super) {
|
|
|
6251
6183
|
if (index >= 0 && index <= list.length && _this.currentIndex !== index) {
|
|
6252
6184
|
_this.currentIndex = index;
|
|
6253
6185
|
var key = index > 0 ? list[index - 1].key : 'top';
|
|
6254
|
-
var touchView = "at-indexes__list-"
|
|
6186
|
+
var touchView = "at-indexes__list-".concat(key);
|
|
6255
6187
|
_this.jumpTarget(touchView, index);
|
|
6256
6188
|
}
|
|
6257
6189
|
};
|
|
@@ -6273,7 +6205,7 @@ var AtIndexes = /** @class */ (function (_super) {
|
|
|
6273
6205
|
_this.itemHeight = 0;
|
|
6274
6206
|
// 当前索引
|
|
6275
6207
|
_this.currentIndex = -1;
|
|
6276
|
-
_this.listId = isTest() ? 'indexes-list-AOTU2018' : "list-"
|
|
6208
|
+
_this.listId = isTest() ? 'indexes-list-AOTU2018' : "list-".concat(uuid());
|
|
6277
6209
|
return _this;
|
|
6278
6210
|
}
|
|
6279
6211
|
AtIndexes.prototype.jumpTarget = function (_scrollIntoView, idx) {
|
|
@@ -6301,7 +6233,7 @@ var AtIndexes = /** @class */ (function (_super) {
|
|
|
6301
6233
|
var list = this.props.list;
|
|
6302
6234
|
// const index = _findIndex(list, ['key', key])
|
|
6303
6235
|
var index = list.findIndex(function (item) { return item.key === key; });
|
|
6304
|
-
var targetView = "at-indexes__list-"
|
|
6236
|
+
var targetView = "at-indexes__list-".concat(key);
|
|
6305
6237
|
this.jumpTarget(targetView, index + 1);
|
|
6306
6238
|
};
|
|
6307
6239
|
AtIndexes.prototype.updateState = function (state) {
|
|
@@ -6369,10 +6301,10 @@ var AtIndexes = /** @class */ (function (_super) {
|
|
|
6369
6301
|
var rootCls = classnames('at-indexes', className);
|
|
6370
6302
|
var menuList = list.map(function (dataList, i) {
|
|
6371
6303
|
var key = dataList.key;
|
|
6372
|
-
var targetView = "at-indexes__list-"
|
|
6304
|
+
var targetView = "at-indexes__list-".concat(key);
|
|
6373
6305
|
return (React.createElement(View, { className: 'at-indexes__menu-item', key: key, onClick: _this.jumpTarget.bind(_this, targetView, i + 1) }, key));
|
|
6374
6306
|
});
|
|
6375
|
-
var indexesList = list.map(function (dataList) { return (React.createElement(View, { id: "at-indexes__list-"
|
|
6307
|
+
var indexesList = list.map(function (dataList) { return (React.createElement(View, { id: "at-indexes__list-".concat(dataList.key), className: 'at-indexes__list', key: dataList.key },
|
|
6376
6308
|
React.createElement(View, { className: 'at-indexes__list-title' }, dataList.title),
|
|
6377
6309
|
React.createElement(AtList, null, dataList.items &&
|
|
6378
6310
|
dataList.items.map(function (item) { return (React.createElement(AtListItem, { key: item.name, title: item.name, onClick: _this.handleClick.bind(_this, item) })); })))); });
|
|
@@ -6390,15 +6322,15 @@ var AtIndexes = /** @class */ (function (_super) {
|
|
|
6390
6322
|
return AtIndexes;
|
|
6391
6323
|
}(React.Component));
|
|
6392
6324
|
AtIndexes.propTypes = {
|
|
6393
|
-
customStyle:
|
|
6394
|
-
className:
|
|
6395
|
-
animation:
|
|
6396
|
-
isVibrate:
|
|
6397
|
-
isShowToast:
|
|
6398
|
-
topKey:
|
|
6399
|
-
list:
|
|
6400
|
-
onClick:
|
|
6401
|
-
onScrollIntoView:
|
|
6325
|
+
customStyle: propTypes.oneOfType([propTypes.object, propTypes.string]),
|
|
6326
|
+
className: propTypes.oneOfType([propTypes.array, propTypes.string]),
|
|
6327
|
+
animation: propTypes.bool,
|
|
6328
|
+
isVibrate: propTypes.bool,
|
|
6329
|
+
isShowToast: propTypes.bool,
|
|
6330
|
+
topKey: propTypes.string,
|
|
6331
|
+
list: propTypes.array,
|
|
6332
|
+
onClick: propTypes.func,
|
|
6333
|
+
onScrollIntoView: propTypes.func
|
|
6402
6334
|
};
|
|
6403
6335
|
AtIndexes.defaultProps = {
|
|
6404
6336
|
customStyle: '',
|
|
@@ -6411,7 +6343,7 @@ AtIndexes.defaultProps = {
|
|
|
6411
6343
|
};
|
|
6412
6344
|
|
|
6413
6345
|
var dayjs_min = createCommonjsModule(function (module, exports) {
|
|
6414
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,
|
|
6346
|
+
!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});
|
|
6415
6347
|
});
|
|
6416
6348
|
|
|
6417
6349
|
/** Built-in value references. */
|
|
@@ -7749,7 +7681,8 @@ function handleActive(args, item) {
|
|
|
7749
7681
|
var dayjsEnd = dayjs_min(end);
|
|
7750
7682
|
var dayjsStart = start ? dayjs_min(start) : dayjsEnd;
|
|
7751
7683
|
item.isSelected =
|
|
7752
|
-
(_value === null || _value === void 0 ? void 0 : _value.isSame(dayjsEnd)) ||
|
|
7684
|
+
(_value === null || _value === void 0 ? void 0 : _value.isSame(dayjsEnd)) ||
|
|
7685
|
+
(_value === null || _value === void 0 ? void 0 : _value.isSame(dayjsStart)) ||
|
|
7753
7686
|
((_value === null || _value === void 0 ? void 0 : _value.isAfter(dayjsStart)) && (_value === null || _value === void 0 ? void 0 : _value.isBefore(dayjsEnd)));
|
|
7754
7687
|
item.isSelectedHead = _value === null || _value === void 0 ? void 0 : _value.isSame(dayjsStart);
|
|
7755
7688
|
item.isSelectedTail = _value === null || _value === void 0 ? void 0 : _value.isSame(dayjsEnd);
|
|
@@ -7761,7 +7694,7 @@ function handleMarks(args, item) {
|
|
|
7761
7694
|
var _value = item._value;
|
|
7762
7695
|
var marks = options.marks;
|
|
7763
7696
|
var markList = marks.filter(function (mark) {
|
|
7764
|
-
return dayjs_min(mark.value).startOf('day').isSame(_value);
|
|
7697
|
+
return _value ? dayjs_min(mark.value).startOf('day').isSame(_value) : false;
|
|
7765
7698
|
});
|
|
7766
7699
|
item.marks = markList.slice(0, 1);
|
|
7767
7700
|
return item;
|
|
@@ -7805,7 +7738,7 @@ function handleValid(args, item) {
|
|
|
7805
7738
|
var validDates = options.validDates;
|
|
7806
7739
|
if (!isEmpty_1(validDates)) {
|
|
7807
7740
|
var isInclude = validDates.some(function (date) {
|
|
7808
|
-
return dayjs_min(date.value).startOf('day').isSame(_value);
|
|
7741
|
+
return _value ? dayjs_min(date.value).startOf('day').isSame(_value) : false;
|
|
7809
7742
|
});
|
|
7810
7743
|
item.isDisabled = !isInclude;
|
|
7811
7744
|
}
|
|
@@ -7817,9 +7750,11 @@ var plugins = [handleActive, handleMarks, handleDisabled, handleValid];
|
|
|
7817
7750
|
var TOTAL = 7 * 6;
|
|
7818
7751
|
function getFullItem(item, options, selectedDate, isShowStatus) {
|
|
7819
7752
|
if (options.marks.find(function (x) { return x.value === item.value; })) {
|
|
7820
|
-
item.marks = [
|
|
7753
|
+
item.marks = [
|
|
7754
|
+
{
|
|
7821
7755
|
value: item.value
|
|
7822
|
-
}
|
|
7756
|
+
}
|
|
7757
|
+
];
|
|
7823
7758
|
}
|
|
7824
7759
|
if (!isShowStatus)
|
|
7825
7760
|
return item;
|
|
@@ -7917,7 +7852,7 @@ var AtCalendarList = /** @class */ (function (_super) {
|
|
|
7917
7852
|
var list = this.props.list;
|
|
7918
7853
|
if (!list || list.length === 0)
|
|
7919
7854
|
return null;
|
|
7920
|
-
return (React.createElement(View, { className: 'at-calendar__list flex' }, list.map(function (item) { return (React.createElement(View, { key: "list-item-"
|
|
7855
|
+
return (React.createElement(View, { className: 'at-calendar__list flex' }, list.map(function (item) { return (React.createElement(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]), {
|
|
7921
7856
|
'flex__item--today': item.isToday,
|
|
7922
7857
|
'flex__item--active': item.isActive,
|
|
7923
7858
|
'flex__item--selected': item.isSelected,
|
|
@@ -8017,7 +7952,7 @@ var AtCalendarBody = /** @class */ (function (_super) {
|
|
|
8017
7952
|
_this.setState({
|
|
8018
7953
|
isAnimate: false
|
|
8019
7954
|
}, function () {
|
|
8020
|
-
callback
|
|
7955
|
+
callback === null || callback === void 0 ? void 0 : callback();
|
|
8021
7956
|
});
|
|
8022
7957
|
}, ANIMTE_DURATION);
|
|
8023
7958
|
});
|
|
@@ -8106,7 +8041,7 @@ var AtCalendarBody = /** @class */ (function (_super) {
|
|
|
8106
8041
|
var isSwiper = this.props.isSwiper;
|
|
8107
8042
|
var _a = this.state, isAnimate = _a.isAnimate, offsetSize = _a.offsetSize, listGroup = _a.listGroup;
|
|
8108
8043
|
if (!isSwiper) {
|
|
8109
|
-
return (React.createElement(View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--"
|
|
8044
|
+
return (React.createElement(View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--".concat(process.env.TARO_ENV)) },
|
|
8110
8045
|
React.createElement(AtCalendarHeader, null),
|
|
8111
8046
|
React.createElement(View, { className: 'main__body body' },
|
|
8112
8047
|
React.createElement(View, { className: 'body__slider body__slider--now' },
|
|
@@ -8114,17 +8049,17 @@ var AtCalendarBody = /** @class */ (function (_super) {
|
|
|
8114
8049
|
}
|
|
8115
8050
|
/* 需要 Taro 组件库维护 Swiper 使 小程序 和 H5 的表现保持一致 */
|
|
8116
8051
|
if (process.env.TARO_ENV === 'h5') {
|
|
8117
|
-
return (React.createElement(View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--"
|
|
8052
|
+
return (React.createElement(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 },
|
|
8118
8053
|
React.createElement(AtCalendarHeader, null),
|
|
8119
8054
|
React.createElement(View, { className: classnames('main__body body', {
|
|
8120
8055
|
'main__body--slider': isSwiper,
|
|
8121
8056
|
'main__body--animate': isAnimate
|
|
8122
8057
|
}), style: {
|
|
8123
8058
|
transform: isSwiper
|
|
8124
|
-
? "translateX(-100%) translate3d("
|
|
8059
|
+
? "translateX(-100%) translate3d(".concat(offsetSize, ",0,0)")
|
|
8125
8060
|
: '',
|
|
8126
8061
|
WebkitTransform: isSwiper
|
|
8127
|
-
? "translateX(-100%) translate3d("
|
|
8062
|
+
? "translateX(-100%) translate3d(".concat(offsetSize, "px,0,0)")
|
|
8128
8063
|
: ''
|
|
8129
8064
|
} },
|
|
8130
8065
|
React.createElement(View, { className: 'body__slider body__slider--pre' },
|
|
@@ -8134,7 +8069,7 @@ var AtCalendarBody = /** @class */ (function (_super) {
|
|
|
8134
8069
|
React.createElement(View, { className: 'body__slider body__slider--next' },
|
|
8135
8070
|
React.createElement(AtCalendarList, { list: listGroup[2].list })))));
|
|
8136
8071
|
}
|
|
8137
|
-
return (React.createElement(View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--"
|
|
8072
|
+
return (React.createElement(View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--".concat(process.env.TARO_ENV)) },
|
|
8138
8073
|
React.createElement(AtCalendarHeader, null),
|
|
8139
8074
|
React.createElement(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.createElement(SwiperItem, { key: key, itemId: key.toString() },
|
|
8140
8075
|
React.createElement(AtCalendarList, { list: item.list, onClick: _this.props.onDayClick, onLongClick: _this.props.onLongClick }))); }))));
|
|
@@ -8392,15 +8327,15 @@ var AtFab = /** @class */ (function (_super) {
|
|
|
8392
8327
|
var _a;
|
|
8393
8328
|
var _b = this.props, size = _b.size, className = _b.className, children = _b.children;
|
|
8394
8329
|
var rootClass = classnames('at-fab', className, (_a = {},
|
|
8395
|
-
_a["at-fab--"
|
|
8330
|
+
_a["at-fab--".concat(size)] = size,
|
|
8396
8331
|
_a));
|
|
8397
8332
|
return (React.createElement(View, { className: rootClass, onClick: this.onClick.bind(this) }, children));
|
|
8398
8333
|
};
|
|
8399
8334
|
return AtFab;
|
|
8400
8335
|
}(React.Component));
|
|
8401
8336
|
AtFab.propTypes = {
|
|
8402
|
-
size:
|
|
8403
|
-
onClick:
|
|
8337
|
+
size: propTypes.oneOf(['normal', 'small']),
|
|
8338
|
+
onClick: propTypes.func
|
|
8404
8339
|
};
|
|
8405
8340
|
AtFab.defaultProps = {
|
|
8406
8341
|
size: 'normal'
|
|
@@ -8411,7 +8346,7 @@ var objectToString = function (style) {
|
|
|
8411
8346
|
var styleStr_1 = '';
|
|
8412
8347
|
Object.keys(style).forEach(function (key) {
|
|
8413
8348
|
var lowerCaseKey = key.replace(/([A-Z])/g, '-$1').toLowerCase();
|
|
8414
|
-
styleStr_1 += lowerCaseKey
|
|
8349
|
+
styleStr_1 += "".concat(lowerCaseKey, ":").concat(style[key], ";");
|
|
8415
8350
|
});
|
|
8416
8351
|
return styleStr_1;
|
|
8417
8352
|
}
|