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

网站权重难做做网站容易 但运营难

网站权重难做,做网站容易 但运营难,建设农场网站,东营建设信息网站电话树状数据展示#xff0c;可以点击item 将点击数据给父组件 #xff0c;满足自己需求。不喜勿喷#xff0c;很简单可以根据自己需求改哈#xff0c;不要问#xff0c;点赞收藏就好。其实可以和上一篇文章uni app 自定义 带popup弹窗的input组件-CSDN博客结合使用#xff…树状数据展示可以点击item 将点击数据给父组件  满足自己需求。不喜勿喷很简单可以根据自己需求改哈不要问点赞收藏就好。其实可以和上一篇文章uni app 自定义 带popup弹窗的input组件-CSDN博客结合使用做成输入框带popup展示树状结构数据 templateviewview v-for(node, index) in treeData :keynode.idview v-if!node.ishowview v-ifuselastview v-ifnode.children.length 0view :stylemargin-left:(zjflag*3032)rpx; classitem_name_eftap.stop.preventitem_click :data-setnode :idindexviewtext v-ifnode.children:stylecolor:colors[zjflag];margin-right:10rpx{{title[zjflag]}}/text{{ node.name }}/viewtext stylemargin-left: 32rpx;color:#f00 v-ifnode.childrennode.children.length 0tap.stop.preventopen_item(index){{image[node.isopen?0:1]}}/text/view/viewview v-elseview :stylemargin-left:(zjflag*3032)rpx; classitem_nametap.stop.preventclickitem_click :data-setnode :idindexviewtext v-ifnode.children:stylecolor:colors[zjflag];margin-right:10rpx{{title[zjflag]}}/text{{ node.name}}/viewtext stylemargin-left: 32rpx;color:#f00 v-ifnode.childrennode.children.length 0tap.stop.preventopen_item(index){{image[node.isopen?0:1]}}/text/view/view/viewview v-elseview :stylemargin-left:(zjflag*3032)rpx; classitem_name tap.stop.preventitem_click:data-setnode :idindexviewtext v-ifnode.children:stylecolor:colors[zjflag];margin-right:10rpx{{title[zjflag]}}/text{{ node.name }}/viewtext stylemargin-left: 32rpx;color:#f00 v-ifnode.childrennode.children.length 0tap.stop.preventopen_item(index){{image[node.isopen?0:1]}}/text/view/view/viewview v-ifnode.isopenTreeData v-ifnode.children node.children.length 0 :tree-datanode.childrencallBackmycallback :uselastuselast :zjflagzjflag1 //view/view/view /templatescriptimport TreeData from ./TreeData.vue;export default {components: {TreeData},name: TreeData,props: {treeData: {type: Array,required: true,},uselast: {type: Boolean,default: false},callback: {type: String,default: },showkey: {type: String,default: },zjflag: {type: Number,default: 0}},data() {return {title: [①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩],// image: [, ]image: [关, 开],colors: [#ff0, #f00, #00f, #0ff, #f0f, #0f0],}},methods: {item_click: function(e) {// console.log(item_click, JSON.stringify(item.currentTarget.dataset.set))let id e.currentTarget.idlet item e.currentTarget.dataset.setif (this.uselast) {if (item.children.length 0) {this.$emit(callBack, {mydetail: item});} else {this.treeData[id].isopen !this.treeData[id].isopen}} else {this.$emit(callBack, {mydetail: item});}// if (item.isopen) {// this.treeData[id].isopen false// } else {// this.treeData[id].isopen true// }this.$forceUpdate()},open_item: function(id) {this.treeData[id].isopen !this.treeData[id].isopenthis.$forceUpdate()},mycallback: function(item) {this.$emit(callBack, {mydetail: item});}},}; /scriptstyle langscss scopedfunction tovmin($rpx) {//$rpx为需要转换的字号return #{$rpx * 100 / 750}vmin;}.item_name {display: flex;justify-content: space-between;font-size: 28;padding-top: 5rpx;padding-bottom: 5rpx;flex: 1;min-height: tovmin(80);align-items: center;text-align: left;margin-right: tovmin(64);color: #333;font-weight: 600;overflow-y: auto;overflow-x: scroll;border-bottom: solid #efefef 2rpx;white-space: normal;word-break: break-all;word-wrap: break-word;}.item_name_ef {font-size: 28;padding-top: 5rpx;padding-bottom: 5rpx;flex: 1;min-height: tovmin(80);display: flex;justify-content: space-between;align-items: center;text-align: left;margin-right: tovmin(64);color: #999;font-weight: 600;overflow-y: auto;overflow-x: scroll;border-bottom: solid #efefef 2rpx;white-space: normal;word-break: break-all;word-wrap: break-word;} /style 讲一下  treeData 树状数据 uselast  只能使用末级 showkey  列表要展示的字段 zjflag        树状结构第几层默认0开始 使用  在父组件 引用组件 import TreeNode from ./TreeNode.vue; components: {                          TreeNode         }, tree-node :tree-datatreeData uselasttrue callBacktree_node_back/tree-node treeData: [{                         id: 1,                         name: 节点1,                         ishow: false,                         isopen: true,                         children: [{                                 id: 2,                                 name: 子1-节点1,                                 ishow: false,                                 isopen: true,                                 children: []                             },                             {                                 id: 3,                                 name: 子2-节点1,                                 ishow: false,                                 isopen: true,                                 children: [{                                     id: 4,                                     name: 孙1-子2-节点1,                                     ishow: false,                                     isopen: true,                                     children: []                                 }]                             },                         ],                     },                     {                         id: 5,                         name: 节点2,                         ishow: false,                         isopen: true,                         children: [{                                 id: 6,                                 name: 子1-节点2,                                 ishow: false,                                 isopen: true,                                 children: [{                                     id: 8,                                     name: 孙1-子1-节点2,                                     ishow: false,                                     isopen: true,                                     children: [{                                         id: 8,                                         name: 重1-孙1-子1-节点2,                                         ishow: false,                                         isopen: true,                                         children: [{                                             id: 9,                                             name: 曾1-重1-孙1-子1-节点2,                                             ishow: false,                                             isopen: true,                                             children: [{                                                 id: 9,                                                 name: 僧1-曾1-重1-孙1-子1-节点2,                                                 ishow: false,                                                 isopen: true,                                                 children: []                                             }]                                         }]                                     }]                                 }]                             },                             {                                 id: 7,                                 name: 子2-节点2,                                 ishow: false,                                 isopen: true,                                 children: [{                                     id: 8,                                     name: 孙1-子2-节点2,                                     ishow: false,                                     isopen: true,                                     children: [{                                         id: 8,                                         name: 重1-孙1-子2-节点2,                                         ishow: false,                                         isopen: true,                                         children: [{                                             id: 9,                                             name: 曾1-重1-孙1-子2-节点2,                                             ishow: false,                                             isopen: true,                                             children: [{                                                 id: 9,                                                 name: 僧1-曾1-重1-孙1-子2-节点2,                                                 ishow: false,                                                 isopen: true,                                                 children: []                                             }]                                         }]                                     }]                                 }]                             },                         ],                     }, ], tree_node_back: function(e) {                 if (e.mydetail) {                     this.tree_node_back(e.mydetail) } else {                     console.log(tree_node_back222, JSON.stringify(e))                 } }, 注意  treedata 中  isshow 是翻着的 false 展示  true 隐藏  isopen 是正常  false 关闭  true 展开
http://www.hkea.cn/news/14475283/

