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

能自己做生物实验的网站百度视频

能自己做生物实验的网站,百度视频,做房产网站需要了解什么东西,wordpress 256m内存需求说明 现有的设置单元列表,每个带有虚线加号的可以看做是一组设置单元,点击加号可以添加一组设置单元.点击设置单元右上角可以删除对应的设置单元. 实现思路说明 利用数组元素添加或是删除的方式实现页面数量动态变化.由于每个设置单元内容都相同所以单独封装了一个子组件.…

需求说明

    现有的设置单元列表,每个带有虚线加号的可以看做是一组设置单元,点击加号可以添加一组设置单元.点击设置单元右上角可以删除对应的设置单元.在这里插入图片描述

实现思路说明

    利用数组元素添加或是删除的方式实现页面数量动态变化.由于每个设置单元内容都相同所以单独封装了一个子组件.下面是实现过程:
父页面

<template><view class="out"><view class="content"><view class="setting"><setFriend class="addUnit" v-for="unitIndex in unitList" :unitList="unitList"></setFriend><view class="addUnitClass" @click="addUnit"><image class="add_unit_img" src="../../static/add_unit.png"></image></view></view></view></view>
</template><script>export default {data() {return {// 自定义数组,元素可以随便写unitList:[1,2,3]}},methods: {addUnit(){// 添加添加按钮,数组添加一个元素,元素内容可以任意this.unitList.push(1)}}}
</script><style lang="scss">uni-page-body,page {height:100%;background-color: rgb(242, 242,242);}.out{display: flex;justify-content: center;align-items: center;width: 90%;margin: auto;.content{width: 100%;// height: 400px;display: flex;justify-content: center;align-items: center;flex-direction: column;.setting{width: 100%;display: flex;justify-content: flex-start;align-items: center;flex-direction: row;flex-wrap:wrap;.addUnit{width: 50%;height: 150px;margin-bottom: 15px;}.addUnitClass{position: relative;top: 10px;margin-left: 7px;width: 45%;height: 150px;margin-bottom: 15px;background-color: white;display: flex;justify-content: center;align-items: center;border-radius: 5px;.add_unit_img{width: 80%;height: 80%;}}}}}		</style>

设置单元子组件

<template><view><view class="unit"><image class="close_img" src="../../static/close_button.png" @click="closeUnit"></image><view class="uni_item"><image class="upload_img" src="../../static/upload_img.png"></image></view></view></view>
</template><script>export default {name:"setFriend",data() {return {};},// 设置属性unitListprops:{unitList: {type: Array,default: [1,2],required: false}},methods:{closeUnit(){// 点击关闭按钮,数组减一处理if(this.unitList.length != 0){this.unitList.splice(0, 1);}}}}
</script><style lang="scss">uni-page-body,page {height:100%;background-color: rgb(242, 242,242);}.unit{width: 90%;height: 150px;background-color: white;margin-top: 9px;margin-left: 5px;border-radius: 5px;position: relative;left: 1px;.close_img{width: 20px;height: 20px;position: absolute;left:140px;top:-8px;}.uni_item{width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;flex-direction: column;.upload_img{width:65px;height: 65px;margin-bottom: 10px;}}}}</style>
http://www.khdw.cn/news/39444.html

相关文章:

  • 公安网站备案成都建设网官网
  • 个性化网站定制自己怎么做网站推广
  • 网站怎么做咨询seo优化方法
  • 专业做幼儿园设计的网站免费推广网站平台
  • 做 淘宝客最大的网站是叫什么自己做网站的软件
  • 武汉购物网站建设汕头seo服务
  • 温州网站建设得花多少钱长沙整合推广
  • 做网站每年需付费吗互联网营销怎么赚钱
  • 网站建设经验大总结软文编辑
  • 有没有一些有试卷做的网站沈阳关键词优化报价
  • 杭州网站设计首选柚米个人免费网站申请注册
  • 网站建设杭州seo网络营销技巧
  • 网站需要几个人品牌宣传策略
  • 网站建设需要注意的关键细节常州网络推广哪家好
  • 深圳做外贸网站百度链接收录提交入口
  • 哪些网站使用vue做的百度推广课程
  • 做招聘网站如何宣传网络培训seo
  • 苏州网站设计公司兴田德润i网址多少seo辅助工具
  • 天河区做网站公司菏泽seo
  • 大兴区营销网络推广行业seo排名技术教程
  • 上海网站建设咨询站霸网络重庆网站seo推广公司
  • 做网站学的什么专业企业网站优化推广
  • 深圳专业做网站专业电子制作网站
  • 做网站产品搜索展示实现百度排名工具
  • 综合性门户网站有哪些凡科建站官网
  • 做模型的网站有哪些淘宝运营主要做些什么
  • 专门做水果的网站外贸网站大全
  • 不用cms怎么做网站微商怎样让客源主动加你
  • 建设网站的工作什么是营销
  • 潍坊尚呈网站建设公司怎么样金华网站推广