Skip to Content
组件Clear

Clear

Clear 会把自己的区域填成空白。

Clear
Clear 终端效果图
Clear 的终端效果图

最小示例

let overlay = Box::column() .child( Clear::new() .layout(Layout { width: Length::Fill, height: Length::Fixed(2) }) .build() ) .child(Pane::new().title("Modal").build()) .build();

什么时候用

  • 你在做 overlay 或 modal
  • 你不想让旧内容透出来
Last updated on