Skip to content

Commit f68babc

Browse files
committed
🐞 fix: 修复抓拍参数名错误
1 parent 70afdec commit f68babc

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

d.ts/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ export interface V3dPlayerOptions {
117117
unique?: string | undefined
118118
}
119119

120+
type __VLS_WithTemplateSlots<T, S> = T & {
121+
new (): {
122+
$slots: S
123+
}
124+
}
125+
120126
declare const V3dPlayer: __VLS_WithTemplateSlots<
121127
import('vue').DefineComponent<
122128
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "v3d-player",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Vue3 Dplayer-Lite",
55
"main": "dist/v3d-player.umd.js",
66
"module": "dist/v3d-player.es.js",

src/App.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@
5757
<input
5858
type="checkbox"
5959
class="demo-check"
60-
name="options-snapshot"
61-
v-model="self.snapshot"
60+
name="options-screenshot"
61+
v-model="self.screenshot"
6262
/>
63-
<label for="options-snapshot">snapshot</label>
63+
<label for="options-screenshot">screenshot</label>
6464
</div>
6565
<div class="demo-control">
6666
<input type="text" class="demo-url" v-model="self.src" />
@@ -83,7 +83,7 @@ interface Data {
8383
record: boolean
8484
connect: boolean
8585
hasAudio: boolean
86-
snapshot: boolean
86+
screenshot: boolean
8787
}
8888
8989
const _data: Data = {
@@ -96,7 +96,7 @@ const _data: Data = {
9696
record: true,
9797
connect: true,
9898
hasAudio: true,
99-
snapshot: true
99+
screenshot: true
100100
}
101101
102102
let self = reactive(_data)
@@ -120,7 +120,7 @@ const play = () => {
120120
allowPause: true,
121121
autoplay: true,
122122
muted: false,
123-
screenshot: self.snapshot,
123+
screenshot: self.screenshot,
124124
closeTime: 0,
125125
// controls: true,
126126
preventClickToggle: true,

0 commit comments

Comments
 (0)