@autobest-ui/components 2.7.0 → 2.7.2
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.
|
@@ -81,8 +81,12 @@ var InputNumberNotRef = /** @class */function (_super) {
|
|
|
81
81
|
var parserValue = getNumberFromString(parserValueStr);
|
|
82
82
|
var _a = _this.props,
|
|
83
83
|
name = _a.name,
|
|
84
|
-
onChange = _a.onChange
|
|
84
|
+
onChange = _a.onChange,
|
|
85
|
+
onContinualChange = _a.onContinualChange;
|
|
85
86
|
if (prevValue !== parserValue) {
|
|
87
|
+
if (onContinualChange) {
|
|
88
|
+
onContinualChange(parserValueStr, parserValue, name);
|
|
89
|
+
}
|
|
86
90
|
if (onChange) {
|
|
87
91
|
onChange(parserValue, name);
|
|
88
92
|
return;
|
package/esm/trigger/index.js
CHANGED
|
@@ -231,6 +231,11 @@ var Trigger = /** @class */function (_super) {
|
|
|
231
231
|
_this.delaySetPopupVisible(false, _this.props.mouseLeaveDelay);
|
|
232
232
|
};
|
|
233
233
|
_this.onExited = function () {
|
|
234
|
+
// 销毁style,解决屏幕切换大小时(PC端切换到移动端),获取document文档桌面大小异常
|
|
235
|
+
var popupNode = _this.getPopupDomNode();
|
|
236
|
+
if (popupNode) {
|
|
237
|
+
popupNode.removeAttribute('style');
|
|
238
|
+
}
|
|
234
239
|
_this.clearPopupTimer();
|
|
235
240
|
var onDestroy = _this.props.onDestroy;
|
|
236
241
|
if (onDestroy) {
|
|
@@ -88,8 +88,12 @@ var InputNumberNotRef = /** @class */function (_super) {
|
|
|
88
88
|
var parserValue = (0, _utils.getNumberFromString)(parserValueStr);
|
|
89
89
|
var _a = _this.props,
|
|
90
90
|
name = _a.name,
|
|
91
|
-
onChange = _a.onChange
|
|
91
|
+
onChange = _a.onChange,
|
|
92
|
+
onContinualChange = _a.onContinualChange;
|
|
92
93
|
if (prevValue !== parserValue) {
|
|
94
|
+
if (onContinualChange) {
|
|
95
|
+
onContinualChange(parserValueStr, parserValue, name);
|
|
96
|
+
}
|
|
93
97
|
if (onChange) {
|
|
94
98
|
onChange(parserValue, name);
|
|
95
99
|
return;
|
package/lib/trigger/index.js
CHANGED
|
@@ -238,6 +238,11 @@ var Trigger = /** @class */function (_super) {
|
|
|
238
238
|
_this.delaySetPopupVisible(false, _this.props.mouseLeaveDelay);
|
|
239
239
|
};
|
|
240
240
|
_this.onExited = function () {
|
|
241
|
+
// 销毁style,解决屏幕切换大小时(PC端切换到移动端),获取document文档桌面大小异常
|
|
242
|
+
var popupNode = _this.getPopupDomNode();
|
|
243
|
+
if (popupNode) {
|
|
244
|
+
popupNode.removeAttribute('style');
|
|
245
|
+
}
|
|
241
246
|
_this.clearPopupTimer();
|
|
242
247
|
var onDestroy = _this.props.onDestroy;
|
|
243
248
|
if (onDestroy) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autobest-ui/components",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "components common ui for React",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@autobest-ui/utils": "^2.1.1"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "14b9ede21e68b375c8cb7647aff360bdcbf9ef9d"
|
|
56
56
|
}
|