@nutui/nutui-react-taro 3.0.5 → 3.0.7
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/CHANGELOG.md +59 -1
- package/dist/cjs/packages/actionsheet/style/style.css +4 -4
- package/dist/cjs/packages/address/style/style.css +4 -4
- package/dist/cjs/packages/audio/style/style.css +4 -16
- package/dist/cjs/packages/badge/badge.js +4 -3
- package/dist/cjs/packages/badge/style/badge.scss +4 -0
- package/dist/cjs/packages/badge/style/style.css +9 -6
- package/dist/cjs/packages/badge/style/style.harmony.css +3 -0
- package/dist/cjs/packages/button/style/button.scss +4 -20
- package/dist/cjs/packages/button/style/style.css +4 -16
- package/dist/cjs/packages/button/style/style.harmony.css +2 -14
- package/dist/cjs/packages/calendar/style/style.css +4 -4
- package/dist/cjs/packages/cascader/style/style.css +4 -4
- package/dist/cjs/packages/collapse/style/style.css +22 -7
- package/dist/cjs/packages/collapseitem/collapseitem.js +63 -77
- package/dist/cjs/packages/collapseitem/style/collapseitem.scss +22 -5
- package/dist/cjs/packages/collapseitem/style/style.css +22 -7
- package/dist/cjs/packages/collapseitem/style/style.harmony.css +22 -7
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/datepicker/style/style.css +7 -4
- package/dist/cjs/packages/datepickerview/style/style.css +3 -0
- package/dist/cjs/packages/dialog/content.d.ts +11 -3
- package/dist/cjs/packages/dialog/content.js +4 -4
- package/dist/cjs/packages/dialog/dialog.d.ts +39 -4
- package/dist/cjs/packages/dialog/dialog.js +14 -13
- package/dist/cjs/packages/dialog/index.d.ts +1 -1
- package/dist/cjs/packages/dialog/style/style.css +4 -16
- package/dist/cjs/packages/empty/style/style.css +4 -16
- package/dist/cjs/packages/fixednav/style/style.css +9 -6
- package/dist/cjs/packages/imagepreview/style/style.css +4 -4
- package/dist/cjs/packages/indicator/indicator.js +1 -1
- package/dist/cjs/packages/lottie/index.js +5 -5
- package/dist/cjs/packages/lottie/{mp.js → lottiemp.js} +1 -1
- package/dist/cjs/packages/notify/notify.js +44 -13
- package/dist/cjs/packages/notify/style/notify.scss +39 -36
- package/dist/cjs/packages/notify/style/style.css +36 -31
- package/dist/cjs/packages/notify/style/style.harmony.css +36 -31
- package/dist/cjs/packages/numberkeyboard/style/style.css +4 -4
- package/dist/cjs/packages/picker/style/style.css +7 -4
- package/dist/cjs/packages/pickerview/pickerroller.js +7 -2
- package/dist/cjs/packages/pickerview/style/pickerview.scss +3 -0
- package/dist/cjs/packages/pickerview/style/style.css +3 -0
- package/dist/cjs/packages/pickerview/style/style.harmony.css +3 -0
- package/dist/cjs/packages/popover/popover.d.ts +0 -7
- package/dist/cjs/packages/popover/popover.js +114 -141
- package/dist/cjs/packages/popover/style/popover.scss +48 -51
- package/dist/cjs/packages/popover/style/style.css +64 -70
- package/dist/cjs/packages/popover/style/style.harmony.css +64 -60
- package/dist/cjs/packages/popup/style/popup.scss +4 -4
- package/dist/cjs/packages/popup/style/style.css +4 -4
- package/dist/cjs/packages/popup/style/style.harmony.css +4 -4
- package/dist/cjs/packages/resultpage/style/style.css +4 -16
- package/dist/cjs/packages/searchbar/searchbar.js +8 -2
- package/dist/cjs/packages/shortpassword/style/style.css +4 -4
- package/dist/cjs/packages/skeleton/skeleton.js +63 -52
- package/dist/cjs/packages/skeleton/style/index.js +0 -1
- package/dist/cjs/packages/skeleton/style/skeleton.scss +40 -46
- package/dist/cjs/packages/skeleton/style/style.css +32 -175
- package/dist/cjs/packages/skeleton/style/style.harmony.css +32 -42
- package/dist/cjs/packages/switch/style/style.css +5 -0
- package/dist/cjs/packages/switch/style/style.harmony.css +5 -0
- package/dist/cjs/packages/switch/style/switch.scss +5 -0
- package/dist/cjs/packages/switch/switch.js +22 -11
- package/dist/cjs/packages/tabbar/style/style.css +54 -45
- package/dist/cjs/packages/tabbar/style/style.harmony.css +24 -18
- package/dist/cjs/packages/tabbar/style/tabbar.scss +28 -19
- package/dist/cjs/packages/tabbar/tabbar.js +28 -10
- package/dist/cjs/packages/tabbaritem/style/style.css +30 -27
- package/dist/cjs/packages/tabbaritem/style/style.harmony.css +21 -21
- package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +32 -29
- package/dist/cjs/packages/tabbaritem/tabbaritem.js +38 -14
- package/dist/cjs/packages/tabpane/tabpane.js +2 -2
- package/dist/cjs/packages/timeselect/style/style.css +4 -4
- package/dist/cjs/packages/tour/style/style.css +64 -70
- package/dist/cjs/packages/tour/tour.js +3 -4
- package/dist/cjs/types/spec/badge/base.d.ts +1 -0
- package/dist/cjs/types/spec/dialog/base.d.ts +50 -1
- package/dist/cjs/types/spec/dialog/base.js +7 -0
- package/dist/cjs/types/spec/dialog/h5.d.ts +4 -1
- package/dist/cjs/types/spec/dialog/taro.d.ts +8 -2
- package/dist/cjs/types/spec/indicator/base.d.ts +1 -1
- package/dist/cjs/types/spec/notify/base.d.ts +7 -2
- package/dist/cjs/types/spec/popover/base.d.ts +7 -0
- package/dist/cjs/types/spec/searchbar/taro.d.ts +10 -7
- package/dist/cjs/types/spec/skeleton/base.d.ts +7 -5
- package/dist/cjs/types/spec/switch/base.d.ts +3 -2
- package/dist/cjs/types/spec/switch/h5.d.ts +1 -1
- package/dist/cjs/types/spec/switch/taro.d.ts +1 -4
- package/dist/cjs/types/spec/tabbar/base.d.ts +7 -4
- package/dist/cjs/utils/get-rect-by-taro.js +10 -0
- package/dist/cjs/utils/lru.d.ts +8 -0
- package/dist/cjs/utils/lru.js +58 -0
- package/dist/es/packages/actionsheet/style/style.css +4 -4
- package/dist/es/packages/address/style/style.css +4 -4
- package/dist/es/packages/audio/style/style.css +4 -16
- package/dist/es/packages/badge/badge.js +4 -3
- package/dist/es/packages/badge/style/badge.scss +4 -0
- package/dist/es/packages/badge/style/style.css +9 -6
- package/dist/es/packages/badge/style/style.harmony.css +3 -0
- package/dist/es/packages/button/style/button.scss +4 -20
- package/dist/es/packages/button/style/style.css +4 -16
- package/dist/es/packages/button/style/style.harmony.css +2 -14
- package/dist/es/packages/calendar/style/style.css +4 -4
- package/dist/es/packages/cascader/style/style.css +4 -4
- package/dist/es/packages/collapse/style/style.css +22 -7
- package/dist/es/packages/collapseitem/collapseitem.js +65 -79
- package/dist/es/packages/collapseitem/style/collapseitem.scss +22 -5
- package/dist/es/packages/collapseitem/style/style.css +22 -7
- package/dist/es/packages/collapseitem/style/style.harmony.css +22 -7
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/datepicker/style/style.css +7 -4
- package/dist/es/packages/datepickerview/style/style.css +3 -0
- package/dist/es/packages/dialog/content.d.ts +11 -3
- package/dist/es/packages/dialog/content.js +4 -4
- package/dist/es/packages/dialog/dialog.d.ts +39 -4
- package/dist/es/packages/dialog/dialog.js +14 -13
- package/dist/es/packages/dialog/index.d.ts +1 -1
- package/dist/es/packages/dialog/style/style.css +4 -16
- package/dist/es/packages/empty/style/style.css +4 -16
- package/dist/es/packages/fixednav/style/style.css +9 -6
- package/dist/es/packages/imagepreview/style/style.css +4 -4
- package/dist/es/packages/indicator/indicator.js +1 -1
- package/dist/es/packages/lottie/index.js +3 -3
- package/dist/es/packages/lottie/{mp.js → lottiemp.js} +1 -1
- package/dist/es/packages/notify/notify.js +45 -14
- package/dist/es/packages/notify/style/notify.scss +39 -36
- package/dist/es/packages/notify/style/style.css +36 -31
- package/dist/es/packages/notify/style/style.harmony.css +36 -31
- package/dist/es/packages/numberkeyboard/style/style.css +4 -4
- package/dist/es/packages/picker/style/style.css +7 -4
- package/dist/es/packages/pickerview/pickerroller.js +7 -2
- package/dist/es/packages/pickerview/style/pickerview.scss +3 -0
- package/dist/es/packages/pickerview/style/style.css +3 -0
- package/dist/es/packages/pickerview/style/style.harmony.css +3 -0
- package/dist/es/packages/popover/popover.d.ts +0 -7
- package/dist/es/packages/popover/popover.js +115 -142
- package/dist/es/packages/popover/style/popover.scss +48 -51
- package/dist/es/packages/popover/style/style.css +64 -70
- package/dist/es/packages/popover/style/style.harmony.css +64 -60
- package/dist/es/packages/popup/style/popup.scss +4 -4
- package/dist/es/packages/popup/style/style.css +4 -4
- package/dist/es/packages/popup/style/style.harmony.css +4 -4
- package/dist/es/packages/resultpage/style/style.css +4 -16
- package/dist/es/packages/searchbar/searchbar.js +7 -2
- package/dist/es/packages/shortpassword/style/style.css +4 -4
- package/dist/es/packages/skeleton/skeleton.js +62 -52
- package/dist/es/packages/skeleton/style/index.js +0 -1
- package/dist/es/packages/skeleton/style/skeleton.scss +40 -46
- package/dist/es/packages/skeleton/style/style.css +32 -175
- package/dist/es/packages/skeleton/style/style.harmony.css +32 -42
- package/dist/es/packages/switch/style/style.css +5 -0
- package/dist/es/packages/switch/style/style.harmony.css +5 -0
- package/dist/es/packages/switch/style/switch.scss +5 -0
- package/dist/es/packages/switch/switch.js +21 -11
- package/dist/es/packages/tabbar/style/style.css +54 -45
- package/dist/es/packages/tabbar/style/style.harmony.css +24 -18
- package/dist/es/packages/tabbar/style/tabbar.scss +28 -19
- package/dist/es/packages/tabbar/tabbar.js +27 -10
- package/dist/es/packages/tabbaritem/style/style.css +30 -27
- package/dist/es/packages/tabbaritem/style/style.harmony.css +21 -21
- package/dist/es/packages/tabbaritem/style/tabbaritem.scss +32 -29
- package/dist/es/packages/tabbaritem/tabbaritem.js +38 -14
- package/dist/es/packages/tabpane/tabpane.js +2 -2
- package/dist/es/packages/timeselect/style/style.css +4 -4
- package/dist/es/packages/tour/style/style.css +64 -70
- package/dist/es/packages/tour/tour.js +3 -4
- package/dist/es/types/spec/badge/base.d.ts +4 -0
- package/dist/es/types/spec/dialog/base.d.ts +83 -1
- package/dist/es/types/spec/dialog/base.js +1 -1
- package/dist/es/types/spec/dialog/h5.d.ts +4 -1
- package/dist/es/types/spec/dialog/taro.d.ts +8 -2
- package/dist/es/types/spec/indicator/base.d.ts +1 -1
- package/dist/es/types/spec/notify/base.d.ts +22 -5
- package/dist/es/types/spec/popover/base.d.ts +7 -0
- package/dist/es/types/spec/searchbar/taro.d.ts +10 -7
- package/dist/es/types/spec/skeleton/base.d.ts +19 -14
- package/dist/es/types/spec/switch/base.d.ts +6 -2
- package/dist/es/types/spec/switch/h5.d.ts +1 -1
- package/dist/es/types/spec/switch/taro.d.ts +1 -4
- package/dist/es/types/spec/tabbar/base.d.ts +7 -4
- package/dist/es/utils/get-rect-by-taro.js +9 -0
- package/dist/es/utils/lru.d.ts +8 -0
- package/dist/es/utils/lru.js +49 -0
- package/dist/nutui.react.umd.js +683 -552
- package/dist/style.css +1 -1
- package/dist/style.scss +46 -46
- package/dist/styles/theme-jmapp.scss +1 -0
- package/dist/styles/themes/jmapp.css +1 -1
- package/dist/styles/variables-jmapp.scss +237 -50
- package/dist/styles/variables-jrkf.scss +25 -14
- package/dist/styles/variables.scss +38 -51
- package/package.json +1 -1
- package/dist/cjs/packages/dialog/types.d.ts +0 -57
- package/dist/cjs/packages/dialog/types.js +0 -4
- package/dist/cjs/packages/dialog/types.taro.d.ts +0 -10
- package/dist/es/packages/dialog/types.d.ts +0 -57
- package/dist/es/packages/dialog/types.js +0 -1
- package/dist/es/packages/dialog/types.taro.d.ts +0 -10
- /package/dist/cjs/packages/lottie/{mp.d.ts → lottiemp.d.ts} +0 -0
- /package/dist/cjs/packages/lottie/{web.d.ts → lottieweb.d.ts} +0 -0
- /package/dist/cjs/packages/lottie/{web.js → lottieweb.js} +0 -0
- /package/dist/es/packages/lottie/{mp.d.ts → lottiemp.d.ts} +0 -0
- /package/dist/es/packages/lottie/{web.d.ts → lottieweb.d.ts} +0 -0
- /package/dist/es/packages/lottie/{web.js → lottieweb.js} +0 -0
package/dist/nutui.react.umd.js
CHANGED
|
@@ -3784,6 +3784,66 @@
|
|
|
3784
3784
|
stop.current = true;
|
|
3785
3785
|
};
|
|
3786
3786
|
}
|
|
3787
|
+
function _class_call_check(instance, Constructor) {
|
|
3788
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
3789
|
+
}
|
|
3790
|
+
function _defineProperties(target, props) {
|
|
3791
|
+
for (var i2 = 0; i2 < props.length; i2++) {
|
|
3792
|
+
var descriptor = props[i2];
|
|
3793
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
3794
|
+
descriptor.configurable = true;
|
|
3795
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
3796
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
3800
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
3801
|
+
return Constructor;
|
|
3802
|
+
}
|
|
3803
|
+
var MiniLru = /* @__PURE__ */ function() {
|
|
3804
|
+
function MiniLru2(capacity) {
|
|
3805
|
+
_class_call_check(this, MiniLru2);
|
|
3806
|
+
_define_property(this, "cache", void 0);
|
|
3807
|
+
_define_property(this, "capacity", void 0);
|
|
3808
|
+
if (capacity <= 0) {
|
|
3809
|
+
throw new Error("Cache capacity must be a positive number");
|
|
3810
|
+
}
|
|
3811
|
+
this.cache = /* @__PURE__ */ new Map();
|
|
3812
|
+
this.capacity = capacity;
|
|
3813
|
+
}
|
|
3814
|
+
_create_class(MiniLru2, [
|
|
3815
|
+
{
|
|
3816
|
+
key: "get",
|
|
3817
|
+
value: function get(key2) {
|
|
3818
|
+
if (this.cache.has(key2)) {
|
|
3819
|
+
var value2 = this.cache.get(key2);
|
|
3820
|
+
this.cache.delete(key2);
|
|
3821
|
+
this.cache.set(key2, value2);
|
|
3822
|
+
return value2;
|
|
3823
|
+
}
|
|
3824
|
+
return null;
|
|
3825
|
+
}
|
|
3826
|
+
},
|
|
3827
|
+
{
|
|
3828
|
+
key: "set",
|
|
3829
|
+
value: function set(key2, value2) {
|
|
3830
|
+
if (this.cache.has(key2)) {
|
|
3831
|
+
this.cache.delete(key2);
|
|
3832
|
+
} else if (this.cache.size >= this.capacity) {
|
|
3833
|
+
this.cache.delete(this.cache.keys().next().value);
|
|
3834
|
+
}
|
|
3835
|
+
this.cache.set(key2, value2);
|
|
3836
|
+
}
|
|
3837
|
+
},
|
|
3838
|
+
{
|
|
3839
|
+
key: "has",
|
|
3840
|
+
value: function has2(key2) {
|
|
3841
|
+
return this.cache.has(key2);
|
|
3842
|
+
}
|
|
3843
|
+
}
|
|
3844
|
+
]);
|
|
3845
|
+
return MiniLru2;
|
|
3846
|
+
}();
|
|
3787
3847
|
var inBrowser$1 = typeof document !== "undefined" && !!document.scripts;
|
|
3788
3848
|
function isWindow(val2) {
|
|
3789
3849
|
return val2 === window;
|
|
@@ -3815,6 +3875,7 @@
|
|
|
3815
3875
|
height: 0
|
|
3816
3876
|
};
|
|
3817
3877
|
};
|
|
3878
|
+
var lru = new MiniLru(10);
|
|
3818
3879
|
function makeRect(width2, height2) {
|
|
3819
3880
|
return {
|
|
3820
3881
|
top: 0,
|
|
@@ -3841,8 +3902,15 @@
|
|
|
3841
3902
|
return [
|
|
3842
3903
|
2,
|
|
3843
3904
|
new Promise(function(resolve, reject) {
|
|
3905
|
+
if (lru.has(element)) {
|
|
3906
|
+
resolve(lru.get(element));
|
|
3907
|
+
return;
|
|
3908
|
+
}
|
|
3844
3909
|
Taro.createSelectorQuery().select("#".concat(harmonyId || element.uid)).boundingClientRect().exec(function(param) {
|
|
3845
3910
|
var _param = _sliced_to_array(param, 1), rects = _param[0];
|
|
3911
|
+
if (rects) {
|
|
3912
|
+
lru.set(element, rects);
|
|
3913
|
+
}
|
|
3846
3914
|
resolve(rects);
|
|
3847
3915
|
});
|
|
3848
3916
|
})
|
|
@@ -4454,7 +4522,8 @@
|
|
|
4454
4522
|
top: 0,
|
|
4455
4523
|
right: 0,
|
|
4456
4524
|
fill: "solid",
|
|
4457
|
-
size: "large"
|
|
4525
|
+
size: "large",
|
|
4526
|
+
disabled: false
|
|
4458
4527
|
});
|
|
4459
4528
|
var Badge = function(props) {
|
|
4460
4529
|
var getContent = function getContent2() {
|
|
@@ -4475,14 +4544,14 @@
|
|
|
4475
4544
|
};
|
|
4476
4545
|
var _this;
|
|
4477
4546
|
var rtl = useRtl();
|
|
4478
|
-
var _$_object_spread = _object_spread({}, defaultProps$1l, props), className = _$_object_spread.className, style = _$_object_spread.style, value2 = _$_object_spread.value, max = _$_object_spread.max, children = _$_object_spread.children, dot = _$_object_spread.dot, top = _$_object_spread.top, right2 = _$_object_spread.right, fill = _$_object_spread.fill, size = _$_object_spread.size;
|
|
4547
|
+
var _$_object_spread = _object_spread({}, defaultProps$1l, props), className = _$_object_spread.className, style = _$_object_spread.style, value2 = _$_object_spread.value, max = _$_object_spread.max, children = _$_object_spread.children, dot = _$_object_spread.dot, top = _$_object_spread.top, right2 = _$_object_spread.right, fill = _$_object_spread.fill, size = _$_object_spread.size, disabled = _$_object_spread.disabled;
|
|
4479
4548
|
var classPrefix2 = "nut-badge";
|
|
4480
4549
|
var isHarmony2 = harmony();
|
|
4481
4550
|
var classes = classNames(classPrefix2, className);
|
|
4482
4551
|
var badgeRef = React.useRef(null);
|
|
4483
4552
|
var _useState = _sliced_to_array(React.useState({}), 2), contentStyle = _useState[0], setContentStyle = _useState[1];
|
|
4484
4553
|
var _obj;
|
|
4485
|
-
var contentClasses = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-sup"), isNumber() || isString() || dot), _define_property(_obj, "".concat(classPrefix2, "-number"), isNumber()), _define_property(_obj, "".concat(classPrefix2, "-one"), typeof getContent() === "string" && ((_this = "".concat(getContent())) === null || _this === void 0 ? void 0 : _this.length) === 1), _define_property(_obj, "".concat(classPrefix2, "-dot"), dot), _define_property(_obj, "".concat(classPrefix2, "-dot-").concat(size), dot), _define_property(_obj, "".concat(classPrefix2, "-").concat(fill), fill === "outline"), _define_property(_obj, "".concat(classPrefix2, "-content"), children), _obj));
|
|
4554
|
+
var contentClasses = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-sup"), isNumber() || isString() || dot), _define_property(_obj, "".concat(classPrefix2, "-number"), isNumber()), _define_property(_obj, "".concat(classPrefix2, "-one"), typeof getContent() === "string" && ((_this = "".concat(getContent())) === null || _this === void 0 ? void 0 : _this.length) === 1), _define_property(_obj, "".concat(classPrefix2, "-dot"), dot), _define_property(_obj, "".concat(classPrefix2, "-dot-").concat(size), dot), _define_property(_obj, "".concat(classPrefix2, "-").concat(fill), fill === "outline"), _define_property(_obj, "".concat(classPrefix2, "-content"), children), _define_property(_obj, "".concat(classPrefix2, "-disabled"), disabled), _obj));
|
|
4486
4555
|
React.useEffect(function() {
|
|
4487
4556
|
if (badgeRef.current) {
|
|
4488
4557
|
getPositionStyle();
|
|
@@ -4898,14 +4967,6 @@
|
|
|
4898
4967
|
SideBar.displayName = "NutSideBar";
|
|
4899
4968
|
SideBar.Item = SideBarItem;
|
|
4900
4969
|
const TabbarContext = React.createContext(null);
|
|
4901
|
-
function addColorForHarmony(maybeElement, color) {
|
|
4902
|
-
if (React.isValidElement(maybeElement) && harmony()) {
|
|
4903
|
-
return React.cloneElement(maybeElement, {
|
|
4904
|
-
color
|
|
4905
|
-
});
|
|
4906
|
-
}
|
|
4907
|
-
return maybeElement;
|
|
4908
|
-
}
|
|
4909
4970
|
var defaultProps$1g = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
4910
4971
|
title: "",
|
|
4911
4972
|
icon: null,
|
|
@@ -4913,11 +4974,12 @@
|
|
|
4913
4974
|
dot: false,
|
|
4914
4975
|
max: 99,
|
|
4915
4976
|
top: "0",
|
|
4916
|
-
right: "0"
|
|
4977
|
+
right: "0",
|
|
4978
|
+
direction: "vertical"
|
|
4917
4979
|
});
|
|
4918
4980
|
var TabbarItem = function(props) {
|
|
4919
4981
|
var ctx = React.useContext(TabbarContext);
|
|
4920
|
-
var _ref = _object_spread({}, defaultProps$1g, props), className = _ref.className, style = _ref.style, title = _ref.title, icon = _ref.icon, value2 = _ref.value, dot = _ref.dot, max = _ref.max, top = _ref.top, right2 = _ref.right, index2 = _ref.index, rest = _object_without_properties(_ref, [
|
|
4982
|
+
var _ref = _object_spread({}, defaultProps$1g, props), className = _ref.className, style = _ref.style, title = _ref.title, icon = _ref.icon, value2 = _ref.value, dot = _ref.dot, max = _ref.max, top = _ref.top, right2 = _ref.right, index2 = _ref.index, direction = _ref.direction, onActiveClick = _ref.onActiveClick, rest = _object_without_properties(_ref, [
|
|
4921
4983
|
"className",
|
|
4922
4984
|
"style",
|
|
4923
4985
|
"title",
|
|
@@ -4927,15 +4989,19 @@
|
|
|
4927
4989
|
"max",
|
|
4928
4990
|
"top",
|
|
4929
4991
|
"right",
|
|
4930
|
-
"index"
|
|
4992
|
+
"index",
|
|
4993
|
+
"direction",
|
|
4994
|
+
"onActiveClick"
|
|
4931
4995
|
]);
|
|
4932
4996
|
var active2 = index2 === (ctx === null || ctx === void 0 ? void 0 : ctx.selectIndex);
|
|
4933
4997
|
var classPrefix2 = "nut-tabbar-item";
|
|
4934
|
-
var
|
|
4935
|
-
var
|
|
4936
|
-
var
|
|
4998
|
+
var _obj;
|
|
4999
|
+
var tabbarItemClass = classNames(classPrefix2, (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-active"), active2), _define_property(_obj, "".concat(classPrefix2, "-large"), !icon || !title), _obj), className);
|
|
5000
|
+
var renderNodeWithActive = function(node) {
|
|
5001
|
+
return node && typeof node === "function" ? node(active2) : node;
|
|
5002
|
+
};
|
|
4937
5003
|
var badgeProps = {
|
|
4938
|
-
value: value2,
|
|
5004
|
+
value: renderNodeWithActive(value2),
|
|
4939
5005
|
dot,
|
|
4940
5006
|
max,
|
|
4941
5007
|
top,
|
|
@@ -4944,11 +5010,32 @@
|
|
|
4944
5010
|
};
|
|
4945
5011
|
var renderTitleText = function() {
|
|
4946
5012
|
return title && /* @__PURE__ */ React.createElement(components.View, {
|
|
4947
|
-
className:
|
|
5013
|
+
className: "".concat(classPrefix2, "-text"),
|
|
4948
5014
|
style: {
|
|
4949
5015
|
color: active2 ? ctx === null || ctx === void 0 ? void 0 : ctx.activeColor : ctx === null || ctx === void 0 ? void 0 : ctx.inactiveColor
|
|
4950
5016
|
}
|
|
4951
|
-
}, title);
|
|
5017
|
+
}, renderNodeWithActive(title));
|
|
5018
|
+
};
|
|
5019
|
+
var renderTitle = function() {
|
|
5020
|
+
return /* @__PURE__ */ React.createElement(Badge, _object_spread({
|
|
5021
|
+
size: "normal"
|
|
5022
|
+
}, badgeProps), renderTitleText());
|
|
5023
|
+
};
|
|
5024
|
+
var renderIcon = function() {
|
|
5025
|
+
var distIcon = renderNodeWithActive(icon);
|
|
5026
|
+
return /* @__PURE__ */ React.isValidElement(distIcon) ? /* @__PURE__ */ React.cloneElement(distIcon, _object_spread_props(_object_spread({}, distIcon.props), {
|
|
5027
|
+
color: active2 ? ctx === null || ctx === void 0 ? void 0 : ctx.activeColor : ctx === null || ctx === void 0 ? void 0 : ctx.inactiveColor
|
|
5028
|
+
})) : null;
|
|
5029
|
+
};
|
|
5030
|
+
var renderIconAndTitle = function() {
|
|
5031
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Badge, _object_spread_props(_object_spread({
|
|
5032
|
+
size: "normal"
|
|
5033
|
+
}, badgeProps), {
|
|
5034
|
+
top: 3
|
|
5035
|
+
}), renderIcon()), renderTitleText());
|
|
5036
|
+
};
|
|
5037
|
+
var renderDualItem = function() {
|
|
5038
|
+
return dot ? null : /* @__PURE__ */ React.createElement(React.Fragment, null, renderIcon(), renderTitleText(), /* @__PURE__ */ React.createElement(Badge, badgeProps));
|
|
4952
5039
|
};
|
|
4953
5040
|
return /* @__PURE__ */ React.createElement(components.View, _object_spread({
|
|
4954
5041
|
className: tabbarItemClass,
|
|
@@ -4956,23 +5043,22 @@
|
|
|
4956
5043
|
color: active2 ? ctx === null || ctx === void 0 ? void 0 : ctx.activeColor : ctx === null || ctx === void 0 ? void 0 : ctx.inactiveColor
|
|
4957
5044
|
}, style),
|
|
4958
5045
|
onClick: function() {
|
|
4959
|
-
return ctx === null || ctx === void 0 ? void 0 : ctx.handleClick(index2);
|
|
5046
|
+
return active2 ? onActiveClick === null || onActiveClick === void 0 ? void 0 : onActiveClick() : ctx === null || ctx === void 0 ? void 0 : ctx.handleClick(index2);
|
|
4960
5047
|
}
|
|
4961
|
-
}, rest),
|
|
4962
|
-
className: boxPrefix
|
|
4963
|
-
}, addColorForHarmony(icon, active2 ? ctx === null || ctx === void 0 ? void 0 : ctx.activeColor : ctx === null || ctx === void 0 ? void 0 : ctx.inactiveColor))), renderTitleText()) : /* @__PURE__ */ React.createElement(Badge, badgeProps, renderTitleText()));
|
|
5048
|
+
}, rest), direction === "horizontal" && !dot ? renderDualItem() : /* @__PURE__ */ React.createElement(React.Fragment, null, icon && renderIconAndTitle(), !icon && renderTitle()));
|
|
4964
5049
|
};
|
|
4965
5050
|
var defaultProps$1f = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
4966
5051
|
defaultValue: 0,
|
|
4967
5052
|
fixed: false,
|
|
4968
5053
|
inactiveColor: "",
|
|
4969
5054
|
activeColor: "",
|
|
5055
|
+
direction: "vertical",
|
|
4970
5056
|
safeArea: false,
|
|
4971
|
-
onSwitch: function(
|
|
5057
|
+
onSwitch: function() {
|
|
4972
5058
|
}
|
|
4973
5059
|
});
|
|
4974
5060
|
var Tabbar = function(props) {
|
|
4975
|
-
var _$_object_spread = _object_spread({}, defaultProps$1f, props), children = _$_object_spread.children, defaultValue = _$_object_spread.defaultValue, value2 = _$_object_spread.value, fixed = _$_object_spread.fixed, activeColor = _$_object_spread.activeColor, inactiveColor = _$_object_spread.inactiveColor, safeArea = _$_object_spread.safeArea, className = _$_object_spread.className, style = _$_object_spread.style, onSwitch = _$_object_spread.onSwitch;
|
|
5061
|
+
var _$_object_spread = _object_spread({}, defaultProps$1f, props), children = _$_object_spread.children, defaultValue = _$_object_spread.defaultValue, value2 = _$_object_spread.value, fixed = _$_object_spread.fixed, activeColor = _$_object_spread.activeColor, inactiveColor = _$_object_spread.inactiveColor, direction = _$_object_spread.direction, safeArea = _$_object_spread.safeArea, className = _$_object_spread.className, style = _$_object_spread.style, onSwitch = _$_object_spread.onSwitch;
|
|
4976
5062
|
var classPrefix2 = "nut-tabbar";
|
|
4977
5063
|
var _usePropsValue = _sliced_to_array(usePropsValue({
|
|
4978
5064
|
value: value2,
|
|
@@ -4980,11 +5066,26 @@
|
|
|
4980
5066
|
finalValue: 0,
|
|
4981
5067
|
onChange: onSwitch
|
|
4982
5068
|
}), 2), selectIndex = _usePropsValue[0], setSelectIndex = _usePropsValue[1];
|
|
5069
|
+
var sizeCls = React.useMemo(function() {
|
|
5070
|
+
var size = React.Children.count(children);
|
|
5071
|
+
var _obj;
|
|
5072
|
+
return size > 3 ? "" : classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-wrap-3"), size === 3), _define_property(_obj, "".concat(classPrefix2, "-wrap-2"), size === 2), _define_property(_obj, "".concat(classPrefix2, "-wrap-").concat(direction), size === 2 && direction !== "vertical"), _obj));
|
|
5073
|
+
}, [
|
|
5074
|
+
children,
|
|
5075
|
+
direction
|
|
5076
|
+
]);
|
|
5077
|
+
var itemDirection = React.useMemo(function() {
|
|
5078
|
+
var size = React.Children.count(children);
|
|
5079
|
+
return size === 2 && direction !== "vertical" && direction;
|
|
5080
|
+
}, [
|
|
5081
|
+
direction,
|
|
5082
|
+
children
|
|
5083
|
+
]);
|
|
4983
5084
|
return /* @__PURE__ */ React.createElement(components.View, {
|
|
4984
5085
|
className: classNames(classPrefix2, _define_property({}, "".concat(classPrefix2, "-fixed"), fixed), className),
|
|
4985
5086
|
style
|
|
4986
5087
|
}, /* @__PURE__ */ React.createElement(components.View, {
|
|
4987
|
-
className: "".concat(classPrefix2, "-wrap")
|
|
5088
|
+
className: "".concat(classPrefix2, "-wrap ").concat(sizeCls)
|
|
4988
5089
|
}, /* @__PURE__ */ React.createElement(TabbarContext.Provider, {
|
|
4989
5090
|
value: {
|
|
4990
5091
|
selectIndex,
|
|
@@ -4993,12 +5094,12 @@
|
|
|
4993
5094
|
handleClick: setSelectIndex
|
|
4994
5095
|
}
|
|
4995
5096
|
}, React.Children.map(children, function(child, index2) {
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
}));
|
|
5000
|
-
}))), (fixed || safeArea) && /* @__PURE__ */ React.createElement(
|
|
5001
|
-
|
|
5097
|
+
return /* @__PURE__ */ React.isValidElement(child) ? /* @__PURE__ */ React.cloneElement(child, _object_spread_props(_object_spread({}, child.props), {
|
|
5098
|
+
index: index2,
|
|
5099
|
+
direction: itemDirection
|
|
5100
|
+
})) : null;
|
|
5101
|
+
}))), (fixed || safeArea) && /* @__PURE__ */ React.createElement(SafeArea, {
|
|
5102
|
+
position: "bottom"
|
|
5002
5103
|
}));
|
|
5003
5104
|
};
|
|
5004
5105
|
Tabbar.displayName = "NutTabbar";
|
|
@@ -5014,9 +5115,9 @@
|
|
|
5014
5115
|
var classes = classNames(classPrefix2, {
|
|
5015
5116
|
active: !disabled && props.active
|
|
5016
5117
|
}, autoHeightClassName, className);
|
|
5017
|
-
return children
|
|
5118
|
+
return children ? /* @__PURE__ */ React.createElement(components.View, {
|
|
5018
5119
|
className: classes
|
|
5019
|
-
}, !disabled && children);
|
|
5120
|
+
}, !disabled && children) : null;
|
|
5020
5121
|
};
|
|
5021
5122
|
var defaultProps$1d = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
5022
5123
|
tabStyle: {},
|
|
@@ -7870,6 +7971,7 @@
|
|
|
7870
7971
|
var isMoving = React.useRef(false);
|
|
7871
7972
|
var rollerRef = React.useRef(null);
|
|
7872
7973
|
var pickerRollerRef = React.useRef(null);
|
|
7974
|
+
var placeholderRef = React.useRef(null);
|
|
7873
7975
|
var _useState3 = _sliced_to_array(React.useState(0), 2), startTime = _useState3[0], setStartTime = _useState3[1];
|
|
7874
7976
|
var _useState4 = _sliced_to_array(React.useState(0), 2), startY = _useState4[0], setStartY = _useState4[1];
|
|
7875
7977
|
var transformY = React.useRef(0);
|
|
@@ -7962,7 +8064,7 @@
|
|
|
7962
8064
|
]);
|
|
7963
8065
|
return [
|
|
7964
8066
|
4,
|
|
7965
|
-
getRectByTaro(
|
|
8067
|
+
getRectByTaro(placeholderRef.current)
|
|
7966
8068
|
];
|
|
7967
8069
|
case 1:
|
|
7968
8070
|
placeholder = _state.sent();
|
|
@@ -8009,7 +8111,7 @@
|
|
|
8009
8111
|
}
|
|
8010
8112
|
}, [
|
|
8011
8113
|
pickerRollerRef.current,
|
|
8012
|
-
|
|
8114
|
+
placeholderRef.current
|
|
8013
8115
|
]);
|
|
8014
8116
|
React.useEffect(function() {
|
|
8015
8117
|
isMoving.current = false;
|
|
@@ -8051,6 +8153,10 @@
|
|
|
8051
8153
|
className: "nut-pickerview-list",
|
|
8052
8154
|
ref: pickerRollerRef
|
|
8053
8155
|
}, /* @__PURE__ */ React.createElement(components.View, {
|
|
8156
|
+
className: "".concat(classPrefix2, "-placeholder"),
|
|
8157
|
+
ref: placeholderRef,
|
|
8158
|
+
id: "".concat(classPrefix2, "-placeholder-").concat(uuid)
|
|
8159
|
+
}), /* @__PURE__ */ React.createElement(components.View, {
|
|
8054
8160
|
className: classPrefix2,
|
|
8055
8161
|
id: "".concat(classPrefix2, "-").concat(uuid),
|
|
8056
8162
|
ref: rollerRef,
|
|
@@ -8872,22 +8978,6 @@
|
|
|
8872
8978
|
};
|
|
8873
8979
|
DatePickerView.displayName = "NutDatePickerView";
|
|
8874
8980
|
var Context = React.createContext({});
|
|
8875
|
-
function _class_call_check(instance, Constructor) {
|
|
8876
|
-
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
8877
|
-
}
|
|
8878
|
-
function _defineProperties(target, props) {
|
|
8879
|
-
for (var i2 = 0; i2 < props.length; i2++) {
|
|
8880
|
-
var descriptor = props[i2];
|
|
8881
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
8882
|
-
descriptor.configurable = true;
|
|
8883
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
8884
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8885
|
-
}
|
|
8886
|
-
}
|
|
8887
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
8888
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
8889
|
-
return Constructor;
|
|
8890
|
-
}
|
|
8891
8981
|
function _extends() {
|
|
8892
8982
|
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
8893
8983
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
@@ -12659,7 +12749,9 @@
|
|
|
12659
12749
|
outerValue
|
|
12660
12750
|
]);
|
|
12661
12751
|
React.useEffect(function() {
|
|
12662
|
-
|
|
12752
|
+
if (Taro.getEnv() === "WEB") {
|
|
12753
|
+
autoFocus && forceFocus();
|
|
12754
|
+
}
|
|
12663
12755
|
}, [
|
|
12664
12756
|
autoFocus
|
|
12665
12757
|
]);
|
|
@@ -12667,10 +12759,12 @@
|
|
|
12667
12759
|
return /* @__PURE__ */ React.createElement(components.Input, {
|
|
12668
12760
|
className: "".concat(classPrefix2, "-input ").concat(clearable ? "".concat(classPrefix2, "-input-clear") : ""),
|
|
12669
12761
|
ref: searchRef,
|
|
12670
|
-
|
|
12762
|
+
style,
|
|
12763
|
+
value: (value2 || "").toString(),
|
|
12671
12764
|
placeholder: placeholder || locale.placeholder,
|
|
12672
12765
|
disabled: disabled || readOnly,
|
|
12673
12766
|
maxlength: maxLength,
|
|
12767
|
+
autoFocus,
|
|
12674
12768
|
onInput,
|
|
12675
12769
|
onFocus: focus,
|
|
12676
12770
|
onBlur: blur,
|
|
@@ -13041,15 +13135,17 @@
|
|
|
13041
13135
|
var defaultProps$M = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
13042
13136
|
disabled: false,
|
|
13043
13137
|
activeText: "",
|
|
13044
|
-
inactiveText: ""
|
|
13138
|
+
inactiveText: "",
|
|
13139
|
+
loadingIcon: /* @__PURE__ */ React.createElement(IconSVG$h, null)
|
|
13045
13140
|
});
|
|
13046
13141
|
var Switch = function(props) {
|
|
13047
|
-
var _ref = _object_spread({}, defaultProps$M, props), checked = _ref.checked, defaultChecked = _ref.defaultChecked, disabled = _ref.disabled, activeText = _ref.activeText, inactiveText = _ref.inactiveText, className = _ref.className, style = _ref.style, onChange = _ref.onChange, rest = _object_without_properties(_ref, [
|
|
13142
|
+
var _ref = _object_spread({}, defaultProps$M, props), checked = _ref.checked, defaultChecked = _ref.defaultChecked, disabled = _ref.disabled, activeText = _ref.activeText, inactiveText = _ref.inactiveText, loadingIcon = _ref.loadingIcon, className = _ref.className, style = _ref.style, onChange = _ref.onChange, rest = _object_without_properties(_ref, [
|
|
13048
13143
|
"checked",
|
|
13049
13144
|
"defaultChecked",
|
|
13050
13145
|
"disabled",
|
|
13051
13146
|
"activeText",
|
|
13052
13147
|
"inactiveText",
|
|
13148
|
+
"loadingIcon",
|
|
13053
13149
|
"className",
|
|
13054
13150
|
"style",
|
|
13055
13151
|
"onChange"
|
|
@@ -13060,6 +13156,12 @@
|
|
|
13060
13156
|
value: checked,
|
|
13061
13157
|
defaultValue: defaultChecked
|
|
13062
13158
|
}), 2), value2 = _usePropsValue[0], setValue = _usePropsValue[1];
|
|
13159
|
+
React.useEffect(function() {
|
|
13160
|
+
changing && setChanging(false);
|
|
13161
|
+
}, [
|
|
13162
|
+
value2
|
|
13163
|
+
]);
|
|
13164
|
+
var _useState = _sliced_to_array(React.useState(false), 2), changing = _useState[0], setChanging = _useState[1];
|
|
13063
13165
|
var classes = function() {
|
|
13064
13166
|
var _obj2;
|
|
13065
13167
|
return classNames([
|
|
@@ -13068,17 +13170,18 @@
|
|
|
13068
13170
|
(_obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-close"), !value2), _define_property(_obj2, "".concat(classPrefix2, "-disabled"), disabled), _define_property(_obj2, "".concat(classPrefix2, "-disabled-close"), disabled && !value2), _obj2)
|
|
13069
13171
|
]);
|
|
13070
13172
|
};
|
|
13071
|
-
var onClick = function(
|
|
13072
|
-
if (disabled) return;
|
|
13073
|
-
|
|
13173
|
+
var onClick = function() {
|
|
13174
|
+
if (disabled || changing) return;
|
|
13175
|
+
if (onChange) {
|
|
13176
|
+
setChanging(true);
|
|
13177
|
+
onChange(!value2);
|
|
13178
|
+
}
|
|
13074
13179
|
setValue(!value2);
|
|
13075
13180
|
};
|
|
13076
13181
|
var _obj, _obj1;
|
|
13077
13182
|
return /* @__PURE__ */ React.createElement(components.View, _object_spread({
|
|
13078
13183
|
className: classes(),
|
|
13079
|
-
onClick
|
|
13080
|
-
return onClick(e);
|
|
13081
|
-
},
|
|
13184
|
+
onClick,
|
|
13082
13185
|
style
|
|
13083
13186
|
}, rest), /* @__PURE__ */ React.createElement(components.View, {
|
|
13084
13187
|
className: classNames([
|
|
@@ -13090,9 +13193,9 @@
|
|
|
13090
13193
|
],
|
|
13091
13194
|
(_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-button-open-rtl"), rtl && value2), _define_property(_obj, "".concat(classPrefix2, "-button-close-rtl"), rtl && !value2), _obj)
|
|
13092
13195
|
])
|
|
13093
|
-
}, !value2 && !activeText && /* @__PURE__ */ React.createElement(components.View, {
|
|
13196
|
+
}, changing && loadingIcon ? /* @__PURE__ */ React.createElement(React.Fragment, null, loadingIcon) : /* @__PURE__ */ React.createElement(React.Fragment, null, !value2 && !activeText && /* @__PURE__ */ React.createElement(components.View, {
|
|
13094
13197
|
className: "".concat(classPrefix2, "-close-line")
|
|
13095
|
-
})), activeText && /* @__PURE__ */ React.createElement(components.View, {
|
|
13198
|
+
}))), activeText && /* @__PURE__ */ React.createElement(components.View, {
|
|
13096
13199
|
className: classNames("".concat(classPrefix2, "-label"), (_obj1 = {}, _define_property(_obj1, "".concat(classPrefix2, "-label-open"), value2), _define_property(_obj1, "".concat(classPrefix2, "-label-close"), !value2), _define_property(_obj1, "".concat(classPrefix2, "-label-open-rtl"), rtl && value2), _define_property(_obj1, "".concat(classPrefix2, "-label-close-rtl"), rtl && !value2), _define_property(_obj1, "".concat(classPrefix2, "-label-close-disabled"), disabled && !value2), _obj1))
|
|
13097
13200
|
}, value2 ? activeText : inactiveText));
|
|
13098
13201
|
};
|
|
@@ -14033,7 +14136,7 @@
|
|
|
14033
14136
|
}
|
|
14034
14137
|
};
|
|
14035
14138
|
var Content = function(props) {
|
|
14036
|
-
var _$_object_spread = _object_spread({}, defaultContentProps, props), visible = _$_object_spread.visible, title = _$_object_spread.title, header = _$_object_spread.header, footer = _$_object_spread.footer, close2 = _$_object_spread.close, footerDirection = _$_object_spread.footerDirection, children = _$_object_spread.children, onClick = _$_object_spread.onClick;
|
|
14139
|
+
var _$_object_spread = _object_spread({}, defaultContentProps, props), visible = _$_object_spread.visible, title = _$_object_spread.title, header = _$_object_spread.header, footer = _$_object_spread.footer, close2 = _$_object_spread.close, footerDirection = _$_object_spread.footerDirection, children = _$_object_spread.children, style = _$_object_spread.style, className = _$_object_spread.className, onClick = _$_object_spread.onClick;
|
|
14037
14140
|
var classPrefix2 = "nut-dialog";
|
|
14038
14141
|
var renderHeader = function() {
|
|
14039
14142
|
return title && /* @__PURE__ */ React.createElement(components.View, {
|
|
@@ -14046,11 +14149,11 @@
|
|
|
14046
14149
|
}, footer);
|
|
14047
14150
|
};
|
|
14048
14151
|
var handleClick = function(e) {
|
|
14049
|
-
onClick
|
|
14152
|
+
onClick(e);
|
|
14050
14153
|
};
|
|
14051
14154
|
return /* @__PURE__ */ React.createElement(components.View, {
|
|
14052
|
-
className: classNames("".concat(classPrefix2, "-outer"),
|
|
14053
|
-
style
|
|
14155
|
+
className: classNames("".concat(classPrefix2, "-outer"), className),
|
|
14156
|
+
style,
|
|
14054
14157
|
onClick: function(e) {
|
|
14055
14158
|
return handleClick(e);
|
|
14056
14159
|
}
|
|
@@ -14117,15 +14220,15 @@
|
|
|
14117
14220
|
footer: "",
|
|
14118
14221
|
confirmText: "",
|
|
14119
14222
|
cancelText: "",
|
|
14120
|
-
overlay: true,
|
|
14121
|
-
overlayStyle: {},
|
|
14122
|
-
overlayClassName: "nut-dialog-overlay",
|
|
14123
14223
|
hideConfirmButton: false,
|
|
14124
14224
|
hideCancelButton: false,
|
|
14125
14225
|
disableConfirmButton: false,
|
|
14126
14226
|
footerDirection: "horizontal",
|
|
14127
14227
|
closeIconPosition: "bottom",
|
|
14128
14228
|
closeIcon: false,
|
|
14229
|
+
overlay: true,
|
|
14230
|
+
overlayStyle: {},
|
|
14231
|
+
overlayClassName: "nut-dialog-overlay",
|
|
14129
14232
|
zIndex: 1200,
|
|
14130
14233
|
beforeCancel: function() {
|
|
14131
14234
|
return true;
|
|
@@ -14137,15 +14240,17 @@
|
|
|
14137
14240
|
},
|
|
14138
14241
|
onClose: function() {
|
|
14139
14242
|
},
|
|
14243
|
+
onConfirm: function() {
|
|
14244
|
+
},
|
|
14140
14245
|
onOverlayClick: function() {
|
|
14141
14246
|
return true;
|
|
14142
14247
|
}
|
|
14143
14248
|
});
|
|
14144
14249
|
var BaseDialog = function(props) {
|
|
14250
|
+
var _useParams = useParams(mergeProps(defaultProps$H, props)), _useParams_params = _useParams.params, id = _useParams_params.id, closeOnOverlayClick = _useParams_params.closeOnOverlayClick, confirmText = _useParams_params.confirmText, cancelText = _useParams_params.cancelText, children = _useParams_params.children, className = _useParams_params.className, closeIconPosition = _useParams_params.closeIconPosition, closeIcon = _useParams_params.closeIcon, content2 = _useParams_params.content, disableConfirmButton = _useParams_params.disableConfirmButton, footer = _useParams_params.footer, footerDirection = _useParams_params.footerDirection, header = _useParams_params.header, hideConfirmButton = _useParams_params.hideConfirmButton, hideCancelButton = _useParams_params.hideCancelButton, lockScroll = _useParams_params.lockScroll, overlay = _useParams_params.overlay, overlayStyle = _useParams_params.overlayStyle, overlayClassName = _useParams_params.overlayClassName, style = _useParams_params.style, title = _useParams_params.title, visible = _useParams_params.visible, zIndex = _useParams_params.zIndex, beforeCancel = _useParams_params.beforeCancel, beforeClose = _useParams_params.beforeClose, onClose = _useParams_params.onClose, onCancel = _useParams_params.onCancel, onConfirm = _useParams_params.onConfirm, onOverlayClick = _useParams_params.onOverlayClick, setParams = _useParams.setParams;
|
|
14145
14251
|
var classPrefix2 = "nut-dialog";
|
|
14146
14252
|
var locale = useConfig().locale;
|
|
14147
14253
|
var _useState = _sliced_to_array(React.useState(false), 2), loading = _useState[0], setLoading = _useState[1];
|
|
14148
|
-
var _useParams = useParams(mergeProps(defaultProps$H, props)), _useParams_params = _useParams.params, id = _useParams_params.id, className = _useParams_params.className, style = _useParams_params.style, visible = _useParams_params.visible, footer = _useParams_params.footer, title = _useParams_params.title, header = _useParams_params.header, content2 = _useParams_params.content, children = _useParams_params.children, footerDirection = _useParams_params.footerDirection, hideConfirmButton = _useParams_params.hideConfirmButton, hideCancelButton = _useParams_params.hideCancelButton, lockScroll = _useParams_params.lockScroll, disableConfirmButton = _useParams_params.disableConfirmButton, closeOnOverlayClick = _useParams_params.closeOnOverlayClick, confirmText = _useParams_params.confirmText, cancelText = _useParams_params.cancelText, overlay = _useParams_params.overlay, overlayStyle = _useParams_params.overlayStyle, overlayClassName = _useParams_params.overlayClassName, closeIconPosition = _useParams_params.closeIconPosition, closeIcon = _useParams_params.closeIcon, zIndex = _useParams_params.zIndex, beforeCancel = _useParams_params.beforeCancel, beforeClose = _useParams_params.beforeClose, onClose = _useParams_params.onClose, onCancel = _useParams_params.onCancel, onConfirm = _useParams_params.onConfirm, onOverlayClick = _useParams_params.onOverlayClick, setParams = _useParams.setParams;
|
|
14149
14254
|
useCustomEvent(id, function(param) {
|
|
14150
14255
|
var status = param.status, options = param.options;
|
|
14151
14256
|
setParams(_object_spread_props(_object_spread({}, options), {
|
|
@@ -14159,8 +14264,8 @@
|
|
|
14159
14264
|
e.stopPropagation();
|
|
14160
14265
|
if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
|
|
14161
14266
|
if (!(beforeClose === null || beforeClose === void 0 ? void 0 : beforeClose())) return;
|
|
14162
|
-
onClose
|
|
14163
|
-
onCancel
|
|
14267
|
+
onClose();
|
|
14268
|
+
onCancel();
|
|
14164
14269
|
};
|
|
14165
14270
|
var handleOk = /* @__PURE__ */ function() {
|
|
14166
14271
|
var _ref = _async_to_generator(function(e) {
|
|
@@ -14184,7 +14289,7 @@
|
|
|
14184
14289
|
case 2:
|
|
14185
14290
|
_state.sent();
|
|
14186
14291
|
setLoading(false);
|
|
14187
|
-
onClose
|
|
14292
|
+
onClose();
|
|
14188
14293
|
return [
|
|
14189
14294
|
3,
|
|
14190
14295
|
4
|
|
@@ -14228,8 +14333,8 @@
|
|
|
14228
14333
|
};
|
|
14229
14334
|
var renderConfirm = function() {
|
|
14230
14335
|
return !hideConfirmButton && /* @__PURE__ */ React.createElement(Button, {
|
|
14231
|
-
size: "large",
|
|
14232
14336
|
type: "primary",
|
|
14337
|
+
size: "large",
|
|
14233
14338
|
className: classNames("".concat(classPrefix2, "-footer-ok ").concat(btnClass), {
|
|
14234
14339
|
disabled: disableConfirmButton
|
|
14235
14340
|
}),
|
|
@@ -14247,8 +14352,8 @@
|
|
|
14247
14352
|
var handleCancel = function() {
|
|
14248
14353
|
if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
|
|
14249
14354
|
if (!(beforeClose === null || beforeClose === void 0 ? void 0 : beforeClose())) return;
|
|
14250
|
-
onClose
|
|
14251
|
-
onCancel
|
|
14355
|
+
onClose();
|
|
14356
|
+
onCancel();
|
|
14252
14357
|
};
|
|
14253
14358
|
var _obj;
|
|
14254
14359
|
var closeClasses = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-close"), true), _define_property(_obj, "".concat(classPrefix2, "-close-").concat(closeIconPosition), true), _obj));
|
|
@@ -14261,8 +14366,8 @@
|
|
|
14261
14366
|
var onHandleClickOverlay = function(e) {
|
|
14262
14367
|
if (closeOnOverlayClick && visible && e.target === e.currentTarget) {
|
|
14263
14368
|
var closed = onOverlayClick && onOverlayClick(e);
|
|
14264
|
-
closed && onClose
|
|
14265
|
-
closed && onCancel
|
|
14369
|
+
closed && onClose();
|
|
14370
|
+
closed && onCancel();
|
|
14266
14371
|
}
|
|
14267
14372
|
};
|
|
14268
14373
|
var renderContent = function() {
|
|
@@ -31578,83 +31683,110 @@
|
|
|
31578
31683
|
return Object.prototype.hasOwnProperty.call(t2, e2);
|
|
31579
31684
|
}, r.p = "", r(r.s = 1);
|
|
31580
31685
|
}([function(t, e, r) {
|
|
31581
|
-
function i2(
|
|
31686
|
+
function i2() {
|
|
31687
|
+
var t2 = { request: function() {
|
|
31688
|
+
}, getSystemInfoSync: function() {
|
|
31689
|
+
return {};
|
|
31690
|
+
} };
|
|
31691
|
+
return "undefined" != typeof wx && (t2 = wx), "undefined" != typeof jd && (t2 = jd), t2;
|
|
31692
|
+
}
|
|
31693
|
+
function s(t2) {
|
|
31694
|
+
return (s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
|
|
31695
|
+
return typeof t3;
|
|
31696
|
+
} : function(t3) {
|
|
31697
|
+
return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
31698
|
+
})(t2);
|
|
31699
|
+
}
|
|
31700
|
+
function a(t2, e2) {
|
|
31582
31701
|
for (var r2 = 0; r2 < e2.length; r2++) {
|
|
31583
31702
|
var i3 = e2[r2];
|
|
31584
|
-
i3.enumerable = i3.enumerable || false, i3.configurable = true, "value" in i3 && (i3.writable = true), Object.defineProperty(t2, i3.key, i3);
|
|
31703
|
+
i3.enumerable = i3.enumerable || false, i3.configurable = true, "value" in i3 && (i3.writable = true), Object.defineProperty(t2, o(i3.key), i3);
|
|
31585
31704
|
}
|
|
31586
31705
|
}
|
|
31587
|
-
function
|
|
31588
|
-
return e2 in t2 ? Object.defineProperty(t2, e2, { value: r2, enumerable: true, configurable: true, writable: true }) : t2[e2] = r2, t2;
|
|
31706
|
+
function n(t2, e2, r2) {
|
|
31707
|
+
return (e2 = o(e2)) in t2 ? Object.defineProperty(t2, e2, { value: r2, enumerable: true, configurable: true, writable: true }) : t2[e2] = r2, t2;
|
|
31708
|
+
}
|
|
31709
|
+
function o(t2) {
|
|
31710
|
+
var e2 = function(t3, e3) {
|
|
31711
|
+
if ("object" != s(t3) || !t3) return t3;
|
|
31712
|
+
var r2 = t3[Symbol.toPrimitive];
|
|
31713
|
+
if (void 0 !== r2) {
|
|
31714
|
+
var i3 = r2.call(t3, e3 || "default");
|
|
31715
|
+
if ("object" != s(i3)) return i3;
|
|
31716
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
31717
|
+
}
|
|
31718
|
+
return ("string" === e3 ? String : Number)(t3);
|
|
31719
|
+
}(t2, "string");
|
|
31720
|
+
return "symbol" == s(e2) ? e2 : e2 + "";
|
|
31589
31721
|
}
|
|
31590
31722
|
r.d(e, "c", function() {
|
|
31591
|
-
return
|
|
31723
|
+
return E;
|
|
31592
31724
|
}), r.d(e, "b", function() {
|
|
31593
|
-
return
|
|
31725
|
+
return T;
|
|
31594
31726
|
}), r.d(e, "a", function() {
|
|
31595
|
-
return
|
|
31727
|
+
return S;
|
|
31596
31728
|
});
|
|
31597
|
-
var
|
|
31598
|
-
function
|
|
31729
|
+
var h = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
|
|
31730
|
+
function c(t2) {
|
|
31599
31731
|
if ("function" == typeof this["on".concat(t2)]) {
|
|
31600
31732
|
for (var e2 = arguments.length, r2 = new Array(e2 > 1 ? e2 - 1 : 0), i3 = 1; i3 < e2; i3++) r2[i3 - 1] = arguments[i3];
|
|
31601
31733
|
this["on".concat(t2)].apply(this, r2);
|
|
31602
31734
|
}
|
|
31603
31735
|
}
|
|
31604
|
-
function
|
|
31605
|
-
this.readyState = t2,
|
|
31736
|
+
function d(t2) {
|
|
31737
|
+
this.readyState = t2, c.call(this, "readystatechange");
|
|
31606
31738
|
}
|
|
31607
|
-
var
|
|
31739
|
+
var u = function() {
|
|
31608
31740
|
function t2() {
|
|
31609
31741
|
!function(t3, e3) {
|
|
31610
31742
|
if (!(t3 instanceof e3)) throw new TypeError("Cannot call a class as a function");
|
|
31611
|
-
}(this, t2),
|
|
31743
|
+
}(this, t2), n(this, "onabort", null), n(this, "onerror", null), n(this, "onload", null), n(this, "onloadstart", null), n(this, "onprogress", null), n(this, "ontimeout", null), n(this, "onloadend", null), n(this, "onreadystatechange", null), n(this, "readyState", 0), n(this, "response", null), n(this, "responseText", null), n(this, "responseType", ""), n(this, "responseXML", null), n(this, "status", 0), n(this, "statusText", ""), n(this, "upload", {}), n(this, "withCredentials", false), p.set(this, { "content-type": "application/x-www-form-urlencoded" }), f.set(this, {});
|
|
31612
31744
|
}
|
|
31613
|
-
var e2, r2;
|
|
31614
31745
|
return e2 = t2, (r2 = [{ key: "abort", value: function() {
|
|
31615
|
-
var t3 =
|
|
31746
|
+
var t3 = m.get(this);
|
|
31616
31747
|
t3 && t3.abort();
|
|
31617
31748
|
} }, { key: "getAllResponseHeaders", value: function() {
|
|
31618
|
-
var t3 =
|
|
31749
|
+
var t3 = f.get(this);
|
|
31619
31750
|
return Object.keys(t3).map(function(e3) {
|
|
31620
31751
|
return "".concat(e3, ": ").concat(t3[e3]);
|
|
31621
31752
|
}).join("\n");
|
|
31622
31753
|
} }, { key: "getResponseHeader", value: function(t3) {
|
|
31623
|
-
return
|
|
31754
|
+
return f.get(this)[t3];
|
|
31624
31755
|
} }, { key: "open", value: function(e3, r3) {
|
|
31625
|
-
|
|
31756
|
+
l.set(this, e3), h.set(this, r3), d.call(this, t2.OPENED);
|
|
31626
31757
|
} }, { key: "overrideMimeType", value: function() {
|
|
31627
31758
|
} }, { key: "send", value: function() {
|
|
31628
31759
|
var e3 = this, r3 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "";
|
|
31629
31760
|
if (this.readyState !== t2.OPENED) throw new Error("Failed to execute 'send' on 'XMLHttpRequest': The object's state must be OPENED.");
|
|
31630
|
-
|
|
31631
|
-
var i3 = r4.data,
|
|
31761
|
+
i2().request({ data: r3, url: h.get(this), method: l.get(this), header: p.get(this), success: function(r4) {
|
|
31762
|
+
var i3 = r4.data, s3 = r4.statusCode, a2 = r4.header;
|
|
31632
31763
|
if ("string" != typeof i3 && !(i3 instanceof ArrayBuffer)) try {
|
|
31633
31764
|
i3 = JSON.stringify(i3);
|
|
31634
31765
|
} catch (t3) {
|
|
31635
31766
|
}
|
|
31636
|
-
if (e3.status =
|
|
31767
|
+
if (e3.status = s3, f.set(e3, a2), c.call(e3, "loadstart"), d.call(e3, t2.HEADERS_RECEIVED), d.call(e3, t2.LOADING), e3.response = i3, i3 instanceof ArrayBuffer) {
|
|
31637
31768
|
e3.responseText = "";
|
|
31638
|
-
for (var n2 = new Uint8Array(i3), o2 = n2.byteLength,
|
|
31769
|
+
for (var n2 = new Uint8Array(i3), o2 = n2.byteLength, h2 = 0; h2 < o2; h2++) e3.responseText += String.fromCharCode(n2[h2]);
|
|
31639
31770
|
} else e3.responseText = i3;
|
|
31640
|
-
|
|
31771
|
+
d.call(e3, t2.DONE), c.call(e3, "load"), c.call(e3, "loadend");
|
|
31641
31772
|
}, fail: function(t3) {
|
|
31642
31773
|
var r4 = t3.errMsg;
|
|
31643
|
-
-1 !== r4.indexOf("abort") ?
|
|
31774
|
+
-1 !== r4.indexOf("abort") ? c.call(e3, "abort") : c.call(e3, "error", r4), c.call(e3, "loadend");
|
|
31644
31775
|
} });
|
|
31645
31776
|
} }, { key: "setRequestHeader", value: function(t3, e3) {
|
|
31646
|
-
var r3 =
|
|
31647
|
-
r3[t3] = e3,
|
|
31648
|
-
} }]) &&
|
|
31777
|
+
var r3 = p.get(this);
|
|
31778
|
+
r3[t3] = e3, p.set(this, r3);
|
|
31779
|
+
} }]) && a(e2.prototype, r2), s2 && a(e2, s2), Object.defineProperty(e2, "prototype", { writable: false }), e2;
|
|
31780
|
+
var e2, r2, s2;
|
|
31649
31781
|
}();
|
|
31650
|
-
function
|
|
31782
|
+
function y() {
|
|
31651
31783
|
}
|
|
31652
|
-
function
|
|
31784
|
+
function g() {
|
|
31653
31785
|
console.error("小程序由于不支持动态创建 canvas 的能力,故 lottie 中有关图片处理的操作无法支持,请保持图片的原始宽高与 JSON 描述的一致,避免需要对图片处理");
|
|
31654
31786
|
}
|
|
31655
|
-
function
|
|
31787
|
+
function v(t2) {
|
|
31656
31788
|
return "canvas" === t2 ? (console.warn("发现 Lottie 动态创建 canvas 组件,但小程序不支持动态创建组件,接下来可能会出现异常"), { getContext: function() {
|
|
31657
|
-
return { fillRect:
|
|
31789
|
+
return { fillRect: y, createImage: g, drawImage: g };
|
|
31658
31790
|
} }) : "img" === t2 ? function(t3) {
|
|
31659
31791
|
if (void 0 === t3.createImage) return {};
|
|
31660
31792
|
var e2 = t3.createImage();
|
|
@@ -31665,42 +31797,42 @@
|
|
|
31665
31797
|
}, e2;
|
|
31666
31798
|
}(this) : void 0;
|
|
31667
31799
|
}
|
|
31668
|
-
function
|
|
31800
|
+
function b(t2, e2) {
|
|
31669
31801
|
return function(r2) {
|
|
31670
31802
|
return e2.call(t2, Array.from(r2));
|
|
31671
31803
|
};
|
|
31672
31804
|
}
|
|
31673
|
-
function
|
|
31805
|
+
function P(t2, e2) {
|
|
31674
31806
|
return function() {
|
|
31675
31807
|
return e2.call(t2);
|
|
31676
31808
|
};
|
|
31677
31809
|
}
|
|
31678
|
-
function
|
|
31810
|
+
function _(t2, e2, r2) {
|
|
31679
31811
|
var i3 = t2[e2];
|
|
31680
31812
|
t2[e2] = r2(t2, i3);
|
|
31681
31813
|
}
|
|
31682
|
-
|
|
31683
|
-
var
|
|
31814
|
+
n(u, "UNSEND", 0), n(u, "OPENED", 1), n(u, "HEADERS_RECEIVED", 2), n(u, "LOADING", 3), n(u, "DONE", 4);
|
|
31815
|
+
var x = i2().getSystemInfoSync(), S = { requestAnimationFrame: function(t2) {
|
|
31684
31816
|
setTimeout(function() {
|
|
31685
31817
|
"function" == typeof t2 && t2(Date.now());
|
|
31686
31818
|
}, 16);
|
|
31687
31819
|
} };
|
|
31688
|
-
|
|
31689
|
-
var
|
|
31690
|
-
var e2 =
|
|
31691
|
-
|
|
31820
|
+
S.window = { devicePixelRatio: x.pixelRatio }, S.document = S.window.document = { body: {}, createElement: v }, S.navigator = S.window.navigator = { userAgent: "" }, XMLHttpRequest = u;
|
|
31821
|
+
var E = function(t2) {
|
|
31822
|
+
var e2 = S.window, r2 = S.document;
|
|
31823
|
+
S._requestAnimationFrame = e2.requestAnimationFrame, S._cancelAnimationFrame = e2.cancelAnimationFrame, e2.requestAnimationFrame = function(e3) {
|
|
31692
31824
|
var r3 = false;
|
|
31693
31825
|
setTimeout(function() {
|
|
31694
31826
|
r3 || (r3 = true, "function" == typeof e3 && e3(Date.now()));
|
|
31695
31827
|
}, 100), t2.requestAnimationFrame(function(t3) {
|
|
31696
31828
|
r3 || (r3 = true, "function" == typeof e3 && e3(t3));
|
|
31697
31829
|
});
|
|
31698
|
-
}, e2.cancelAnimationFrame = t2.cancelAnimationFrame.bind(t2),
|
|
31830
|
+
}, e2.cancelAnimationFrame = t2.cancelAnimationFrame.bind(t2), S._body = r2.body, S._createElement = r2.createElement, r2.body = {}, r2.createElement = v.bind(t2);
|
|
31699
31831
|
var i3 = t2.getContext("2d");
|
|
31700
|
-
i3.canvas || (i3.canvas = t2),
|
|
31701
|
-
},
|
|
31702
|
-
var t2 =
|
|
31703
|
-
t2.requestAnimationFrame =
|
|
31832
|
+
i3.canvas || (i3.canvas = t2), _(i3, "setLineDash", b), _(i3, "fill", P);
|
|
31833
|
+
}, T = function() {
|
|
31834
|
+
var t2 = S.window, e2 = S.document;
|
|
31835
|
+
t2.requestAnimationFrame = S._requestAnimationFrame, t2.cancelAnimationFrame = S._cancelAnimationFrame, e2.body = S._body, e2.createElement = S._createElement;
|
|
31704
31836
|
};
|
|
31705
31837
|
}, function(module, __webpack_exports__, __webpack_require__) {
|
|
31706
31838
|
__webpack_require__.r(__webpack_exports__), (function(module) {
|
|
@@ -35259,7 +35391,7 @@
|
|
|
35259
35391
|
var implementation;
|
|
35260
35392
|
if (process.env.TARO_ENV === "h5") {
|
|
35261
35393
|
implementation = Lottie$2;
|
|
35262
|
-
} else if (process.env.TARO_ENV === "weapp") {
|
|
35394
|
+
} else if (process.env.TARO_ENV === "weapp" || process.env.TARO_ENV === "jd") {
|
|
35263
35395
|
implementation = Lottie$1;
|
|
35264
35396
|
} else {
|
|
35265
35397
|
implementation = function(props) {
|
|
@@ -35759,10 +35891,14 @@
|
|
|
35759
35891
|
NoticeBar.displayName = "NutNoticeBar";
|
|
35760
35892
|
var defaultProps$B = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
35761
35893
|
id: "",
|
|
35762
|
-
|
|
35763
|
-
|
|
35894
|
+
distance: 8,
|
|
35895
|
+
navHeight: 57,
|
|
35764
35896
|
position: "top",
|
|
35765
35897
|
visible: false,
|
|
35898
|
+
closeable: false,
|
|
35899
|
+
leftIcon: null,
|
|
35900
|
+
rightIcon: null,
|
|
35901
|
+
duration: 3e3,
|
|
35766
35902
|
onClose: function() {
|
|
35767
35903
|
},
|
|
35768
35904
|
onClick: function() {
|
|
@@ -35770,13 +35906,12 @@
|
|
|
35770
35906
|
});
|
|
35771
35907
|
var classPrefix$c = "nut-notify";
|
|
35772
35908
|
var Notify = function(props) {
|
|
35773
|
-
var _mergeProps = mergeProps(defaultProps$B, props), id = _mergeProps.id, children = _mergeProps.children,
|
|
35909
|
+
var _mergeProps = mergeProps(defaultProps$B, props), id = _mergeProps.id, style = _mergeProps.style, children = _mergeProps.children, distance = _mergeProps.distance, navHeight = _mergeProps.navHeight, closeable = _mergeProps.closeable, leftIcon = _mergeProps.leftIcon, rightIcon = _mergeProps.rightIcon, position2 = _mergeProps.position, visible = _mergeProps.visible, duration = _mergeProps.duration, className = _mergeProps.className, onClose = _mergeProps.onClose, onClick = _mergeProps.onClick;
|
|
35774
35910
|
useCustomEvent(id, function(status) {
|
|
35775
35911
|
status ? show2() : hide2();
|
|
35776
35912
|
});
|
|
35777
35913
|
var timer;
|
|
35778
35914
|
var _useState = _sliced_to_array(React.useState(false), 2), showNotify = _useState[0], setShowNotify = _useState[1];
|
|
35779
|
-
var cssRef = React.useRef(null);
|
|
35780
35915
|
React.useEffect(function() {
|
|
35781
35916
|
if (visible) {
|
|
35782
35917
|
show2();
|
|
@@ -35786,9 +35921,6 @@
|
|
|
35786
35921
|
}, [
|
|
35787
35922
|
visible
|
|
35788
35923
|
]);
|
|
35789
|
-
var clickHandle = function() {
|
|
35790
|
-
onClick();
|
|
35791
|
-
};
|
|
35792
35924
|
var show2 = function() {
|
|
35793
35925
|
setShowNotify(true);
|
|
35794
35926
|
clearTimer();
|
|
@@ -35808,10 +35940,29 @@
|
|
|
35808
35940
|
setShowNotify(false);
|
|
35809
35941
|
onClose();
|
|
35810
35942
|
};
|
|
35943
|
+
var getDistance = React.useMemo(function() {
|
|
35944
|
+
if (position2 === "top") {
|
|
35945
|
+
return {
|
|
35946
|
+
top: pxTransform(web() ? Number(distance) + navHeight : Number(distance))
|
|
35947
|
+
};
|
|
35948
|
+
}
|
|
35949
|
+
return {
|
|
35950
|
+
bottom: pxTransform(Number(distance))
|
|
35951
|
+
};
|
|
35952
|
+
}, [
|
|
35953
|
+
distance,
|
|
35954
|
+
position2
|
|
35955
|
+
]);
|
|
35811
35956
|
var _obj;
|
|
35812
|
-
var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$c
|
|
35957
|
+
var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$c), true), _define_property(_obj, "".concat(className), true), _obj));
|
|
35958
|
+
var handleClick = function() {
|
|
35959
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
35960
|
+
};
|
|
35961
|
+
var handleClickIcon = function() {
|
|
35962
|
+
hide2();
|
|
35963
|
+
};
|
|
35964
|
+
var _obj1;
|
|
35813
35965
|
return /* @__PURE__ */ React.createElement(CSSTransition, {
|
|
35814
|
-
nodeRef: cssRef,
|
|
35815
35966
|
in: showNotify,
|
|
35816
35967
|
timeout: 300,
|
|
35817
35968
|
classNames: "fade",
|
|
@@ -35820,10 +35971,19 @@
|
|
|
35820
35971
|
position: position2,
|
|
35821
35972
|
id
|
|
35822
35973
|
}, /* @__PURE__ */ React.createElement(components.View, {
|
|
35823
|
-
className:
|
|
35824
|
-
style,
|
|
35825
|
-
onClick:
|
|
35826
|
-
},
|
|
35974
|
+
className: classes,
|
|
35975
|
+
style: _object_spread({}, style, getDistance),
|
|
35976
|
+
onClick: handleClick
|
|
35977
|
+
}, leftIcon ? /* @__PURE__ */ React.createElement(components.View, {
|
|
35978
|
+
className: "".concat(classPrefix$c, "-left-icon")
|
|
35979
|
+
}, leftIcon) : null, /* @__PURE__ */ React.createElement(components.View, {
|
|
35980
|
+
className: classNames((_obj1 = {}, _define_property(_obj1, "".concat(classPrefix$c, "-content"), true), _define_property(_obj1, "".concat(classPrefix$c, "-ellipsis"), closeable || rightIcon), _define_property(_obj1, "".concat(classPrefix$c, "-layout-left"), leftIcon || rightIcon), _obj1))
|
|
35981
|
+
}, children), rightIcon || closeable ? /* @__PURE__ */ React.createElement(components.View, {
|
|
35982
|
+
className: "".concat(classPrefix$c, "-right-icon"),
|
|
35983
|
+
onClick: handleClickIcon
|
|
35984
|
+
}, rightIcon || (closeable ? /* @__PURE__ */ React.createElement(IconSVG$p, {
|
|
35985
|
+
size: 12
|
|
35986
|
+
}) : null)) : null));
|
|
35827
35987
|
};
|
|
35828
35988
|
function open(selector) {
|
|
35829
35989
|
var path = useCustomEventsPath(selector);
|
|
@@ -35847,7 +36007,6 @@
|
|
|
35847
36007
|
],
|
|
35848
36008
|
arrowOffset: 0,
|
|
35849
36009
|
targetId: "",
|
|
35850
|
-
className: "",
|
|
35851
36010
|
showArrow: true,
|
|
35852
36011
|
closeOnOutsideClick: true,
|
|
35853
36012
|
closeOnActionClick: true,
|
|
@@ -35885,129 +36044,100 @@
|
|
|
35885
36044
|
var popoverRef = React.useRef(null);
|
|
35886
36045
|
var popoverContentRef = React.useRef(null);
|
|
35887
36046
|
var _useState = _sliced_to_array(React.useState(false), 2), showPopup = _useState[0], setShowPopup = _useState[1];
|
|
35888
|
-
var _useState1 = _sliced_to_array(React.useState(0), 2),
|
|
35889
|
-
var _useState2 = _sliced_to_array(React.useState(0), 2),
|
|
35890
|
-
var _useState3 = _sliced_to_array(React.useState(), 2),
|
|
36047
|
+
var _useState1 = _sliced_to_array(React.useState(0), 2), popWidth = _useState1[0], setPopWidth = _useState1[1];
|
|
36048
|
+
var _useState2 = _sliced_to_array(React.useState(0), 2), popHeight = _useState2[0], setPopHeight = _useState2[1];
|
|
36049
|
+
var _useState3 = _sliced_to_array(React.useState(), 2), wrapperPosition = _useState3[0], setWrapperPosition = _useState3[1];
|
|
35891
36050
|
React.useEffect(function() {
|
|
35892
36051
|
setShowPopup(visible);
|
|
35893
36052
|
if (visible) {
|
|
35894
|
-
|
|
35895
|
-
getContentWidth();
|
|
35896
|
-
}, 0);
|
|
36053
|
+
getWrapperPosition();
|
|
35897
36054
|
}
|
|
35898
36055
|
}, [
|
|
35899
36056
|
visible
|
|
35900
36057
|
]);
|
|
35901
|
-
var
|
|
36058
|
+
var uid = useUuid();
|
|
36059
|
+
var popoverId = "popover-".concat(uid);
|
|
36060
|
+
var getWrapperPosition = /* @__PURE__ */ function() {
|
|
35902
36061
|
var _ref2 = _async_to_generator(function() {
|
|
35903
|
-
var rect;
|
|
35904
36062
|
return __generator(this, function(_state) {
|
|
35905
|
-
Taro.
|
|
35906
|
-
var
|
|
35907
|
-
|
|
35908
|
-
|
|
35909
|
-
|
|
35910
|
-
|
|
35911
|
-
|
|
35912
|
-
|
|
35913
|
-
|
|
35914
|
-
|
|
35915
|
-
|
|
35916
|
-
|
|
35917
|
-
|
|
35918
|
-
|
|
35919
|
-
|
|
35920
|
-
|
|
35921
|
-
|
|
35922
|
-
|
|
35923
|
-
|
|
35924
|
-
|
|
35925
|
-
|
|
35926
|
-
|
|
35927
|
-
|
|
35928
|
-
|
|
35929
|
-
|
|
35930
|
-
|
|
35931
|
-
|
|
35932
|
-
|
|
35933
|
-
|
|
35934
|
-
|
|
35935
|
-
|
|
35936
|
-
|
|
35937
|
-
|
|
35938
|
-
|
|
35939
|
-
|
|
35940
|
-
|
|
35941
|
-
|
|
35942
|
-
|
|
35943
|
-
|
|
35944
|
-
|
|
35945
|
-
|
|
35946
|
-
|
|
35947
|
-
setRootPosition({
|
|
35948
|
-
width: rect.width,
|
|
35949
|
-
height: rect.height,
|
|
35950
|
-
left: rtl ? rect.right : rect.left,
|
|
35951
|
-
top: rect.top + distance,
|
|
35952
|
-
right: rtl ? rect.left : rect.right
|
|
35953
|
-
});
|
|
35954
|
-
return [
|
|
35955
|
-
2
|
|
35956
|
-
];
|
|
35957
|
-
}
|
|
35958
|
-
});
|
|
36063
|
+
Taro.nextTick(/* @__PURE__ */ _async_to_generator(function() {
|
|
36064
|
+
var rect, _tmp, width2, height2, right2, left2, top;
|
|
36065
|
+
return __generator(this, function(_state2) {
|
|
36066
|
+
switch (_state2.label) {
|
|
36067
|
+
case 0:
|
|
36068
|
+
if (!targetId) return [
|
|
36069
|
+
3,
|
|
36070
|
+
2
|
|
36071
|
+
];
|
|
36072
|
+
return [
|
|
36073
|
+
4,
|
|
36074
|
+
getRectByTaro(document.querySelector("#".concat(targetId)), targetId)
|
|
36075
|
+
];
|
|
36076
|
+
case 1:
|
|
36077
|
+
_tmp = _state2.sent();
|
|
36078
|
+
return [
|
|
36079
|
+
3,
|
|
36080
|
+
4
|
|
36081
|
+
];
|
|
36082
|
+
case 2:
|
|
36083
|
+
return [
|
|
36084
|
+
4,
|
|
36085
|
+
getRectByTaro(popoverRef.current, popoverId)
|
|
36086
|
+
];
|
|
36087
|
+
case 3:
|
|
36088
|
+
_tmp = _state2.sent();
|
|
36089
|
+
_state2.label = 4;
|
|
36090
|
+
case 4:
|
|
36091
|
+
rect = _tmp;
|
|
36092
|
+
width2 = rect.width, height2 = rect.height, right2 = rect.right, left2 = rect.left, top = rect.top;
|
|
36093
|
+
setWrapperPosition({
|
|
36094
|
+
width: width2,
|
|
36095
|
+
height: height2,
|
|
36096
|
+
left: rtl ? right2 : left2,
|
|
36097
|
+
top,
|
|
36098
|
+
right: rtl ? left2 : right2
|
|
36099
|
+
});
|
|
36100
|
+
getPopoverContentW();
|
|
36101
|
+
return [
|
|
36102
|
+
2
|
|
36103
|
+
];
|
|
36104
|
+
}
|
|
35959
36105
|
});
|
|
35960
|
-
|
|
35961
|
-
return _ref3.apply(this, arguments);
|
|
35962
|
-
};
|
|
35963
|
-
}()).exec();
|
|
35964
|
-
setTimeout(function() {
|
|
35965
|
-
getPopoverContentW();
|
|
35966
|
-
}, 300);
|
|
36106
|
+
}));
|
|
35967
36107
|
return [
|
|
35968
36108
|
2
|
|
35969
36109
|
];
|
|
35970
36110
|
});
|
|
35971
36111
|
});
|
|
35972
|
-
return function
|
|
35973
|
-
return _ref2.apply(this, arguments);
|
|
35974
|
-
};
|
|
35975
|
-
}();
|
|
35976
|
-
var getRectTaro = /* @__PURE__ */ function() {
|
|
35977
|
-
var _ref2 = _async_to_generator(function(targetId2) {
|
|
35978
|
-
return __generator(this, function(_state) {
|
|
35979
|
-
return [
|
|
35980
|
-
2,
|
|
35981
|
-
new Promise(function(resolve) {
|
|
35982
|
-
Taro.createSelectorQuery().select("#".concat(targetId2)).boundingClientRect().exec(function(res) {
|
|
35983
|
-
resolve(res[0]);
|
|
35984
|
-
});
|
|
35985
|
-
})
|
|
35986
|
-
];
|
|
35987
|
-
});
|
|
35988
|
-
});
|
|
35989
|
-
return function getRectTaro2(targetId2) {
|
|
36112
|
+
return function getWrapperPosition2() {
|
|
35990
36113
|
return _ref2.apply(this, arguments);
|
|
35991
36114
|
};
|
|
35992
36115
|
}();
|
|
35993
36116
|
var getPopoverContentW = /* @__PURE__ */ function() {
|
|
35994
36117
|
var _ref2 = _async_to_generator(function() {
|
|
35995
|
-
var rectContent;
|
|
35996
36118
|
return __generator(this, function(_state) {
|
|
35997
|
-
|
|
35998
|
-
|
|
35999
|
-
|
|
36000
|
-
|
|
36001
|
-
|
|
36002
|
-
|
|
36003
|
-
|
|
36004
|
-
|
|
36005
|
-
|
|
36006
|
-
|
|
36007
|
-
|
|
36008
|
-
|
|
36009
|
-
|
|
36010
|
-
|
|
36119
|
+
Taro.nextTick(/* @__PURE__ */ _async_to_generator(function() {
|
|
36120
|
+
var rectContent;
|
|
36121
|
+
return __generator(this, function(_state2) {
|
|
36122
|
+
switch (_state2.label) {
|
|
36123
|
+
case 0:
|
|
36124
|
+
return [
|
|
36125
|
+
4,
|
|
36126
|
+
getRectByTaro(popoverContentRef.current)
|
|
36127
|
+
];
|
|
36128
|
+
case 1:
|
|
36129
|
+
rectContent = _state2.sent();
|
|
36130
|
+
setPopWidth(rectContent.width);
|
|
36131
|
+
setPopHeight(rectContent.height);
|
|
36132
|
+
return [
|
|
36133
|
+
2
|
|
36134
|
+
];
|
|
36135
|
+
}
|
|
36136
|
+
});
|
|
36137
|
+
}));
|
|
36138
|
+
return [
|
|
36139
|
+
2
|
|
36140
|
+
];
|
|
36011
36141
|
});
|
|
36012
36142
|
});
|
|
36013
36143
|
return function getPopoverContentW2() {
|
|
@@ -36016,23 +36146,23 @@
|
|
|
36016
36146
|
}();
|
|
36017
36147
|
var clickAway = function() {
|
|
36018
36148
|
if (closeOnOutsideClick) {
|
|
36019
|
-
onClick
|
|
36020
|
-
onClose
|
|
36149
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
36150
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
36021
36151
|
}
|
|
36022
36152
|
};
|
|
36023
|
-
var
|
|
36024
|
-
var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$b), true), _define_property(_obj, "".concat(classPrefix$b, "-").concat(theme), theme === "dark"), _obj), className);
|
|
36153
|
+
var classes = classNames(classPrefix$b, _define_property({}, "".concat(classPrefix$b, "-").concat(theme), theme === "dark"), className);
|
|
36025
36154
|
var popoverArrow = function() {
|
|
36026
36155
|
var prefixCls2 = "nut-popover-arrow";
|
|
36027
|
-
|
|
36156
|
+
var direction = location.split("-")[0];
|
|
36157
|
+
return "".concat(prefixCls2, " ").concat(prefixCls2, "-").concat(direction, " ").concat(prefixCls2, "-").concat(location);
|
|
36028
36158
|
};
|
|
36029
|
-
var
|
|
36159
|
+
var getPopoverPosition = function() {
|
|
36030
36160
|
var styles = {};
|
|
36031
|
-
if (!
|
|
36161
|
+
if (!wrapperPosition) {
|
|
36032
36162
|
styles.visibility = "hidden";
|
|
36033
36163
|
return styles;
|
|
36034
36164
|
}
|
|
36035
|
-
var width2 =
|
|
36165
|
+
var width2 = wrapperPosition.width, height2 = wrapperPosition.height, left2 = wrapperPosition.left, top = wrapperPosition.top, right2 = wrapperPosition.right;
|
|
36036
36166
|
var direction = location.split("-")[0];
|
|
36037
36167
|
var skew = location.split("-")[1];
|
|
36038
36168
|
var cross = 0;
|
|
@@ -36048,36 +36178,36 @@
|
|
|
36048
36178
|
"bottom",
|
|
36049
36179
|
"top"
|
|
36050
36180
|
].includes(direction)) {
|
|
36051
|
-
var h = direction === "bottom" ? height2 + cross : -(
|
|
36052
|
-
styles.top =
|
|
36181
|
+
var h = direction === "bottom" ? height2 + cross : -(popHeight + cross);
|
|
36182
|
+
styles.top = pxTransform(top + h);
|
|
36053
36183
|
if (!skew) {
|
|
36054
|
-
styles[dir] =
|
|
36184
|
+
styles[dir] = pxTransform(-(popWidth - width2) / 2 + wrapperPosition[dir] + parallel);
|
|
36055
36185
|
}
|
|
36056
|
-
if (skew === "
|
|
36057
|
-
styles.left =
|
|
36186
|
+
if (skew === "left") {
|
|
36187
|
+
styles.left = pxTransform(left2 + parallel);
|
|
36058
36188
|
}
|
|
36059
|
-
if (skew === "
|
|
36060
|
-
styles.left =
|
|
36189
|
+
if (skew === "right") {
|
|
36190
|
+
styles.left = pxTransform(right2 + parallel);
|
|
36061
36191
|
}
|
|
36062
36192
|
}
|
|
36063
36193
|
if ([
|
|
36064
36194
|
"left",
|
|
36065
36195
|
"right"
|
|
36066
36196
|
].includes(direction)) {
|
|
36067
|
-
var contentW = direction === "left" ? -(
|
|
36068
|
-
styles.left =
|
|
36197
|
+
var contentW = direction === "left" ? -(popWidth + cross) : width2 + cross;
|
|
36198
|
+
styles.left = pxTransform(left2 + contentW);
|
|
36069
36199
|
if (!skew) {
|
|
36070
|
-
styles.top =
|
|
36200
|
+
styles.top = pxTransform(top - popHeight / 2 + height2 / 2 - 4 + parallel);
|
|
36071
36201
|
}
|
|
36072
|
-
if (skew === "
|
|
36073
|
-
styles.top =
|
|
36202
|
+
if (skew === "top") {
|
|
36203
|
+
styles.top = pxTransform(top + parallel);
|
|
36074
36204
|
}
|
|
36075
|
-
if (skew === "
|
|
36076
|
-
styles.top =
|
|
36205
|
+
if (skew === "bottom") {
|
|
36206
|
+
styles.top = pxTransform(top + height2 + parallel);
|
|
36077
36207
|
}
|
|
36078
36208
|
}
|
|
36079
36209
|
}
|
|
36080
|
-
styles.visibility =
|
|
36210
|
+
styles.visibility = popWidth === 0 ? "hidden" : "initial";
|
|
36081
36211
|
return styles;
|
|
36082
36212
|
};
|
|
36083
36213
|
var popoverArrowStyle = function() {
|
|
@@ -36095,10 +36225,10 @@
|
|
|
36095
36225
|
if (!skew) {
|
|
36096
36226
|
styles[dir] = "calc(50% + ".concat(arrowOffset, "px)");
|
|
36097
36227
|
}
|
|
36098
|
-
if (skew === "
|
|
36228
|
+
if (skew === "left") {
|
|
36099
36229
|
styles[dir] = "".concat(base + arrowOffset, "px");
|
|
36100
36230
|
}
|
|
36101
|
-
if (skew === "
|
|
36231
|
+
if (skew === "right") {
|
|
36102
36232
|
styles[dir2] = "".concat(base - arrowOffset, "px");
|
|
36103
36233
|
}
|
|
36104
36234
|
}
|
|
@@ -36109,10 +36239,10 @@
|
|
|
36109
36239
|
if (!skew) {
|
|
36110
36240
|
styles.top = "calc(50% - ".concat(arrowOffset, "px)");
|
|
36111
36241
|
}
|
|
36112
|
-
if (skew === "
|
|
36242
|
+
if (skew === "top") {
|
|
36113
36243
|
styles.top = "".concat(base - arrowOffset, "px");
|
|
36114
36244
|
}
|
|
36115
|
-
if (skew === "
|
|
36245
|
+
if (skew === "bottom") {
|
|
36116
36246
|
styles.bottom = "".concat(base + arrowOffset, "px");
|
|
36117
36247
|
}
|
|
36118
36248
|
}
|
|
@@ -36131,6 +36261,7 @@
|
|
|
36131
36261
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, !targetId && /* @__PURE__ */ React.createElement(components.View, {
|
|
36132
36262
|
className: "nut-popover-wrapper",
|
|
36133
36263
|
ref: popoverRef,
|
|
36264
|
+
id: popoverId,
|
|
36134
36265
|
onClick: function() {
|
|
36135
36266
|
var _props_onClick;
|
|
36136
36267
|
props === null || props === void 0 ? void 0 : (_props_onClick = props.onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(props);
|
|
@@ -36143,7 +36274,7 @@
|
|
|
36143
36274
|
style
|
|
36144
36275
|
}, Array.isArray(children) ? children[0] : children), /* @__PURE__ */ React.createElement(components.View, {
|
|
36145
36276
|
className: classes,
|
|
36146
|
-
style:
|
|
36277
|
+
style: _object_spread({}, getPopoverPosition(), style)
|
|
36147
36278
|
}, /* @__PURE__ */ React.createElement(Popup, _object_spread({
|
|
36148
36279
|
className: "nut-popover-content nut-popover-content-".concat(location),
|
|
36149
36280
|
position: "none",
|
|
@@ -36158,25 +36289,26 @@
|
|
|
36158
36289
|
}, /* @__PURE__ */ React.createElement(IconSVG$x, {
|
|
36159
36290
|
width: 8,
|
|
36160
36291
|
height: 4
|
|
36161
|
-
})), Array.isArray(children) ? children[1] :
|
|
36292
|
+
})), Array.isArray(children) ? children[1] : null, list.map(function(item, index2) {
|
|
36293
|
+
var _item_action;
|
|
36162
36294
|
return /* @__PURE__ */ React.createElement(components.View, {
|
|
36163
36295
|
className: classNames({
|
|
36164
|
-
"nut-popover-
|
|
36165
|
-
"nut-popover-
|
|
36296
|
+
"nut-popover-item": true,
|
|
36297
|
+
"nut-popover-item-disabled": item.disabled
|
|
36166
36298
|
}, item.className),
|
|
36167
36299
|
key: item.key || index2,
|
|
36168
36300
|
onClick: function() {
|
|
36169
36301
|
return handleSelect(item, index2);
|
|
36170
36302
|
}
|
|
36171
36303
|
}, item.icon && /* @__PURE__ */ React.createElement(components.View, {
|
|
36172
|
-
className: "nut-popover-
|
|
36173
|
-
}, item.icon), /* @__PURE__ */ React.createElement(components.
|
|
36174
|
-
className: "nut-popover-
|
|
36175
|
-
}, item.name), item.action
|
|
36176
|
-
className: "nut-popover-
|
|
36304
|
+
className: "nut-popover-item-icon"
|
|
36305
|
+
}, item.icon), /* @__PURE__ */ React.createElement(components.Text, {
|
|
36306
|
+
className: "nut-popover-item-name"
|
|
36307
|
+
}, item.name), ((_item_action = item.action) === null || _item_action === void 0 ? void 0 : _item_action.icon) && /* @__PURE__ */ React.createElement(components.View, {
|
|
36308
|
+
className: "nut-popover-item-action-icon",
|
|
36177
36309
|
onClick: function(e) {
|
|
36178
|
-
var _item_action_onClick,
|
|
36179
|
-
return (
|
|
36310
|
+
var _item_action_onClick, _item_action2;
|
|
36311
|
+
return (_item_action2 = item.action) === null || _item_action2 === void 0 ? void 0 : (_item_action_onClick = _item_action2.onClick) === null || _item_action_onClick === void 0 ? void 0 : _item_action_onClick.call(_item_action2, e);
|
|
36180
36312
|
}
|
|
36181
36313
|
}, item.action.icon));
|
|
36182
36314
|
}))), showPopup && closeOnOutsideClick && /* @__PURE__ */ React.createElement(components.View, {
|
|
@@ -36423,203 +36555,83 @@
|
|
|
36423
36555
|
})) : null, children);
|
|
36424
36556
|
};
|
|
36425
36557
|
ResultPage.displayName = "NutResultPage";
|
|
36426
|
-
var AvatarContext = React.createContext({});
|
|
36427
36558
|
var defaultProps$x = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
36428
|
-
maxContent: "",
|
|
36429
|
-
max: "",
|
|
36430
|
-
maxBackground: "#eee",
|
|
36431
|
-
maxColor: "#666",
|
|
36432
|
-
gap: "-8",
|
|
36433
|
-
level: "left"
|
|
36434
|
-
});
|
|
36435
|
-
var classPrefix$a = "nut-avatar-group";
|
|
36436
|
-
var AvatarGroup = function(props) {
|
|
36437
|
-
var propAvatarGroup = _object_spread({}, defaultProps$x, props);
|
|
36438
|
-
var className = propAvatarGroup.className, style = propAvatarGroup.style, children = propAvatarGroup.children;
|
|
36439
|
-
var avatarGroupRef = React.useRef(null);
|
|
36440
|
-
var cls = classNames(classPrefix$a, className);
|
|
36441
|
-
var parentAvatar = {
|
|
36442
|
-
propAvatarGroup: _object_spread({
|
|
36443
|
-
avatarCount: React.Children.count(children) || 0
|
|
36444
|
-
}, propAvatarGroup),
|
|
36445
|
-
avatarGroupRef
|
|
36446
|
-
};
|
|
36447
|
-
return /* @__PURE__ */ React.createElement(AvatarContext.Provider, {
|
|
36448
|
-
value: parentAvatar
|
|
36449
|
-
}, /* @__PURE__ */ React.createElement(components.View, {
|
|
36450
|
-
className: cls,
|
|
36451
|
-
style,
|
|
36452
|
-
ref: avatarGroupRef
|
|
36453
|
-
}, React.Children.map(children, function(child, index2) {
|
|
36454
|
-
var _child_type;
|
|
36455
|
-
return (child === null || child === void 0 ? void 0 : (_child_type = child.type) === null || _child_type === void 0 ? void 0 : _child_type.displayName) === "NutAvatar" ? /* @__PURE__ */ React.cloneElement(child, {
|
|
36456
|
-
avatarIndex: index2 + 1,
|
|
36457
|
-
className: "nut-avatar-group-avatar"
|
|
36458
|
-
}) : child;
|
|
36459
|
-
})));
|
|
36460
|
-
};
|
|
36461
|
-
AvatarGroup.displayName = "NutAvatarGroup";
|
|
36462
|
-
var defaultProps$w = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
36463
|
-
size: harmony() ? "40" : "",
|
|
36464
|
-
shape: "round",
|
|
36465
|
-
icon: "",
|
|
36466
|
-
background: "#eee",
|
|
36467
|
-
color: "#666",
|
|
36468
|
-
fit: "cover",
|
|
36469
|
-
src: "",
|
|
36470
|
-
alt: "",
|
|
36471
|
-
avatarIndex: 0
|
|
36472
|
-
});
|
|
36473
|
-
var classPrefix$9 = "nut-avatar";
|
|
36474
|
-
var Avatar = function(props) {
|
|
36475
|
-
var _$_object_spread = _object_spread({}, defaultProps$w, props), children = _$_object_spread.children, size = _$_object_spread.size, shape = _$_object_spread.shape, background = _$_object_spread.background, color = _$_object_spread.color, src = _$_object_spread.src, icon = _$_object_spread.icon, fit = _$_object_spread.fit, avatarIndex = _$_object_spread.avatarIndex, className = _$_object_spread.className, style = _$_object_spread.style, onClick = _$_object_spread.onClick, onError = _$_object_spread.onError;
|
|
36476
|
-
var _useState = _sliced_to_array(React.useState(false), 2), showMax = _useState[0], setShowMax = _useState[1];
|
|
36477
|
-
var avatarRef = React.useRef(null);
|
|
36478
|
-
var parent2 = React.useContext(AvatarContext);
|
|
36479
|
-
var sizeValue = [
|
|
36480
|
-
"large",
|
|
36481
|
-
"normal",
|
|
36482
|
-
"small"
|
|
36483
|
-
];
|
|
36484
|
-
var propAvatarGroup = parent2.propAvatarGroup;
|
|
36485
|
-
var groupSize = propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.size;
|
|
36486
|
-
var groupShape = propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.shape;
|
|
36487
|
-
var groupCount = propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.avatarCount;
|
|
36488
|
-
var groupMax = propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.max;
|
|
36489
|
-
var _obj;
|
|
36490
|
-
var classes = classNames((_obj = {}, _define_property(_obj, "nut-avatar-".concat(groupSize || size || "normal"), true), _define_property(_obj, "nut-avatar-".concat(groupShape || shape), true), _define_property(_obj, "nut-avatar-".concat(groupSize || size || "normal", "-round"), shape === "round" && true), _obj));
|
|
36491
|
-
var nativeClasses = classNames(_define_property({}, "nut-avatar-first-child", avatarIndex === 1));
|
|
36492
|
-
var cls = classNames(classPrefix$9, classes, className, nativeClasses);
|
|
36493
|
-
var _obj1;
|
|
36494
|
-
var styles = _object_spread((_obj1 = {
|
|
36495
|
-
width: sizeValue.indexOf(size) > -1 ? "" : pxTransform(parseInt(size)),
|
|
36496
|
-
height: sizeValue.indexOf(size) > -1 ? "" : pxTransform(parseInt(size)),
|
|
36497
|
-
backgroundColor: "".concat(background),
|
|
36498
|
-
color
|
|
36499
|
-
}, _define_property(_obj1, harmony() ? "marginRight" : "marginLeft", avatarIndex !== 1 && (propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.gap) ? "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.gap, "px") : ""), _define_property(_obj1, "zIndex", (propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.level) === "right" ? Math.abs(groupCount - avatarIndex) : ""), _obj1), style);
|
|
36500
|
-
var maxStyles = {
|
|
36501
|
-
backgroundColor: "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxBackground),
|
|
36502
|
-
color: "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxColor)
|
|
36503
|
-
};
|
|
36504
|
-
React.useEffect(function() {
|
|
36505
|
-
var maxCount = groupMax || groupCount;
|
|
36506
|
-
if (avatarIndex === groupCount && avatarIndex !== maxCount && groupCount > maxCount) {
|
|
36507
|
-
setShowMax(true);
|
|
36508
|
-
}
|
|
36509
|
-
}, [
|
|
36510
|
-
avatarIndex,
|
|
36511
|
-
groupCount
|
|
36512
|
-
]);
|
|
36513
|
-
var errorEvent = function() {
|
|
36514
|
-
onError && onError();
|
|
36515
|
-
};
|
|
36516
|
-
var clickAvatar = function(e) {
|
|
36517
|
-
onClick && onClick(e);
|
|
36518
|
-
};
|
|
36519
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, (showMax || !groupMax || avatarIndex <= groupMax) && /* @__PURE__ */ React.createElement(components.View, {
|
|
36520
|
-
className: cls,
|
|
36521
|
-
style: !showMax ? styles : maxStyles,
|
|
36522
|
-
onClick: clickAvatar,
|
|
36523
|
-
ref: avatarRef
|
|
36524
|
-
}, (!groupMax || avatarIndex <= groupMax) && /* @__PURE__ */ React.createElement(React.Fragment, null, src && /* @__PURE__ */ React.createElement(components.Image, {
|
|
36525
|
-
className: "nut-avatar-img nut-avatar-".concat(groupSize || size || "normal", "-img"),
|
|
36526
|
-
src,
|
|
36527
|
-
style: {
|
|
36528
|
-
objectFit: fit
|
|
36529
|
-
},
|
|
36530
|
-
onError: errorEvent
|
|
36531
|
-
}), /* @__PURE__ */ React.isValidElement(icon) ? /* @__PURE__ */ React.createElement(components.View, {
|
|
36532
|
-
className: "nut-avatar-text"
|
|
36533
|
-
}, /* @__PURE__ */ React.cloneElement(icon, _object_spread_props(_object_spread({}, icon.props), {
|
|
36534
|
-
color,
|
|
36535
|
-
className: "".concat(icon.props.className || "", " nut-avatar-icon nut-avatar-").concat(groupSize || size || "normal", "-icon")
|
|
36536
|
-
}))) : null, children && /* @__PURE__ */ React.createElement(components.View, {
|
|
36537
|
-
style: {
|
|
36538
|
-
color
|
|
36539
|
-
},
|
|
36540
|
-
className: "nut-avatar-text nut-avatar-".concat(groupSize || size || "normal", "-text")
|
|
36541
|
-
}, children), !src && !icon && !children && /* @__PURE__ */ React.createElement(components.View, {
|
|
36542
|
-
className: "nut-avatar-text"
|
|
36543
|
-
}, /* @__PURE__ */ React.createElement(IconSVG$1, {
|
|
36544
|
-
style: {
|
|
36545
|
-
color
|
|
36546
|
-
},
|
|
36547
|
-
className: "nut-avatar-icon nut-avatar-".concat(groupSize || size || "normal", "-icon")
|
|
36548
|
-
}))), showMax && /* @__PURE__ */ React.createElement(components.View, {
|
|
36549
|
-
className: "nut-avatar-text nut-avatar-".concat(groupSize || "normal", "-text"),
|
|
36550
|
-
style: _object_spread({}, maxStyles)
|
|
36551
|
-
}, (propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxContent) ? propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxContent : "+ ".concat(avatarIndex - Number(groupMax || 0)))));
|
|
36552
|
-
};
|
|
36553
|
-
Avatar.displayName = "NutAvatar";
|
|
36554
|
-
Avatar.Group = AvatarGroup;
|
|
36555
|
-
var defaultProps$v = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
36556
36559
|
rows: 1,
|
|
36557
|
-
animated:
|
|
36558
|
-
title: false,
|
|
36559
|
-
avatar: false,
|
|
36560
|
-
avatarSize: "50px",
|
|
36560
|
+
animated: true,
|
|
36561
36561
|
visible: false,
|
|
36562
|
-
|
|
36562
|
+
size: "normal",
|
|
36563
|
+
shape: "round",
|
|
36564
|
+
duration: 0.6,
|
|
36565
|
+
inline: false
|
|
36563
36566
|
});
|
|
36564
36567
|
var Skeleton = function(props) {
|
|
36565
|
-
var
|
|
36568
|
+
var shapeStyle = function shapeStyle2() {
|
|
36569
|
+
if (shape === "circle") return {
|
|
36570
|
+
borderRadius: "50%"
|
|
36571
|
+
};
|
|
36572
|
+
if (shape === "square") return {
|
|
36573
|
+
borderRadius: "0"
|
|
36574
|
+
};
|
|
36575
|
+
return {};
|
|
36576
|
+
};
|
|
36577
|
+
var durationStyle = function durationStyle2() {
|
|
36578
|
+
if (typeof duration !== "undefined") return {
|
|
36579
|
+
animationDuration: "".concat(duration, "s")
|
|
36580
|
+
};
|
|
36581
|
+
return {};
|
|
36582
|
+
};
|
|
36583
|
+
var _ref = _object_spread({}, defaultProps$x, props), className = _ref.className, width2 = _ref.width, height2 = _ref.height, shape = _ref.shape, animated = _ref.animated, rows = _ref.rows, visible = _ref.visible, size = _ref.size, duration = _ref.duration, children = _ref.children, rest = _object_without_properties(_ref, [
|
|
36566
36584
|
"className",
|
|
36585
|
+
"width",
|
|
36586
|
+
"height",
|
|
36587
|
+
"shape",
|
|
36567
36588
|
"animated",
|
|
36568
36589
|
"rows",
|
|
36569
|
-
"title",
|
|
36570
|
-
"avatar",
|
|
36571
|
-
"avatarSize",
|
|
36572
36590
|
"visible",
|
|
36573
|
-
"
|
|
36574
|
-
"
|
|
36591
|
+
"size",
|
|
36592
|
+
"duration",
|
|
36593
|
+
"children"
|
|
36575
36594
|
]);
|
|
36576
36595
|
var classPrefix2 = "nut-skeleton";
|
|
36577
36596
|
var classes = classNames(classPrefix2, className);
|
|
36578
|
-
var
|
|
36579
|
-
var avatarClass = classNames((_obj = {}, _define_property(_obj, "nut-avatar", true), _define_property(_obj, "nut-skeleton-content-avatar", true), _define_property(_obj, "avatar-".concat(avatarShape), avatarShape), _obj));
|
|
36580
|
-
var repeatLines = function(num) {
|
|
36597
|
+
var repeatCount = function(num) {
|
|
36581
36598
|
return Array.from({
|
|
36582
36599
|
length: num
|
|
36583
36600
|
}, function(v, i2) {
|
|
36584
36601
|
return i2;
|
|
36585
36602
|
});
|
|
36586
36603
|
};
|
|
36587
|
-
var
|
|
36588
|
-
|
|
36589
|
-
|
|
36590
|
-
|
|
36591
|
-
|
|
36592
|
-
|
|
36593
|
-
}
|
|
36594
|
-
return {
|
|
36595
|
-
width: pxTransform(50),
|
|
36596
|
-
height: pxTransform(50)
|
|
36597
|
-
};
|
|
36604
|
+
var _useState = _sliced_to_array(React.useState(false), 2), animate = _useState[0], setAnimate = _useState[1];
|
|
36605
|
+
var playAnimation = function() {
|
|
36606
|
+
setAnimate(false);
|
|
36607
|
+
setTimeout(function() {
|
|
36608
|
+
setAnimate(true);
|
|
36609
|
+
}, 10);
|
|
36598
36610
|
};
|
|
36599
|
-
|
|
36611
|
+
React.useEffect(function() {
|
|
36612
|
+
if (!animated) return;
|
|
36613
|
+
playAnimation();
|
|
36614
|
+
var intervalId = setInterval(playAnimation, 1e3 + duration * 1e3);
|
|
36615
|
+
return function() {
|
|
36616
|
+
return clearInterval(intervalId);
|
|
36617
|
+
};
|
|
36618
|
+
}, []);
|
|
36619
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, visible ? children : /* @__PURE__ */ React.createElement(components.View, _object_spread({
|
|
36600
36620
|
className: classes
|
|
36601
|
-
}, rest),
|
|
36602
|
-
|
|
36603
|
-
}), /* @__PURE__ */ React.createElement(components.View, {
|
|
36604
|
-
className: "".concat(classPrefix2, "-content")
|
|
36605
|
-
}, avatar && /* @__PURE__ */ React.createElement(Avatar, {
|
|
36606
|
-
className: avatarClass,
|
|
36607
|
-
background: "rgb(239, 239, 239)",
|
|
36608
|
-
shape: avatarShape,
|
|
36609
|
-
style: getStyle(),
|
|
36610
|
-
icon: "null"
|
|
36611
|
-
}), rows === 1 ? /* @__PURE__ */ React.createElement(components.View, {
|
|
36612
|
-
className: "".concat(classPrefix2, "-content-block")
|
|
36613
|
-
}) : /* @__PURE__ */ React.createElement(components.View, {
|
|
36614
|
-
className: "".concat(classPrefix2, "-content-line")
|
|
36615
|
-
}, title && /* @__PURE__ */ React.createElement(components.View, {
|
|
36616
|
-
className: "".concat(classPrefix2, "-content-title")
|
|
36617
|
-
}), repeatLines(rows).map(function(item, index2) {
|
|
36621
|
+
}, rest), repeatCount(rows).map(function(item, index2) {
|
|
36622
|
+
var contentClass = "".concat(classPrefix2, "-content ").concat(classPrefix2, "-content-").concat(size, " ").concat(classPrefix2, "-content-").concat(size, "-").concat(index2);
|
|
36618
36623
|
return /* @__PURE__ */ React.createElement(components.View, {
|
|
36619
|
-
className: "".concat(
|
|
36620
|
-
key: index2
|
|
36621
|
-
|
|
36622
|
-
|
|
36624
|
+
className: "".concat(contentClass),
|
|
36625
|
+
key: index2,
|
|
36626
|
+
style: _object_spread({
|
|
36627
|
+
width: width2,
|
|
36628
|
+
height: height2
|
|
36629
|
+
}, shapeStyle())
|
|
36630
|
+
}, animated && /* @__PURE__ */ React.createElement(components.View, {
|
|
36631
|
+
className: "".concat(classPrefix2, "-animated ").concat(animate ? "".concat(classPrefix2, "-animation") : ""),
|
|
36632
|
+
style: durationStyle()
|
|
36633
|
+
}));
|
|
36634
|
+
})));
|
|
36623
36635
|
};
|
|
36624
36636
|
Skeleton.displayName = "NutSkeleton";
|
|
36625
36637
|
function preventDefault(event, isStopPropagation) {
|
|
@@ -36630,7 +36642,7 @@
|
|
|
36630
36642
|
event.stopPropagation();
|
|
36631
36643
|
}
|
|
36632
36644
|
}
|
|
36633
|
-
var defaultProps$
|
|
36645
|
+
var defaultProps$w = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
36634
36646
|
name: ""
|
|
36635
36647
|
});
|
|
36636
36648
|
var Swipe = /* @__PURE__ */ React.forwardRef(function(props, instanceRef) {
|
|
@@ -36694,7 +36706,7 @@
|
|
|
36694
36706
|
return getWidth();
|
|
36695
36707
|
});
|
|
36696
36708
|
});
|
|
36697
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
36709
|
+
var _$_object_spread = _object_spread({}, defaultProps$w, props), children = _$_object_spread.children, className = _$_object_spread.className, style = _$_object_spread.style;
|
|
36698
36710
|
var root2 = React.useRef();
|
|
36699
36711
|
var opened = React.useRef(false);
|
|
36700
36712
|
var lockClick = React.useRef(false);
|
|
@@ -36928,7 +36940,7 @@
|
|
|
36928
36940
|
}, renderActionContent("left"), children, renderActionContent("right")));
|
|
36929
36941
|
});
|
|
36930
36942
|
Swipe.displayName = "NutSwipe";
|
|
36931
|
-
var defaultProps$
|
|
36943
|
+
var defaultProps$v = _object_spread_props(_object_spread({}, defaultOverlayProps), {
|
|
36932
36944
|
id: "",
|
|
36933
36945
|
duration: 2,
|
|
36934
36946
|
position: "middle",
|
|
@@ -36947,7 +36959,7 @@
|
|
|
36947
36959
|
}
|
|
36948
36960
|
});
|
|
36949
36961
|
var Toast = function(props) {
|
|
36950
|
-
var _useParams = useParams(mergeProps(defaultProps$
|
|
36962
|
+
var _useParams = useParams(mergeProps(defaultProps$v, props)), _useParams_params = _useParams.params, id = _useParams_params.id, position2 = _useParams_params.position, contentStyle = _useParams_params.contentStyle, icon = _useParams_params.icon, content2 = _useParams_params.content, duration = _useParams_params.duration, title = _useParams_params.title, closeOnOverlayClick = _useParams_params.closeOnOverlayClick, lockScroll = _useParams_params.lockScroll, contentClassName = _useParams_params.contentClassName, visible = _useParams_params.visible, size = _useParams_params.size, className = _useParams_params.className, style = _useParams_params.style, wordBreak = _useParams_params.wordBreak, zIndex = _useParams_params.zIndex, onClose = _useParams_params.onClose, setParams = _useParams.setParams;
|
|
36951
36963
|
var classPrefix2 = "nut-toast";
|
|
36952
36964
|
var timer = React.useRef(-1);
|
|
36953
36965
|
var rtl = useRtl();
|
|
@@ -37071,21 +37083,21 @@
|
|
|
37071
37083
|
Toast.displayName = "NutToast";
|
|
37072
37084
|
Toast.show = show;
|
|
37073
37085
|
Toast.hide = hide;
|
|
37074
|
-
var defaultProps$
|
|
37086
|
+
var defaultProps$u = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
37075
37087
|
type: "shake",
|
|
37076
37088
|
action: "initial",
|
|
37077
37089
|
loop: false,
|
|
37078
37090
|
onClick: function(event) {
|
|
37079
37091
|
}
|
|
37080
37092
|
});
|
|
37081
|
-
var classPrefix$
|
|
37093
|
+
var classPrefix$a = "nut-animate";
|
|
37082
37094
|
var Animate = function(props) {
|
|
37083
|
-
var _$_object_spread = _object_spread({}, defaultProps$
|
|
37095
|
+
var _$_object_spread = _object_spread({}, defaultProps$u, props), className = _$_object_spread.className, type2 = _$_object_spread.type, action = _$_object_spread.action, loop = _$_object_spread.loop, onClick = _$_object_spread.onClick, children = _$_object_spread.children, style = _$_object_spread.style;
|
|
37084
37096
|
var _useState = _sliced_to_array(React.useState(false), 2), clicked = _useState[0], setClicked = _useState[1];
|
|
37085
37097
|
var _obj;
|
|
37086
37098
|
var classes = classNames((_obj = {
|
|
37087
37099
|
"nut-ani-container": true
|
|
37088
|
-
}, _define_property(_obj, "".concat(classPrefix$
|
|
37100
|
+
}, _define_property(_obj, "".concat(classPrefix$a, "-").concat(type2), action === "initial" || clicked), _define_property(_obj, "loop", loop), _obj), className);
|
|
37089
37101
|
var handleClick = function(event) {
|
|
37090
37102
|
setClicked(true);
|
|
37091
37103
|
if (!loop) {
|
|
@@ -37104,7 +37116,7 @@
|
|
|
37104
37116
|
}, children));
|
|
37105
37117
|
};
|
|
37106
37118
|
Animate.displayName = "NutAnimate";
|
|
37107
|
-
var defaultProps$
|
|
37119
|
+
var defaultProps$t = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
37108
37120
|
length: 0,
|
|
37109
37121
|
value: "",
|
|
37110
37122
|
delay: 300,
|
|
@@ -37112,7 +37124,7 @@
|
|
|
37112
37124
|
thousands: false
|
|
37113
37125
|
});
|
|
37114
37126
|
var CountUp = function(props) {
|
|
37115
|
-
var _mergeProps = mergeProps(defaultProps$
|
|
37127
|
+
var _mergeProps = mergeProps(defaultProps$t, props), length2 = _mergeProps.length, value2 = _mergeProps.value, delay = _mergeProps.delay, duration = _mergeProps.duration, className = _mergeProps.className, thousands = _mergeProps.thousands;
|
|
37116
37128
|
_mergeProps.style;
|
|
37117
37129
|
var rest = _object_without_properties(_mergeProps, [
|
|
37118
37130
|
"length",
|
|
@@ -37215,7 +37227,7 @@
|
|
|
37215
37227
|
})));
|
|
37216
37228
|
};
|
|
37217
37229
|
CountUp.displayName = "NutCountUp";
|
|
37218
|
-
var defaultProps$
|
|
37230
|
+
var defaultProps$s = {};
|
|
37219
37231
|
var AnimatingNumbers = /* @__PURE__ */ function(Component) {
|
|
37220
37232
|
_inherits(AnimatingNumbers2, Component);
|
|
37221
37233
|
function AnimatingNumbers2(props) {
|
|
@@ -37239,11 +37251,11 @@
|
|
|
37239
37251
|
]);
|
|
37240
37252
|
return AnimatingNumbers2;
|
|
37241
37253
|
}(React.Component);
|
|
37242
|
-
_define_property(AnimatingNumbers, "defaultProps", defaultProps$
|
|
37254
|
+
_define_property(AnimatingNumbers, "defaultProps", defaultProps$s);
|
|
37243
37255
|
_define_property(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
|
|
37244
37256
|
_define_property(AnimatingNumbers, "CountUp", CountUp);
|
|
37245
37257
|
AnimatingNumbers.CountUp = CountUp;
|
|
37246
|
-
var defaultProps$
|
|
37258
|
+
var defaultProps$r = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
37247
37259
|
className: "",
|
|
37248
37260
|
src: "",
|
|
37249
37261
|
style: {},
|
|
@@ -37280,7 +37292,7 @@
|
|
|
37280
37292
|
};
|
|
37281
37293
|
var classPrefix2 = "nut-audio";
|
|
37282
37294
|
var locale = useConfig().locale;
|
|
37283
|
-
var _ref = _object_spread({}, defaultProps$
|
|
37295
|
+
var _ref = _object_spread({}, defaultProps$r, props), className = _ref.className, src = _ref.src, style = _ref.style, autoplay = _ref.autoplay, loop = _ref.loop, type2 = _ref.type, onFastBack = _ref.onFastBack, onForward = _ref.onForward, onPause = _ref.onPause, onPlay = _ref.onPlay, onPlayEnd = _ref.onPlayEnd, onCanPlay = _ref.onCanPlay, children = _ref.children;
|
|
37284
37296
|
_ref.iconClassPrefix;
|
|
37285
37297
|
_ref.iconFontClassName;
|
|
37286
37298
|
var rest = _object_without_properties(_ref, [
|
|
@@ -37443,6 +37455,135 @@
|
|
|
37443
37455
|
}, rest), renderAudio());
|
|
37444
37456
|
};
|
|
37445
37457
|
Audio.displayName = "NutAudio";
|
|
37458
|
+
var AvatarContext = React.createContext({});
|
|
37459
|
+
var defaultProps$q = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
37460
|
+
maxContent: "",
|
|
37461
|
+
max: "",
|
|
37462
|
+
maxBackground: "#eee",
|
|
37463
|
+
maxColor: "#666",
|
|
37464
|
+
gap: "-8",
|
|
37465
|
+
level: "left"
|
|
37466
|
+
});
|
|
37467
|
+
var classPrefix$9 = "nut-avatar-group";
|
|
37468
|
+
var AvatarGroup = function(props) {
|
|
37469
|
+
var propAvatarGroup = _object_spread({}, defaultProps$q, props);
|
|
37470
|
+
var className = propAvatarGroup.className, style = propAvatarGroup.style, children = propAvatarGroup.children;
|
|
37471
|
+
var avatarGroupRef = React.useRef(null);
|
|
37472
|
+
var cls = classNames(classPrefix$9, className);
|
|
37473
|
+
var parentAvatar = {
|
|
37474
|
+
propAvatarGroup: _object_spread({
|
|
37475
|
+
avatarCount: React.Children.count(children) || 0
|
|
37476
|
+
}, propAvatarGroup),
|
|
37477
|
+
avatarGroupRef
|
|
37478
|
+
};
|
|
37479
|
+
return /* @__PURE__ */ React.createElement(AvatarContext.Provider, {
|
|
37480
|
+
value: parentAvatar
|
|
37481
|
+
}, /* @__PURE__ */ React.createElement(components.View, {
|
|
37482
|
+
className: cls,
|
|
37483
|
+
style,
|
|
37484
|
+
ref: avatarGroupRef
|
|
37485
|
+
}, React.Children.map(children, function(child, index2) {
|
|
37486
|
+
var _child_type;
|
|
37487
|
+
return (child === null || child === void 0 ? void 0 : (_child_type = child.type) === null || _child_type === void 0 ? void 0 : _child_type.displayName) === "NutAvatar" ? /* @__PURE__ */ React.cloneElement(child, {
|
|
37488
|
+
avatarIndex: index2 + 1,
|
|
37489
|
+
className: "nut-avatar-group-avatar"
|
|
37490
|
+
}) : child;
|
|
37491
|
+
})));
|
|
37492
|
+
};
|
|
37493
|
+
AvatarGroup.displayName = "NutAvatarGroup";
|
|
37494
|
+
var defaultProps$p = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
37495
|
+
size: harmony() ? "40" : "",
|
|
37496
|
+
shape: "round",
|
|
37497
|
+
icon: "",
|
|
37498
|
+
background: "#eee",
|
|
37499
|
+
color: "#666",
|
|
37500
|
+
fit: "cover",
|
|
37501
|
+
src: "",
|
|
37502
|
+
alt: "",
|
|
37503
|
+
avatarIndex: 0
|
|
37504
|
+
});
|
|
37505
|
+
var classPrefix$8 = "nut-avatar";
|
|
37506
|
+
var Avatar = function(props) {
|
|
37507
|
+
var _$_object_spread = _object_spread({}, defaultProps$p, props), children = _$_object_spread.children, size = _$_object_spread.size, shape = _$_object_spread.shape, background = _$_object_spread.background, color = _$_object_spread.color, src = _$_object_spread.src, icon = _$_object_spread.icon, fit = _$_object_spread.fit, avatarIndex = _$_object_spread.avatarIndex, className = _$_object_spread.className, style = _$_object_spread.style, onClick = _$_object_spread.onClick, onError = _$_object_spread.onError;
|
|
37508
|
+
var _useState = _sliced_to_array(React.useState(false), 2), showMax = _useState[0], setShowMax = _useState[1];
|
|
37509
|
+
var avatarRef = React.useRef(null);
|
|
37510
|
+
var parent2 = React.useContext(AvatarContext);
|
|
37511
|
+
var sizeValue = [
|
|
37512
|
+
"large",
|
|
37513
|
+
"normal",
|
|
37514
|
+
"small"
|
|
37515
|
+
];
|
|
37516
|
+
var propAvatarGroup = parent2.propAvatarGroup;
|
|
37517
|
+
var groupSize = propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.size;
|
|
37518
|
+
var groupShape = propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.shape;
|
|
37519
|
+
var groupCount = propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.avatarCount;
|
|
37520
|
+
var groupMax = propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.max;
|
|
37521
|
+
var _obj;
|
|
37522
|
+
var classes = classNames((_obj = {}, _define_property(_obj, "nut-avatar-".concat(groupSize || size || "normal"), true), _define_property(_obj, "nut-avatar-".concat(groupShape || shape), true), _define_property(_obj, "nut-avatar-".concat(groupSize || size || "normal", "-round"), shape === "round" && true), _obj));
|
|
37523
|
+
var nativeClasses = classNames(_define_property({}, "nut-avatar-first-child", avatarIndex === 1));
|
|
37524
|
+
var cls = classNames(classPrefix$8, classes, className, nativeClasses);
|
|
37525
|
+
var _obj1;
|
|
37526
|
+
var styles = _object_spread((_obj1 = {
|
|
37527
|
+
width: sizeValue.indexOf(size) > -1 ? "" : pxTransform(parseInt(size)),
|
|
37528
|
+
height: sizeValue.indexOf(size) > -1 ? "" : pxTransform(parseInt(size)),
|
|
37529
|
+
backgroundColor: "".concat(background),
|
|
37530
|
+
color
|
|
37531
|
+
}, _define_property(_obj1, harmony() ? "marginRight" : "marginLeft", avatarIndex !== 1 && (propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.gap) ? "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.gap, "px") : ""), _define_property(_obj1, "zIndex", (propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.level) === "right" ? Math.abs(groupCount - avatarIndex) : ""), _obj1), style);
|
|
37532
|
+
var maxStyles = {
|
|
37533
|
+
backgroundColor: "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxBackground),
|
|
37534
|
+
color: "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxColor)
|
|
37535
|
+
};
|
|
37536
|
+
React.useEffect(function() {
|
|
37537
|
+
var maxCount = groupMax || groupCount;
|
|
37538
|
+
if (avatarIndex === groupCount && avatarIndex !== maxCount && groupCount > maxCount) {
|
|
37539
|
+
setShowMax(true);
|
|
37540
|
+
}
|
|
37541
|
+
}, [
|
|
37542
|
+
avatarIndex,
|
|
37543
|
+
groupCount
|
|
37544
|
+
]);
|
|
37545
|
+
var errorEvent = function() {
|
|
37546
|
+
onError && onError();
|
|
37547
|
+
};
|
|
37548
|
+
var clickAvatar = function(e) {
|
|
37549
|
+
onClick && onClick(e);
|
|
37550
|
+
};
|
|
37551
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, (showMax || !groupMax || avatarIndex <= groupMax) && /* @__PURE__ */ React.createElement(components.View, {
|
|
37552
|
+
className: cls,
|
|
37553
|
+
style: !showMax ? styles : maxStyles,
|
|
37554
|
+
onClick: clickAvatar,
|
|
37555
|
+
ref: avatarRef
|
|
37556
|
+
}, (!groupMax || avatarIndex <= groupMax) && /* @__PURE__ */ React.createElement(React.Fragment, null, src && /* @__PURE__ */ React.createElement(components.Image, {
|
|
37557
|
+
className: "nut-avatar-img nut-avatar-".concat(groupSize || size || "normal", "-img"),
|
|
37558
|
+
src,
|
|
37559
|
+
style: {
|
|
37560
|
+
objectFit: fit
|
|
37561
|
+
},
|
|
37562
|
+
onError: errorEvent
|
|
37563
|
+
}), /* @__PURE__ */ React.isValidElement(icon) ? /* @__PURE__ */ React.createElement(components.View, {
|
|
37564
|
+
className: "nut-avatar-text"
|
|
37565
|
+
}, /* @__PURE__ */ React.cloneElement(icon, _object_spread_props(_object_spread({}, icon.props), {
|
|
37566
|
+
color,
|
|
37567
|
+
className: "".concat(icon.props.className || "", " nut-avatar-icon nut-avatar-").concat(groupSize || size || "normal", "-icon")
|
|
37568
|
+
}))) : null, children && /* @__PURE__ */ React.createElement(components.View, {
|
|
37569
|
+
style: {
|
|
37570
|
+
color
|
|
37571
|
+
},
|
|
37572
|
+
className: "nut-avatar-text nut-avatar-".concat(groupSize || size || "normal", "-text")
|
|
37573
|
+
}, children), !src && !icon && !children && /* @__PURE__ */ React.createElement(components.View, {
|
|
37574
|
+
className: "nut-avatar-text"
|
|
37575
|
+
}, /* @__PURE__ */ React.createElement(IconSVG$1, {
|
|
37576
|
+
style: {
|
|
37577
|
+
color
|
|
37578
|
+
},
|
|
37579
|
+
className: "nut-avatar-icon nut-avatar-".concat(groupSize || size || "normal", "-icon")
|
|
37580
|
+
}))), showMax && /* @__PURE__ */ React.createElement(components.View, {
|
|
37581
|
+
className: "nut-avatar-text nut-avatar-".concat(groupSize || "normal", "-text"),
|
|
37582
|
+
style: _object_spread({}, maxStyles)
|
|
37583
|
+
}, (propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxContent) ? propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxContent : "+ ".concat(avatarIndex - Number(groupMax || 0)))));
|
|
37584
|
+
};
|
|
37585
|
+
Avatar.displayName = "NutAvatar";
|
|
37586
|
+
Avatar.Group = AvatarGroup;
|
|
37446
37587
|
var defaultProps$o = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
37447
37588
|
strokeWidth: 5,
|
|
37448
37589
|
radius: 50,
|
|
@@ -37593,10 +37734,8 @@
|
|
|
37593
37734
|
var context2 = React.useContext(CollapseContext);
|
|
37594
37735
|
var wrapperRef = React.useRef(null);
|
|
37595
37736
|
var contentRef = React.useRef(null);
|
|
37596
|
-
var
|
|
37597
|
-
|
|
37598
|
-
}), 1), refRandomId = _useState[0];
|
|
37599
|
-
var target = "#nut-collapse-content-".concat(refRandomId);
|
|
37737
|
+
var uid = useUuid();
|
|
37738
|
+
var target = "nut-collapse-content-".concat(uid);
|
|
37600
37739
|
var expanded = React.useMemo(function() {
|
|
37601
37740
|
if (context2) {
|
|
37602
37741
|
return context2.isOpen(name2);
|
|
@@ -37616,82 +37755,64 @@
|
|
|
37616
37755
|
expanded,
|
|
37617
37756
|
rotate
|
|
37618
37757
|
]);
|
|
37619
|
-
var
|
|
37620
|
-
|
|
37621
|
-
|
|
37622
|
-
|
|
37623
|
-
|
|
37624
|
-
|
|
37625
|
-
|
|
37626
|
-
|
|
37627
|
-
|
|
37628
|
-
|
|
37629
|
-
|
|
37630
|
-
|
|
37631
|
-
|
|
37632
|
-
|
|
37633
|
-
|
|
37634
|
-
|
|
37758
|
+
var _useState = _sliced_to_array(React.useState(0), 2), tran = _useState[0], setTran = _useState[1];
|
|
37759
|
+
var _useRefState = _sliced_to_array(useRefState(0), 2), currentHeight = _useRefState[0], setCurrentHeight = _useRefState[1];
|
|
37760
|
+
var _useState1 = _sliced_to_array(React.useState(0), 2), wrapperHeight = _useState1[0], setWrapperHeight = _useState1[1];
|
|
37761
|
+
var updateRectHeight = /* @__PURE__ */ function() {
|
|
37762
|
+
var _ref2 = _async_to_generator(function() {
|
|
37763
|
+
var res;
|
|
37764
|
+
return __generator(this, function(_state) {
|
|
37765
|
+
switch (_state.label) {
|
|
37766
|
+
case 0:
|
|
37767
|
+
return [
|
|
37768
|
+
4,
|
|
37769
|
+
getRectByTaro(contentRef.current, target)
|
|
37770
|
+
];
|
|
37771
|
+
case 1:
|
|
37772
|
+
res = _state.sent();
|
|
37773
|
+
if (res === null || res === void 0 ? void 0 : res.height) {
|
|
37774
|
+
setCurrentHeight(res.height);
|
|
37775
|
+
setWrapperHeight(expanded ? res.height : 0);
|
|
37776
|
+
Taro.nextTick(function() {
|
|
37777
|
+
setTran(1);
|
|
37778
|
+
});
|
|
37779
|
+
}
|
|
37780
|
+
return [
|
|
37781
|
+
2
|
|
37782
|
+
];
|
|
37783
|
+
}
|
|
37635
37784
|
});
|
|
37636
37785
|
});
|
|
37637
|
-
|
|
37786
|
+
return function updateRectHeight2() {
|
|
37787
|
+
return _ref2.apply(this, arguments);
|
|
37788
|
+
};
|
|
37789
|
+
}();
|
|
37638
37790
|
React.useEffect(function() {
|
|
37639
|
-
|
|
37640
|
-
|
|
37641
|
-
|
|
37642
|
-
setCurrentHeight("".concat(res.height, "px"));
|
|
37643
|
-
}
|
|
37644
|
-
});
|
|
37645
|
-
}, 200);
|
|
37791
|
+
Taro.nextTick(function() {
|
|
37792
|
+
updateRectHeight();
|
|
37793
|
+
});
|
|
37646
37794
|
}, [
|
|
37647
|
-
children
|
|
37795
|
+
children,
|
|
37796
|
+
expanded
|
|
37648
37797
|
]);
|
|
37649
|
-
React.useEffect(function() {
|
|
37650
|
-
setTimeout(function() {
|
|
37651
|
-
getRect2(target).then(function(res) {
|
|
37652
|
-
if (res === null || res === void 0 ? void 0 : res.height) {
|
|
37653
|
-
setCurrentHeight("".concat(res.height, "px"));
|
|
37654
|
-
}
|
|
37655
|
-
});
|
|
37656
|
-
}, 100);
|
|
37657
|
-
}, []);
|
|
37658
37798
|
var toggle = function() {
|
|
37659
|
-
|
|
37660
|
-
|
|
37661
|
-
setTimer(timer);
|
|
37662
|
-
}
|
|
37663
|
-
var start = expanded ? "0px" : currentHeight;
|
|
37664
|
-
var end = expanded ? currentHeight : "0px";
|
|
37665
|
-
inAnimation.current = true;
|
|
37666
|
-
setWrapperHeight(start);
|
|
37667
|
-
setTimeout(function() {
|
|
37668
|
-
setWrapperHeight(end);
|
|
37669
|
-
inAnimation.current = false;
|
|
37670
|
-
if (expanded) {
|
|
37671
|
-
var timer2 = setTimeout(function() {
|
|
37672
|
-
setWrapperHeight("auto");
|
|
37673
|
-
}, 300);
|
|
37674
|
-
setTimer(timer2);
|
|
37675
|
-
}
|
|
37676
|
-
}, 100);
|
|
37799
|
+
var end = !expanded ? currentHeight.current : 0;
|
|
37800
|
+
setWrapperHeight(end);
|
|
37677
37801
|
};
|
|
37678
|
-
var
|
|
37679
|
-
|
|
37680
|
-
|
|
37681
|
-
|
|
37682
|
-
|
|
37683
|
-
|
|
37802
|
+
var handleClick = function() {
|
|
37803
|
+
if (!disabled) {
|
|
37804
|
+
context2.updateValue(name2);
|
|
37805
|
+
setTimeout(function() {
|
|
37806
|
+
toggle();
|
|
37807
|
+
}, 150);
|
|
37684
37808
|
}
|
|
37685
|
-
}
|
|
37686
|
-
|
|
37687
|
-
]);
|
|
37809
|
+
};
|
|
37810
|
+
var _obj;
|
|
37688
37811
|
return /* @__PURE__ */ React.createElement("div", _object_spread({
|
|
37689
37812
|
className: classNames(classPrefix2, className),
|
|
37690
37813
|
style
|
|
37691
37814
|
}, rest), /* @__PURE__ */ React.createElement(components.View, {
|
|
37692
|
-
className: classNames("".concat(classPrefix2, "-header"), {
|
|
37693
|
-
disabled
|
|
37694
|
-
}),
|
|
37815
|
+
className: classNames("".concat(classPrefix2, "-header"), _define_property({}, "".concat(classPrefix2, "-header-disabled"), disabled)),
|
|
37695
37816
|
onClick: handleClick
|
|
37696
37817
|
}, /* @__PURE__ */ React.createElement(components.View, {
|
|
37697
37818
|
className: "".concat(classPrefix2, "-title")
|
|
@@ -37703,17 +37824,18 @@
|
|
|
37703
37824
|
className: "".concat(classPrefix2, "-icon"),
|
|
37704
37825
|
style: iconStyle
|
|
37705
37826
|
}, expandIcon || context2.expandIcon))), /* @__PURE__ */ React.createElement(components.View, {
|
|
37706
|
-
className: "".concat(classPrefix2, "-content"),
|
|
37707
|
-
|
|
37708
|
-
style: {
|
|
37709
|
-
willChange: "height",
|
|
37827
|
+
className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-content-wrapper"), true), _define_property(_obj, "".concat(classPrefix2, "-content-wrapper-tran"), true), _obj)),
|
|
37828
|
+
style: tran ? {
|
|
37710
37829
|
height: wrapperHeight
|
|
37711
|
-
}
|
|
37830
|
+
} : {},
|
|
37831
|
+
ref: wrapperRef
|
|
37712
37832
|
}, /* @__PURE__ */ React.createElement(components.View, {
|
|
37833
|
+
className: "".concat(classPrefix2, "-content"),
|
|
37713
37834
|
ref: contentRef,
|
|
37714
|
-
|
|
37715
|
-
|
|
37716
|
-
|
|
37835
|
+
id: target
|
|
37836
|
+
}, /* @__PURE__ */ React.createElement(components.View, {
|
|
37837
|
+
className: "".concat(classPrefix2, "-content-text")
|
|
37838
|
+
}, children))));
|
|
37717
37839
|
};
|
|
37718
37840
|
CollapseItem.displayName = "NutCollapseItem";
|
|
37719
37841
|
var defaultProps$m = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
@@ -38337,7 +38459,7 @@
|
|
|
38337
38459
|
var classPrefix$5 = "nut-indicator";
|
|
38338
38460
|
var Indicator = function(props) {
|
|
38339
38461
|
var maybeFixedWidth = function maybeFixedWidth2() {
|
|
38340
|
-
if (
|
|
38462
|
+
if (type2 === "dualScreen" || type2 === "slide") {
|
|
38341
38463
|
return "".concat(classPrefix$5, "-fixed-width");
|
|
38342
38464
|
}
|
|
38343
38465
|
return "";
|
|
@@ -38731,6 +38853,14 @@
|
|
|
38731
38853
|
}, closeIcon === true ? /* @__PURE__ */ React.createElement(IconSVG$p, null) : closeIcon));
|
|
38732
38854
|
};
|
|
38733
38855
|
ImagePreview.displayName = "NutImagePreview";
|
|
38856
|
+
function addColorForHarmony(maybeElement, color) {
|
|
38857
|
+
if (React.isValidElement(maybeElement) && harmony()) {
|
|
38858
|
+
return React.cloneElement(maybeElement, {
|
|
38859
|
+
color
|
|
38860
|
+
});
|
|
38861
|
+
}
|
|
38862
|
+
return maybeElement;
|
|
38863
|
+
}
|
|
38734
38864
|
var defaultPaginationOptions = {
|
|
38735
38865
|
current: 0,
|
|
38736
38866
|
itemsPerPage: 10,
|
|
@@ -39500,7 +39630,6 @@
|
|
|
39500
39630
|
]);
|
|
39501
39631
|
var getRootPosition = function() {
|
|
39502
39632
|
getTaroRectById(list[active2].target).then(function(rect) {
|
|
39503
|
-
console.log("rect", rect);
|
|
39504
39633
|
setMaskRect({
|
|
39505
39634
|
top: rect.top,
|
|
39506
39635
|
left: rect.left,
|
|
@@ -39562,16 +39691,16 @@
|
|
|
39562
39691
|
}
|
|
39563
39692
|
}, index2 === active2 && /* @__PURE__ */ React.createElement(React.Fragment, null, showTour && /* @__PURE__ */ React.createElement(components.View, {
|
|
39564
39693
|
className: "".concat(mask2 ? "nut-tour-mask" : "nut-tour-mask nut-tour-mask-none"),
|
|
39565
|
-
id: "nut-tour-popid",
|
|
39694
|
+
id: "nut-tour-popid".concat(index2),
|
|
39566
39695
|
style: maskStyle()
|
|
39567
39696
|
}), /* @__PURE__ */ React.createElement(Popover, {
|
|
39568
39697
|
visible: showPopup,
|
|
39569
39698
|
location: item.location || location,
|
|
39570
|
-
targetId: "nut-tour-popid",
|
|
39699
|
+
targetId: "nut-tour-popid".concat(index2 === active2 ? index2 : ""),
|
|
39571
39700
|
closeOnOutsideClick: false,
|
|
39572
39701
|
offset: item.popoverOffset || [
|
|
39573
39702
|
0,
|
|
39574
|
-
|
|
39703
|
+
8
|
|
39575
39704
|
],
|
|
39576
39705
|
arrowOffset: item.arrowOffset || 0
|
|
39577
39706
|
}, /* @__PURE__ */ React.createElement(React.Fragment, null), /* @__PURE__ */ React.createElement(React.Fragment, null, children || /* @__PURE__ */ React.createElement(React.Fragment, null, type2 === "step" && /* @__PURE__ */ React.createElement(components.View, {
|
|
@@ -41118,6 +41247,7 @@
|
|
|
41118
41247
|
});
|
|
41119
41248
|
};
|
|
41120
41249
|
WaterMark.displayName = "NutWaterMark";
|
|
41250
|
+
var destroyList = [];
|
|
41121
41251
|
exports.ActionSheet = ActionSheet;
|
|
41122
41252
|
exports.Address = Address;
|
|
41123
41253
|
exports.Animate = Animate;
|
|
@@ -41222,6 +41352,7 @@
|
|
|
41222
41352
|
exports.Video = Video;
|
|
41223
41353
|
exports.VirtualList = VirtualList;
|
|
41224
41354
|
exports.WaterMark = WaterMark;
|
|
41355
|
+
exports.destroyList = destroyList;
|
|
41225
41356
|
exports.getDefaultConfig = getDefaultConfig;
|
|
41226
41357
|
exports.setDefaultConfig = setDefaultConfig;
|
|
41227
41358
|
exports.useConfig = useConfig;
|