dtable-ui-component 6.0.117-beta.2 → 6.0.117-beta.3

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.
@@ -12,12 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  const DTableDropdownMenu = _ref => {
13
13
  let {
14
14
  className,
15
+ container,
16
+ style,
15
17
  menuProps,
16
18
  children
17
19
  } = _ref;
20
+ let customMenuProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, menuProps), {}, {
21
+ container,
22
+ style
23
+ });
18
24
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownMenu, (0, _objectSpread2.default)((0, _objectSpread2.default)({
19
25
  className: (0, _classnames.default)('dtable-dropdown-menu', className)
20
- }, menuProps), {}, {
26
+ }, customMenuProps), {}, {
21
27
  children: children
22
28
  }));
23
29
  };
@@ -12,18 +12,24 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  const DTableSubDropdownMenu = _ref => {
13
13
  let {
14
14
  className,
15
+ container,
16
+ style,
15
17
  menuProps,
16
18
  children
17
19
  } = _ref;
20
+ let customMenuProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, menuProps), {}, {
21
+ container,
22
+ style
23
+ });
18
24
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableDropdownMenu.default, {
19
25
  className: (0, _classnames.default)('dtable-sub-dropdown-menu', className),
20
- menuProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, menuProps), {}, {
26
+ menuProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, customMenuProps), {}, {
21
27
  modifiers: [{
22
28
  name: 'offset',
23
29
  options: {
24
30
  offset: [-8, -1]
25
31
  }
26
- }, ...((menuProps === null || menuProps === void 0 ? void 0 : menuProps.modifiers) || [])]
32
+ }, ...((customMenuProps === null || customMenuProps === void 0 ? void 0 : customMenuProps.modifiers) || [])]
27
33
  }),
28
34
  children: children
29
35
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.117-beta.2",
3
+ "version": "6.0.117-beta.3",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.8",