dtable-ui-component 0.1.90-test4 → 0.1.90-test5
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.
|
@@ -68,7 +68,8 @@ var LinkFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
68
68
|
className: "link-item",
|
|
69
69
|
onClick: _this.expandLinkedTableRow.bind(_assertThisInitialized(_this), row)
|
|
70
70
|
}, /*#__PURE__*/React.createElement("div", {
|
|
71
|
-
className: "link-name"
|
|
71
|
+
className: "link-name",
|
|
72
|
+
title: displayValue
|
|
72
73
|
}, displayValue));
|
|
73
74
|
});
|
|
74
75
|
return result;
|
|
@@ -84,13 +84,17 @@ var SimpleLongTextFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
_this.onMouseEnter = function () {
|
|
87
|
-
|
|
87
|
+
// 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
|
+
// in case that there is no `modal-wrapper`
|
|
95
|
+
if (!document.getElementById('modal-wrapper')) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
94
98
|
|
|
95
99
|
_this.clearTimer(); //if (!window.isMobile && this.state.value && this.state.value.text) {
|
|
96
100
|
|
|
@@ -132,7 +136,7 @@ var SimpleLongTextFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
132
136
|
|
|
133
137
|
var isPreview = this.state.isPreview;
|
|
134
138
|
var containerClassName = this.props.containerClassName;
|
|
135
|
-
var className = cn('dtable-ui cell-formatter-container long-text-formatter
|
|
139
|
+
var className = cn('dtable-ui cell-formatter-container long-text-formatter', containerClassName);
|
|
136
140
|
var value = this.translateValue();
|
|
137
141
|
return /*#__PURE__*/React.createElement("div", {
|
|
138
142
|
className: className,
|
|
@@ -29,8 +29,7 @@ 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
|
-
//top = top + window.canvas.getRowHeight();
|
|
32
|
+
top = top - height > 0 ? top - height : 0;
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
return {
|