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

品牌建设与退休管理安卓优化大师新版

品牌建设与退休管理,安卓优化大师新版,百度seo排名点击,广州市平安建设 网站效果图如下: 思路: 1.由于APP项目需要,起初想去插件市场直接找现成的,结果找了很久没找到合适的(有的不支持vue2有的不能都支持APP和小程序) 2.后来,就只能去改uni-table源码了,因…

 效果图如下:

思路:

1.由于APP项目需要,起初想去插件市场直接找现成的,结果找了很久没找到合适的(有的不支持vue2有的不能都支持APP和小程序)

2.后来,就只能去改uni-table源码了,因为u-table不支持固定列。

直接上代码

注意:需要动态计算表头高度

<template><view class="content"><uni-table ref="table" :loading="loading" border stripe emptyText="暂无更多数据"><view class="table-header"><uni-tr><uni-th width="120" align="center" class="sticky-column">名称</uni-th><uni-th width="100" align="center">标签名</uni-th><uni-th width="100" align="center">CNB-槽号-通道</uni-th><uni-th width="100" align="center">量程</uni-th><uni-th width="100" align="center">预警值</uni-th><uni-th width="100" align="center">联锁值</uni-th><uni-th width="100" align="center">程序停机点名</uni-th><uni-th width="180" align="center">操作</uni-th></uni-tr></view><view class="warper" :style="{ maxHeight: 'calc(100vh - ' + boxHeight + 'rpx)' }"><uni-tr v-for="(item, index) in tableData" :key="index"><uni-td width="120">{{item.name }}</uni-td><uni-td width="100"><view><u-tag :text="item.tagname" size="mini" type="primary"></u-tag></view></uni-td><uni-td width="100"><view class="name">{{ item.passage }}</view></uni-td><uni-td width="100"><view>{{ item.range }}</view></uni-td><uni-td width="100">{{ item.prewarningValue }}</uni-td><uni-td width="100">{{ item.interlockingValue }}</uni-td><uni-td width="100"><u-tag :text="item.programStop" size="mini" type="warning"></u-tag></uni-td><uni-td><view class="uni-group"><u-button class="uni-button" size="mini" type="primary"@click="selectdetail(index,item)">查看</u-button></view></uni-td></uni-tr></view></uni-table></view>
</template><script>import tableList from '@/subRemoteOperate/untilMethods/table/tableList.js';export default {data() {return {loading: false,boxHeight: 0, // box盒子的高度tableData: tableList.data}},mounted() {this.getBoxHeight();},methods: {//获取盒子高度getBoxHeight() {uni.createSelectorQuery().in(this).select('.table-header').boundingClientRect(rect => {if (rect) {this.boxHeight = rect.height;}}).exec();},}}
</script><style lang="scss" scoped>.content {width: 100%;height: 100vh;}.table-header {position: sticky;left: 0;top: 0;z-index: 99999;background-color: #fff;}//冻结表头第一列/deep/ .uni-table-tr .uni-table-td:first-child {position: sticky;left: 0;top: 0;background-color: #fff;z-index: 9999;}/deep/ .uni-table-tr {overflow: visible;background-color: #fff;}/deep/ .uni-table-tr .uni-table-th:first-child {position: sticky;left: 0;top: 0;background-color: #fff;z-index: 9999;}
</style>

http://www.zhongyajixie.com/news/66220.html

相关文章:

  • 中英文网站建设seo营销名词解释
  • 商城网站建设招聘免费cms建站系统
  • 怎么做自助提卡网站百度收录入口提交查询
  • 网站开发工程师工作职责百度热词
  • 英语培训机构网站建设策划书论坛seo网站
  • 网站开发税目编码最新新闻事件
  • 愿意做cps的网站广州网站建设系统
  • 朝阳做网站哪家公司好河南seo技术教程
  • 邯郸专业做网站哪里有网站营销策略
  • 免费网页制作成app长沙自动seo
  • 商城网站主要功能谷歌浏览器网页
  • 公司网站建设手机端跟PC端网络推广渠道都有哪些
  • 昆山移动网站建设餐饮管理和营销方案
  • 免费的网站在线客服软件腾讯效果推广
  • 汽车用品东莞网站建设平台优化是指什么
  • wordpress文章加密河南seo和网络推广
  • 临朐网站开发广告公司推广平台
  • 大型网站tag标签 索引河南网站seo推广
  • 创新的做网站在哪里可以发布自己的广告
  • 怎么建立自己的网站免费专业seo培训学校
  • 购物网站开发的背景与意义关键词搜索推广排行榜
  • job5156招聘 东莞智通人才网百度seo软件是做什么的
  • 做网站大约要多少钱seo快速排名源码
  • 网站代码规范请输入搜索关键词
  • 云南网站制作seo网站seo
  • 网站右下角视频代码搜索引擎优化有哪些要点
  • 做网站怎么在主机上放图片常州seo
  • 58同城网站建设要多少钱线上免费推广平台都有哪些
  • 网站备案局网络营销的流程和方法
  • 网站建设程序开发调价智能关键词软件