Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
良好的行为成为习惯
uni-app
提交
75b940a7
U
uni-app
项目概览
良好的行为成为习惯
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
75b940a7
编写于
12月 24, 2019
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: remove other attrs
上级
92e11416
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
88 deletion
+18
-88
src/core/view/components/textarea/index.vue
src/core/view/components/textarea/index.vue
+2
-20
src/platforms/app-plus/view/components/map/index.vue
src/platforms/app-plus/view/components/map/index.vue
+1
-3
src/platforms/app-plus/view/components/video/index.vue
src/platforms/app-plus/view/components/video/index.vue
+1
-3
src/platforms/h5/view/components/audio/index.vue
src/platforms/h5/view/components/audio/index.vue
+8
-14
src/platforms/h5/view/components/video/index.vue
src/platforms/h5/view/components/video/index.vue
+6
-48
未找到文件。
src/core/view/components/textarea/index.vue
浏览文件 @
75b940a7
<
template
>
<uni-textarea
:value=
"_checkEmpty(value)"
:maxlength=
"maxlengthNumber"
:placeholder=
"_checkEmpty(placeholder)"
:disabled=
"disabled"
:focus=
"focus"
:auto-focus=
"autoFocus"
:placeholder-class=
"_checkEmpty(placeholderClass)"
:placeholder-style=
"_checkEmpty(placeholderStyle)"
:auto-height=
"autoHeight"
:cursor=
"cursorNumber"
:selection-start=
"selectionStartNumber"
:selection-end=
"selectionEndNumber"
@
change.stop
v-on=
"$listeners"
>
v-on=
"$listeners"
>
<div
class=
"uni-textarea-wrapper"
>
<div
v-show=
"!(composition||valueSync.length)"
...
...
@@ -41,6 +28,7 @@
:maxlength=
"maxlengthNumber"
:autofocus=
"autoFocus"
:class=
"
{'uni-textarea-textarea-ios': isIOS}"
:style="{'overflow-y': autoHeight? 'hidden':'auto'}"
class="uni-textarea-textarea"
@compositionstart="_compositionstart"
@compositionend="_compositionend"
...
...
@@ -286,9 +274,6 @@ export default {
},
_resetFormData
()
{
this
.
valueSync
=
''
},
_checkEmpty
(
str
)
{
return
str
||
false
}
}
}
...
...
@@ -306,9 +291,6 @@ uni-textarea {
uni-textarea
[
hidden
]
{
display
:
none
;
}
uni-textarea
[
auto-height
]
.uni-textarea-textarea
{
overflow-y
:
hidden
;
}
.uni-textarea-wrapper
,
.uni-textarea-placeholder
,
.uni-textarea-line
,
...
...
src/platforms/app-plus/view/components/map/index.vue
浏览文件 @
75b940a7
<
template
>
<uni-map
v-bind=
"attrs"
v-on=
"$listeners"
>
<uni-map
v-on=
"$listeners"
>
<div
ref=
"container"
class=
"uni-map-container"
/>
...
...
src/platforms/app-plus/view/components/video/index.vue
浏览文件 @
75b940a7
<
template
>
<uni-video
v-bind=
"attrs"
v-on=
"$listeners"
>
<uni-video
v-on=
"$listeners"
>
<div
ref=
"container"
class=
"uni-video-container"
/>
...
...
src/platforms/h5/view/components/audio/index.vue
浏览文件 @
75b940a7
<
template
>
<uni-audio
:id=
"id"
:src=
"src"
:loop=
"loop"
:controls=
"controls"
:poster=
"poster"
:name=
"name"
:author=
"author"
v-on=
"$listeners"
>
<audio
ref=
"audio"
:loop=
"loop"
<audio
ref=
"audio"
:loop=
"loop"
style=
"display:none;"
/>
<div
class=
"uni-audio-default"
>
<div
:style=
"'background-image: url('+$getRealPath(poster)+');'"
<div
:style=
"'background-image: url('+$getRealPath(poster)+');'"
class=
"uni-audio-left"
>
<div
:class=
"
{play:!playing,pause:playing}"
class="uni-audio-button"
<div
:class=
"
{play:!playing,pause:playing}"
class="uni-audio-button"
@click="trigger"/>
</div>
<div
class=
"uni-audio-right"
>
...
...
src/platforms/h5/view/components/video/index.vue
浏览文件 @
75b940a7
<
template
>
<uni-video
:id=
"id"
:src=
"src"
:initial-time=
"initialTime"
:duration=
"duration"
:controls=
"controls"
:danmu-list=
"danmuList"
:danmu-btn=
"danmuBtn"
:enable-danmu=
"enableDanmu"
:autoplay=
"autoplay"
:loop=
"loop"
:muted=
"muted"
:page-gesture=
"pageGesture"
:direction=
"direction"
:show-progress=
"showProgress"
:show-fullscreen-btn=
"showFullscreenBtn"
:show-play-btn=
"showPlayBtn"
:show-center-play-btn=
"showCenterPlayBtn"
:enable-progress-gesture=
"enableProgressGesture"
:object-fit=
"objectFit"
:poster=
"poster"
:x5-video-player-type=
"x5VideoPlayerType"
:x5-video-player-fullscreen=
"x5VideoPlayerFullscren"
:x5-video-orientation=
"x5VideoOrientation"
:x5-playsinline=
"x5Playsinline"
v-on=
"$listeners"
>
<div
...
...
@@ -43,10 +20,7 @@
:loop="loop"
:src="srcSync"
:poster="poster"
:x5-video-player-type="x5VideoPlayerType"
:x5-video-player-fullscreen="x5VideoPlayerFullscren"
:x5-video-orientation="x5VideoOrientation"
:x5-playsinline="x5Playsinline"
v-bind="$attrs"
class="uni-video-video"
webkit-playsinline
playsinline
...
...
@@ -71,12 +45,12 @@
<div
class=
"uni-video-progress"
>
<div
:style=
"
{width:buffered*100+'%'}"
class="uni-video-progress-buffered"/>
class="uni-video-progress-buffered"
/>
<div
ref=
"ball"
:style=
"
{left:progress+'%'}"
class="uni-video-ball">
<div
class=
"uni-video-inner"
/>
<div
class=
"uni-video-inner"
/>
</div>
</div>
</div>
...
...
@@ -99,14 +73,14 @@
v-show=
"start&&enableDanmuSync"
ref=
"danmu"
style=
"z-index: 0;"
class=
"uni-video-danmu"
/>
class=
"uni-video-danmu"
/>
<div
v-if=
"!start"
class=
"uni-video-cover"
@
click.stop
>
<div
class=
"uni-video-cover-play-button"
@
click.stop=
"play"
/>
@
click.stop=
"play"
/>
<p
class=
"uni-video-cover-duration"
>
{{
(
duration
||
durationTime
)
|
getTime
}}
</p>
</div>
<div
...
...
@@ -148,7 +122,7 @@
<div
style=
"position: absolute; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none;"
>
<slot/>
<slot
/>
</div>
</uni-video>
</
template
>
...
...
@@ -267,22 +241,6 @@ export default {
showPlayBtn
:
{
type
:
[
Boolean
,
String
],
default
:
true
},
x5VideoPlayerType
:
{
type
:
[
Boolean
,
String
],
default
:
false
},
x5VideoPlayerFullscren
:
{
type
:
[
Boolean
,
String
],
default
:
false
},
x5VideoOrientation
:
{
type
:
[
Boolean
,
String
],
default
:
false
},
x5Playsinline
:
{
type
:
[
Boolean
,
String
],
default
:
false
}
},
data
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录