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

能自己做生物实验的网站东莞做网站公司电话

能自己做生物实验的网站,东莞做网站公司电话,响应式网站 模版,产品开发管理需求说明 现有的设置单元列表,每个带有虚线加号的可以看做是一组设置单元,点击加号可以添加一组设置单元.点击设置单元右上角可以删除对应的设置单元. 实现思路说明 利用数组元素添加或是删除的方式实现页面数量动态变化.由于每个设置单元内容都相同所以单独封装了一个子组件.…

需求说明

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

实现思路说明

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

<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.yidumall.com/news/90999.html

相关文章:

  • 关于建设 医院网站的请示如何利用seo赚钱
  • 网站目录做301打开百度一下网页版
  • 广州自助建站成品短视频app源码的优点
  • 大业工业设计公司官网楚雄seo
  • 南京模板网站建设网站公司
  • 课堂网站开发如何查询网站收录情况
  • 现在网站主怎么做淘宝客百度答主招募入口官网
  • 建筑施工组织设计毕业设计seo优化网站推广
  • 代理注册公司靠什么赚钱东莞网站推广及优化
  • 网站gbk 和utf8百度应用下载
  • 建设网站怎么查明细北京百度快照推广公司
  • 成都优化网站厂家免费网络推广网址
  • 工商注册在哪个网站东莞seo计费管理
  • 单位网站链接怎样做百度指数疫情
  • 花火视频影视大全免费观看西藏自治区seo 标题 关键词优化
  • 长兴做网站性价比高seo排名
  • 黄页大全18勿看2000网站域名ip查询
  • 山东省聊城建设学校网站北京网站设计公司
  • 文案网站策划书外链怎么发
  • 沧州网站建设价格百度竞价广告怎么投放
  • 专门做狗猫配套网站有什么意思淘宝店铺怎么推广
  • b2b电子商务网站排名杭州seo哪家好
  • 东莞企业营销推广百度关键词seo外包
  • 外贸网站如何做外链精准信息300099
  • b2b网站网址导航免费外链网盘
  • 打开网页时网站顶部显示广告随后消失的广告怎么做seo网站分析
  • 仿163源码交易平台宽屏整站源码 网站模板交易平台源码谷歌seo培训
  • 怎样做google网站长沙全网覆盖的网络推广
  • 中国轻工建设公司网站武汉seo优化顾问
  • 企业网站报价单ebay欧洲站网址