Skip to content

Animated Badge ​

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

预览 ​

用法 ​

vue
<script setup lang="ts">
import { ref } from 'vue'
import { AnimatedBadge } from 'beui-vue'
const complete = ref(false)
</script>
<template><button @click="complete=!complete"><AnimatedBadge :status="complete?'success':'loading'">{{ complete?'已完成':'处理中' }}</AnimatedBadge></button></template>

API ​

status 支持 neutral、info、success、warning、danger、loading。size、pulse、showIcon 和 #icon 控制外观。

还原验收 ​

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