Skip to content
New issue

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

<SplitPane>标签设置defaultSize、minSize和maxSize不起作用 #840

Open
nababy opened this issue Mar 4, 2024 · 0 comments
Open

<SplitPane>标签设置defaultSize、minSize和maxSize不起作用 #840

nababy opened this issue Mar 4, 2024 · 0 comments

Comments

@nababy
Copy link

nababy commented Mar 4, 2024

Describe the

<SplitPane split="vertical" minSize={1000} defaultSize={1000} primary="second" maxSize={1200} size={200}>
    <MyComponet/>                 
    <Layout className={styles.contentInfoWrapper}>
        <MyComponetA />
        <MyComponetB />
    </Layout>
  </SplitPane>

code 如上,也导入了全局样式,react-split-pane 版本 2.0.3,但是设置的初始 defaultSize 不起作用。效果还是 左右布局宽度 1:1 的页面效果,请问一下这是什么原因? 谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant