;优化,添加组件库

This commit is contained in:
yzy committed 2026-01-08 11:07:35 +08:00
1 parent 1facf7d6c8
commit 85c436551f
534 files changed
+54404 -39

No files matched your search

@@ -0,0 +1,52 @@
<template>
<uv-popup ref="popup" @change="change">
<view class="video-view" v-if="show">
<video class="video" :src="getSec" :autoplay="autoplay"></video>
</view>
</uv-popup>
</template>
<script>
export default {
props: {
src: {
type: String,
default: ''
},
autoplay: {
type: Boolean,
default: true
}
},
data() {
return {
videoSrc: '',
show: false
}
},
computed: {
getSec() {
return this.src || this.videoSrc;
}
},
methods: {
open(url) {
this.videoSrc = url;
this.$refs.popup.open();
},
close() {
this.$refs.popup.close();
},
change(e) {
this.show = e.show;
}
}
}
</script>
<style scoped lang="scss">
.video-view {
width: 750rpx;
.video {
width: 750rpx;
}
}
</style>