We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { KeepAlive } from '@umijs/max'; import { Image, Select } from 'antd'; import { useState } from 'react'; const PageTest = () => { const [count, setCount] = useState(); return ( <div style={{ margin: 40 }}> <Select value={count} options={[ { value: '1', label: '选中1' }, { value: '2', label: '选中2' }, { value: '3', label: '选中3' }, { value: '4', label: '选中4' } ]} onChange={(value) => { console.log('onChange', value); setCount(value); }} /> <p> {count} </p> <Image height={300} width={500} src={'https://copyright.bdstatic.com/vcg/creative/cc9c744cf9f7c864889c563cbdeddce6.jpg@h_1280'} /> </div> ); }; export default () => <KeepAlive name="test-keepalive"><PageTest /></KeepAlive>;
The text was updated successfully, but these errors were encountered:
添加autoFreeze={false}解决了 参考#225
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: