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

2h1g做视频网站网站集约化建设会议

2h1g做视频网站,网站集约化建设会议,个人网站内容有哪些内容,企业管理软件erp需求#xff1a;实现双击表格行跳转详情编辑页面#xff0c;编辑完返回时定位到之前选择的表格行 1.修改了uniapp官方组件库uni-table中的uni-tr的源码#xff0c;添加click事件#xff0c;添加slot namescroll/slot插槽 blocksl…需求实现双击表格行跳转详情编辑页面编辑完返回时定位到之前选择的表格行 1.修改了uniapp官方组件库uni-table中的uni-tr的源码添加click事件添加slot namescroll/slot插槽 blockslot namescroll/slotviewclassuni-table-trclickrowClick:class{ is-active: isActive }viewv-ifselection selectionclasscheckbox:class{ tr-table--border: border, checkbox-head: isHeadTr }table-checkbox:checkedchecked:indeterminateindeterminate:disableddisabledcheckboxSelectedcheckboxSelected/table-checkbox/viewslot/slot/view/block添加slot namescroll/slot插槽的目的是搭配scroll-view标签与其scroll-into-view属性用于渲染滚动定位元素实现滚动定位 template/ 和 block/并不是一个组件它们仅仅是一个包装元素不会在页面中做任何渲染只接受控制属性。 但实际使用中发现template/ 做包装元素会提示编译错误使用 block/则很正常 模拟双击效果 rowClick(e) {let currentTime e.timeStamp;if (currentTime - this.lastTapTime 300) {// 执行双击操作this.$emit(rowClick, );} // 更新点击时间this.lastTapTime currentTime;},2.页面中使用uni-table使用scroll-view滚动使用其scroll-into-view属性实现滚动定位 templatescroll-view scroll-ytrue classscroll :scroll-into-viewscrollidview classtable-contentuni-tablereftable2stripeemptyText暂无更多数据classtable-contenttypeselectionselection-changeselectionChange2uni-tr isHeadTrtrueuni-th aligncenter width80序号/uni-thuni-th aligncenter width150计划开始时间/uni-thuni-th aligncenter width150计划结束时间/uni-th/uni-truni-trv-for(item, index) in listDataSucess:keyitem.idrowClickrowClick(item):is-activeitem.id scrollintoidtemplate #scrolltext idscrollId v-ifitem.id scrollintoid/text/templateuni-td aligncenterview{{ index 1 }}/view/uni-tduni-td aligncenter{{ item.kssj ? item.kssj : }}/uni-tduni-td aligncenter{{ item.jssj ? item.jssj : }}/uni-td/uni-tr/uni-table/view/scroll-view /templatescroll-into-view需要提供滚动到的元素的idscroll-into-view可以动态绑定id:scroll-into-viewscrollid但是滚动到元素的id不能动态绑定所以只能通过v-if渲染这个元素 通过v-if渲染这个元素能触发滚动 template #scrolltext idscrollId v-ifitem.id scrollintoid/text /template这个元素动态绑定id不能触发滚动 template #scrolltext :iditem.id scrollintoid?scrollId: /text/templatejs部分 scrollintoid变量·是用于v-if判断是否渲染滚动定位元素scrollid则是滚动定位元素的固定id这两个变量最开始置空这样能保障触发滚动效果 initData() {this.scrollintoid ;this.scrollid ;util.request(api.ListInfo, this.params, GET).then((res) {if (res.code 0) {this.ListInfo res.data;this.$nextTick(() {setTimeout(() {this.scrollid scrollId;this.scrollintoid this.$store.state.scrollId;}, 50);});} else {util.showErrorToast(res.msg);}});},行点击事件保存点击行的id返回页面时请求接口能触发滚动 rowClick(item) {this.$store.commit(setScrollId, item.id);uni.navigateTo({url:/package-pc/pages/choose/choose?id item.id,});},vuex部分 import Vue from vue; import Vuex from vuex;Vue.use(Vuex);const store new Vuex.Store({state: {scrollId: ,},mutations: {setScrollId(state, id) {state.scrollId id;},}, }); export default store;后续有时间给uni-ui提提pr吧或者自己在插件市场发布下
http://www.yutouwan.com/news/96910/

相关文章:

  • 2022十大网络营销案例网站网络优化服务器
  • 做画册好的网站wordpress入门使用教程
  • 2014山东春季高考网站建设做外链音乐网站
  • 观点网站制作网页总结
  • 电商网站的建设步骤网站建设介绍ppt
  • 推广联盟网站怎么做网络营销是什么基础
  • 招远网站建设招聘php网站设计人员
  • 怎么做推广网站赌场服装设计方案
  • 中国容桂营销网站建设2024舆情信息范例8篇
  • 乐清市网站建设廊坊关键词优化报价
  • 珠宝网站设计方案企业摄影网站模板
  • 网站怎样做哈尔滨市建设工程造价信息网
  • 九宫格网站模板自助建站系统源码下载
  • 有哪些装修网站python版 wordpress
  • 宣讲网站建设在马来西亚做网站网站合法吗
  • 互联网推广渠道汕头seo排名
  • 淘宝客建网站网页设计基础教程题库
  • 简单网页设计模板网站wordpress 5.0火车头发布模块
  • 楚雄市网站建设公司东阳建设局网站
  • 杭州精品课程网站建设大连工程建设信息网
  • 深圳网站建设saote上海中学国际部
  • 泗阳住房建设局网站WordPress 多个分类目录
  • 西宁设计网站建设40岁以上的设计师都去哪了
  • 网站改版后百度不收录企业网站建设完整教程
  • 怎么创建免费自己的网站平台战略定位咨询公司排名
  • 大连 找人做网站dw网页设计报告
  • 做外贸可以用哪些网站永久免费自助建站推荐
  • 电商网站建设推广专门做同人h的网站
  • 十大网站黄页的免费中国建筑人才网怎么样
  • 企业站官方网站建行个人网上银行登录