feat(DropdownItem): add lazy-render prop (#6454)

This commit is contained in:
neverland
2020-06-03 20:49:26 +08:00
committed by GitHub
parent 97541eedfa
commit 118910c2c6
3 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -25,6 +25,10 @@ export default createComponent({
type: Array,
default: () => [],
},
lazyRender: {
type: Boolean,
default: true,
},
},
data() {
@@ -155,8 +159,9 @@ export default createComponent({
class={bem('content')}
position={direction === 'down' ? 'top' : 'bottom'}
duration={this.transition ? duration : 0}
closeOnClickOverlay={closeOnClickOverlay}
lazyRender={this.lazyRender}
overlayStyle={{ position: 'absolute' }}
closeOnClickOverlay={closeOnClickOverlay}
onOpen={this.onOpen}
onClose={this.onClose}
onOpened={this.onOpened}