Skip to content

Wallet Card ​

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

预览 ​

0x71…c924
$2,480.50
+$48.12

用法 ​

vue
<script setup lang="ts">
import { ref } from 'vue'
import { WalletCard } from 'beui-vue'
const action = ref('')
const accounts = [{id:'main',name:'Main wallet',address:'0x71…c924'},{id:'studio',name:'Studio wallet',address:'0x42…5a12'}]
</script>
<template><div class="be-block-stack"><WalletCard :accounts="accounts" :balance="2480.5" :default-change="48.12" :search-recent="['Design team']" has-notifications @send="action='Send'" @deposit="action='Deposit'" @buy="action='Buy'" @swap="action='Swap'" @notifications="action='Notifications'" @search-submit="action=$event" /><output>{{ action }}</output></div></template>

API ​

accounts、v-model:accountId 与 balance 展示账户。可隐藏余额、搜索最近使用内容,并监听 @send、@deposit、@swap、@buy。

还原验收 ​

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