更改序列帧

This commit is contained in:
zhcnyuyang 2025-05-22 19:12:44 +08:00
parent 81b547fa7a
commit aaf903a8a1

View File

@ -9,13 +9,13 @@ export default defineComponent({
//
alt: { type: String, default: '' },
// / 20
fps: { type: Number, default: 20 },
fps: { type: Number, default: 15 },
// true
autoplay: { type: Boolean, default: true },
//
loop: { type: Boolean, default: false },
// 115
framesCount: { type: Number, default: 115 },
framesCount: { type: Number, default: 82 },
//
basePath: { type: String, default: '/openvideo/' }
},
@ -105,7 +105,7 @@ export default defineComponent({
const arr = []
for (let i = 0; i <= this.framesCount; i++) {
//
const name = String(i).padStart(5, '0') + '.jpg'
const name = String(i).padStart(2, '0') + '.jpg'
arr.push(this.basePath + name)
}
return arr