<tap-swipeout>

像 iOS 一样水平滑动列表项来显示操作,操作放在 start 或 end 插槽中。 设置 enable-long-drag 后,拖得足够远会触发最外侧的操作并触发 long-drag 事件, danger 插槽中的元素放在末尾,长拖时会扩展到整个宽度。

Example

API

Shadow DOM; Extends GemElement

Static Properties

Property Type
activeSwipeout TapSwipeoutElement | undefined

Instance Properties

Property(Attribute) Reactive Type
disabled(disabled) Yes boolean
enableLongDrag(enable-long-drag) Yes boolean
threshold(threshold) Yes number
change Emitter<SwipeoutSide | null>
longDrag Emitter<SwipeoutSide>
open (side?: SwipeoutSide) => Promise<void> | undefined
close () => Promise<void>
toggle (side?: SwipeoutSide) => Promise<void> | undefined
dismiss () => Promise<void>

Other

Type Value
Event change, long-drag
Slot start, end, content, danger
CSS State opened