相关文章:

  • 医院导航网站怎么做网络营销方式有哪些不仅仅只有搜索引擎营销
  • 卡车行业做网站的用途3合1网站建设公司
  • 网站如何为关键词做外链青岛房产交易中心官网
  • photoshop网站模板下载网站建设创新
  • 无锡网站制作的公司有哪些重庆本地生活平台
  • 网站设计个人心得成都手机号码销售网站建设
  • 买个个域名做网站咋做网站搭建需要的公司
  • 国内10大网站建设公司企业工商公示信息查询系统
  • 城乡建设厅官方网站工作简历模板免费下载
  • 网站建设网上商城心得体会华久网站建设
  • 广元网站建设广元重庆市沙坪坝区
  • 在线做热图的网站前端工作好找吗
  • dede网站经常被挂马 怎么办南京企业网站
  • 衡水网站seo山东展厅设计公司
  • 制作网站管理系统建站技术知识
  • 微建网站有没有网站做lol网站的
  • PHP网站建设的课后笔记flash网站动画
  • 前端网站开发课程抚州市做棋牌网站
  • 网站建设无广告广州网页设计培训教程
  • 网站建设 企业建站小程序
  • 手机网站跳转怎么办wordpress怎么上传图片
  • 阜阳网站建设工作室做网站需要有公司吗
  • 网站设计 字体的搭配攀枝花建设集团网站
  • 做网站42类商标怎么选小类杭州网站 建设
  • 网站设计市场价佛山seo优化电话
  • 文登住房与建设局网站开网店货源怎么弄
  • 网站快速排名优化报价天津建设信息工程
  • 从做网站可以用现在的名称吗青岛开发区网站建设哪家好
  • 精美网页源码网站网站管理助手3.0
  • 如何做类似千图网的网站网站后台图片编辑器