@kep-platform/basic-component 0.0.35 → 0.0.36
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Window/Window.js +3 -0
- package/dist/Window/test.js +8 -3
- package/package.json +3 -3
package/dist/Window/Window.js
CHANGED
@@ -89,6 +89,9 @@ var Window = observer(function (props) {
|
|
89
89
|
var _window$onClosedHandl;
|
90
90
|
(_window$onClosedHandl = window.onClosedHandler) === null || _window$onClosedHandl === void 0 || _window$onClosedHandl.call(window, window.id);
|
91
91
|
}
|
92
|
+
},
|
93
|
+
onPointerDown: function onPointerDown(e) {
|
94
|
+
e.stopPropagation();
|
92
95
|
}
|
93
96
|
}, /*#__PURE__*/React.createElement(WindowControllerLeft, {
|
94
97
|
window: window,
|
package/dist/Window/test.js
CHANGED
@@ -11,6 +11,7 @@ import { observer } from 'mobx-react-lite';
|
|
11
11
|
import React from 'react';
|
12
12
|
import { Button } from "../Button";
|
13
13
|
import { Space } from "../Space";
|
14
|
+
import { ViewPort } from "../ViewPort";
|
14
15
|
import { GlobalStyles } from "../__styles";
|
15
16
|
import Window from "./Window";
|
16
17
|
import { WindowStore } from "./index";
|
@@ -41,7 +42,7 @@ var windowManager = new WindowManager();
|
|
41
42
|
export default observer(function Test() {
|
42
43
|
return /*#__PURE__*/React.createElement(DndContext, null, /*#__PURE__*/React.createElement(GlobalStyles, {
|
43
44
|
$css: []
|
44
|
-
}), /*#__PURE__*/React.createElement(Space, null, windowManager.report, /*#__PURE__*/React.createElement(Button, {
|
45
|
+
}), /*#__PURE__*/React.createElement(ViewPort, null, /*#__PURE__*/React.createElement(Space, null, windowManager.report, /*#__PURE__*/React.createElement(Button, {
|
45
46
|
onClick: function onClick() {
|
46
47
|
windowManager.windows.forEach(function (window) {
|
47
48
|
window.normalizeWindow();
|
@@ -52,6 +53,10 @@ export default observer(function Test() {
|
|
52
53
|
window: windowStore,
|
53
54
|
key: windowStore.id,
|
54
55
|
title: 'xixi'
|
55
|
-
},
|
56
|
-
|
56
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
57
|
+
onClick: function onClick() {
|
58
|
+
alert('jss好帅');
|
59
|
+
}
|
60
|
+
}, "123"));
|
61
|
+
})));
|
57
62
|
});
|
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.36",
|
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.36",
|
51
51
|
"color": "^4.2.3",
|
52
52
|
"rc-pagination": "^4.1.0",
|
53
53
|
"styled-components": "^6.1.11"
|
@@ -87,5 +87,5 @@
|
|
87
87
|
"authors": [
|
88
88
|
"lee-step-jss 1599925910@qq.com"
|
89
89
|
],
|
90
|
-
"gitHead": "
|
90
|
+
"gitHead": "7186f791c3f0e372fa7421eebedfa338bba9cd59"
|
91
91
|
}
|