@nutui/nutui-react 2.6.8 → 2.6.9
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 +9 -0
- package/dist/esm/Drag/style/style.css +1 -1
- package/dist/esm/Drag.js +3 -2
- package/dist/esm/Form.js +1 -1
- package/dist/esm/SearchBar.js +1 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +16 -4
- package/dist/nutui.react.umd.js +16 -4
- package/dist/packages/drag/drag.scss +7 -3
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/searchbar/searchbar.d.ts +1 -1
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
# v2.6.9
|
|
2
|
+
`2024-06-14`
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
* :sparkles: feat(form): footer 容器增加 className (#2345) @oasis-cloud
|
|
6
|
+
* :bug: fix: 解决Drag组件拖拽后会在原地留一个遮挡元素问题+解决weapp/taro-h5多个demo拖拽位置不正确问题 (#2330) @irisSong
|
|
7
|
+
* :bug: fix(searchbar): 修复 clear 时未触发 change 的问题 (#2262) @eiinu
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
# v2.6.8
|
|
2
11
|
`2024-05-31`
|
|
3
12
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-drag{position:fixed;
|
|
1
|
+
.nut-drag{position:fixed;z-index:9997!important;width:0;height:0;touch-action:none;-webkit-user-select:none;user-select:none;font-size:0}.nut-drag-inner{display:inline-flex;width:fit-content;height:fit-content}
|
package/dist/esm/Drag.js
CHANGED
|
@@ -22,7 +22,8 @@ const Drag = (props) => {
|
|
|
22
22
|
const getInfo = () => {
|
|
23
23
|
const el = myDrag.current;
|
|
24
24
|
if (el) {
|
|
25
|
-
const {
|
|
25
|
+
const { offsetTop, offsetLeft } = el;
|
|
26
|
+
const { offsetWidth, offsetHeight } = el.querySelector(`.${classPrefix}-inner`);
|
|
26
27
|
const { clientWidth, clientHeight } = document.documentElement;
|
|
27
28
|
const { top, left, bottom, right } = boundary;
|
|
28
29
|
setBoundaryState({
|
|
@@ -60,7 +61,7 @@ const Drag = (props) => {
|
|
|
60
61
|
return React__default.createElement(
|
|
61
62
|
"div",
|
|
62
63
|
Object.assign({ style, className: `${classPrefix} ${className}` }, reset, { ref: myDrag }),
|
|
63
|
-
React__default.createElement(animated.div, Object.assign({ style: currstyle }, bind()), children)
|
|
64
|
+
React__default.createElement(animated.div, Object.assign({ style: currstyle }, bind(), { className: `${classPrefix}-inner` }), children)
|
|
64
65
|
);
|
|
65
66
|
};
|
|
66
67
|
Drag.displayName = "NutDrag";
|
package/dist/esm/Form.js
CHANGED
|
@@ -48,7 +48,7 @@ const Form = React__default.forwardRef((props, ref) => {
|
|
|
48
48
|
Cell__default.Group,
|
|
49
49
|
{ divider },
|
|
50
50
|
React__default.createElement(Context.Provider, { value: formInstance }, children),
|
|
51
|
-
footer ? React__default.createElement(Cell__default,
|
|
51
|
+
footer ? React__default.createElement(Cell__default, { className: `${classPrefix}-footer` }, footer) : null
|
|
52
52
|
)
|
|
53
53
|
);
|
|
54
54
|
});
|
package/dist/esm/SearchBar.js
CHANGED
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v2.6.
|
|
2
|
+
* @nutui/nutui-react v2.6.9 Fri Jun 14 2024 17:08:57 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -16115,7 +16115,7 @@ const Form = React__default.forwardRef(
|
|
|
16115
16115
|
resetFields();
|
|
16116
16116
|
}
|
|
16117
16117
|
},
|
|
16118
|
-
/* @__PURE__ */ React__default.createElement(Cell.Group, { divider }, /* @__PURE__ */ React__default.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React__default.createElement(Cell,
|
|
16118
|
+
/* @__PURE__ */ React__default.createElement(Cell.Group, { divider }, /* @__PURE__ */ React__default.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React__default.createElement(Cell, { className: `${classPrefix2}-footer` }, footer) : null)
|
|
16119
16119
|
);
|
|
16120
16120
|
}
|
|
16121
16121
|
);
|
|
@@ -18114,6 +18114,7 @@ const SearchBar = (props) => {
|
|
|
18114
18114
|
return;
|
|
18115
18115
|
}
|
|
18116
18116
|
setValue("");
|
|
18117
|
+
onChange && (onChange == null ? void 0 : onChange(""));
|
|
18117
18118
|
onClear && onClear(event);
|
|
18118
18119
|
forceFocus();
|
|
18119
18120
|
};
|
|
@@ -19644,7 +19645,10 @@ const Drag = (props) => {
|
|
|
19644
19645
|
const getInfo = () => {
|
|
19645
19646
|
const el = myDrag.current;
|
|
19646
19647
|
if (el) {
|
|
19647
|
-
const {
|
|
19648
|
+
const { offsetTop, offsetLeft } = el;
|
|
19649
|
+
const { offsetWidth, offsetHeight } = el.querySelector(
|
|
19650
|
+
`.${classPrefix2}-inner`
|
|
19651
|
+
);
|
|
19648
19652
|
const { clientWidth, clientHeight } = document.documentElement;
|
|
19649
19653
|
const { top, left, bottom, right } = boundary;
|
|
19650
19654
|
setBoundaryState({
|
|
@@ -19690,7 +19694,15 @@ const Drag = (props) => {
|
|
|
19690
19694
|
...reset,
|
|
19691
19695
|
ref: myDrag
|
|
19692
19696
|
},
|
|
19693
|
-
/* @__PURE__ */ React__default.createElement(
|
|
19697
|
+
/* @__PURE__ */ React__default.createElement(
|
|
19698
|
+
animated.div,
|
|
19699
|
+
{
|
|
19700
|
+
style: currstyle,
|
|
19701
|
+
...bind(),
|
|
19702
|
+
className: `${classPrefix2}-inner`
|
|
19703
|
+
},
|
|
19704
|
+
children
|
|
19705
|
+
)
|
|
19694
19706
|
);
|
|
19695
19707
|
};
|
|
19696
19708
|
Drag.displayName = "NutDrag";
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.ReactDOM));
|
|
3
3
|
})(this, function(exports2, React, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react v2.6.
|
|
5
|
+
* @nutui/nutui-react v2.6.9 Fri Jun 14 2024 17:08:57 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -16133,7 +16133,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16133
16133
|
resetFields();
|
|
16134
16134
|
}
|
|
16135
16135
|
},
|
|
16136
|
-
/* @__PURE__ */ React.createElement(Cell.Group, { divider }, /* @__PURE__ */ React.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React.createElement(Cell,
|
|
16136
|
+
/* @__PURE__ */ React.createElement(Cell.Group, { divider }, /* @__PURE__ */ React.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React.createElement(Cell, { className: `${classPrefix2}-footer` }, footer) : null)
|
|
16137
16137
|
);
|
|
16138
16138
|
}
|
|
16139
16139
|
);
|
|
@@ -18132,6 +18132,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18132
18132
|
return;
|
|
18133
18133
|
}
|
|
18134
18134
|
setValue("");
|
|
18135
|
+
onChange && (onChange == null ? void 0 : onChange(""));
|
|
18135
18136
|
onClear && onClear(event);
|
|
18136
18137
|
forceFocus();
|
|
18137
18138
|
};
|
|
@@ -19662,7 +19663,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19662
19663
|
const getInfo = () => {
|
|
19663
19664
|
const el = myDrag.current;
|
|
19664
19665
|
if (el) {
|
|
19665
|
-
const {
|
|
19666
|
+
const { offsetTop, offsetLeft } = el;
|
|
19667
|
+
const { offsetWidth, offsetHeight } = el.querySelector(
|
|
19668
|
+
`.${classPrefix2}-inner`
|
|
19669
|
+
);
|
|
19666
19670
|
const { clientWidth, clientHeight } = document.documentElement;
|
|
19667
19671
|
const { top, left, bottom, right } = boundary;
|
|
19668
19672
|
setBoundaryState({
|
|
@@ -19708,7 +19712,15 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19708
19712
|
...reset,
|
|
19709
19713
|
ref: myDrag
|
|
19710
19714
|
},
|
|
19711
|
-
/* @__PURE__ */ React.createElement(
|
|
19715
|
+
/* @__PURE__ */ React.createElement(
|
|
19716
|
+
animated.div,
|
|
19717
|
+
{
|
|
19718
|
+
style: currstyle,
|
|
19719
|
+
...bind(),
|
|
19720
|
+
className: `${classPrefix2}-inner`
|
|
19721
|
+
},
|
|
19722
|
+
children
|
|
19723
|
+
)
|
|
19712
19724
|
);
|
|
19713
19725
|
};
|
|
19714
19726
|
Drag.displayName = "NutDrag";
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
.nut-drag {
|
|
2
2
|
position: fixed;
|
|
3
|
-
display: inline-flex;
|
|
4
3
|
z-index: 9997 !important;
|
|
5
|
-
width:
|
|
6
|
-
height:
|
|
4
|
+
width: 0;
|
|
5
|
+
height: 0;
|
|
7
6
|
touch-action: none;
|
|
8
7
|
user-select: none;
|
|
9
8
|
font-size: 0;
|
|
9
|
+
&-inner {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
width: fit-content;
|
|
12
|
+
height: fit-content;
|
|
13
|
+
}
|
|
10
14
|
}
|