xtraderClient/docs/components/DepositDialog.md
2026-02-14 18:59:36 +08:00

31 lines
697 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# DepositDialog.vue
**路径**`src/components/DepositDialog.vue`
## 功能用途
充值弹窗,支持 Transfer Crypto、Connect Exchange 等方式。展示充值地址、网络选择、二维码等。
## Props
| 属性 | 类型 | 说明 |
|------|------|------|
| modelValue | boolean | v-model 控制显隐 |
| balance | string | 当前余额展示 |
## 事件
- `update:modelValue`:关闭时更新
## 使用方式
```vue
<DepositDialog v-model="depositDialogOpen" :balance="portfolioBalance" />
```
## 扩展方式
1. **真实充值**:对接链上或托管充值接口
2. **多链**:扩展 networks 列表,支持更多网络
3. **历史记录**:展示最近充值记录