Skip to content

拖动条显示多了 #100

@gamefriends

Description

@gamefriends

我实际给了2个子元素,给我1个split-bar就可以了,但是给了2个,下面的那个bar不能控制,很难看。
另外,有办法自定义bar的icon吗?

image

<Split mode={'vertical'} style={{height: '300px', overflow: 'hidden'}}>
  <div style={{ height: '50%', overflow: 'auto' }}>
    By dragging 'draggable' surface you can change size of the first pane. The first pane keeps then its size while the second pane is resized by browser window. By default it is the left pane for 'vertical' SplitPane and the top pane for 'horizontal' SplitPane. If you want to keep size of the second pane and let the first pane to shrink or grow by browser window dimensions, set SplitPane prop primary to second. In case of 'horizontal' SplitPane the height of bottom pane remains the same.
  </div>
  <div style={{ height: '50%', overflow: 'auto' }}>
    By dragging 'draggable' surface you can change size of the first pane. The first pane keeps then its size while the second pane is resized by browser window. By default it is the left pane for 'vertical' SplitPane and the top pane for 'horizontal' SplitPane. If you want to keep size of the second pane and let the first pane to shrink or grow by browser window dimensions, set SplitPane prop primary to second. In case of 'horizontal' SplitPane the height of bottom pane remains the same.
  </div>
</Split>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions