最近在项目中需要实现一个 列表弹框,需要复用,自定义内容大致内容一致,如图
其中的按钮操作也是只需要 当前条数据的id
所以想到了可以实现一个简单的组件控制,所有的数据展示即可
首先弹框使用了 ele 的弹框组件 和 分页控件
<el-dialog class="crudDialog" :close-on-click-modal="false" :visible.sync="isOpen" width="800px" append-to-body>
<template slot="title">
<span>跟踪记录</span>
<el-button class="titBtn" size="mini" type="primary">添加</el-button>
</template>
<template slot="footer">
<el-pagination
:current-page="