dtable-ui-component 6.0.117-beta.6 → 6.0.117-beta.8

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.
@@ -16,6 +16,7 @@ const DTableDropdownItem = _ref => {
16
16
  className,
17
17
  divider,
18
18
  id,
19
+ toggle,
19
20
  disabled,
20
21
  tooltip,
21
22
  itemProps,
@@ -44,6 +45,9 @@ const DTableDropdownItem = _ref => {
44
45
  if (typeof onClick === 'function') {
45
46
  customItemProps.onClick = onClick;
46
47
  }
48
+ if (typeof toggle === 'boolean') {
49
+ customItemProps.toggle = toggle;
50
+ }
47
51
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.DropdownItem, (0, _objectSpread2.default)((0, _objectSpread2.default)({
48
52
  className: className,
49
53
  disabled: disabled,
@@ -14,6 +14,7 @@ const DTableDropdownMenu = _ref => {
14
14
  className,
15
15
  container,
16
16
  modifiers,
17
+ flip,
17
18
  style,
18
19
  menuProps,
19
20
  children
@@ -28,6 +29,9 @@ const DTableDropdownMenu = _ref => {
28
29
  if (Array.isArray(modifiers)) {
29
30
  customMenuProps.modifiers = modifiers;
30
31
  }
32
+ if (typeof flip === 'boolean') {
33
+ customMenuProps.flip = flip;
34
+ }
31
35
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownMenu, (0, _objectSpread2.default)((0, _objectSpread2.default)({
32
36
  className: (0, _classnames.default)('dtable-dropdown-menu', className)
33
37
  }, customMenuProps), {}, {
@@ -14,6 +14,7 @@ const DTableSubDropdownMenu = _ref => {
14
14
  className,
15
15
  container,
16
16
  modifiers,
17
+ flip,
17
18
  style,
18
19
  menuProps,
19
20
  children
@@ -28,6 +29,9 @@ const DTableSubDropdownMenu = _ref => {
28
29
  if (Array.isArray(modifiers)) {
29
30
  customMenuProps.modifiers = modifiers;
30
31
  }
32
+ if (typeof flip === 'boolean') {
33
+ customMenuProps.flip = flip;
34
+ }
31
35
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableDropdownMenu.default, {
32
36
  className: (0, _classnames.default)('dtable-sub-dropdown-menu', className),
33
37
  menuProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, customMenuProps), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.117-beta.6",
3
+ "version": "6.0.117-beta.8",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.8",