wargerm 0.4.33 → 0.4.34
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.
- package/dist/components/DragBox/index.d.ts +1 -1
- package/dist/index.css +0 -2
- package/dist/index.esm.css +0 -2
- package/dist/index.esm.js +2 -5
- package/dist/index.js +2 -5
- package/package.json +2 -2
@@ -10,5 +10,5 @@ declare type Props = {
|
|
10
10
|
className?: string;
|
11
11
|
style?: React.CSSProperties;
|
12
12
|
};
|
13
|
-
export default function DragBox({ title, children, closeIcon, onClose, visible, isDrag, isResize, className, style, }: Props):
|
13
|
+
export default function DragBox({ title, children, closeIcon, onClose, visible, isDrag, isResize, className, style, }: Props): JSX.Element;
|
14
14
|
export {};
|
package/dist/index.css
CHANGED
@@ -1486,7 +1486,6 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
1486
1486
|
}
|
1487
1487
|
[data-prefers-color='dark'] .drag-container .drag-title.move {
|
1488
1488
|
cursor: move;
|
1489
|
-
z-index: 100;
|
1490
1489
|
}
|
1491
1490
|
[data-prefers-color='dark'] .drag-container .drag-body {
|
1492
1491
|
flex: 1;
|
@@ -2828,7 +2827,6 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
2828
2827
|
}
|
2829
2828
|
[data-prefers-color='light'] .drag-container .drag-title.move {
|
2830
2829
|
cursor: move;
|
2831
|
-
z-index: 100;
|
2832
2830
|
}
|
2833
2831
|
[data-prefers-color='light'] .drag-container .drag-body {
|
2834
2832
|
flex: 1;
|
package/dist/index.esm.css
CHANGED
@@ -1486,7 +1486,6 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
1486
1486
|
}
|
1487
1487
|
[data-prefers-color='dark'] .drag-container .drag-title.move {
|
1488
1488
|
cursor: move;
|
1489
|
-
z-index: 100;
|
1490
1489
|
}
|
1491
1490
|
[data-prefers-color='dark'] .drag-container .drag-body {
|
1492
1491
|
flex: 1;
|
@@ -2828,7 +2827,6 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
2828
2827
|
}
|
2829
2828
|
[data-prefers-color='light'] .drag-container .drag-title.move {
|
2830
2829
|
cursor: move;
|
2831
|
-
z-index: 100;
|
2832
2830
|
}
|
2833
2831
|
[data-prefers-color='light'] .drag-container .drag-body {
|
2834
2832
|
flex: 1;
|
package/dist/index.esm.js
CHANGED
@@ -10335,7 +10335,6 @@ function DragBox(_ref) {
|
|
10335
10335
|
style = _ref.style;
|
10336
10336
|
var titleRef = useRef(null);
|
10337
10337
|
var containerRef = useRef(null);
|
10338
|
-
var ltRef = useRef(null);
|
10339
10338
|
var rRef = useRef(null);
|
10340
10339
|
var bRef = useRef(null);
|
10341
10340
|
var rbRef = useRef(null);
|
@@ -10363,7 +10362,6 @@ function DragBox(_ref) {
|
|
10363
10362
|
useEffect(function () {
|
10364
10363
|
var tltleEl = titleRef.current;
|
10365
10364
|
var containerEl = containerRef.current;
|
10366
|
-
console.log(titleRef, containerRef);
|
10367
10365
|
var tltleElOnmousedown = null;
|
10368
10366
|
|
10369
10367
|
if (tltleEl && containerEl && isDrag) {
|
@@ -10372,7 +10370,6 @@ function DragBox(_ref) {
|
|
10372
10370
|
var top = containerEl.offsetTop;
|
10373
10371
|
var downX = eventDown.clientX;
|
10374
10372
|
var downY = eventDown.clientY;
|
10375
|
-
console.log(left, top);
|
10376
10373
|
|
10377
10374
|
document.onmousemove = function (eventMove) {
|
10378
10375
|
eventMove.stopPropagation();
|
@@ -10472,7 +10469,7 @@ function DragBox(_ref) {
|
|
10472
10469
|
}
|
10473
10470
|
};
|
10474
10471
|
}, [isDrag, delayVisiable, visible, isResize]);
|
10475
|
-
return delayVisiable
|
10472
|
+
return delayVisiable ? /*#__PURE__*/React.createElement("div", {
|
10476
10473
|
ref: containerRef,
|
10477
10474
|
className: "drag-container ".concat(visible ? 'animation-fade' : 'animation-fade-out', " ").concat(className),
|
10478
10475
|
style: _objectSpread2({
|
@@ -10499,7 +10496,7 @@ function DragBox(_ref) {
|
|
10499
10496
|
}
|
10500
10497
|
}, closeIcon || /*#__PURE__*/React.createElement(CloseCircleOutlined, null))), /*#__PURE__*/React.createElement("div", {
|
10501
10498
|
className: "drag-body"
|
10502
|
-
}, children));
|
10499
|
+
}, children)) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
10503
10500
|
}
|
10504
10501
|
|
10505
10502
|
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild"];
|
package/dist/index.js
CHANGED
@@ -10394,7 +10394,6 @@ function DragBox(_ref) {
|
|
10394
10394
|
style = _ref.style;
|
10395
10395
|
var titleRef = React.useRef(null);
|
10396
10396
|
var containerRef = React.useRef(null);
|
10397
|
-
var ltRef = React.useRef(null);
|
10398
10397
|
var rRef = React.useRef(null);
|
10399
10398
|
var bRef = React.useRef(null);
|
10400
10399
|
var rbRef = React.useRef(null);
|
@@ -10422,7 +10421,6 @@ function DragBox(_ref) {
|
|
10422
10421
|
React.useEffect(function () {
|
10423
10422
|
var tltleEl = titleRef.current;
|
10424
10423
|
var containerEl = containerRef.current;
|
10425
|
-
console.log(titleRef, containerRef);
|
10426
10424
|
var tltleElOnmousedown = null;
|
10427
10425
|
|
10428
10426
|
if (tltleEl && containerEl && isDrag) {
|
@@ -10431,7 +10429,6 @@ function DragBox(_ref) {
|
|
10431
10429
|
var top = containerEl.offsetTop;
|
10432
10430
|
var downX = eventDown.clientX;
|
10433
10431
|
var downY = eventDown.clientY;
|
10434
|
-
console.log(left, top);
|
10435
10432
|
|
10436
10433
|
document.onmousemove = function (eventMove) {
|
10437
10434
|
eventMove.stopPropagation();
|
@@ -10531,7 +10528,7 @@ function DragBox(_ref) {
|
|
10531
10528
|
}
|
10532
10529
|
};
|
10533
10530
|
}, [isDrag, delayVisiable, visible, isResize]);
|
10534
|
-
return delayVisiable
|
10531
|
+
return delayVisiable ? /*#__PURE__*/React__default['default'].createElement("div", {
|
10535
10532
|
ref: containerRef,
|
10536
10533
|
className: "drag-container ".concat(visible ? 'animation-fade' : 'animation-fade-out', " ").concat(className),
|
10537
10534
|
style: _objectSpread2({
|
@@ -10558,7 +10555,7 @@ function DragBox(_ref) {
|
|
10558
10555
|
}
|
10559
10556
|
}, closeIcon || /*#__PURE__*/React__default['default'].createElement(icons.CloseCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement("div", {
|
10560
10557
|
className: "drag-body"
|
10561
|
-
}, children));
|
10558
|
+
}, children)) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
10562
10559
|
}
|
10563
10560
|
|
10564
10561
|
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild"];
|
package/package.json
CHANGED