@nutui/nutui-react-taro 3.0.4 → 3.0.6
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 +48 -0
- package/dist/cjs/packages/badge/badge.js +4 -3
- package/dist/cjs/packages/badge/style/badge.scss +7 -8
- package/dist/cjs/packages/badge/style/style.css +13 -15
- package/dist/cjs/packages/badge/style/style.harmony.css +7 -9
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/datepicker/style/style.css +3 -1
- package/dist/cjs/packages/datepickerview/style/style.css +3 -1
- package/dist/cjs/packages/empty/style/index.js +1 -0
- package/dist/cjs/packages/empty/style/style.css +389 -0
- package/dist/cjs/packages/fixednav/fixednav.js +3 -3
- package/dist/cjs/packages/fixednav/style/fixednav.scss +43 -39
- package/dist/cjs/packages/fixednav/style/style.css +56 -51
- package/dist/cjs/packages/fixednav/style/style.harmony.css +43 -36
- package/dist/cjs/packages/imagepreview/imagepreview.js +58 -91
- package/dist/cjs/packages/imagepreview/style/imagepreview.scss +2 -1
- package/dist/cjs/packages/imagepreview/style/style.css +2 -1
- package/dist/cjs/packages/imagepreview/style/style.harmony.css +2 -1
- package/dist/cjs/packages/indicator/indicator.js +1 -1
- package/dist/cjs/packages/inputnumber/inputnumber.js +2 -2
- 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/nutui.react.d.ts +1 -0
- package/dist/cjs/packages/nutui.react.js +1 -0
- package/dist/cjs/packages/picker/style/style.css +3 -1
- package/dist/cjs/packages/pickerview/pickerroller.js +81 -11
- package/dist/cjs/packages/pickerview/style/pickerview.scss +3 -1
- package/dist/cjs/packages/pickerview/style/style.css +3 -1
- package/dist/cjs/packages/pickerview/style/style.harmony.css +3 -0
- package/dist/cjs/packages/resultpage/style/index.js +1 -0
- package/dist/cjs/packages/resultpage/style/style.css +389 -0
- package/dist/cjs/packages/searchbar/searchbar.js +8 -2
- 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 +58 -54
- 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 +34 -36
- 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/types/spec/badge/base.d.ts +1 -0
- 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/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/es/packages/badge/badge.js +4 -3
- package/dist/es/packages/badge/style/badge.scss +7 -8
- package/dist/es/packages/badge/style/style.css +13 -15
- package/dist/es/packages/badge/style/style.harmony.css +7 -9
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/datepicker/style/style.css +3 -1
- package/dist/es/packages/datepickerview/style/style.css +3 -1
- package/dist/es/packages/empty/style/index.js +1 -0
- package/dist/es/packages/empty/style/style.css +389 -0
- package/dist/es/packages/fixednav/fixednav.js +4 -4
- package/dist/es/packages/fixednav/style/fixednav.scss +43 -39
- package/dist/es/packages/fixednav/style/style.css +56 -51
- package/dist/es/packages/fixednav/style/style.harmony.css +43 -36
- package/dist/es/packages/imagepreview/imagepreview.js +58 -91
- package/dist/es/packages/imagepreview/style/imagepreview.scss +2 -1
- package/dist/es/packages/imagepreview/style/style.css +2 -1
- package/dist/es/packages/imagepreview/style/style.harmony.css +2 -1
- package/dist/es/packages/indicator/indicator.js +1 -1
- package/dist/es/packages/inputnumber/inputnumber.js +2 -2
- 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/picker/style/style.css +3 -1
- package/dist/es/packages/pickerview/pickerroller.js +80 -11
- package/dist/es/packages/pickerview/style/pickerview.scss +3 -1
- package/dist/es/packages/pickerview/style/style.css +3 -1
- package/dist/es/packages/pickerview/style/style.harmony.css +3 -0
- package/dist/es/packages/resultpage/style/index.js +1 -0
- package/dist/es/packages/resultpage/style/style.css +389 -0
- package/dist/es/packages/searchbar/searchbar.js +7 -2
- 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 +58 -54
- 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 +34 -36
- 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/types/spec/badge/base.d.ts +4 -0
- 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/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/nutui.react.umd.js +549 -395
- package/dist/style.css +1 -1
- package/dist/style.scss +51 -51
- package/dist/styles/theme-dark.scss +2 -0
- package/dist/styles/theme-default.scss +2 -0
- package/dist/styles/themes/dark.css +1 -1
- package/dist/styles/themes/default.css +1 -1
- package/dist/styles/themes/jmapp.css +1 -1
- package/dist/styles/themes/jrkf.css +1 -1
- package/dist/styles/variables-jmapp.scss +24 -1
- package/dist/styles/variables-jrkf.scss +24 -1
- package/dist/styles/variables.scss +37 -38
- package/package.json +1 -1
- /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
|
@@ -697,11 +697,12 @@
|
|
|
697
697
|
text-align: center;
|
|
698
698
|
}
|
|
699
699
|
.nut-imagepreview-pop {
|
|
700
|
+
width: 100%;
|
|
700
701
|
height: 100%;
|
|
702
|
+
max-width: 100% !important;
|
|
701
703
|
background: transparent !important;
|
|
702
704
|
display: flex;
|
|
703
705
|
align-items: center;
|
|
704
|
-
width: 100%;
|
|
705
706
|
}
|
|
706
707
|
.nut-imagepreview-swiper .nut-imagepreview-swiper-item,
|
|
707
708
|
.nut-imagepreview-swiper .nut-swiper-item {
|
|
@@ -53,11 +53,12 @@
|
|
|
53
53
|
text-align: center;
|
|
54
54
|
}
|
|
55
55
|
.nut-imagepreview-pop {
|
|
56
|
+
width: 100%;
|
|
56
57
|
height: 100%;
|
|
58
|
+
max-width: 100% !important;
|
|
57
59
|
background: transparent !important;
|
|
58
60
|
display: flex;
|
|
59
61
|
align-items: center;
|
|
60
|
-
width: 100%;
|
|
61
62
|
}
|
|
62
63
|
.nut-imagepreview-swiper .nut-imagepreview-swiper-item,
|
|
63
64
|
.nut-imagepreview-swiper .nut-swiper-item {
|
|
@@ -26,7 +26,7 @@ var defaultProps = {
|
|
|
26
26
|
var classPrefix = "nut-indicator";
|
|
27
27
|
var Indicator = function Indicator(props) {
|
|
28
28
|
var maybeFixedWidth = function maybeFixedWidth() {
|
|
29
|
-
if (
|
|
29
|
+
if (type === 'dualScreen' || type === 'slide') {
|
|
30
30
|
return "".concat(classPrefix, "-fixed-width");
|
|
31
31
|
}
|
|
32
32
|
return '';
|
|
@@ -250,7 +250,7 @@ var InputNumber = function InputNumber(props) {
|
|
|
250
250
|
onClick: handleReduce
|
|
251
251
|
}, /*#__PURE__*/ _react.default.createElement(_iconsreacttaro.Minus, {
|
|
252
252
|
size: 10,
|
|
253
|
-
className: (0, _classnames.default)("".concat(classPrefix, "-icon ").concat(classPrefix, "-icon-minus"), (0, _define_property._)({}, "".concat(classPrefix, "-icon-disabled"), shadowValue
|
|
253
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-icon ").concat(classPrefix, "-icon-minus"), (0, _define_property._)({}, "".concat(classPrefix, "-icon-disabled"), Number(shadowValue) <= Number(min) || disabled))
|
|
254
254
|
})), /*#__PURE__*/ _react.default.createElement("input", {
|
|
255
255
|
className: (0, _classnames.default)("".concat(classPrefix, "-input"), (0, _define_property._)({}, "".concat(classPrefix, "-input-disabled"), disabled)),
|
|
256
256
|
type: type,
|
|
@@ -267,7 +267,7 @@ var InputNumber = function InputNumber(props) {
|
|
|
267
267
|
onClick: handlePlus
|
|
268
268
|
}, /*#__PURE__*/ _react.default.createElement(_iconsreacttaro.Plus, {
|
|
269
269
|
size: 10,
|
|
270
|
-
className: (0, _classnames.default)("".concat(classPrefix, "-icon ").concat(classPrefix, "-icon-plus"), (0, _define_property._)({}, "".concat(classPrefix, "-icon-disabled"), shadowValue
|
|
270
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-icon ").concat(classPrefix, "-icon-plus"), (0, _define_property._)({}, "".concat(classPrefix, "-icon-disabled"), Number(shadowValue) >= Number(max) || disabled))
|
|
271
271
|
})));
|
|
272
272
|
};
|
|
273
273
|
InputNumber.displayName = 'NutInputNumber';
|
|
@@ -8,15 +8,15 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var _lottieweb = require("./lottieweb");
|
|
12
|
+
var _lottiemp = require("./lottiemp");
|
|
13
13
|
var implementation;
|
|
14
14
|
if (process.env.TARO_ENV === 'h5') {
|
|
15
15
|
// @ts-ignore
|
|
16
|
-
implementation =
|
|
17
|
-
} else if (process.env.TARO_ENV === 'weapp') {
|
|
16
|
+
implementation = _lottieweb.Lottie;
|
|
17
|
+
} else if (process.env.TARO_ENV === 'weapp' || process.env.TARO_ENV === 'jd') {
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
implementation =
|
|
19
|
+
implementation = _lottiemp.Lottie;
|
|
20
20
|
} else {
|
|
21
21
|
// throw new Error(`不支持的 TARO_ENV: ${process.env.TARO_ENV}`)
|
|
22
22
|
implementation = function implementation(props) {
|
|
@@ -12,7 +12,7 @@ var _interop_require_default = require("@swc/helpers/_/_interop_require_default"
|
|
|
12
12
|
var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
13
|
var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
14
|
var _taro = require("@tarojs/taro");
|
|
15
|
-
var _lottieminiprogram = /*#__PURE__*/ _interop_require_default._(require("lottie-miniprogram"));
|
|
15
|
+
var _lottieminiprogram = /*#__PURE__*/ _interop_require_default._(require("@nutui/lottie-miniprogram"));
|
|
16
16
|
var _getsysteminfo = require("../../utils/get-system-info");
|
|
17
17
|
var _useuuid = /*#__PURE__*/ _interop_require_default._(require("../../hooks/use-uuid"));
|
|
18
18
|
var Lottie = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
@@ -29,27 +29,33 @@ var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
|
29
29
|
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
|
|
30
30
|
var _reacttransitiongroup = require("react-transition-group");
|
|
31
31
|
var _components = require("@tarojs/components");
|
|
32
|
+
var _iconsreacttaro = require("@nutui/icons-react-taro");
|
|
33
|
+
var _platformtaro = require("../../utils/platform-taro");
|
|
34
|
+
var _pxtransform = /*#__PURE__*/ _interop_require_default._(require("../../utils/px-transform"));
|
|
32
35
|
var _typings = require("../../utils/typings");
|
|
33
36
|
var _usecustomevent = require("../../hooks/use-custom-event");
|
|
34
37
|
var _mergeprops = require("../../utils/merge-props");
|
|
35
38
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
36
39
|
id: '',
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
distance: 8,
|
|
41
|
+
navHeight: 57,
|
|
39
42
|
position: 'top',
|
|
40
43
|
visible: false,
|
|
44
|
+
closeable: false,
|
|
45
|
+
leftIcon: null,
|
|
46
|
+
rightIcon: null,
|
|
47
|
+
duration: 3000,
|
|
41
48
|
onClose: function onClose() {},
|
|
42
49
|
onClick: function onClick() {}
|
|
43
50
|
});
|
|
44
51
|
var classPrefix = 'nut-notify';
|
|
45
52
|
var Notify = function Notify(props) {
|
|
46
|
-
var _mergeProps = (0, _mergeprops.mergeProps)(defaultProps, props), id = _mergeProps.id, children = _mergeProps.children,
|
|
53
|
+
var _mergeProps = (0, _mergeprops.mergeProps)(defaultProps, 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, position = _mergeProps.position, visible = _mergeProps.visible, duration = _mergeProps.duration, className = _mergeProps.className, onClose = _mergeProps.onClose, onClick = _mergeProps.onClick;
|
|
47
54
|
(0, _usecustomevent.useCustomEvent)(id, function(status) {
|
|
48
55
|
status ? show() : hide();
|
|
49
56
|
});
|
|
50
57
|
var timer;
|
|
51
58
|
var _useState = (0, _sliced_to_array._)((0, _react.useState)(false), 2), showNotify = _useState[0], setShowNotify = _useState[1];
|
|
52
|
-
var cssRef = (0, _react.useRef)(null);
|
|
53
59
|
(0, _react.useEffect)(function() {
|
|
54
60
|
if (visible) {
|
|
55
61
|
show();
|
|
@@ -59,9 +65,6 @@ var Notify = function Notify(props) {
|
|
|
59
65
|
}, [
|
|
60
66
|
visible
|
|
61
67
|
]);
|
|
62
|
-
var clickHandle = function clickHandle() {
|
|
63
|
-
onClick();
|
|
64
|
-
};
|
|
65
68
|
var show = function show() {
|
|
66
69
|
setShowNotify(true);
|
|
67
70
|
clearTimer();
|
|
@@ -81,10 +84,29 @@ var Notify = function Notify(props) {
|
|
|
81
84
|
setShowNotify(false);
|
|
82
85
|
onClose();
|
|
83
86
|
};
|
|
87
|
+
var getDistance = (0, _react.useMemo)(function() {
|
|
88
|
+
if (position === 'top') {
|
|
89
|
+
return {
|
|
90
|
+
top: (0, _pxtransform.default)((0, _platformtaro.web)() ? Number(distance) + navHeight : Number(distance))
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
bottom: (0, _pxtransform.default)(Number(distance))
|
|
95
|
+
};
|
|
96
|
+
}, [
|
|
97
|
+
distance,
|
|
98
|
+
position
|
|
99
|
+
]);
|
|
84
100
|
var _obj;
|
|
85
|
-
var classes = (0, _classnames.default)((_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix
|
|
101
|
+
var classes = (0, _classnames.default)((_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix), true), (0, _define_property._)(_obj, "".concat(className), true), _obj));
|
|
102
|
+
var handleClick = function handleClick() {
|
|
103
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
104
|
+
};
|
|
105
|
+
var handleClickIcon = function handleClickIcon() {
|
|
106
|
+
hide();
|
|
107
|
+
};
|
|
108
|
+
var _obj1;
|
|
86
109
|
return /*#__PURE__*/ _react.default.createElement(_reacttransitiongroup.CSSTransition, {
|
|
87
|
-
nodeRef: cssRef,
|
|
88
110
|
in: showNotify,
|
|
89
111
|
timeout: 300,
|
|
90
112
|
classNames: "fade",
|
|
@@ -93,10 +115,19 @@ var Notify = function Notify(props) {
|
|
|
93
115
|
position: position,
|
|
94
116
|
id: id
|
|
95
117
|
}, /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
96
|
-
className:
|
|
97
|
-
style: style,
|
|
98
|
-
onClick:
|
|
99
|
-
},
|
|
118
|
+
className: classes,
|
|
119
|
+
style: (0, _object_spread._)({}, style, getDistance),
|
|
120
|
+
onClick: handleClick
|
|
121
|
+
}, leftIcon ? /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
122
|
+
className: "".concat(classPrefix, "-left-icon")
|
|
123
|
+
}, leftIcon) : null, /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
124
|
+
className: (0, _classnames.default)((_obj1 = {}, (0, _define_property._)(_obj1, "".concat(classPrefix, "-content"), true), (0, _define_property._)(_obj1, "".concat(classPrefix, "-ellipsis"), closeable || rightIcon), (0, _define_property._)(_obj1, "".concat(classPrefix, "-layout-left"), leftIcon || rightIcon), _obj1))
|
|
125
|
+
}, children), rightIcon || closeable ? /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
126
|
+
className: "".concat(classPrefix, "-right-icon"),
|
|
127
|
+
onClick: handleClickIcon
|
|
128
|
+
}, rightIcon || (closeable ? /*#__PURE__*/ _react.default.createElement(_iconsreacttaro.Close, {
|
|
129
|
+
size: 12
|
|
130
|
+
}) : null)) : null));
|
|
100
131
|
};
|
|
101
132
|
function open(selector) {
|
|
102
133
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/*入场动画过程*/
|
|
7
7
|
.fade-enter-active {
|
|
8
8
|
opacity: 1;
|
|
9
|
-
transition: opacity
|
|
9
|
+
transition: opacity 300ms ease-in;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/*入场动画结束*/
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
/*离场动画过程*/
|
|
23
23
|
.fade-exit-active {
|
|
24
24
|
opacity: 0;
|
|
25
|
-
transition: opacity
|
|
25
|
+
transition: opacity 300ms ease-out;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/*离场动画结束*/
|
|
@@ -38,56 +38,59 @@
|
|
|
38
38
|
/*页面第一次加载时的动画过程*/
|
|
39
39
|
.fade-appear-active {
|
|
40
40
|
opacity: 1;
|
|
41
|
-
transition: opacity
|
|
41
|
+
transition: opacity 300ms;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.nut-notify {
|
|
45
|
+
position: fixed;
|
|
46
|
+
left: 8px;
|
|
47
|
+
right: 8px;
|
|
48
|
+
z-index: $notify-z-index;
|
|
45
49
|
display: flex;
|
|
46
|
-
justify-content: center;
|
|
47
50
|
align-items: center;
|
|
48
51
|
box-sizing: border-box;
|
|
49
|
-
padding: $notify-padding;
|
|
50
|
-
color: $notify-text-color;
|
|
51
|
-
font-size: $notify-font-size;
|
|
52
|
-
white-space: pre-wrap;
|
|
53
|
-
word-wrap: break-word;
|
|
54
52
|
height: $notify-height;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&-popup-bottom {
|
|
71
|
-
bottom: 0;
|
|
53
|
+
padding: $notify-padding;
|
|
54
|
+
border-radius: $notify-border-radius;
|
|
55
|
+
box-shadow: $notify-box-shadow;
|
|
56
|
+
background-color: $notify-background-color;
|
|
57
|
+
|
|
58
|
+
&-content {
|
|
59
|
+
flex: 1;
|
|
60
|
+
text-align: center;
|
|
61
|
+
min-width: 0;
|
|
62
|
+
font-size: $notify-font-size;
|
|
63
|
+
color: $notify-text-color;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
overflow: hidden;
|
|
72
66
|
}
|
|
73
67
|
|
|
74
|
-
&-
|
|
75
|
-
|
|
68
|
+
&-ellipsis {
|
|
69
|
+
text-overflow: ellipsis;
|
|
76
70
|
}
|
|
77
71
|
|
|
78
|
-
&-
|
|
79
|
-
|
|
72
|
+
&-layout-left {
|
|
73
|
+
text-align: left;
|
|
80
74
|
}
|
|
81
75
|
|
|
82
|
-
&-
|
|
83
|
-
|
|
76
|
+
&-left-icon,
|
|
77
|
+
&-right-icon {
|
|
78
|
+
display: inline-flex;
|
|
84
79
|
}
|
|
85
80
|
|
|
86
|
-
&-
|
|
87
|
-
|
|
81
|
+
&-left-icon {
|
|
82
|
+
margin-right: 6px;
|
|
83
|
+
.nut-icon {
|
|
84
|
+
height: 16px;
|
|
85
|
+
width: 16px;
|
|
86
|
+
}
|
|
88
87
|
}
|
|
89
88
|
|
|
90
|
-
&-
|
|
91
|
-
|
|
89
|
+
&-right-icon {
|
|
90
|
+
margin-left: 6px;
|
|
91
|
+
.nut-icon {
|
|
92
|
+
height: 12px;
|
|
93
|
+
width: 12px;
|
|
94
|
+
}
|
|
92
95
|
}
|
|
93
96
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
/*入场动画过程*/
|
|
12
12
|
.fade-enter-active {
|
|
13
13
|
opacity: 1;
|
|
14
|
-
transition: opacity
|
|
14
|
+
transition: opacity 300ms ease-in;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/*入场动画结束*/
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
/*离场动画过程*/
|
|
28
28
|
.fade-exit-active {
|
|
29
29
|
opacity: 0;
|
|
30
|
-
transition: opacity
|
|
30
|
+
transition: opacity 300ms ease-out;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/*离场动画结束*/
|
|
@@ -43,47 +43,52 @@
|
|
|
43
43
|
/*页面第一次加载时的动画过程*/
|
|
44
44
|
.fade-appear-active {
|
|
45
45
|
opacity: 1;
|
|
46
|
-
transition: opacity
|
|
46
|
+
transition: opacity 300ms;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.nut-notify {
|
|
50
|
+
position: fixed;
|
|
51
|
+
left: 8px;
|
|
52
|
+
right: 8px;
|
|
53
|
+
z-index: var(--nutui-notify-z-index, 1000);
|
|
50
54
|
display: flex;
|
|
51
|
-
justify-content: center;
|
|
52
55
|
align-items: center;
|
|
53
56
|
box-sizing: border-box;
|
|
54
|
-
padding: var(--nutui-notify-padding, 0px 10px);
|
|
55
|
-
color: var(--nutui-notify-text-color, #ffffff);
|
|
56
|
-
font-size: var(--nutui-notify-font-size, var(--nutui-font-size-base, 14px));
|
|
57
|
-
white-space: pre-wrap;
|
|
58
|
-
word-wrap: break-word;
|
|
59
57
|
height: var(--nutui-notify-height, 40px);
|
|
58
|
+
padding: var(--nutui-notify-padding, 0px 12px);
|
|
59
|
+
border-radius: var(--nutui-notify-border-radius, 8px);
|
|
60
|
+
box-shadow: var(--nutui-notify-box-shadow, 0px 4px 12px 0px rgba(0, 0, 0, 0.06));
|
|
61
|
+
background-color: var(--nutui-notify-background-color, #ffffff);
|
|
62
|
+
}
|
|
63
|
+
.nut-notify-content {
|
|
64
|
+
flex: 1;
|
|
65
|
+
text-align: center;
|
|
66
|
+
min-width: 0;
|
|
67
|
+
font-size: var(--nutui-notify-font-size, var(--nutui-font-size-base, 14px));
|
|
68
|
+
color: var(--nutui-notify-text-color, var(--nutui-color-title, #1a1a1a));
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
overflow: hidden;
|
|
60
71
|
}
|
|
61
|
-
.nut-notify-
|
|
62
|
-
|
|
63
|
-
left: 0;
|
|
64
|
-
right: 0;
|
|
65
|
-
overflow-y: auto;
|
|
66
|
-
transition: transform 0.3s;
|
|
67
|
-
z-index: 9999;
|
|
68
|
-
}
|
|
69
|
-
.nut-notify-popup-top {
|
|
70
|
-
top: 0;
|
|
72
|
+
.nut-notify-ellipsis {
|
|
73
|
+
text-overflow: ellipsis;
|
|
71
74
|
}
|
|
72
|
-
.nut-notify-
|
|
73
|
-
|
|
75
|
+
.nut-notify-layout-left {
|
|
76
|
+
text-align: left;
|
|
74
77
|
}
|
|
75
|
-
.nut-notify-
|
|
76
|
-
|
|
78
|
+
.nut-notify-left-icon, .nut-notify-right-icon {
|
|
79
|
+
display: inline-flex;
|
|
77
80
|
}
|
|
78
|
-
.nut-notify-
|
|
79
|
-
|
|
81
|
+
.nut-notify-left-icon {
|
|
82
|
+
margin-right: 6px;
|
|
80
83
|
}
|
|
81
|
-
.nut-notify-
|
|
82
|
-
|
|
84
|
+
.nut-notify-left-icon .nut-icon {
|
|
85
|
+
height: 16px;
|
|
86
|
+
width: 16px;
|
|
83
87
|
}
|
|
84
|
-
.nut-notify-
|
|
85
|
-
|
|
88
|
+
.nut-notify-right-icon {
|
|
89
|
+
margin-left: 6px;
|
|
86
90
|
}
|
|
87
|
-
.nut-notify-
|
|
88
|
-
|
|
91
|
+
.nut-notify-right-icon .nut-icon {
|
|
92
|
+
height: 12px;
|
|
93
|
+
width: 12px;
|
|
89
94
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
/*入场动画过程*/
|
|
13
13
|
.fade-enter-active {
|
|
14
14
|
opacity: 1;
|
|
15
|
-
transition: opacity
|
|
15
|
+
transition: opacity 300ms ease-in;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/*入场动画结束*/
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
/*离场动画过程*/
|
|
29
29
|
.fade-exit-active {
|
|
30
30
|
opacity: 0;
|
|
31
|
-
transition: opacity
|
|
31
|
+
transition: opacity 300ms ease-out;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/*离场动画结束*/
|
|
@@ -44,47 +44,52 @@
|
|
|
44
44
|
/*页面第一次加载时的动画过程*/
|
|
45
45
|
.fade-appear-active {
|
|
46
46
|
opacity: 1;
|
|
47
|
-
transition: opacity
|
|
47
|
+
transition: opacity 300ms;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.nut-notify {
|
|
51
|
+
position: fixed;
|
|
52
|
+
left: 8px;
|
|
53
|
+
right: 8px;
|
|
54
|
+
z-index: 1000;
|
|
51
55
|
display: flex;
|
|
52
|
-
justify-content: center;
|
|
53
56
|
align-items: center;
|
|
54
57
|
box-sizing: border-box;
|
|
55
|
-
padding: 0px 10px;
|
|
56
|
-
color: #ffffff;
|
|
57
|
-
font-size: 14px;
|
|
58
|
-
white-space: pre-wrap;
|
|
59
|
-
word-wrap: break-word;
|
|
60
58
|
height: 40px;
|
|
59
|
+
padding: 0px 12px;
|
|
60
|
+
border-radius: 8px;
|
|
61
|
+
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.06);
|
|
62
|
+
background-color: #ffffff;
|
|
63
|
+
}
|
|
64
|
+
.nut-notify-content {
|
|
65
|
+
flex: 1;
|
|
66
|
+
text-align: center;
|
|
67
|
+
min-width: 0;
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
color: #1a1a1a;
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
overflow: hidden;
|
|
61
72
|
}
|
|
62
|
-
.nut-notify-
|
|
63
|
-
|
|
64
|
-
left: 0;
|
|
65
|
-
right: 0;
|
|
66
|
-
overflow-y: auto;
|
|
67
|
-
transition: transform 0.3s;
|
|
68
|
-
z-index: 9999;
|
|
69
|
-
}
|
|
70
|
-
.nut-notify-popup-top {
|
|
71
|
-
top: 0;
|
|
73
|
+
.nut-notify-ellipsis {
|
|
74
|
+
text-overflow: ellipsis;
|
|
72
75
|
}
|
|
73
|
-
.nut-notify-
|
|
74
|
-
|
|
76
|
+
.nut-notify-layout-left {
|
|
77
|
+
text-align: left;
|
|
75
78
|
}
|
|
76
|
-
.nut-notify-
|
|
77
|
-
|
|
79
|
+
.nut-notify-left-icon, .nut-notify-right-icon {
|
|
80
|
+
display: inline-flex;
|
|
78
81
|
}
|
|
79
|
-
.nut-notify-
|
|
80
|
-
|
|
82
|
+
.nut-notify-left-icon {
|
|
83
|
+
margin-right: 6px;
|
|
81
84
|
}
|
|
82
|
-
.nut-notify-
|
|
83
|
-
|
|
85
|
+
.nut-notify-left-icon .nut-icon {
|
|
86
|
+
height: 16px;
|
|
87
|
+
width: 16px;
|
|
84
88
|
}
|
|
85
|
-
.nut-notify-
|
|
86
|
-
|
|
89
|
+
.nut-notify-right-icon {
|
|
90
|
+
margin-left: 6px;
|
|
87
91
|
}
|
|
88
|
-
.nut-notify-
|
|
89
|
-
|
|
92
|
+
.nut-notify-right-icon .nut-icon {
|
|
93
|
+
height: 12px;
|
|
94
|
+
width: 12px;
|
|
90
95
|
}
|
|
@@ -310,4 +310,5 @@ import "./timedetail/timedetail.scss";
|
|
|
310
310
|
import "./timeselect/timeselect.scss";
|
|
311
311
|
import "./trendarrow/trendarrow.scss";
|
|
312
312
|
import "./watermark/watermark.scss";
|
|
313
|
+
export * from "../types";
|
|
313
314
|
export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Divider, Grid, GridItem, Layout, Col, Row, SafeArea, Space, Sticky, BackTop, Elevator, FixedNav, HoverButton, HoverButtonItem, NavBar, SideBar, SideBarItem, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, CalendarCard, Cascader, Checkbox, CheckboxGroup, DatePicker, DatePickerView, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, PickerView, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, Loading, NoticeBar, Notify, Popover, Popup, PullToRefresh, ResultPage, Skeleton, Swipe, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, Lottie, Pagination, Price, Progress, Segmented, Step, Steps, Swiper, SwiperItem, Table, Tag, Tour, Video, VirtualList, AvatarCropper, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
|
|
@@ -384,7 +384,6 @@
|
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
.nut-pickerview {
|
|
387
|
-
--nutui-picker-item-height: 36px;
|
|
388
387
|
position: relative;
|
|
389
388
|
display: flex;
|
|
390
389
|
width: 100%;
|
|
@@ -430,6 +429,9 @@
|
|
|
430
429
|
z-index: 1;
|
|
431
430
|
transform-style: preserve-3d;
|
|
432
431
|
}
|
|
432
|
+
.nut-pickerview-roller-placeholder {
|
|
433
|
+
height: var(--nutui-picker-item-height, 36px);
|
|
434
|
+
}
|
|
433
435
|
.nut-pickerview-roller-item {
|
|
434
436
|
position: absolute;
|
|
435
437
|
top: 0;
|