@nutui/nutui-react 3.0.9 → 3.0.10-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -11
- package/dist/cjs/packages/pickerview/pickerview.js +2 -1
- package/dist/es/packages/pickerview/pickerview.js +2 -1
- package/dist/nutui.react.umd.js +1 -1
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +39 -39
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +39 -39
- package/dist/style.css +1 -1
- package/dist/style.scss +40 -40
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
# v3.0.9
|
|
2
|
-
`2025-04-18`
|
|
3
|
-
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
* :sparkles: feat(input): 增加 taro components 属性的支持 (#3181)
|
|
7
|
-
* :sparkles: feat(button): 兼容 taro components (#3188)
|
|
8
|
-
* :bug: fix(image): update image props tsType (#3178)
|
|
9
|
-
* 🪵 refactor: 打包组件不同主题的 css 文件 (#3189)
|
|
10
|
-
* 🪵 refactor(loading): 移除内置的 lottie,可通过 icon 属性加载 lottie (#3184)
|
|
11
|
-
* 📖 docs(audio): 修订audio taro 端文档,不再支持taro多端 (#3187)
|
|
12
|
-
* 🏡 chore: update taro version (#3186)
|
|
13
|
-
* 🏡 chore: 调整 utils 和 hooks 的导出方式 (#3162)
|
|
3
|
+
`2025-04-18`
|
|
14
4
|
|
|
5
|
+
- :sparkles: feat(form): 增加 taro components 属性的支持,抽象类型 (#3182)
|
|
6
|
+
- :sparkles: feat(input): 增加 taro components 属性的支持 (#3181)
|
|
7
|
+
- :sparkles: feat(button): 兼容 taro components (#3188)
|
|
8
|
+
- :bug: fix(image): update image props tsType (#3178)
|
|
9
|
+
- 🪵 refactor: 打包组件不同主题的 css 文件 (#3189)
|
|
10
|
+
- 🪵 refactor(loading): 移除内置的 lottie,可通过 icon 属性加载 lottie (#3184)
|
|
11
|
+
- 📖 docs(audio): 修订audio taro 端文档,不再支持taro多端 (#3187)
|
|
12
|
+
- 🏡 chore: update taro version (#3186)
|
|
13
|
+
- 🏡 chore: 调整 utils 和 hooks 的导出方式 (#3162)
|
|
15
14
|
|
|
16
15
|
# v3.0.8
|
|
17
16
|
|
|
@@ -20,6 +20,7 @@ var _reactfastcompare = /*#__PURE__*/ _interop_require_default._(require("react-
|
|
|
20
20
|
var _typings = require("../../utils/typings");
|
|
21
21
|
var _usepropsvalue = require("../../hooks/use-props-value");
|
|
22
22
|
var _pickerroller = /*#__PURE__*/ _interop_require_default._(require("./pickerroller"));
|
|
23
|
+
var _isempty = require("../../utils/is-empty");
|
|
23
24
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
24
25
|
options: [],
|
|
25
26
|
defaultValue: [],
|
|
@@ -116,7 +117,7 @@ var InternalPickerView = function InternalPickerView(props, ref) {
|
|
|
116
117
|
]);
|
|
117
118
|
var handleSelect = (0, _react.useCallback)(function(option, index) {
|
|
118
119
|
var newValue = option === null || option === void 0 ? void 0 : option.value;
|
|
119
|
-
if (
|
|
120
|
+
if ((0, _isempty.isEmpty)(newValue) || innerValue[index] === newValue) return;
|
|
120
121
|
changeIndex.current = index;
|
|
121
122
|
if (columnsType === 'multiple') {
|
|
122
123
|
setInnerValue(function(prev) {
|
|
@@ -8,6 +8,7 @@ import isEqual from "react-fast-compare";
|
|
|
8
8
|
import { ComponentDefaults } from "../../utils/typings";
|
|
9
9
|
import { usePropsValue } from "../../hooks/use-props-value";
|
|
10
10
|
import PickerRoller from "./pickerroller";
|
|
11
|
+
import { isEmpty } from "../../utils/is-empty";
|
|
11
12
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
12
13
|
options: [],
|
|
13
14
|
defaultValue: [],
|
|
@@ -104,7 +105,7 @@ var InternalPickerView = function(props, ref) {
|
|
|
104
105
|
]);
|
|
105
106
|
var handleSelect = useCallback(function(option, index) {
|
|
106
107
|
var newValue = option === null || option === void 0 ? void 0 : option.value;
|
|
107
|
-
if (
|
|
108
|
+
if (isEmpty(newValue) || innerValue[index] === newValue) return;
|
|
108
109
|
changeIndex.current = index;
|
|
109
110
|
if (columnsType === 'multiple') {
|
|
110
111
|
setInnerValue(function(prev) {
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -14045,7 +14045,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
14045
14045
|
]);
|
|
14046
14046
|
var handleSelect = React.useCallback(function(option, index2) {
|
|
14047
14047
|
var newValue = option === null || option === void 0 ? void 0 : option.value;
|
|
14048
|
-
if (
|
|
14048
|
+
if (isEmpty(newValue) || innerValue[index2] === newValue) return;
|
|
14049
14049
|
changeIndex.current = index2;
|
|
14050
14050
|
if (columnsType === "multiple") {
|
|
14051
14051
|
setInnerValue(function(prev) {
|