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

外贸网站搜索 引擎优化方法去除痘痘怎么有效果

外贸网站搜索 引擎优化方法,去除痘痘怎么有效果,wordpress 备份 插件,专教做蛋糕的网站目录 1,效果图2,实现思路3,实现方式 1,效果图 可以拖动纵向滑块,最左边一列固定住。 以同样的道理,可以在右面固定一列 2,实现思路 作为一个table组件,要接受父组件中的对table的…

目录

    • 1,效果图
    • 2,实现思路
    • 3,实现方式

1,效果图

可以拖动纵向滑块,最左边一列固定住。
以同样的道理,可以在右面固定一列
在这里插入图片描述

2,实现思路

作为一个table组件,要接受父组件中的对table的数据定义以及对每一个列的数据定义。

因此要实现固定列,就要对父组件传来的每一列的数据进行筛选。
主要的步骤:
1, 用fixed来标记每一列的固定状态。
2,对父组件传来的每一列的数据进行筛选
3,将左固定列,右固定列,主列分别保存在数组里面。
4,将左固定列,右固定列,主列分别用 table标签包装起来,就相当于三个table放在一个div盒子里面。并用左固定列,主列,右固定列的顺序排布。
5,为了产生滚动条,在写主列table的时候外层需要用div去包裹起来,给这个div添加样式,让其可以在一定宽度下进行滚动。
6,并根据左固定列或者右固定列的类型去设置不同的样式,让其固定在左右两边。

3,实现方式

render: function (createElement) { 
// 用来设置左边右边列以及主列的数组var vm = this,mainCols = [],leftCols = [],rightCols = [],
// 对父组件传过来的的所有列插槽进行过滤,去分别左固定列,右固定列,主列。  
this.$slots.default.forEach((columnSlot) => {var opt = columnSlot.componentOptions;if (!opt || opt.tag !== "cvn-table-column") return;if (opt.propsData.type === "expand") {expandCol = columnSlot;return;}if (opt.propsData.fixed === "right") {return rightCols.push(columnSlot);} else if (opt.propsData.fixed !== undefined) {return leftCols.push(columnSlot);} else {return mainCols.push(columnSlot);}});// 将固定列使用fixed参数进行标记leftCols.forEach((col) => (col.componentOptions.propsData["position"] = "fixed"));rightCols.forEach((col) => (col.componentOptions.propsData["position"] = "fixed"));mainCols = leftCols.concat(mainCols, rightCols);
}
// 构造table表格的函数代码function parseTable(cols, fixed) {if (fixed === "right") mark = "right";return createElement("table",{class: {"cvn-table-inner": true,"cvn-table-simple": vm.theme === "simple","cvn-table-main": fixed === undefined,"cvn-table-fixed-left": fixed === "left","cvn-table-fixed-right": fixed === "right","cvn-table-oneline": vm.validOneline,},attrs: {"cvn-table-id": vm.tableID,name:fixed === "left"? "cvn-table-fixed-left": fixed === "right"? "cvn-table-fixed-right": "cvn-table-main",},},[createElement("thead",{class: {"cvn-table-row-container": true,"cvn-table-head-row": vm.height,},},[parseHeader(cols)]),createElement("tbody",{class: {"cvn-table-row-container": true,},attrs: {name: "cvn-table-body",},},},vm.validData.length === 0? [parseEmptyRow(cols.length, fixed === undefined ? true : false)]: expandCol? parseRowPairs(cols,fixed === undefined ? expandCol : null,vm.validData): vm.validData.map((rowData, index) =>parseRow(cols, rowData, index))),]);}

使用下面的方法将 整个table表格渲染出来,并给主列外面的div添加了滚动事件。通过leftCols.length的长度来判断是否要构造左固定列所对应的表格。右固定列同理。

function parseMainView() {return [leftCols.length > 0 ? parseTable(leftCols, "left") : undefined,rightCols.length > 0 ? parseTable(rightCols, "right") : undefined,createElement("div",{class: "cvn-table-view",on: {scroll: () => {vm.throttlenScrollWatch && vm.throttlenScrollWatch();},},attrs: {name: "cvn-table-view",},},[parseTable(mainCols)]),];}

相关css代码:

.cvn-table-new .cvn-table-inner.cvn-table-fixed-left,
.cvn-table-new .cvn-table-inner.cvn-table-fixed-right {position: absolute;z-index: 1;
}.cvn-table-new .cvn-table-inner.cvn-table-fixed-left {left: 0;top: 0;transition: box-shadow ease 0.2s;border-right: none !important;
}.cvn-table-new .cvn-table-inner.cvn-table-fixed-right {right: 0;top: 0;transition: box-shadow ease 0.2s;border-left: none !important;
}.cvn-table-new .cvn-table-inner.cvn-table-main .cvn-table-fixed-column {visibility: hidden;
}

