Closed pig800509 closed 4 years ago
參考 ant-motion
<Table rowKey="id" columns={columns} dataSource={filterTable} components={{ body: { wrapper: useCallback((cprops: any) => { return ( <TweenOneGroup component="tbody" leave={[ { duration: 250, opacity: 0 }, { height: 0, duration: 200, ease: "easeOutQuad" } ]} appear={false} exclusive {...cprops} /> ); }, []) } }} />
似乎無法顯示出高度的變化, opacity 可正常顯示, ps: 仍然有warning Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
@jljsj33 thanks
Whats the solution to this?
參考 ant-motion
似乎無法顯示出高度的變化, opacity 可正常顯示, ps: 仍然有warning Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?