Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
970917f2
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看板
提交
970917f2
编写于
8月 19, 2024
作者:
雪洛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(web): 修复web端类型错误
上级
440b0417
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
10 deletion
+13
-10
pages/API/choose-video/choose-video.uvue
pages/API/choose-video/choose-video.uvue
+6
-4
pages/API/navigator/navigator.uvue
pages/API/navigator/navigator.uvue
+3
-2
pages/API/preview-image/preview-image.uvue
pages/API/preview-image/preview-image.uvue
+4
-4
未找到文件。
pages/API/choose-video/choose-video.uvue
浏览文件 @
970917f2
...
...
@@ -28,19 +28,21 @@
<script>
import { ItemType } from '@/components/enum-data/enum-data';
type Camera = "back" | "front"
type Source = "album" | "camera"
export default {
data() {
return {
title: "chooseVideo",
src: "",
sourceTypeItemTypes: [{ "value": 0, "name": "从相册中选择视频" }, { "value": 1, "name": "拍摄视频" }, { "value": 2, "name": "从相册中选择视频或拍摄视频" }] as ItemType[],
sourceTypeItems: [["album"], ["camera"], ["album", "camera"]],
sourceTypeItems: [["album"], ["camera"], ["album", "camera"]]
as Source[][]
,
cameraItemTypes: [{ "value": 0, "name": "后置摄像头" }, { "value": 1, "name": "前置摄像头" }] as ItemType[],
cameraItems: ["back", "front"],
sourceType: ["album", "camera"],
cameraItems: ["back", "front"]
as Camera[]
,
sourceType: ["album", "camera"]
as Source[]
,
compressed: true,
maxDuration: 60,
camera: "back",
camera: "back"
as Camera
,
videoInfo: ""
}
},
...
...
pages/API/navigator/navigator.uvue
浏览文件 @
970917f2
...
...
@@ -52,7 +52,8 @@
</template>
<script lang="uts">
import { state, setLifeCycleNum } from '@/store/index.uts'
import { state, setLifeCycleNum } from '@/store/index.uts'
type AnimationType = "slide-in-right" | "slide-in-left" | "slide-in-top" | "slide-in-bottom" | "pop-in" | "fade-in" | "zoom-out" | "zoom-fade-out" | "none" | "auto"
export default {
data() {
...
...
@@ -139,7 +140,7 @@
},
})
},
navigateToAnimationType(animationType:
string
) {
navigateToAnimationType(animationType:
AnimationType
) {
uni.navigateTo({
url: '/pages/API/navigator/new-page/new-page-1?data=Hello',
animationType: animationType,
...
...
pages/API/preview-image/preview-image.uvue
浏览文件 @
970917f2
...
...
@@ -37,11 +37,11 @@
</template>
<script>
type Indicator = "number" | "default" | "none"
type ItemType = {
value :
string
,
value :
Indicator
,
name : string
}
export default {
data() {
return {
...
...
@@ -56,7 +56,7 @@
value: "none",
name: "不显示"
}] as ItemType[],
currentIndicator: "default",
currentIndicator: "default"
as Indicator
,
isLoop: true
}
},
...
...
@@ -80,7 +80,7 @@
})
},
onIndicatorChanged(e : UniRadioGroupChangeEvent) {
this.currentIndicator = e.detail.value
this.currentIndicator = e.detail.value
as Indicator
},
onCheckboxChange(_ : UniCheckboxGroupChangeEvent) {
this.isLoop = !this.isLoop
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录