- 博客(3)
- 收藏
- 关注
原创 vue组件关闭时清除定时器
vue组件关闭时清除定时器mounted() { this.$once('hook:beforeDestroy', () => { if(this.logTimer){ clearInterval(this.logTimer); } }) },..
2021-05-06 14:36:49 293
原创 vue页面实现文本关键字检索,关键字高亮显示及定位功能
vue页面实现文本关键字检索,关键字高亮显示及定位功能实现原理将相应的关键字用标签包裹,添加相应的样式,使用 dom.scrollIntoView() 方法实现定位功能代码html部分<template> <div class="serach-box"> <el-input placeholder="请输入关键字"
2021-05-06 14:32:36 1627 1
转载 el-table表格数据按数字、字母及汉字,分页排序
el-table表格数据按数字、字母及汉字,分页排序排序将数据转成字符串,逐个字符进行比较html部分<template><el-table :data="showTable" @sort-change='sort_change'> <el-table-column label="更新人员" prop="update_author" sortable='custom'>
2021-04-29 17:14:50 1720
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人