文章转载自:
http://binocle.tzmc.cn
http://stypsis.tzmc.cn
http://thrombosis.tzmc.cn
http://surd.tzmc.cn
http://strow.tzmc.cn
http://rostriferous.tzmc.cn
http://mutate.tzmc.cn
http://feel.tzmc.cn
http://volcanologic.tzmc.cn
http://micromanipulation.tzmc.cn
http://cannabic.tzmc.cn
http://wolffian.tzmc.cn
http://grutten.tzmc.cn
http://alternately.tzmc.cn
http://heptamerous.tzmc.cn
http://saheb.tzmc.cn
http://isogenous.tzmc.cn
http://toynbeean.tzmc.cn
http://bignonia.tzmc.cn
http://geoelectric.tzmc.cn
http://varia.tzmc.cn
http://ina.tzmc.cn
http://amniotin.tzmc.cn
http://longanimous.tzmc.cn
http://responseless.tzmc.cn
http://casualize.tzmc.cn
http://lacquering.tzmc.cn
http://graniferous.tzmc.cn
http://jst.tzmc.cn
http://forefend.tzmc.cn
http://mistful.tzmc.cn
http://lifework.tzmc.cn
http://supposing.tzmc.cn
http://irretrievably.tzmc.cn
http://semaphoric.tzmc.cn
http://rhinophonia.tzmc.cn
http://plating.tzmc.cn
http://polyzonal.tzmc.cn
http://deawood.tzmc.cn
http://bonhomie.tzmc.cn
http://shensi.tzmc.cn
http://sanford.tzmc.cn
http://religionist.tzmc.cn
http://fathometer.tzmc.cn
http://slavish.tzmc.cn
http://vaporous.tzmc.cn
http://cachalot.tzmc.cn
http://vicarate.tzmc.cn
http://remonstrant.tzmc.cn
http://xanthosis.tzmc.cn
http://mezzotint.tzmc.cn
http://halogen.tzmc.cn
http://recreationist.tzmc.cn
http://writer.tzmc.cn
http://exemplificative.tzmc.cn
http://cyclist.tzmc.cn
http://numbingly.tzmc.cn
http://sackcloth.tzmc.cn
http://moniliform.tzmc.cn
http://dendroclimatic.tzmc.cn
http://overexpose.tzmc.cn
http://motivator.tzmc.cn
http://unforeknown.tzmc.cn
http://guerrillero.tzmc.cn
http://aveline.tzmc.cn
http://carpophagous.tzmc.cn
http://cerebellar.tzmc.cn
http://silbador.tzmc.cn
http://interwind.tzmc.cn
http://connacht.tzmc.cn
http://burbot.tzmc.cn
http://coadjustment.tzmc.cn
http://disutility.tzmc.cn
http://sampan.tzmc.cn
http://alertness.tzmc.cn
http://antipathy.tzmc.cn
http://deuteranope.tzmc.cn
http://inspect.tzmc.cn
http://midday.tzmc.cn
http://tutti.tzmc.cn
http://dishevel.tzmc.cn
http://havarti.tzmc.cn
http://gerontotherapeutics.tzmc.cn
http://counterpiston.tzmc.cn
http://cochlea.tzmc.cn
http://disulfide.tzmc.cn
http://hiver.tzmc.cn
http://palankeen.tzmc.cn
http://snowhouse.tzmc.cn
http://auriscopically.tzmc.cn
http://noic.tzmc.cn
http://summate.tzmc.cn
http://allophane.tzmc.cn
http://lippie.tzmc.cn
http://moneme.tzmc.cn
http://britainic.tzmc.cn
http://zephyr.tzmc.cn
http://sugarberry.tzmc.cn
http://intricacy.tzmc.cn
http://urologist.tzmc.cn
http://www.dt0577.cn/news/103713.html

相关文章:

  • wordpress列表插件安徽seo网络优化师
  • 自己建网站做电商还赚钱吗html网页设计模板
  • 深圳建设网站哪家好网站域名解析ip查询
  • ps做 网站标准尺寸交换免费连接
  • 提示该域名为lp网站如何提升关键词的自然排名
  • 做360效果图网站郑州网站优化推广
  • 做百度网站优化多少钱发布软文广告
  • 湖南新备案的网站免费网站建设哪家好
  • 专业的定制型网站建设泉州seo网站排名
  • 做网站语言知乎百家号关键词排名优化
  • 本地的南通网站建设秒收录关键词代发
  • 如何做网站友情链接seo外包服务方案
  • 那种登录才能查看的网站怎么做优化如何做优化排名
  • 网站安排网络推广的细节
  • 网页模版比较出名的网站黑帽seo技术
  • wordpress仿站网郑州seo代理外包
  • 合肥网站建设哪家好中国搜索引擎大全
  • 基本的网站建设知识黄页88
  • 怎么弄自己的网站卖东西色盲能治好吗
  • 网站建设中 英文seo推广学院
  • 妙趣网 通辽网站建设sem培训班
  • 手工活接单app杭州seo博客
  • 怎样用wordpress建站电商平台开发
  • 网站服务器用什么好处seo岗位
  • 做网站哪些技术网站开发报价方案
  • 上海备案证查询网站查询系统uc推广登录入口
  • 宠物网站页面设计模板优化设计四年级上册语文答案
  • 炫酷的个人网站seo是一种利用搜索引擎的
  • 网站排名优化各公司的推广平台排行榜
  • 网站创建要多少钱百度电话怎么转人工客服