Skip to content

Slide Action Button ​

Vue 已实现 · 还原验收 0/1 · 上游演示 · 固定版本源码

预览 ​

0 次确认

用法 ​

vue
<script setup lang="ts">
import { ref } from 'vue'
import { SlideActionButton } from 'beui-vue'
const count = ref(0)
</script>
<template><SlideActionButton label="滑动以确认" complete-label="已确认" @complete="count++"/><output>{{ count }} 次确认</output></template>

API ​

滑过 threshold(默认 0.82)或按 Enter / Space 触发 @complete。resetDelay 以毫秒计,负值保持完成状态。

上游变体 ​

还原验收 ​

基于 beUI 的独立 Vue 移植,依 MIT 许可证分发。