![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
my小新
这个作者很懒,什么都没留下…
展开
-
vue keep-alive保持页面状态
在开发中,不可避免,有些时候会需要保存页面状态,比如列表到详情,从详情返回时,比如tab列表切换时,等等, 这时就要用到keep-alive: 上代码: 现在 { path: 'XX/XX', component: () => import('XX/XX'), meta: { title: 'XXXX', keepAlive: true // 需要被缓存 } }, 配合路由 <transition name="el-f.原创 2020-05-21 17:46:42 · 1179 阅读 · 0 评论 -
vue+elementui表格拖拽
先安装:npm install sortablejs --save 代码: <template> <divclass="hibe"> <el-table:data="tableData"row-key="id"> <el-table-column v-for="(item,index)inco...转载 2020-05-08 16:51:39 · 1146 阅读 · 0 评论