@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.
- package/dist/kdesign.css +1 -1
- package/dist/kdesign.js +3 -2
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +1 -1
- package/dist/kdesign.min.js +2 -2
- package/dist/kdesign.min.js.map +1 -1
- package/es/dropdown/dropdown.js +2 -1
- package/lib/dropdown/dropdown.js +2 -1
- package/package.json +1 -1
package/es/dropdown/dropdown.js
CHANGED
|
@@ -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
|
});
|
package/lib/dropdown/dropdown.js
CHANGED
|
@@ -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
|
});
|