删除index中多余的payment-button导出代码说明和引入

This commit is contained in:
Eamon-meng
2025-08-18 11:30:40 +08:00
parent cc8ef320ae
commit 297dd2c08d

View File

@@ -1,5 +1,4 @@
// 导出支付相关组件 // 导出支付相关组件
export * from './payment-button'
export * from './payment-modal' export * from './payment-modal'
export * from './mobile-payment' export * from './mobile-payment'
export * from './desktop-payment' export * from './desktop-payment'
@@ -8,16 +7,6 @@ export * from './desktop-payment'
// composites/ // composites/
// payment/ // payment/
// index.ts # 统一导出 // index.ts # 统一导出
// payment-button.tsx # 支付按钮组件
// payment-modal.tsx # 支付弹窗容器 // payment-modal.tsx # 支付弹窗容器
// mobile-payment.tsx # 移动端支付确认 // mobile-payment.tsx # 移动端支付确认
// desktop-payment.tsx # 桌面端支付确认 // desktop-payment.tsx # 桌面端支付确认
// payment-status.tsx # 支付状态显示
// PaymentButton (点击)
// ├─ 触发 onClick 创建订单
// ├─ 成功后打开 PaymentModal
// │ ├─ MobilePayment (移动端)
// │ └─ DesktopPayment (桌面端)
// └─ 支付成功 → onSuccess 回调
// └─ 父组件执行后续逻辑