Skip to content

Commit

Permalink
on-change
Browse files Browse the repository at this point in the history
  • Loading branch information
szuprefix committed Mar 11, 2020
1 parent 704299f commit 4d695ed
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/media/qcloud/Controls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
<span @click="showPopup = true">{{definitionMap[definition]}}</span>
<span @click="togglePlaybackRate">{{playbackRate}}x</span>
</div>
<!--<popup-radio title="倍速" v-model="playbackRate" :options="playbackRateOptions"></popup-radio>-->
<popup v-model="showPopup">
<group title="画质">
<radio v-model="definition" :options="definitionOptions" :fill-mode="false"></radio>
<radio v-model="definition" :options="definitionOptions" @on-change="showPopup = false"></radio>
</group>
</popup>
</div>
</template>
<script>
import {XButton, PopupRadio, Popup, Radio, Group} from 'vux'
import {Popup, Radio, Group} from 'vux'
import {get} from 'lodash'
import Cache from 'vue-django/src/utils/cache'
export default{
Expand All @@ -37,7 +36,7 @@
cache: Cache(`qcloud.vod.${this.fileId}.currentTime`)
}
},
components: {XButton, PopupRadio, Popup, Radio, Group},
components: {Popup, Radio, Group},
mounted () {
if (this.isActive) {
this.init()
Expand Down

0 comments on commit 4d695ed

Please sign in to comment.