dtable-ui-component 0.1.90-test1 → 0.1.90-test4
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.
|
@@ -84,16 +84,18 @@ var SimpleLongTextFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
_this.onMouseEnter = function () {
|
|
87
|
-
// In link formula, when mouse enter, don't open preview
|
|
87
|
+
console.log('mouse Enter:'); // In link formula, when mouse enter, don't open preview
|
|
88
88
|
|
|
89
89
|
/*
|
|
90
90
|
if (this.props.isFormulaFormatter) {
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
*/
|
|
94
|
-
_this.clearTimer();
|
|
95
94
|
|
|
96
|
-
if (!window.isMobile &&
|
|
95
|
+
_this.clearTimer(); //if (!window.isMobile && this.state.value && this.state.value.text) {
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
if (_this.props.value) {
|
|
97
99
|
_this.timer = setTimeout(function () {
|
|
98
100
|
var style = _this.ref.getBoundingClientRect();
|
|
99
101
|
|
|
@@ -29,9 +29,8 @@ var LongTextPreview = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
29
29
|
top = top - padding;
|
|
30
30
|
|
|
31
31
|
if (top + height > window.innerHeight) {
|
|
32
|
-
top = top - height > 0 ? top - height : 0;
|
|
33
|
-
|
|
34
|
-
top = top + window.canvas.getRowHeight();
|
|
32
|
+
top = top - height > 0 ? top - height : 0; //} else if (left === 0) {
|
|
33
|
+
//top = top + window.canvas.getRowHeight();
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
return {
|