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

做网站的参考文献有哪些seo如何快速排名百度首页

做网站的参考文献有哪些,seo如何快速排名百度首页,wordpress 繁体 插件,子域名大全查询前言 网上有很多的vue的流程组件,但是本人不喜欢很多冗余的代码,喜欢动手敲代码;刚开始写的时候,确实没法下笔,最后一层一层剥离,总算实现了;大家可以参考我写的代码,可以拿过去定制…

前言

  • 网上有很多的vue的流程组件,但是本人不喜欢很多冗余的代码,喜欢动手敲代码;
  • 刚开始写的时候,确实没法下笔,最后一层一层剥离,总算实现了;
  • 大家可以参考我写的代码,可以拿过去定制化修改(因为每个项目的UI风格不一样,更多是样式的不一样);
  • 关于功能,多一些点击事件呀什么的,我相信对大家来说是问题不大的,难度的部分是怎么画出来;
  • 下面的代码支持vue2也支持vue3,只不过是选项式,反正都支持。不喜欢的,可以稍微改下script部分,改成组合式API就好了。

代码

<!-- * @author kjprime* @description 流程组件-->
<template><div class="process-tree"><!-- 同一层级数据渲染,渲染到了同一行 --><divv-for="(item, index) in data":key="index"class="process-tree__row"><!-- 盒子--><divclass="process-tree__row__box":class="{// 左横线'line-left': index !== 0,// 右横线'line-right': index !== data.length - 1,}"><!-- 盒子里面的容器 --><divclass="process-tree__row__box--container":class="{// 向上竖线'line-bottom': item.children && item.children.length > 0,// 向下竖线'line-top': !isTreeRoot,}"><!-- 向下指向的三角形 --><divv-if="!isTreeRoot"class="process-tree__row__box--container__triangle"/><!-- 内容 --><div class="process-tree__row__box--container__content">{{ item.title }}</div></div></div><process-tree:data="item.children":isTreeRoot="false"/></div></div>
</template><script>
export default {name: "process-tree",props: {/*** @type {Array}* @default []* @example* [*   {*    title: "1",*    children: []*   }* ]* @description 数据*/data: {type: Array,default: () => [],},// 是否为数的root节点// 其实可以通过传父亲与子,通过对比是不是root就可以判断,但是感觉没有必要,直接通过prop可以解决。isTreeRoot: {type: Boolean,default: true,},},
};
</script><style lang="scss" scoped>
// 底部的线高度,也可以当作容器之间的间距
$line-bottom-length: 20px;
// 线粗细
$line-crude: 1px;
// 线颜色
$line-color: rgba(43, 163, 253);
// 盒子里面的容器的border粗细
$container-border-width: 1px;.process-tree {display: flex;&__row {&__box {display: flex;justify-content: center;position: relative;&--container {position: relative;display: flex;justify-content: center;background-color: #eafffc;border: $container-border-width solid $line-color;padding: 4px;margin: $line-bottom-length;color: #fff;&__triangle {position: absolute;border-left: 4.5px solid transparent;border-right: 4.5px solid transparent;border-top: 6px solid rgba(43, 163, 253, 0.7);top: -6px;}&__content {display: flex;flex-direction: column;justify-content: space-between;align-items: center;color: black;padding: 8px 40px;}}}}// 线样式@mixin line {content: "";display: block;height: $line-bottom-length;position: absolute;left: 0;right: 0;margin: auto;background-color: $line-color;}// 向下的线.line-bottom {&::after {@include line;width: $line-crude;bottom: -$line-bottom-length - $container-border-width;}}// 向上的线.line-top {&::before {@include line;width: $line-crude;top: -$line-bottom-length - $container-border-width;}}// 向左的线.line-left {&::after {@include line;width: calc(50%);height: $line-crude;left: calc(-50%);top: 0;}}// 向右的线.line-right {&::before {@include line;width: calc(50%);height: $line-crude;right: calc(-50%);top: 0;}}
}
</style>
  • 实操使用
 <ProcessTree :data="problemTreeData" />
problemTreeData: [{title: "1",children: [{title: "2",children: [{title: "3",children: [{title: "4",},],},{title: "3",children: [{title: "4",},],},],},{title: "2",},],},
]
  • 效果图
    效果图
http://www.dtcms.com/wzjs/468661.html

相关文章:

  • 专业集团门户网站建设服务商株洲seo推广
  • 搜狗竞价绑定网站要求知名品牌营销策划案例
  • 怎么创建网站 优帮云电商培训基地
  • 济南网站制作*推搜点无锡百度竞价
  • 招牌做的好的网站保定百度首页优化
  • WordPress会员密码查看做百度seo
  • 旅游网站设计思路seo关键词优化费用
  • 常州网页定制免费seo网站推广
  • 订餐网站设计零食软文范例300字
  • 浙江中企建设集团有限公司网站百度竞价seo排名
  • 做织梦网站之前要新建数据库吗排行榜前十名
  • 做wd网站实训报告总结百度推广登录平台
  • 委托他人做公司网站的税率南昌关键词优化软件
  • WordPress抓取豆瓣百度推广seo自学
  • 免费ppt模板素材网站有哪些免费域名解析
  • 企业网站建设费用记入全媒体运营师
  • 织梦网站是不是容易做seo公司建立网站的步骤
  • 分类信息网站的建设维护科技网站建设公司
  • 国外优惠卷网站如何做必应搜索引擎怎么样
  • 网站栏目页排名网上推
  • 关于古风的网站建设项目互联网电商平台
  • 网站怎么做关键词研究网络宣传方式有哪些
  • wordpress用户管理插件百度seo搜索引擎优化方案
  • 浙江建设干部学校网站抖音推广怎么收费
  • 国内最先做弹幕的网站seo排名
  • 小说网站自主建设福州搜索排名提升
  • 网站美工和平面设计广州品牌营销策划公司排名
  • 服装网站建设策划书论文东莞网络推广哪家公司奿
  • 计算机网站模板企业培训课程ppt
  • 哪些网站是做设计的网站流量排行