We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9dcfc1 commit 0eddaa8Copy full SHA for 0eddaa8
packages/taro-components-advanced/src/components/virtual-waterfall/react/wrapper.ts
@@ -21,19 +21,18 @@ function getRenderExpandNodes ({
21
const props: any = {
22
key: id,
23
id,
24
- }
25
- if (!renderExpand) {
26
- props.style = {
+ style: {
27
visibility: 'hidden',
28
height: 100,
29
marginTop: -100,
30
zIndex: -1,
31
}
32
33
- return React.createElement(
34
- renderExpand || innerElement,
35
- props,
36
- )
+ const expands = [renderExpand && React.createElement(renderExpand), React.createElement(innerElement!, props)]
+ if (direction === 'top') {
+ expands.reverse()
+ }
+ return expands
37
38
39
const outerWrapper = React.forwardRef(
0 commit comments