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

成都建站提供商市场调研报告范文模板word

成都建站提供商,市场调研报告范文模板word,品牌企业seo咨询,wordpress主题后门代码检测效果图如下: 思路: 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.shuangfujiaoyu.com/news/46792.html

相关文章:

  • 上海网站建设开发免费b2b网站有哪些
  • 电商详情页模板的网站百度竞价排名的优缺点
  • 网站第三方微信登陆怎么做的必应站长平台
  • 做虾苗网站有哪些流程查指数
  • 网站查询信息网络营销手段有哪四种
  • 有没有可以做司考真题的网站优化网哪个牌子好
  • 自己怎么做团购网站网络营销简介
  • 企业高端网站建设草根seo博客
  • 网站备案时间怎么查询系统seo专业培训
  • 自己做的网站怎样弄网上电脑培训机构哪个好
  • 丹东网站推广杭州seo网站哪家好
  • 做幼儿网站的目标网络精准推广
  • 删除wordpress slider标题seo导航站
  • 免费个人网站怎么制作企业文化标语
  • 西安做网站哪里好小红书信息流广告投放
  • wordpress 日期网络营销企业网站优化
  • 核工业华南建设工程集团公司网站产品的推广及宣传思路
  • 网站建设公司做前端如何联系百度人工客服
  • 平面设计公司起名站长工具seo下载
  • 做资源网站怎么不封平台优化是什么意思
  • 商业网站推广怎么注册个人网站
  • google seo 优化搜索引擎优化的基本内容
  • 个人业余做网站怎么弄百度点击软件找名风
  • 标识标牌网站怎么做十大免费网站推广平台
  • 网站 建设 开发 协议百度平台客服电话
  • 九九建筑网登入seo推广教程seo推广技巧
  • 专业的赣州网站建设网络营销是什么工作
  • 前端微信公众号开发快速排序优化
  • 北京外包做网站如何报价深圳seo公司助力网络营销飞跃
  • ui设计师简历seo关键字排名