Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
00947aff
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6006
Star
91
Fork
164
代码
文件
提交
分支
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看板
提交
00947aff
编写于
1月 20, 2024
作者:
A
Anne_LXM
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of
https://gitcode.net/dcloud/hello-uni-app-x
into dev
上级
583dc217
a155e7f4
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
62 addition
and
62 deletion
+62
-62
components/uni-collapse-item/uni-collapse-item.vue
components/uni-collapse-item/uni-collapse-item.vue
+4
-4
pages/CSS/layout/z-index.uvue
pages/CSS/layout/z-index.uvue
+1
-1
pages/CSS/transition/transition.uvue
pages/CSS/transition/transition.uvue
+9
-9
pages/component/general-attribute/general-attribute.uvue
pages/component/general-attribute/general-attribute.uvue
+1
-1
pages/component/general-event/touch-event.uvue
pages/component/general-event/touch-event.uvue
+1
-1
pages/component/general-event/transition-event.uvue
pages/component/general-event/transition-event.uvue
+1
-1
pages/component/list-view/list-view.uvue
pages/component/list-view/list-view.uvue
+2
-2
pages/component/scroll-view/scroll-view-props.uvue
pages/component/scroll-view/scroll-view-props.uvue
+2
-2
pages/component/sticky-section/sticky-section.uvue
pages/component/sticky-section/sticky-section.uvue
+1
-1
pages/tabBar/API.uvue
pages/tabBar/API.uvue
+2
-2
pages/template/calendar/calendar.uvue
pages/template/calendar/calendar.uvue
+3
-3
pages/template/custom-tab-bar/custom-tab-bar-tab1.uvue
pages/template/custom-tab-bar/custom-tab-bar-tab1.uvue
+1
-1
pages/template/custom-tab-bar/custom-tab-bar.uvue
pages/template/custom-tab-bar/custom-tab-bar.uvue
+1
-1
pages/template/drop-card/card/card.uvue
pages/template/drop-card/card/card.uvue
+1
-1
pages/template/long-list/long-list.uvue
pages/template/long-list/long-list.uvue
+9
-9
pages/template/long-list2/long-list2.uvue
pages/template/long-list2/long-list2.uvue
+9
-9
pages/template/pull-zoom-image/pull-zoom-image.uvue
pages/template/pull-zoom-image/pull-zoom-image.uvue
+1
-1
pages/template/scroll-fold-nav/scroll-fold-nav.uvue
pages/template/scroll-fold-nav/scroll-fold-nav.uvue
+6
-6
pages/template/scroll-sticky/scroll-sticky.uvue
pages/template/scroll-sticky/scroll-sticky.uvue
+4
-4
uni_modules/uni-loading/components/uni-loading/circle.uvue
uni_modules/uni-loading/components/uni-loading/circle.uvue
+1
-1
uni_modules/uni-loading/components/uni-loading/icon.uvue
uni_modules/uni-loading/components/uni-loading/icon.uvue
+1
-1
uni_modules/uni-loading/components/uni-loading/snow.uvue
uni_modules/uni-loading/components/uni-loading/snow.uvue
+1
-1
未找到文件。
components/uni-collapse-item/uni-collapse-item.vue
浏览文件 @
00947aff
...
...
@@ -36,8 +36,8 @@
return
{
height
:
0
,
is_open
:
this
.
open
as
boolean
,
boxNode
:
null
as
Element
|
null
,
contentNode
:
null
as
Element
|
null
,
boxNode
:
null
as
Uni
Element
|
null
,
contentNode
:
null
as
Uni
Element
|
null
,
};
},
watch
:
{
...
...
@@ -52,8 +52,8 @@
$dispatch
(
this
,
'
UniCollapse
'
,
'
init
'
,
this
)
},
mounted
()
{
this
.
boxNode
=
this
.
$refs
[
'
boxRef
'
]
as
Element
;
this
.
contentNode
=
this
.
$refs
[
'
contentRef
'
]
as
Element
;
this
.
boxNode
=
this
.
$refs
[
'
boxRef
'
]
as
Uni
Element
;
this
.
contentNode
=
this
.
$refs
[
'
contentRef
'
]
as
Uni
Element
;
// this.openCollapse(this.open)
},
methods
:
{
...
...
pages/CSS/layout/z-index.uvue
浏览文件 @
00947aff
...
...
@@ -36,7 +36,7 @@
methods: {
changeZIndex(zIndex : number) {
this.zIndex = 20;
(this.$refs['view'] as Element).style.setProperty('z-index', zIndex);
(this.$refs['view'] as
Uni
Element).style.setProperty('z-index', zIndex);
}
}
}
...
...
pages/CSS/transition/transition.uvue
浏览文件 @
00947aff
...
...
@@ -52,24 +52,24 @@
data() {
return {
isTranstionWidthOrHeight: false,
widthOrHeight: null as Element | null,
widthOrHeight: null as
Uni
Element | null,
isTranstionChangeMargin: false,
styleMargin: null as Element | null,
styleMargin: null as
Uni
Element | null,
isTransitionStylePadding: false,
stylePadding: null as Element | null,
stylePadding: null as
Uni
Element | null,
isTransitionstyleBackground: false,
styleBackground: null as Element | null,
styleBackground: null as
Uni
Element | null,
isTransitionStyleTransform: false,
styleTransform: null as Element | null,
styleTransform: null as
Uni
Element | null,
isTransitionstyleBorder: false,
styleBorder: null as Element | null,
styleBorder: null as
Uni
Element | null,
isTransitionstylePosition: false,
stylePosition: null as Element | null,
stylePosition: null as
Uni
Element | null,
isSetTransition: false,
isTransitionpropertystyleBackground: false,
propertyStyleBackground: null as Element | null,
propertyStyleBackground: null as
Uni
Element | null,
isTransitionStyleTransformWithOrigin: false,
styleTransformWithOrigin: null as Element | null,
styleTransformWithOrigin: null as
Uni
Element | null,
}
},
onReady() {
...
...
pages/component/general-attribute/general-attribute.uvue
浏览文件 @
00947aff
...
...
@@ -103,7 +103,7 @@ export default {
this.validateGeneralAttrText = '基础属性验证成功'
},
changeHeight(){
const generalTarget = this.$refs['general-target'] as Element
const generalTarget = this.$refs['general-target'] as
Uni
Element
this.changeHeightByRefText = '已通过 ref 修改高度'
generalTarget.style.setProperty('height', '200px')
}
...
...
pages/component/general-event/touch-event.uvue
浏览文件 @
00947aff
...
...
@@ -30,7 +30,7 @@
lastX: 0,
lastY: 0,
touchEvent: null as TouchEvent | null,
icon: null as Element | null
icon: null as
Uni
Element | null
}
},
onReady() {
...
...
pages/component/general-event/transition-event.uvue
浏览文件 @
00947aff
...
...
@@ -15,7 +15,7 @@
data() {
return {
times: 0,
element: null as Element | null,
element: null as
Uni
Element | null,
isStart: false,
buttonValue: "开启图片旋转",
onTransitionEndTriggr: false
...
...
pages/component/list-view/list-view.uvue
浏览文件 @
00947aff
...
...
@@ -108,7 +108,7 @@
item_change_size_enum(index : number) { this.scrollIntoView = "item---" + index },
//自动化测试例专用
check_scroll_height() : Boolean {
var listElement = this.$refs["listview"] as Element
var listElement = this.$refs["listview"] as
Uni
Element
console.log("check_scroll_height--" + listElement.scrollHeight)
if (listElement.scrollHeight > 2000) {
return true
...
...
@@ -117,7 +117,7 @@
},
//自动化测试例专用
check_scroll_width() : Boolean {
var listElement = this.$refs["listview"] as Element
var listElement = this.$refs["listview"] as
Uni
Element
console.log("check_scroll_width" + listElement.scrollWidth)
if (listElement.scrollWidth > 2000) {
return true
...
...
pages/component/scroll-view/scroll-view-props.uvue
浏览文件 @
00947aff
...
...
@@ -180,7 +180,7 @@
checkScrollHeight() : Boolean {
var element = this.$refs["scrollViewY"]
if (element != null) {
var scrollHeight = (element as Element).scrollHeight
var scrollHeight = (element as
Uni
Element).scrollHeight
console.log("checkScrollHeight" + scrollHeight)
if (scrollHeight > 1900) {
return true
...
...
@@ -192,7 +192,7 @@
checkScrollWidth() : Boolean {
var element = this.$refs["scrollViewX"]
if (element != null) {
var scrollWidth = (element as Element).scrollWidth
var scrollWidth = (element as
Uni
Element).scrollWidth
console.log("checkScrollWidth---" + scrollWidth)
if (scrollWidth > 1900) {
return true
...
...
pages/component/sticky-section/sticky-section.uvue
浏览文件 @
00947aff
...
...
@@ -37,7 +37,7 @@
},
//用于自动化测试
listViewScrollByY(y : number) {
const listview = this.$refs["list-view"] as Element
const listview = this.$refs["list-view"] as
Uni
Element
listview.scrollBy(0, y)
},
gotoStickyHeader(id : string) {
...
...
pages/tabBar/API.uvue
浏览文件 @
00947aff
...
...
@@ -530,10 +530,10 @@
})
},
showPop: function () {
(this.$refs["pop"] as Element).style.setProperty("display", "flex")
(this.$refs["pop"] as
Uni
Element).style.setProperty("display", "flex")
},
hidePop: function () {
(this.$refs["pop"] as Element).style.setProperty("display", "none")
(this.$refs["pop"] as
Uni
Element).style.setProperty("display", "none")
},
stopClickPop: function (e : PointerEvent) {
e.stopPropagation() //点击到pop的非灰色区域,拦截点击事件
...
...
pages/template/calendar/calendar.uvue
浏览文件 @
00947aff
...
...
@@ -70,7 +70,7 @@ export default {
// 触发整个日历的点击事件,需要计算点击位置
select (event: TouchEvent) {
const refs = this.$refs['draw-weeks'] as Element
const refs = this.$refs['draw-weeks'] as
Uni
Element
const rect = refs.getBoundingClientRect();
const dom_x = rect.left; // 元素左上角相对于视口的 X 坐标
const dom_y = rect.top; // 元素左上角相对于视口的 Y 坐标
...
...
@@ -144,7 +144,7 @@ export default {
// 绘制日历顶部信息
drawHeader () {
const refs = this.$refs['draw-header'] as Element
const refs = this.$refs['draw-header'] as
Uni
Element
let ctx = refs.getDrawableContext()
if (ctx == null) return
const date_header_map = ['一', '二', '三', '四', '五', '六', '日']
...
...
@@ -172,7 +172,7 @@ export default {
// 绘制日历主体
drawWeek (weeks: Array<Array<DateType>>, time: string) {
const start_time = Date.now()
const refs = this.$refs['draw-weeks'] as Element
const refs = this.$refs['draw-weeks'] as
Uni
Element
let ctx = refs.getDrawableContext()
if (ctx == null) return
const dom = refs.getBoundingClientRect()
...
...
pages/template/custom-tab-bar/custom-tab-bar-tab1.uvue
浏览文件 @
00947aff
...
...
@@ -35,7 +35,7 @@
uni.$emit('tabchange', e.detail.scrollTop)
},
scrollTop(top : number) {
(this.$refs["listView"] as Element).scrollTop = top
(this.$refs["listView"] as
Uni
Element).scrollTop = top
}
}
}
...
...
pages/template/custom-tab-bar/custom-tab-bar.uvue
浏览文件 @
00947aff
...
...
@@ -73,7 +73,7 @@
},
onReady() {
this.setSelectedIndex(0)
this.tabViewHeight = (this.$refs["tabview"] as Element).getBoundingClientRect().height
this.tabViewHeight = (this.$refs["tabview"] as
Uni
Element).getBoundingClientRect().height
},
onUnload() {
uni.$off('tabchange', this.onTabPageEvent)
...
...
pages/template/drop-card/card/card.uvue
浏览文件 @
00947aff
...
...
@@ -83,7 +83,7 @@
const elementMap = this.$data['$elementMap'] as Map<string, Element>
let element : Element | null = elementMap.get(refName)
if (element == null) {
element = this.$refs[refName] as Element;
element = this.$refs[refName] as
Uni
Element;
elementMap.set(refName, element)
} else {
// console.log('直接拿');
...
...
pages/template/long-list/long-list.uvue
浏览文件 @
00947aff
...
...
@@ -79,21 +79,21 @@
} as SwiperViewItem
] as SwiperViewItem[],
swiperIndex: -1,
$pageScrollView: null as null | Element,
$pageScrollView: null as null |
Uni
Element,
$headerHeight: 0,
$animationFinishIndex: 0,
$tabScrollView: null as null | Element,
$indicatorNode: null as null | Element,
$tabScrollView: null as null |
Uni
Element,
$indicatorNode: null as null |
Uni
Element,
$swiperWidth: 0,
$swiperTabsRect: [] as SwiperTabsItem[]
}
},
onReady() {
this.$pageScrollView = this.$refs['pageScrollView'] as Element;
this.$headerHeight = (this.$refs['header'] as Element).offsetHeight
this.$swiperWidth = (this.$refs['swiper'] as Element).getBoundingClientRect().width
this.$tabScrollView = this.$refs['tabScroll'] as Element
this.$indicatorNode = this.$refs['indicator'] as Element
this.$pageScrollView = this.$refs['pageScrollView'] as
Uni
Element;
this.$headerHeight = (this.$refs['header'] as
Uni
Element).offsetHeight
this.$swiperWidth = (this.$refs['swiper'] as
Uni
Element).getBoundingClientRect().width
this.$tabScrollView = this.$refs['tabScroll'] as
Uni
Element
this.$indicatorNode = this.$refs['indicator'] as
Uni
Element
this.cacheTabItemsSize()
this.setSwiperIndex(0, true)
},
...
...
@@ -173,7 +173,7 @@
},
cacheTabItemsSize() {
this.$swiperTabsRect.length = 0
const tabs = this.$refs["swipertab"] as Element[]
const tabs = this.$refs["swipertab"] as
Uni
Element[]
tabs.forEach((node) => {
this.$swiperTabsRect.push({
x: node.offsetLeft,
...
...
pages/template/long-list2/long-list2.uvue
浏览文件 @
00947aff
...
...
@@ -89,22 +89,22 @@
} as SwiperViewItem
] as SwiperViewItem[],
swiperIndex: -1,
$pageScrollView: null as null | Element,
$pageScrollView: null as null |
Uni
Element,
$headerHeight: 0,
$animationFinishIndex: 0,
$tabScrollView: null as null | Element,
$indicatorNode: null as null | Element,
$tabScrollView: null as null |
Uni
Element,
$indicatorNode: null as null |
Uni
Element,
$swiperWidth: 0,
$swiperTabsRect: [] as SwiperTabsItem[],
nestedScrollChildId: ""
}
},
onReady() {
this.$pageScrollView = this.$refs['pageScrollView'] as Element;
this.$headerHeight = (this.$refs['header'] as Element).offsetHeight
this.$swiperWidth = (this.$refs['swiper'] as Element).getBoundingClientRect().width
this.$tabScrollView = this.$refs['tabScroll'] as Element
this.$indicatorNode = this.$refs['indicator'] as Element
this.$pageScrollView = this.$refs['pageScrollView'] as
Uni
Element;
this.$headerHeight = (this.$refs['header'] as
Uni
Element).offsetHeight
this.$swiperWidth = (this.$refs['swiper'] as
Uni
Element).getBoundingClientRect().width
this.$tabScrollView = this.$refs['tabScroll'] as
Uni
Element
this.$indicatorNode = this.$refs['indicator'] as
Uni
Element
this.cacheTabItemsSize()
this.setSwiperIndex(0, true)
},
...
...
@@ -176,7 +176,7 @@
},
cacheTabItemsSize() {
this.$swiperTabsRect.length = 0
const tabs = this.$refs["swipertab"] as Element[]
const tabs = this.$refs["swipertab"] as
Uni
Element[]
tabs.forEach((node) => {
this.$swiperTabsRect.push({
x: node.offsetLeft,
...
...
pages/template/pull-zoom-image/pull-zoom-image.uvue
浏览文件 @
00947aff
...
...
@@ -66,7 +66,7 @@
setElementStyle(refName : string, propertyName : string, propertyStyle : any) : void {
let element : Element | null = (this.$data['$elementMap'] as Map<string, Element>).get(refName)
if (element == null) {
element = this.$refs[refName] as Element;
element = this.$refs[refName] as
Uni
Element;
(this.$data['$elementMap'] as Map<string, Element>).set(refName, element)
}
element.style.setProperty(propertyName, propertyStyle);
...
...
pages/template/scroll-fold-nav/scroll-fold-nav.uvue
浏览文件 @
00947aff
...
...
@@ -49,17 +49,17 @@
statusBarHeight: 35,
scrollTop: 0,
searchWidth: 700,
searchNode: null as Element | null,
boxNode: null as Element | null,
navNode: null as Element | null
searchNode: null as
Uni
Element | null,
boxNode: null as
Uni
Element | null,
navNode: null as
Uni
Element | null
}
},
onLoad() { },
onReady() {
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight ?? 35;
this.searchNode = this.$refs['search'] as Element;
this.boxNode = this.$refs['top-box'] as Element;
this.navNode = this.$refs['scroll-fold-nav'] as Element;
this.searchNode = this.$refs['search'] as
Uni
Element;
this.boxNode = this.$refs['top-box'] as
Uni
Element;
this.navNode = this.$refs['scroll-fold-nav'] as
Uni
Element;
},
methods: {
onScroll(e : ScrollEvent) {
...
...
pages/template/scroll-sticky/scroll-sticky.uvue
浏览文件 @
00947aff
...
...
@@ -34,7 +34,7 @@
stickyTop: 0,
stickyTran: 0,
scrollTop: 0,
stickyNode: null as Element | null
stickyNode: null as
Uni
Element | null
}
},
methods: {
...
...
@@ -67,12 +67,12 @@
onLoad() {
},
onReady() {
this.stickyNode = this.$refs['sticky'] as Element;
this.stickyNode = this.$refs['sticky'] as
Uni
Element;
// let rect = this.stickyNode?.getBoundingClientRect();
// this.stickyTop = rect?.top;
//this.stickyTop = this.stickyNode?.getBoundingClientRect()?.top;
const stickyRect = (this.$refs['sticky'] as Element).getBoundingClientRect();
const scrollRect = (this.$refs['scroll'] as Element).getBoundingClientRect();
const stickyRect = (this.$refs['sticky'] as
Uni
Element).getBoundingClientRect();
const scrollRect = (this.$refs['scroll'] as
Uni
Element).getBoundingClientRect();
this.stickyTop = stickyRect.top - scrollRect.top;
}
}
...
...
uni_modules/uni-loading/components/uni-loading/circle.uvue
浏览文件 @
00947aff
...
...
@@ -56,7 +56,7 @@
* 初始化圆环
*/
init() {
const refs = this.$refs[this.elId] as Element
const refs = this.$refs[this.elId] as
Uni
Element
let ctx = refs.getDrawableContext()!
this.build_circular(ctx)
},
...
...
uni_modules/uni-loading/components/uni-loading/icon.uvue
浏览文件 @
00947aff
...
...
@@ -23,7 +23,7 @@
const elId = `Uni_${(Math.random() * 10e5).toInt().toString(36)}`
return {
elId: elId,
element: null as Element | null,
element: null as
Uni
Element | null,
times: 0,
aniStyle: '',
deg: 3600000
...
...
uni_modules/uni-loading/components/uni-loading/snow.uvue
浏览文件 @
00947aff
...
...
@@ -27,7 +27,7 @@
};
},
mounted() {
const refs = this.$refs[this.elId] as Element
const refs = this.$refs[this.elId] as
Uni
Element
let ctx = refs.getDrawableContext()!
this.spinner(ctx)
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录