feat: update dropdown

pull/1790/head
tangjinzhou 2020-02-14 14:43:01 +08:00
parent 1848a5e47c
commit b388379bcc
3 changed files with 3 additions and 4 deletions

View File

@ -8,7 +8,7 @@ import { cloneElement } from '../../_util/vnode';
export default {
mixins: [BaseMixin],
props: {
minOverlayWidthMatchTrigger: PropTypes.bool.def(true),
minOverlayWidthMatchTrigger: PropTypes.bool,
prefixCls: PropTypes.string.def('rc-dropdown'),
transitionName: PropTypes.string,
overlayClassName: PropTypes.string.def(''),
@ -198,7 +198,6 @@ export default {
},
ref: 'trigger',
};
const child = this.$slots.default && this.$slots.default[0];
return (
<Trigger {...triggerProps}>
{this.renderChildren()}

View File

@ -7,6 +7,7 @@ import BaseMixin from '../_util/BaseMixin';
import { getListeners } from '../_util/props-util';
export default {
name: 'VCTriggerPopup',
mixins: [BaseMixin],
props: {
visible: PropTypes.bool,
@ -184,7 +185,6 @@ export default {
} else if (stretch.indexOf('minWidth') !== -1) {
sizeStyle.minWidth = typeof targetWidth === 'number' ? `${targetWidth}px` : targetWidth;
}
// Delay force align to makes ui smooth
if (!stretchChecked) {
// sizeStyle.visibility = 'hidden'

View File

@ -184,7 +184,7 @@
"babel-runtime": "6.x",
"classnames": "^2.2.5",
"component-classes": "^1.2.6",
"dom-align": "^1.7.0",
"dom-align": "^1.10.4",
"dom-closest": "^0.2.0",
"dom-scroll-into-view": "^2.0.0",
"enquire.js": "^2.1.6",