我嘗試了 lazyBehavior="unmount"(這是默認設定)。無論如何,當標簽更改時,它不會卸下。
https://codesandbox.io/s/friendly-hugle-jqezs?file=/src/App.tsx
uj5u.com熱心網友回復:
我認為你還缺少:
isLazy={true}
lazyBehavior道具的檔案說:
不活動時選項卡面板內容的惰性行為。僅適用于
isLazy={true}
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/353349.html
上一篇:表單未使用reacthandleSubmit鉤子發布
下一篇:如何在打字稿中正確使用泛型?
