@kep-platform/basic-component 0.0.47 → 0.0.48

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,12 +70,10 @@ export default observer(function Test() {
70
70
  }, "\u65B0\u589E"), /*#__PURE__*/React.createElement(DndContext, null, /*#__PURE__*/React.createElement(StyledViewPort, {
71
71
  viewPortStore: viewPortStore
72
72
  }, windowManager.windows.map(function (windowStore) {
73
- return /*#__PURE__*/React.createElement(DndContext, {
74
- key: windowStore.id
75
- }, /*#__PURE__*/React.createElement(ViewPort.Window, {
73
+ return /*#__PURE__*/React.createElement(ViewPort.Window, {
76
74
  window: windowStore,
77
75
  key: windowStore.id,
78
76
  title: 'xixi'
79
- }, /*#__PURE__*/React.createElement("br", null)));
77
+ }, /*#__PURE__*/React.createElement("br", null));
80
78
  }))));
81
79
  });
@@ -60,8 +60,7 @@ var Window = observer(function (props) {
60
60
  isMinimize: !!window.isMinimize,
61
61
  onTransitionEnd: function onTransitionEnd(e) {
62
62
  e.stopPropagation();
63
- e.preventDefault();
64
- if (e.target === e.currentTarget && e.propertyName === 'transform') {
63
+ if (e.target === e.currentTarget) {
65
64
  runInAction(function () {
66
65
  window.isTransition = false;
67
66
  });
@@ -4,7 +4,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
4
4
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
7
- import { DndContext, useDraggable } from '@dnd-kit/core';
7
+ import { useDraggable } from '@dnd-kit/core';
8
8
  import { observer } from 'mobx-react-lite';
9
9
  import React, { useEffect } from 'react';
10
10
  import styled from 'styled-components';
@@ -29,8 +29,8 @@ export default observer(function WindowController(props) {
29
29
  window.endControll();
30
30
  }
31
31
  }, [transform, isDragging, type]);
32
- return /*#__PURE__*/React.createElement(DndContext, null, /*#__PURE__*/React.createElement(WindowControllerContainer, _extends({}, rest, attributes, listeners, {
32
+ return /*#__PURE__*/React.createElement(WindowControllerContainer, _extends({}, rest, attributes, listeners, {
33
33
  ref: setNodeRef,
34
34
  role: "div"
35
- }), children));
35
+ }), children);
36
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kep-platform/basic-component",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
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.47",
50
+ "@kep-platform/hooks": "^0.0.48",
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": "4d341942ad974a956b2eee087f28518e33425173"
90
+ "gitHead": "80d718030dd9b5362bbd7bdfc648b26e57dd3a74"
91
91
  }