提交 75b940a7 编写于 作者: Q qiang

fix: remove other attrs

上级 92e11416
<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,
......
<template>
<uni-map
v-bind="attrs"
v-on="$listeners">
<uni-map v-on="$listeners">
<div
ref="container"
class="uni-map-container" />
......
<template>
<uni-video
v-bind="attrs"
v-on="$listeners">
<uni-video v-on="$listeners">
<div
ref="container"
class="uni-video-container" />
......
<template>
<uni-audio
:id="id"
:src="src"
:loop="loop"
:controls="controls"
:poster="poster"
:name="name"
:author="author"
v-on="$listeners"
>
<audio
......
<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.
先完成此消息的编辑!
想要评论请 注册