@kdcloudjs/kdesign 1.8.31 → 1.8.32

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.
@@ -32,6 +32,7 @@ var Dropdown = React.forwardRef(function (props, ref) {
32
32
  defaultVisible = allProps.defaultVisible,
33
33
  onVisibleChange = allProps.onVisibleChange,
34
34
  trigger = allProps.trigger,
35
+ placement = allProps.placement,
35
36
  customPrefixcls = allProps.prefixCls,
36
37
  menuAnimation = allProps.menuAnimation,
37
38
  popperStyle = allProps.popperStyle;
@@ -134,7 +135,7 @@ var Dropdown = React.forwardRef(function (props, ref) {
134
135
  animation: 'none'
135
136
  }, popperStyle),
136
137
  onVisibleChange: handleVisibleChange,
137
- placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft'
138
+ placement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft')
138
139
  });
139
140
  return usePopper(child, menuElement, popperProps);
140
141
  });
@@ -44,6 +44,7 @@ var Dropdown = React.forwardRef(function (props, ref) {
44
44
  defaultVisible = allProps.defaultVisible,
45
45
  onVisibleChange = allProps.onVisibleChange,
46
46
  trigger = allProps.trigger,
47
+ placement = allProps.placement,
47
48
  customPrefixcls = allProps.prefixCls,
48
49
  menuAnimation = allProps.menuAnimation,
49
50
  popperStyle = allProps.popperStyle;
@@ -146,7 +147,7 @@ var Dropdown = React.forwardRef(function (props, ref) {
146
147
  animation: 'none'
147
148
  }, popperStyle),
148
149
  onVisibleChange: handleVisibleChange,
149
- placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft'
150
+ placement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft')
150
151
  });
151
152
  return (0, _usePopper.default)(child, menuElement, popperProps);
152
153
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.8.31",
3
+ "version": "1.8.32",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [