shineout 1.11.4 → 1.11.5

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.
@@ -19,7 +19,7 @@ var _react = _interopRequireDefault(require("react"));
19
19
 
20
20
  var _propTypes = _interopRequireDefault(require("prop-types"));
21
21
 
22
- var _types = require("shineout/Datum/types");
22
+ var _types = require("../Datum/types");
23
23
 
24
24
  var _component = require("../component");
25
25
 
package/css/Tree/Node.js CHANGED
@@ -39,6 +39,7 @@ var placeElement = document.createElement('div');
39
39
  placeElement.className = (0, _styles.treeClass)('drag-place');
40
40
  var innerPlaceElement = document.createElement('div');
41
41
  placeElement.appendChild(innerPlaceElement);
42
+ var placeInfo = {};
42
43
  var isDragging = false;
43
44
 
44
45
  var Node =
@@ -132,7 +133,7 @@ function (_PureComponent) {
132
133
  isDragging = true;
133
134
  event.dataTransfer.effectAllowed = 'copyMove';
134
135
  event.dataTransfer.setData('text/plain', this.props.id);
135
- placeElement.setAttribute('data-start', this.props.id);
136
+ placeInfo.start = this.props.id;
136
137
  placeElement.setAttribute('data-start-index', index);
137
138
  var element = document.querySelector(dragImageSelector(data));
138
139
  var dragImage = element || this.element.querySelector("." + (0, _styles.treeClass)('content'));
@@ -164,7 +165,7 @@ function (_PureComponent) {
164
165
  dragHoverExpand = _this$props4.dragHoverExpand,
165
166
  datum = _this$props4.datum,
166
167
  dragSibling = _this$props4.dragSibling;
167
- var startId = placeElement.getAttribute('data-start'); // const startIndex = parseInt(placeElement.getAttribute('data-start-index'), 10)
168
+ var startId = placeInfo.start; // const startIndex = parseInt(placeElement.getAttribute('data-start-index'), 10)
168
169
 
169
170
  var current = datum.getPath(startId);
170
171
  var target = datum.getPath(this.props.id);
@@ -200,7 +201,7 @@ function (_PureComponent) {
200
201
  // }
201
202
 
202
203
 
203
- placeElement.setAttribute('data-target', this.props.id);
204
+ placeInfo.target = this.props.id;
204
205
  placeElement.setAttribute('data-position', position);
205
206
  };
206
207
 
@@ -215,7 +216,7 @@ function (_PureComponent) {
215
216
  index = _this$props5.index,
216
217
  onDrop = _this$props5.onDrop;
217
218
  var position = parseInt(placeElement.getAttribute('data-position'), 10);
218
- var target = placeElement.getAttribute('data-target');
219
+ var target = placeInfo.target;
219
220
  placeElement.parentNode.removeChild(placeElement);
220
221
 
221
222
  if (target !== id || index !== position) {
package/css/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as utils from './utils'
3
3
 
4
4
  declare const __default: {
5
5
  utils: typeof utils,
6
- version: '1.11.4'
6
+ version: '1.11.5'
7
7
  }
8
8
 
9
9
  export default __default
package/css/index.js CHANGED
@@ -224,6 +224,6 @@ exports.Upload = _Upload.default;
224
224
  // Created by scripts/src-index.js.
225
225
  var _default = {
226
226
  utils: utils,
227
- version: '1.11.4'
227
+ version: '1.11.5'
228
228
  };
229
229
  exports.default = _default;