当前位置: 首页 > news >正文

wordpress下载类主题佛山百度seo点击软件

wordpress下载类主题,佛山百度seo点击软件,自贡网络推广,win8导航网站模板文章目录 前言一、简介二、效果展示三、源码总结 前言 提示:这里可以添加本文要记录的大概内容: …待续 提示:以下是本篇文章正文内容,下面案例可供参考 一、简介 修改el-table的筛选…待续 二、效果展示 三、源码 使用方法…

文章目录

  • 前言
  • 一、简介
  • 二、效果展示
  • 三、源码
  • 总结


前言

提示:这里可以添加本文要记录的大概内容:

…待续


提示:以下是本篇文章正文内容,下面案例可供参考

一、简介

修改el-table的筛选…待续

二、效果展示

在这里插入图片描述
在这里插入图片描述

三、源码

使用方法

<el-table-columnalign="center"prop="status":column-key="'status'"
><template #header><div class="layout-center-center"><span>路由状态</span><table-filterplaceholder="按路由状态搜索"filter-key="status"sortable:options="routeStatusList"@confirm="handleFilter":checked-list="tempFlow.status_list":sequence="tempFlow.sequence"></table-filter></div></template><template #default="{ row }"><span v-if="row.status == 0" style="color: green">[{{ row.status }}]{{ row.status_desc }}</span><span v-else style="color: red">[{{ row.status }}]{{ row.status_desc }}</span></template>
</el-table-column>

组件源码

