ant-design-vue table实现表格分页与展开效果代码
代码语言:html
所属分类:表格
代码描述:ant-design-vue table实现表格分页与展开效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue@2.6.1.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/antd.1.7.4.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/moment.min.js"></script> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/antd.1.7.4.css"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script> </head> <body> <div id="root"> <a-table :columns="columns" :data-source="data"> <a slot="action" slot-scope="text" href="javascript:;">Delete</a> <p slot="expandedRowRender" slot-scope="record" style="margin: 0"> {{ record.description }} </p> </a-table> </div> <script> const columns = [{ title: 'Name', dataIndex: 'name', key: 'name' }, { title: 'Age', dataIndex: 'age', key: 'age' }, { titl.........完整代码请登录后点击上方下载按钮下载查看
网友评论0