ant-design-mobile icon indicating copy to clipboard operation
ant-design-mobile copied to clipboard

提议: FloatingPanel新增header,footer属性

Open ryozm opened this issue 3 years ago • 3 comments

Version of antd-mobile

5.0.0-rc.5

What is this feature about?

属性 说明 类型 默认值
header 顶部区域 React.ReactNode -
footer 底部区域 React.ReactNode -

ryozm avatar Dec 15 '21 08:12 ryozm

可以具体说一下这两个属性代表的是界面上的哪个区域么?

以及,增加这两个属性的必要性是什么呢?

awmleer avatar Dec 16 '21 03:12 awmleer

可以具体说一下这两个属性代表的是界面上的哪个区域么?

以及,增加这两个属性的必要性是什么呢?

@awmleer https://github.com/stipsan/react-spring-bottom-sheet 类似这个库的header和footer属性

header的使用场景像高德地图APP首页的搜索框是固定在顶部的

https://react-spring-bottom-sheet.cocody.dev/fixtures/sticky footer可以像这个示例链接里那样放置关闭的按钮

ryozm avatar Dec 16 '21 06:12 ryozm

@ryozm 收到,感谢~

我们考虑一下哈,可能要过段时间才能回复,最近有些其他的工作需要集中精力处理

awmleer avatar Dec 16 '21 09:12 awmleer