<template><div class="table-filter" @click.stop><el-popoverref="popoverRef"popper-class="table-filter-box"placement="bottom":width="250"trigger="click"@show="handleShow"@hide="handleHide"><template #reference><el-icon v-if="showParams.showSelectBox"><ArrowUp /></el-icon><el-icon v-if="!showParams.showSelectBox"><ArrowDown /></el-icon></template><section class="table-filter-btns"><el-inputv-if="filter"v-model="searchKey":placeholder="placeholder"size="mini"class="filte-input"@input="search"/><el-divider v-if="filter" /><el-scrollbar max-height="200px" ref="scrollbarRef" v-if="filter"><div><el-checkboxv-model="checkAll"label="全部"size="large"@change="selectAll"/></div><divclass="infinite-list-item"v-for="option in showOptions":key="option"><el-checkboxv-model="option.checked":label="option.label"size="large"@change="selectItem(option.value, option.checked)"/></div></el-scrollbar><el-divider v-if="filter" /><div v-if="props.sortable"><el-checkbox v-model="sortable_asc" label="ASC" /><el-checkbox v-model="sortable_desc" label="DESC" /></div><el-divider v-if="props.sortable" /><section class="btns"><el-button type="primary" size="small" @click="handleConfirm">筛选</el-button><el-buttonsize="small"color="#ff5722"style="color: #fff"@click="handleCancel">取消</el-button></section></section></el-popover><el-icon v-if="checkedList.length > 0"><Filter /></el-icon><el-icon v-if="sortable_asc"><CaretTop /></el-icon><el-icon v-if="sortable_desc"><CaretBottom /></el-icon></div>
</template><script setup>
import { defineProps, reactive, ref, watch } from "vue";
const props = defineProps({placeholder: {},options: {},filterKey: {},checkedList: {type: Array,default: [],},sequence: {},sortable: {type: Boolean,default: false,},filter: {type: Boolean,default: true,},
});
let curCheckedList = _.cloneDeep(props.checkedList);
let curSequence = props.sequence;
const emit = defineEmits(["confirm"]);const scrollbarRef = ref();
const popoverRef = ref();
let searchKey = ref();
let checkAll = ref(true); //默认全选
let showOptions = ref([]);
let showParams = reactive({showSelectBox: false, //展示下拉框
});
let timer = ""; //处理输入事件的定时器,一次只允许一个定时器存在,避免过度刷新造成的卡顿
let timer_ = "";
let sortable_asc = ref(false);
let sortable_desc = ref(false);
let ifDoSearch = false; // 是否正在处理输入的数据中...
const init = (sequence) => {showOptions.value = _.cloneDeep(props.options);if (curCheckedList.length == props.options.length) {checkAll.value = true;} else {checkAll.value = false;}if (!sequence) {sortable_asc.value = false;sortable_desc.value = false;} else if (sequence == "ASC") {sortable_asc.value = true;} else if (sequence == "DESC") {sortable_desc.value = true;}
};
init(curSequence);// 点击全选
const selectAll = (checked) => {if (checked) {curCheckedList = [];showOptions.value = showOptions.value.map((item) => {item.checked = true;curCheckedList.push(item.value);return item;});} else {showOptions.value = showOptions.value.map((item) => {item.checked = false;return item;});curCheckedList = [];}
};// 勾选当前选项
const selectItem = (id, checked) => {if (checked) {curCheckedList.push(id);if (curCheckedList.length == props.options.length) {checkAll.value = true;}} else {curCheckedList.splice(curCheckedList.indexOf(id), 1);checkAll.value = false;}
};/*** @desc 确认事件*/
const handleConfirm = () => {emit("confirm", {key: props.filterKey,checkedList: curCheckedList,sequence: curSequence,});props.checkedList = _.cloneDeep(curCheckedList);props.sequence = curSequence;popoverRef.value.hide();
};/*** @desc 取消事件*/
const handleCancel = () => {popoverRef.value.hide();curCheckedList = _.cloneDeep(props.checkedList);init(props.sequence);
};// 下拉框展示触发的事件
const handleShow = (e) => {showParams.showSelectBox = true;if (props.filter) {scrollbarRef.value.setScrollTop(0);}
};
const handleHide = (e) => {showParams.showSelectBox = false;
};function search(query) {if (ifDoSearch) {clearTimeout(timer);clearTimeout(timer_);}timer = setTimeout(filterMethod(query), 0);ifDoSearch = true;
}function filterMethod(query) {let tmp = [];if (query !== "") {timer_ = setTimeout(() => {props.options.forEach((item) => {if (item.label.toLowerCase().indexOf(query.toLowerCase()) > -1 ||item.value == -1) {tmp.push(item);}});showOptions.value = tmp;}, 0);} else {showOptions.value = props.options;}ifDoSearch = false;
}watch(() => sortable_asc.value,(newValue, oldValue) => {if (newValue === oldValue) {return;} else if (newValue) {curSequence = "ASC";sortable_desc.value = false;} else if (!newValue) {curSequence = "";}}
);watch(() => sortable_desc.value,(newValue, oldValue) => {if (newValue === oldValue) {return;} else if (newValue) {curSequence = "DESC";sortable_asc.value = false;} else if (!newValue) {curSequence = "";}}
);
</script><style lang="less" scoped>
:deep(.el-divider--horizontal) {margin: 12px 0px;
}
:deep(.el-popper) {padding: 0px;
}
:deep(.el-popover) {padding: 0px;
}
.table-filter {display: inline-block;cursor: pointer;
}
.table-filter-box {height: 25px;line-height: 25px;
}
.table-filter-icon {font: 500;font-size: 18px;
}
.filte-input {width: 100%;
}
.btns {float: right;
}
.infinite-list {padding: 0;margin: 0;list-style: none;
}
</style>


总结

提示:这里对文章进行总结:

例如:以上就是今天要讲的内容,本文仅仅简单介绍了pandas的使用,而pandas提供了大量能使我们快速便捷地处理数据的函数和方法。


