dtable-ui-component 6.0.119 → 6.0.120

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.
@@ -78,6 +78,12 @@ const DTableDropdownItem = _ref => {
78
78
  }), tooltip && id && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableToolTip.default, {
79
79
  target: id,
80
80
  placement: "right",
81
+ modifiers: [{
82
+ name: 'offset',
83
+ options: {
84
+ offset: [0, 8]
85
+ }
86
+ }],
81
87
  children: tooltip
82
88
  })]
83
89
  }));
@@ -16,7 +16,8 @@ const DTableToolTip = _ref => {
16
16
  placement = 'bottom',
17
17
  className,
18
18
  children,
19
- shortcut
19
+ shortcut,
20
+ modifiers
20
21
  } = _ref;
21
22
  const hasShortcut = Boolean(shortcut);
22
23
  const renderContent = () => {
@@ -58,7 +59,7 @@ const DTableToolTip = _ref => {
58
59
  options: {
59
60
  boundariesElement: 'window'
60
61
  }
61
- }]
62
+ }, ...(modifiers || [])]
62
63
  };
63
64
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.UncontrolledTooltip, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, tooltipProps), {}, {
64
65
  children: renderContent()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.119",
3
+ "version": "6.0.120",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.8",