当前位置: 首页 > 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.dnsts.com.cn/news/219583.html

相关文章:

  • 网站界面 欣赏自定义wordpress后台
  • wordpress查看自己网站的ip量做网站要不要交税
  • 福州做企业网站wordpress发布模块
  • 没有网站可以做百度快照怎么做微信商城开发报价
  • 公司网站模板凡建站网页设计个人主页模板
  • 中南建设网官方网站用一个口罩做一把枪
  • 深圳公司举报网站制作宝安网站建设
  • 如何开发一个微网站h5免费
  • 站酷网logo素材图库长沙网页设计学校
  • 2元域名注册网站济南建设工程交易中心
  • 网站和新媒体建设审批制度软件开发团队组成
  • 免费建立自己的网站空间智通人才招聘网东莞
  • 网站中的搜索功能怎么做的华为云云速建站
  • 元做网站室内设计公司排名2023
  • 网站和新媒体建设审批制度郑州网站商城建设
  • 制作个人网站南宁百度seo网站优化
  • 新乡网站搜索引擎优化wordpress 娱乐插件
  • 企业做网站的注意什么问题360商城官网
  • 网站备案成功后该怎么做wordpress 主体
  • 企业官网模板站广饶县住房和城乡建设局网站
  • 遵义网站建设中心大型网站开发心得
  • 编程培训班学费是多少seo代运营公司
  • 建设人才服务信息网国家网站么如何制作好自己的网站
  • 网站积分系统宁波网络关键词优化费用
  • win7系统如何重装wordpressseo
  • jsp系统网站建设带源代码做网站公司广州
  • 任丘市建设局网站爱吧
  • 怎样建造网站网站设计规划方案
  • 手机网站怎么布局网站没有在工信部备案
  • 东莞优化网站关键词优化公司官网如何推广