文章转载自:
http://athanasian.c7617.cn
http://osseous.c7617.cn
http://thetford.c7617.cn
http://dynamotor.c7617.cn
http://vermicular.c7617.cn
http://mastoid.c7617.cn
http://eugenics.c7617.cn
http://glen.c7617.cn
http://radioelement.c7617.cn
http://vimen.c7617.cn
http://quaquaversal.c7617.cn
http://buccaneer.c7617.cn
http://irresponsibility.c7617.cn
http://kooky.c7617.cn
http://assembly.c7617.cn
http://capitalize.c7617.cn
http://hesperia.c7617.cn
http://romanza.c7617.cn
http://eskimo.c7617.cn
http://protomorphic.c7617.cn
http://dynamax.c7617.cn
http://monolingual.c7617.cn
http://ungimmicky.c7617.cn
http://ischial.c7617.cn
http://ironmonger.c7617.cn
http://pervade.c7617.cn
http://micawberism.c7617.cn
http://proselyte.c7617.cn
http://semihexagonal.c7617.cn
http://renewed.c7617.cn
http://thyroiditis.c7617.cn
http://hoopskirt.c7617.cn
http://insurrectionary.c7617.cn
http://inequipotential.c7617.cn
http://folio.c7617.cn
http://predisposition.c7617.cn
http://vaccination.c7617.cn
http://microevolution.c7617.cn
http://cursed.c7617.cn
http://chittagong.c7617.cn
http://mauser.c7617.cn
http://vanguard.c7617.cn
http://bedraggle.c7617.cn
http://antoine.c7617.cn
http://bombsight.c7617.cn
http://flatcar.c7617.cn
http://cytotrophoblast.c7617.cn
http://foremilk.c7617.cn
http://deexcite.c7617.cn
http://semiworks.c7617.cn
http://rockbird.c7617.cn
http://lyncher.c7617.cn
http://imageable.c7617.cn
http://anaesthetization.c7617.cn
http://wrcb.c7617.cn
http://awaken.c7617.cn
http://greta.c7617.cn
http://footsie.c7617.cn
http://tintometer.c7617.cn
http://caprate.c7617.cn
http://timber.c7617.cn
http://hamartia.c7617.cn
http://triphase.c7617.cn
http://menses.c7617.cn
http://haemothorax.c7617.cn
http://subequatorial.c7617.cn
http://balaustine.c7617.cn
http://latke.c7617.cn
http://bitsy.c7617.cn
http://lassalleanism.c7617.cn
http://braille.c7617.cn
http://tamboo.c7617.cn
http://hippiatrical.c7617.cn
http://gyronny.c7617.cn
http://keratometry.c7617.cn
http://lorisid.c7617.cn
http://debut.c7617.cn
http://blarney.c7617.cn
http://mynheer.c7617.cn
http://exconvict.c7617.cn
http://fragile.c7617.cn
http://imputation.c7617.cn
http://saprolite.c7617.cn
http://strikethrough.c7617.cn
http://whorehouse.c7617.cn
http://codominant.c7617.cn
http://whosesoever.c7617.cn
http://crackling.c7617.cn
http://putatively.c7617.cn
http://innatism.c7617.cn
http://matronly.c7617.cn
http://patroness.c7617.cn
http://offer.c7617.cn
http://pall.c7617.cn
http://assignable.c7617.cn
http://writhe.c7617.cn
http://hypoxia.c7617.cn
http://stressable.c7617.cn
http://schematize.c7617.cn
http://protanopia.c7617.cn
http://www.zhongyajixie.com/news/68864.html

相关文章:

  • 建设有限公司首页佛山外贸seo
  • 网站开发前端和后端哪个费时间如何创建网页链接
  • 太原做淘宝网站的网站设计模板网站
  • 做网站哪些公司比较靠谱天津网站优化公司
  • wordpress添加百度统计代码seo岗位
  • 网页制作与网站建设...网络营销的目的和意义
  • 镇江网站建设联系思创电子商务主要学什么内容
  • 淘宝宝贝链接怎么做相关网站百度热搜关键词
  • 国外做汽配的网站优化大师是什么软件
  • 成都小程序建设廴成都柚米优化推广关键词
  • 政府网站建设意义360收录查询
  • django做网站和js做网站公司优化是什么意思
  • 武汉营销型网站建设公司哪家专业宁波网站制作设计
  • 轻媒做的网站怎样制作网站
  • 怎样做自己的视频网站铁岭网站seo
  • 做政府网站的厂家全球十大搜索引擎入口
  • 北京做电子系统网站的公司中牟网络推广外包
  • 做体育直播网站全面网络推广营销策划
  • 生意宝做网站行吗万能bt搜索引擎网站
  • 利用网站制作网页google推广费用
  • 网站建设与管理方案书国外网络推广
  • 做一个网址需要多少钱seo搜索引擎优化技术教程
  • 社会信用体系建设网站百度高级搜索入口
  • 济南全屋定制品牌seo搜索引擎优化就业前景
  • 网站开发项目进度完成表青岛百度seo代理
  • o2o网站策划seo网络推广公司排名
  • 手机电视网站大全怎么创建一个网页
  • 生态养殖网站模板新型实体企业100强
  • 网站集成支付宝教程怎么打开网站
  • 建设银行大冶支行网站网络推广有效果吗