Skip to content

Commit b388379

Browse files
committed
feat: update dropdown
1 parent 1848a5e commit b388379

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

components/vc-dropdown/src/Dropdown.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { cloneElement } from '../../_util/vnode';
88
export default {
99
mixins: [BaseMixin],
1010
props: {
11-
minOverlayWidthMatchTrigger: PropTypes.bool.def(true),
11+
minOverlayWidthMatchTrigger: PropTypes.bool,
1212
prefixCls: PropTypes.string.def('rc-dropdown'),
1313
transitionName: PropTypes.string,
1414
overlayClassName: PropTypes.string.def(''),
@@ -198,7 +198,6 @@ export default {
198198
},
199199
ref: 'trigger',
200200
};
201-
const child = this.$slots.default && this.$slots.default[0];
202201
return (
203202
<Trigger {...triggerProps}>
204203
{this.renderChildren()}

components/vc-trigger/Popup.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import BaseMixin from '../_util/BaseMixin';
77
import { getListeners } from '../_util/props-util';
88

99
export default {
10+
name: 'VCTriggerPopup',
1011
mixins: [BaseMixin],
1112
props: {
1213
visible: PropTypes.bool,
@@ -184,7 +185,6 @@ export default {
184185
} else if (stretch.indexOf('minWidth') !== -1) {
185186
sizeStyle.minWidth = typeof targetWidth === 'number' ? `${targetWidth}px` : targetWidth;
186187
}
187-
188188
// Delay force align to makes ui smooth
189189
if (!stretchChecked) {
190190
// sizeStyle.visibility = 'hidden'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
"babel-runtime": "6.x",
185185
"classnames": "^2.2.5",
186186
"component-classes": "^1.2.6",
187-
"dom-align": "^1.7.0",
187+
"dom-align": "^1.10.4",
188188
"dom-closest": "^0.2.0",
189189
"dom-scroll-into-view": "^2.0.0",
190190
"enquire.js": "^2.1.6",

0 commit comments

Comments
 (0)