dtable-ui-component 0.1.90-test5 → 0.1.92
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.
|
@@ -24,15 +24,17 @@ var CheckboxFormatter = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24
24
|
value = _this$props.value,
|
|
25
25
|
containerClassName = _this$props.containerClassName;
|
|
26
26
|
value = value === true ? true : false;
|
|
27
|
-
var classname = cn('dtable-ui cell-formatter-container checkbox-formatter', containerClassName);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
27
|
+
var classname = cn('dtable-ui cell-formatter-container checkbox-formatter d-flex align-items-center justify-content-center', containerClassName);
|
|
28
|
+
|
|
29
|
+
if (value) {
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: classname
|
|
32
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
33
|
+
className: "dtable-font dtable-icon-check-mark checkbox-checked-mark"
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return null;
|
|
36
38
|
}
|
|
37
39
|
}]);
|
|
38
40
|
|
|
@@ -84,20 +84,12 @@ 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
|
|
88
|
-
|
|
89
|
-
/*
|
|
90
|
-
if (this.props.isFormulaFormatter) {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
*/
|
|
94
87
|
// in case that there is no `modal-wrapper`
|
|
95
88
|
if (!document.getElementById('modal-wrapper')) {
|
|
96
89
|
return;
|
|
97
90
|
}
|
|
98
91
|
|
|
99
|
-
_this.clearTimer();
|
|
100
|
-
|
|
92
|
+
_this.clearTimer();
|
|
101
93
|
|
|
102
94
|
if (_this.props.value) {
|
|
103
95
|
_this.timer = setTimeout(function () {
|