-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
554f972
commit abaf9b6
Showing
14 changed files
with
104 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<!-- 普通模式演示 --> | ||
|
||
<template> | ||
<z-paging-x ref="pagingX" v-model="dataList" @query="queryList"> | ||
<template #top> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<!-- 自定义下拉刷新演示 --> | ||
|
||
<template> | ||
<z-paging-x ref="pagingX" v-model="dataList" @query="queryList"> | ||
<template #top> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<!-- 局部区域使用演示 --> | ||
|
||
<template> | ||
<view class="content"> | ||
<z-paging-x ref="pagingX" class="pagingX" :fixed="false" v-model="dataList" @query="queryList"> | ||
<template #top> | ||
<view class="tip"> | ||
固定在顶部的view | ||
</view> | ||
</template> | ||
<list-item v-for="(item, index) in dataList" :key="index"> | ||
<view class="list-item"> | ||
<text class="list-item-title">{{item.title}}</text> | ||
<text class="list-item-type">{{item.detail}}</text> | ||
</view> | ||
</list-item> | ||
<template #bottom> | ||
<view class="tip"> | ||
固定在底部的view | ||
</view> | ||
</template> | ||
</z-paging-x> | ||
</view> | ||
</template> | ||
|
||
<script lang="uts"> | ||
import { requestList, ListItem } from '@/http/request.uts' | ||
export default { | ||
data() { | ||
return { | ||
dataList: [] as ListItem[] | ||
} | ||
}, | ||
methods: { | ||
queryList(pageNo: number, pageSize: number) { | ||
const params = { | ||
pageNo: pageNo, | ||
pageSize: pageSize, | ||
type: 0 | ||
} | ||
requestList(params).then((res: UTSJSONObject) => { | ||
(this.$refs['pagingX'] as ZPagingXComponentPublicInstance).complete(res['data'] as any[]); | ||
}) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.content { | ||
background-color: skyblue; | ||
flex: 1; | ||
} | ||
|
||
.pagingX { | ||
width: 600rpx; | ||
height: 800rpx; | ||
margin-top: 100rpx; | ||
margin-left: 50rpx; | ||
border-radius: 40rpx; | ||
} | ||
|
||
.tip { | ||
background-color: pink; | ||
height: 100rpx; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
</style> |
2 changes: 2 additions & 0 deletions
2
z-paging-x/pages/show-update-time-demo/show-update-time-demo.uvue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
z-paging-x/uni_modules/z-paging-x/components/z-paging-x/static/index.uts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters