首页
友链
壁纸
留言
今日热榜
更多
关于
时光
推荐
精品流量卡
Search
1
都二十多年了,你的梦为什么还没碎!
57,100 阅读
2
2022年5个好用的 BT/ 磁力链接下载工具推荐 |Windows 、安卓系统
37,468 阅读
3
nps内网穿透实现外网访问树莓派
32,438 阅读
4
实践利用宝塔建emlog个人博客-超详细【原创】
26,142 阅读
5
Typecho-Joe-Theme主题帮助文档
24,677 阅读
闲杂乱码
Python
网站源码
微信小程序
娱乐分享
Is相册
软件工具
登录
Search
标签搜索
PHP
HTML
API
Javascript
源码
JS
Vue
Github
CloudFlare
接口
函数
SQL
ASP.NET
MVC
EF
T4模板
后台管理
CDN
微信小程序
MAC
韩小韩
累计撰写
262
篇文章
累计收到
1,311
条评论
首页
栏目
闲杂乱码
Python
网站源码
微信小程序
娱乐分享
Is相册
软件工具
页面
友链
壁纸
留言
今日热榜
关于
时光
推荐
精品流量卡
搜索到
1
篇与
Ant Design.
的结果
2023-07-29
Ant Design Vue 4.0 a-modal弹窗组件封装
父组件(部分)<template> <div class="main"> <a-button type="primary" ghost @click="dialogPanelStatus.signIngInfoStatus = true" >签约信息</a-button> </div> <!-- 签约信息 --> <SigningInfo :signIngInfoStatus="dialogPanelStatus.signIngInfoStatus" :walletData="walletData" @closeDialog="closeDialog" /> </template> <script setup lang="ts"> import SigningInfo from '@/components/Income/SigningInfo.vue'; // DIalog弹窗状态 const dialogPanelStatus = reactive<DialogPanelStatus>({ signIngInfoStatus: false }); // 数据重载 const getMyWalletFn = ()=>{ // 数据重载 } // 关闭弹窗 const closeDialog = (k: keyof DialogPanelStatus, rest: boolean) => { dialogPanelStatus[k] = false; rest && getMyWalletFn(true); }; </script> <style lang="less" scoped> @import 'Income.less'; </style>弹窗子组件<template> <a-modal :open="visible" title="弹框" :footer="null" destroyOnClose :maskClosable="false" @cancel="closeDialogFn(false)"> <div class="zb-info"> <a-card size="small" hoverable> <p>真实姓名:{{ walletData.real_name }}</p> </a-card> <a-card size="small" hoverable> <p>身份证号:{{ walletData.card_number }}</p> </a-card> <a-card size="small" hoverable> <p>支付宝账号:{{ walletData.alipay_account }}</p> </a-card> <a-card size="small" hoverable> <p>支付宝姓名:{{ walletData.alipay_name }}</p> </a-card> </div> </a-modal> </template> <script setup lang="ts"> import { toRefs } from 'vue'; import type { WalletData } from '@/types/index'; const props = withDefaults( defineProps<{ visible: Boolean; walletData: WalletData; }>(), {} ); const { visible, walletData } = toRefs(props); // 关闭弹窗 const emits = defineEmits(['closeDialog']); const closeDialogFn = (rest: boolean = false) => { emits('closeDialog', 'visibleStatus', rest); }; </script> <style lang="less" scoped> @import 'SigningInfo.less'; </style>
2023年07月29日
8,034 阅读
0 评论
0 点赞