@nutui/nutui-react-taro 3.0.17 → 3.0.18-cpp.beta.1
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 +10 -0
- package/dist/cjs/packages/dialog/dialog.js +12 -10
- package/dist/cjs/packages/overlay/overlay.js +17 -11
- package/dist/cjs/packages/popup/popup.js +29 -17
- package/dist/es/packages/dialog/dialog.js +23 -19
- package/dist/es/packages/overlay/overlay.js +17 -11
- package/dist/es/packages/popup/popup.js +30 -17
- package/dist/nutui.react.umd.js +8902 -8903
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +31 -31
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +31 -31
- package/dist/style.css +1 -1
- package/dist/style.scss +28 -28
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# v3.0.17
|
|
2
|
+
|
|
3
|
+
`2025-08-01`
|
|
4
|
+
|
|
5
|
+
- :sparkles: feat: add plugin for bizui using nutui (#3318)
|
|
6
|
+
- :bug: fix(skeleton): correct v3 update docs (#3313)
|
|
7
|
+
- :bug: fix(pulltorefresh): 增加 catchMove 属性,用于显示控制 (#3311)
|
|
8
|
+
- :bug: fix: 修复日历只有一个月的情况 (#3306)
|
|
9
|
+
- 🏡 chore(harmonycss): 每个组件构建全量的css (#3316)
|
|
10
|
+
|
|
1
11
|
# v3.0.16
|
|
2
12
|
|
|
3
13
|
`2025-07-04`
|
|
@@ -29,7 +29,6 @@ var _sliced_to_array = require("@swc/helpers/_/_sliced_to_array");
|
|
|
29
29
|
var _ts_generator = require("@swc/helpers/_/_ts_generator");
|
|
30
30
|
var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
31
31
|
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
|
|
32
|
-
var _reacttransitiongroup = require("react-transition-group");
|
|
33
32
|
var _components = require("@tarojs/components");
|
|
34
33
|
var _iconsreacttaro = require("@nutui/icons-react-taro");
|
|
35
34
|
var _index = /*#__PURE__*/ _interop_require_default._(require("../button/index"));
|
|
@@ -194,17 +193,20 @@ var BaseDialog = function BaseDialog(props) {
|
|
|
194
193
|
var renderContent = function renderContent() {
|
|
195
194
|
var contentZIndex = (0, _platform.harmony)() ? zIndex + 1 : zIndex // 解决harmony层级问题
|
|
196
195
|
;
|
|
197
|
-
return
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
196
|
+
return(// <CSSTransition
|
|
197
|
+
// in={visible}
|
|
198
|
+
// timeout={300}
|
|
199
|
+
// classNames="fadeDialog"
|
|
200
|
+
// unmountOnExit
|
|
201
|
+
// appear
|
|
202
|
+
// >
|
|
203
|
+
/*#__PURE__*/ /*#__PURE__*/ _react.default.createElement(_content.Content, {
|
|
204
204
|
className: className,
|
|
205
|
-
style: (0, _object_spread._)({
|
|
205
|
+
style: (0, _object_spread_props._)((0, _object_spread._)({
|
|
206
206
|
zIndex: contentZIndex
|
|
207
|
-
}, style),
|
|
207
|
+
}, style), {
|
|
208
|
+
display: visible ? 'block' : 'none'
|
|
209
|
+
}),
|
|
208
210
|
title: title,
|
|
209
211
|
header: header,
|
|
210
212
|
close: renderCloseIcon(),
|
|
@@ -23,7 +23,6 @@ var _object_spread_props = require("@swc/helpers/_/_object_spread_props");
|
|
|
23
23
|
var _object_without_properties = require("@swc/helpers/_/_object_without_properties");
|
|
24
24
|
var _sliced_to_array = require("@swc/helpers/_/_sliced_to_array");
|
|
25
25
|
var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
26
|
-
var _reacttransitiongroup = require("react-transition-group");
|
|
27
26
|
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
|
|
28
27
|
var _components = require("@tarojs/components");
|
|
29
28
|
var _typings = require("../../utils/typings");
|
|
@@ -73,20 +72,27 @@ var Overlay = function Overlay(props) {
|
|
|
73
72
|
return /*#__PURE__*/ _react.default.createElement(_components.View, (0, _object_spread_props._)((0, _object_spread._)({
|
|
74
73
|
ref: nodeRef,
|
|
75
74
|
className: classes,
|
|
76
|
-
style: styles
|
|
75
|
+
style: (0, _object_spread_props._)((0, _object_spread._)({}, styles), {
|
|
76
|
+
display: innerVisible ? 'block' : 'none'
|
|
77
|
+
})
|
|
77
78
|
}, rest), {
|
|
78
79
|
catchMove: lockScroll,
|
|
79
80
|
onClick: handleClick
|
|
80
81
|
}), children);
|
|
81
82
|
};
|
|
82
|
-
return /*#__PURE__*/ _react.default.createElement(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
83
|
+
return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, renderOverlay());
|
|
84
|
+
// return (
|
|
85
|
+
// <CSSTransition
|
|
86
|
+
// nodeRef={nodeRef}
|
|
87
|
+
// classNames={`${classPrefix}-slide`}
|
|
88
|
+
// unmountOnExit
|
|
89
|
+
// timeout={duration}
|
|
90
|
+
// in={innerVisible}
|
|
91
|
+
// onEntered={afterShow}
|
|
92
|
+
// onExited={afterClose}
|
|
93
|
+
// >
|
|
94
|
+
// {renderOverlay()}
|
|
95
|
+
// </CSSTransition>
|
|
96
|
+
// )
|
|
91
97
|
};
|
|
92
98
|
Overlay.displayName = 'NutOverlay';
|
|
@@ -16,7 +16,6 @@ var _object_spread_props = require("@swc/helpers/_/_object_spread_props");
|
|
|
16
16
|
var _sliced_to_array = require("@swc/helpers/_/_sliced_to_array");
|
|
17
17
|
var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
18
18
|
var _reactdom = require("react-dom");
|
|
19
|
-
var _reacttransitiongroup = require("react-transition-group");
|
|
20
19
|
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
|
|
21
20
|
var _iconsreacttaro = require("@nutui/icons-react-taro");
|
|
22
21
|
var _components = require("@tarojs/components");
|
|
@@ -119,26 +118,39 @@ var Popup = function Popup(props) {
|
|
|
119
118
|
return renderCloseIcon();
|
|
120
119
|
}
|
|
121
120
|
};
|
|
122
|
-
var
|
|
123
|
-
return /*#__PURE__*/ _react.default.createElement(
|
|
121
|
+
var renderPop = function renderPop() {
|
|
122
|
+
return /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
124
123
|
ref: refObject,
|
|
125
|
-
style: popStyles,
|
|
124
|
+
style: (0, _object_spread_props._)((0, _object_spread._)({}, popStyles), {
|
|
125
|
+
display: innerVisible ? 'block' : 'none'
|
|
126
|
+
}),
|
|
126
127
|
className: popClassName,
|
|
127
128
|
onClick: onClick,
|
|
128
129
|
catchMove: lockScroll
|
|
129
|
-
}, renderTitle(), showChildren ? children : null)
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
130
|
+
}, renderTitle(), showChildren ? children : null);
|
|
131
|
+
// return (
|
|
132
|
+
// <CSSTransition
|
|
133
|
+
// nodeRef={refObject}
|
|
134
|
+
// classNames={transitionName}
|
|
135
|
+
// mountOnEnter
|
|
136
|
+
// unmountOnExit={destroyOnClose}
|
|
137
|
+
// timeout={duration}
|
|
138
|
+
// in={innerVisible}
|
|
139
|
+
// onEntered={afterShow}
|
|
140
|
+
// onExited={afterClose}
|
|
141
|
+
// >
|
|
142
|
+
// <View
|
|
143
|
+
// ref={refObject}
|
|
144
|
+
// style={popStyles}
|
|
145
|
+
// className={popClassName}
|
|
146
|
+
// onClick={onClick}
|
|
147
|
+
// catchMove={lockScroll}
|
|
148
|
+
// >
|
|
149
|
+
// {renderTitle()}
|
|
150
|
+
// {showChildren ? children : null}
|
|
151
|
+
// </View>
|
|
152
|
+
// </CSSTransition>
|
|
153
|
+
// )
|
|
142
154
|
};
|
|
143
155
|
var renderNode = function renderNode() {
|
|
144
156
|
return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, overlay ? /*#__PURE__*/ _react.default.createElement(_index.default, {
|
|
@@ -6,7 +6,6 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
|
6
6
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
7
7
|
import React, { useState } from "react";
|
|
8
8
|
import classNames from "classnames";
|
|
9
|
-
import { CSSTransition } from "react-transition-group";
|
|
10
9
|
import { View } from "@tarojs/components";
|
|
11
10
|
import { Failure, Close } from "@nutui/icons-react-taro";
|
|
12
11
|
import Button from "../button/index";
|
|
@@ -171,24 +170,29 @@ export var BaseDialog = function(props) {
|
|
|
171
170
|
var renderContent = function() {
|
|
172
171
|
var contentZIndex = harmony() ? zIndex + 1 : zIndex // 解决harmony层级问题
|
|
173
172
|
;
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
173
|
+
return (
|
|
174
|
+
// <CSSTransition
|
|
175
|
+
// in={visible}
|
|
176
|
+
// timeout={300}
|
|
177
|
+
// classNames="fadeDialog"
|
|
178
|
+
// unmountOnExit
|
|
179
|
+
// appear
|
|
180
|
+
// >
|
|
181
|
+
/*#__PURE__*/ (React.createElement(Content, {
|
|
182
|
+
className: className,
|
|
183
|
+
style: _object_spread_props(_object_spread({
|
|
184
|
+
zIndex: contentZIndex
|
|
185
|
+
}, style), {
|
|
186
|
+
display: visible ? 'block' : 'none'
|
|
187
|
+
}),
|
|
188
|
+
title: title,
|
|
189
|
+
header: header,
|
|
190
|
+
close: renderCloseIcon(),
|
|
191
|
+
footer: renderFooter(),
|
|
192
|
+
footerDirection: footerDirection,
|
|
193
|
+
visible: visible
|
|
194
|
+
}, content || children))
|
|
195
|
+
);
|
|
192
196
|
};
|
|
193
197
|
return /*#__PURE__*/ React.createElement(View, {
|
|
194
198
|
style: {
|
|
@@ -3,7 +3,6 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
|
3
3
|
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
4
4
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
5
5
|
import React, { useEffect, useState } from "react";
|
|
6
|
-
import { CSSTransition } from "react-transition-group";
|
|
7
6
|
import classNames from "classnames";
|
|
8
7
|
import { View } from "@tarojs/components";
|
|
9
8
|
import { ComponentDefaults } from "../../utils/typings";
|
|
@@ -53,20 +52,27 @@ export var Overlay = function(props) {
|
|
|
53
52
|
return /*#__PURE__*/ React.createElement(View, _object_spread_props(_object_spread({
|
|
54
53
|
ref: nodeRef,
|
|
55
54
|
className: classes,
|
|
56
|
-
style: styles
|
|
55
|
+
style: _object_spread_props(_object_spread({}, styles), {
|
|
56
|
+
display: innerVisible ? 'block' : 'none'
|
|
57
|
+
})
|
|
57
58
|
}, rest), {
|
|
58
59
|
catchMove: lockScroll,
|
|
59
60
|
onClick: handleClick
|
|
60
61
|
}), children);
|
|
61
62
|
};
|
|
62
|
-
return /*#__PURE__*/ React.createElement(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
return /*#__PURE__*/ React.createElement(React.Fragment, null, renderOverlay());
|
|
64
|
+
// return (
|
|
65
|
+
// <CSSTransition
|
|
66
|
+
// nodeRef={nodeRef}
|
|
67
|
+
// classNames={`${classPrefix}-slide`}
|
|
68
|
+
// unmountOnExit
|
|
69
|
+
// timeout={duration}
|
|
70
|
+
// in={innerVisible}
|
|
71
|
+
// onEntered={afterShow}
|
|
72
|
+
// onExited={afterClose}
|
|
73
|
+
// >
|
|
74
|
+
// {renderOverlay()}
|
|
75
|
+
// </CSSTransition>
|
|
76
|
+
// )
|
|
71
77
|
};
|
|
72
78
|
Overlay.displayName = 'NutOverlay';
|
|
@@ -4,7 +4,7 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
|
4
4
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
5
5
|
import React, { useState, useEffect } from "react";
|
|
6
6
|
import { createPortal } from "react-dom";
|
|
7
|
-
import { CSSTransition } from
|
|
7
|
+
// import { CSSTransition } from 'react-transition-group'
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
import { Close } from "@nutui/icons-react-taro";
|
|
10
10
|
import { View } from "@tarojs/components";
|
|
@@ -107,26 +107,39 @@ export var Popup = function(props) {
|
|
|
107
107
|
return renderCloseIcon();
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
-
var
|
|
111
|
-
return /*#__PURE__*/ React.createElement(
|
|
110
|
+
var renderPop = function() {
|
|
111
|
+
return /*#__PURE__*/ React.createElement(View, {
|
|
112
112
|
ref: refObject,
|
|
113
|
-
style: popStyles,
|
|
113
|
+
style: _object_spread_props(_object_spread({}, popStyles), {
|
|
114
|
+
display: innerVisible ? 'block' : 'none'
|
|
115
|
+
}),
|
|
114
116
|
className: popClassName,
|
|
115
117
|
onClick: onClick,
|
|
116
118
|
catchMove: lockScroll
|
|
117
|
-
}, renderTitle(), showChildren ? children : null)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
119
|
+
}, renderTitle(), showChildren ? children : null);
|
|
120
|
+
// return (
|
|
121
|
+
// <CSSTransition
|
|
122
|
+
// nodeRef={refObject}
|
|
123
|
+
// classNames={transitionName}
|
|
124
|
+
// mountOnEnter
|
|
125
|
+
// unmountOnExit={destroyOnClose}
|
|
126
|
+
// timeout={duration}
|
|
127
|
+
// in={innerVisible}
|
|
128
|
+
// onEntered={afterShow}
|
|
129
|
+
// onExited={afterClose}
|
|
130
|
+
// >
|
|
131
|
+
// <View
|
|
132
|
+
// ref={refObject}
|
|
133
|
+
// style={popStyles}
|
|
134
|
+
// className={popClassName}
|
|
135
|
+
// onClick={onClick}
|
|
136
|
+
// catchMove={lockScroll}
|
|
137
|
+
// >
|
|
138
|
+
// {renderTitle()}
|
|
139
|
+
// {showChildren ? children : null}
|
|
140
|
+
// </View>
|
|
141
|
+
// </CSSTransition>
|
|
142
|
+
// )
|
|
130
143
|
};
|
|
131
144
|
var renderNode = function() {
|
|
132
145
|
return /*#__PURE__*/ React.createElement(React.Fragment, null, overlay ? /*#__PURE__*/ React.createElement(Overlay, {
|