Skip to main content

FilterTabs

Function FilterTabs 

Source
pub fn FilterTabs(_: FilterTabsProps) -> Element
Expand description

筛选选项卡组件。

用于切换不同的视图或筛选条件(例如:全部、待审核、已通过等)。 具备高级的平滑滑动底部指示器动画。

Props:

  • items:选项卡列表,每一项为 (value, label)
  • active_value:当前选中的值
  • on_change:选项卡切换时的回调

§Props

For details, see the props struct definition.