@kep-platform/basic-component 0.0.48 → 0.0.49
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.
@@ -119,7 +119,7 @@ var ViewPortComponent = observer(function (props) {
|
|
119
119
|
ref: containerRef
|
120
120
|
}, rest), /*#__PURE__*/React.createElement(Overlay, {
|
121
121
|
style: viewPortStore.overlayStyle
|
122
|
-
}), /*#__PURE__*/React.createElement(Content, _extends({
|
122
|
+
}), rippleManagerStore.rippleInfo, /*#__PURE__*/React.createElement(Content, _extends({
|
123
123
|
ref: function ref(dom) {
|
124
124
|
contentRef.current = dom;
|
125
125
|
setNodeRef(contentRef.current);
|
@@ -66,14 +66,12 @@ export var ViewPortStore = /*#__PURE__*/function () {
|
|
66
66
|
value: function increaseScale() {
|
67
67
|
this.setScale(this.scale + this.scaleStep);
|
68
68
|
this.setTransform(this.transform.left, this.transform.top);
|
69
|
-
this.isTransition = true;
|
70
69
|
}
|
71
70
|
}, {
|
72
71
|
key: "decreaseScale",
|
73
72
|
value: function decreaseScale() {
|
74
73
|
this.setScale(this.scale - this.scaleStep);
|
75
74
|
this.setTransform(this.transform.left, this.transform.top);
|
76
|
-
this.isTransition = true;
|
77
75
|
}
|
78
76
|
}, {
|
79
77
|
key: "validScale",
|
package/dist/ViewPort/test.js
CHANGED
@@ -74,6 +74,11 @@ export default observer(function Test() {
|
|
74
74
|
window: windowStore,
|
75
75
|
key: windowStore.id,
|
76
76
|
title: 'xixi'
|
77
|
-
}, /*#__PURE__*/React.createElement("
|
77
|
+
}, /*#__PURE__*/React.createElement("div", {
|
78
|
+
style: {
|
79
|
+
height: '2000px',
|
80
|
+
backgroundColor: 'pink'
|
81
|
+
}
|
82
|
+
}));
|
78
83
|
}))));
|
79
84
|
});
|
package/dist/Window/Window.js
CHANGED
@@ -47,7 +47,9 @@ var Window = observer(function (props) {
|
|
47
47
|
function stopWheel(e) {
|
48
48
|
e.stopPropagation();
|
49
49
|
}
|
50
|
-
(_windowContainerRef$c = windowContainerRef.current) === null || _windowContainerRef$c === void 0 || _windowContainerRef$c.addEventListener('wheel', stopWheel
|
50
|
+
(_windowContainerRef$c = windowContainerRef.current) === null || _windowContainerRef$c === void 0 || _windowContainerRef$c.addEventListener('wheel', stopWheel, {
|
51
|
+
passive: false
|
52
|
+
});
|
51
53
|
return function () {
|
52
54
|
var _windowContainerRef$c2;
|
53
55
|
(_windowContainerRef$c2 = windowContainerRef.current) === null || _windowContainerRef$c2 === void 0 || _windowContainerRef$c2.removeEventListener('wheel', stopWheel);
|
@@ -56,6 +58,7 @@ var Window = observer(function (props) {
|
|
56
58
|
|
57
59
|
/* style 的原因是因为性能问题 */
|
58
60
|
return /*#__PURE__*/React.createElement(WindowContainer, {
|
61
|
+
ref: windowContainerRef,
|
59
62
|
style: window.style,
|
60
63
|
isMinimize: !!window.isMinimize,
|
61
64
|
onTransitionEnd: function onTransitionEnd(e) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kep-platform/basic-component",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.49",
|
4
4
|
"description": "A react library developed with dumi",
|
5
5
|
"license": "MIT",
|
6
6
|
"module": "dist/index.js",
|
@@ -47,7 +47,7 @@
|
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
49
|
"@ant-design/icons": "^5.3.7",
|
50
|
-
"@kep-platform/hooks": "^0.0.
|
50
|
+
"@kep-platform/hooks": "^0.0.49",
|
51
51
|
"color": "^4.2.3",
|
52
52
|
"rc-pagination": "^4.1.0"
|
53
53
|
},
|
@@ -87,5 +87,5 @@
|
|
87
87
|
"authors": [
|
88
88
|
"less-step-jss 1599925910@qq.com"
|
89
89
|
],
|
90
|
-
"gitHead": "
|
90
|
+
"gitHead": "96bc6255ffe9cdfde9788e0790c92e7c09e48f57"
|
91
91
|
}
|