Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
177e5601
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
5995
Star
90
Fork
162
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
177e5601
编写于
9月 12, 2023
作者:
H
hdx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
swiper-list: 处理代码警告
上级
96dd2448
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
8 addition
and
8 deletion
+8
-8
pages/template/long-list/long-list.uvue
pages/template/long-list/long-list.uvue
+4
-4
pages/template/swiper-list/swiper-list.uvue
pages/template/swiper-list/swiper-list.uvue
+2
-2
pages/template/swiper-list2/swiper-list2.uvue
pages/template/swiper-list2/swiper-list2.uvue
+2
-2
未找到文件。
pages/template/long-list/long-list.uvue
浏览文件 @
177e5601
...
@@ -87,10 +87,10 @@
...
@@ -87,10 +87,10 @@
},
},
onReady() {
onReady() {
this.$pageScrollView = this.$refs['pageScrollView'] as INode;
this.$pageScrollView = this.$refs['pageScrollView'] as INode;
this.$headerHeight = (this.$refs[
"header"
] as INode).offsetHeight
this.$headerHeight = (this.$refs[
'header'
] as INode).offsetHeight
this.$swiperWidth = (this.$refs[
"swiper"
] as INode).getBoundingClientRect().width
this.$swiperWidth = (this.$refs[
'swiper'
] as INode).getBoundingClientRect().width
this.$tabScrollView = this.$refs
.get('tabScroll')
as INode
this.$tabScrollView = this.$refs
['tabScroll']
as INode
this.$indicatorNode = this.$refs
.get('indicator')
as INode
this.$indicatorNode = this.$refs
['indicator']
as INode
this.cacheTabItemsSize()
this.cacheTabItemsSize()
this.setSwiperIndex(0, true)
this.setSwiperIndex(0, true)
},
},
...
...
pages/template/swiper-list/swiper-list.uvue
浏览文件 @
177e5601
...
@@ -61,8 +61,8 @@
...
@@ -61,8 +61,8 @@
}
}
},
},
onReady() {
onReady() {
this.$tabScrollView = this.$refs
.get('tabScroll')
as INode
this.$tabScrollView = this.$refs
['tabScroll']
as INode
this.$indicatorNode = this.$refs
.get('indicator')
as INode
this.$indicatorNode = this.$refs
['indicator']
as INode
this.$swiperWidth = (this.$refs["swiper"] as INode).getBoundingClientRect().width
this.$swiperWidth = (this.$refs["swiper"] as INode).getBoundingClientRect().width
this.cacheTabItemsSize()
this.cacheTabItemsSize()
this.setSwiperIndex(0, true)
this.setSwiperIndex(0, true)
...
...
pages/template/swiper-list2/swiper-list2.uvue
浏览文件 @
177e5601
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
}
}
},
},
onReady() {
onReady() {
this.$tabScrollView = this.$refs
.get('tabScroll')
as INode
this.$tabScrollView = this.$refs
['tabScroll']
as INode
this.$swiperWidth = (this.$refs["swiper"] as INode).getBoundingClientRect().width
this.$swiperWidth = (this.$refs["swiper"] as INode).getBoundingClientRect().width
this.setSwiperIndex(0, true)
this.setSwiperIndex(0, true)
},
},
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
const min_ratio = 1
const min_ratio = 1
const max_ratio = 1.3
const max_ratio = 1.3
const tabs = this.$refs[
"swipertab"
] as INode[]
const tabs = this.$refs[
'swipertab'
] as INode[]
const current_node = tabs[current_index]!
const current_node = tabs[current_index]!
const move_to_node = tabs[move_to_index]!
const move_to_node = tabs[move_to_index]!
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录