nutui-react icon indicating copy to clipboard operation
nutui-react copied to clipboard

<Swipe /> 增加 Action 直接展示模式,即在平板下,直接展示。

Open gaollg opened this issue 2 years ago • 2 comments

What problem does this feature solve?(这个功能解决的问题)

AppStore 上架必须兼容平板,在手机下使用滑动出现菜单,在平板上期望,直接将菜单展示出来,方便用户操作,而又没有滚动挡住任何内容。

What does the proposed API look like?(期望的 API)

//滑动显示|隐藏|显示,三种模式即可。至于响应用式,则由用户去适配。
<Swipe rightActionDisplay={"swipe"|"hidden"|"show"} leftActionDisplay="swipe"/>
//或者滑动方式,在现有的滚动类型下,再增加修改宽度/覆盖其上方式。
<Swipe actionType={"scroll"|"width"|"overview"} />

gaollg avatar May 12 '23 14:05 gaollg

能帮忙发一个示意图吗

xiaoyatong avatar May 16 '23 03:05 xiaoyatong

image

scroll: 就是现在支持的模式。 width: 适合在大屏上展示,如平板,无需滑动即可直接操作,优点是信息完整展示,缺点是右侧有信息,可能会挤压界面。 overview: 把操作菜单侧滑出来,是 width 挤压界面的缺点修复。

gaollg avatar May 21 '23 01:05 gaollg