@lazycatcloud/lzc-video-player 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Dialog/index.vue.d.ts +30 -0
- package/dist/components/MultipleEdit/choose.vue.d.ts +24 -0
- package/dist/components/PlayList/index.vue.d.ts +6 -0
- package/dist/{index-horizontal.f35a8e5f.js → index-horizontal.d742b091.js} +2 -2
- package/dist/{index-vertical.aec12ed3.js → index-vertical.357afcd2.js} +2 -2
- package/dist/list.b6b3725f.js +305 -0
- package/dist/{lzc-video-player.78765609.js → lzc-video-player.6ff297b1.js} +16673 -16300
- package/dist/lzc-video-player.js +2 -2
- package/dist/model.d.ts +1 -1
- package/dist/{playrate.468d7c89.js → playrate.cc67d295.js} +2 -2
- package/dist/{resolution.84d73e1c.js → resolution.60e026bb.js} +2 -2
- package/dist/{simpleList.95523394.js → simpleList.4fdcc7e8.js} +6 -6
- package/dist/stores/playlist.d.ts +4 -4
- package/dist/use/useMultipleEdit.d.ts +9 -0
- package/dist/utils/sentry.d.ts +4 -0
- package/package.json +1 -1
- package/dist/components/SlideItem/index.vue.d.ts +0 -10
- package/dist/list.491cc0bc.js +0 -160
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
show: {
|
|
3
|
+
type: import("vue").PropType<boolean>;
|
|
4
|
+
};
|
|
5
|
+
title: {
|
|
6
|
+
type: import("vue").PropType<string>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
desc: {
|
|
10
|
+
type: import("vue").PropType<string>;
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:show": (val: boolean) => void;
|
|
14
|
+
confirm: () => void;
|
|
15
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
show: {
|
|
17
|
+
type: import("vue").PropType<boolean>;
|
|
18
|
+
};
|
|
19
|
+
title: {
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
desc: {
|
|
24
|
+
type: import("vue").PropType<string>;
|
|
25
|
+
};
|
|
26
|
+
}>> & {
|
|
27
|
+
"onUpdate:show"?: ((val: boolean) => any) | undefined;
|
|
28
|
+
onConfirm?: (() => any) | undefined;
|
|
29
|
+
}, {}>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
keyValue: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
selectedKeys: {
|
|
7
|
+
type: import("vue").PropType<string[]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
toggle: (kv: string) => void;
|
|
12
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
keyValue: {
|
|
14
|
+
type: import("vue").PropType<string>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
selectedKeys: {
|
|
18
|
+
type: import("vue").PropType<string[]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}>> & {
|
|
22
|
+
onToggle?: ((kv: string) => any) | undefined;
|
|
23
|
+
}, {}>;
|
|
24
|
+
export default _default;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { VideoInfo } from '../../model';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
player: {
|
|
4
|
+
type: import("vue").PropType<import("video.js").VideoJsPlayer>;
|
|
5
|
+
};
|
|
3
6
|
isPlaying: {
|
|
4
7
|
type: import("vue").PropType<(info: VideoInfo) => boolean>;
|
|
5
8
|
required: true;
|
|
@@ -8,6 +11,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
11
|
openVideo: (info: VideoInfo) => void;
|
|
9
12
|
back: () => void;
|
|
10
13
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
player: {
|
|
15
|
+
type: import("vue").PropType<import("video.js").VideoJsPlayer>;
|
|
16
|
+
};
|
|
11
17
|
isPlaying: {
|
|
12
18
|
type: import("vue").PropType<(info: VideoInfo) => boolean>;
|
|
13
19
|
required: true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, defineAsyncComponent as o, openBlock as t, createElementBlock as p, unref as e, createBlock as l, createCommentVNode as y } from "vue";
|
|
2
|
-
import { a as n, _ } from "./lzc-video-player.
|
|
2
|
+
import { a as n, _ } from "./lzc-video-player.6ff297b1.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
const m = { class: "modal-content" }, u = /* @__PURE__ */ i({
|
|
5
5
|
__name: "index-horizontal",
|
|
@@ -7,7 +7,7 @@ const m = { class: "modal-content" }, u = /* @__PURE__ */ i({
|
|
|
7
7
|
player: null
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
const r = o(() => import("./list.
|
|
10
|
+
const r = o(() => import("./list.b6b3725f.js")), s = o(() => import("./playrate.cc67d295.js")), c = o(() => import("./resolution.60e026bb.js"));
|
|
11
11
|
return (d, f) => (t(), p("div", m, [
|
|
12
12
|
e(n) === "LzcPlayrate" ? (t(), l(e(s), {
|
|
13
13
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, defineAsyncComponent as l, openBlock as t, createElementBlock as s, unref as e, createBlock as n, createCommentVNode as y } from "vue";
|
|
2
|
-
import { a as o, _ } from "./lzc-video-player.
|
|
2
|
+
import { a as o, _ } from "./lzc-video-player.6ff297b1.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
const m = { class: "modal-content" }, d = /* @__PURE__ */ p({
|
|
5
5
|
__name: "index-vertical",
|
|
@@ -7,7 +7,7 @@ const m = { class: "modal-content" }, d = /* @__PURE__ */ p({
|
|
|
7
7
|
player: null
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
const r = l(() => import("./list.
|
|
10
|
+
const r = l(() => import("./list.b6b3725f.js")), c = l(() => import("./playrate.cc67d295.js")), i = l(() => import("./resolution.60e026bb.js"));
|
|
11
11
|
return (u, f) => (t(), s("div", m, [
|
|
12
12
|
e(o) === "LzcPlayrate" ? (t(), n(e(c), {
|
|
13
13
|
key: 0,
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { openBlock as u, createElementBlock as d, pushScopeId as Q, popScopeId as H, createElementVNode as o, ref as f, computed as S, defineComponent as x, normalizeClass as y, withModifiers as w, createBlock as $, unref as i, isRef as X, withCtx as B, toDisplayString as g, createCommentVNode as k, useCssVars as Y, onMounted as Z, nextTick as ee, onUnmounted as te, watchEffect as se, createVNode as h, Fragment as I, renderList as le, createTextVNode as V } from "vue";
|
|
2
|
+
import { _ as D, Q as T, b as ne, E as U, u as ie, r as ue, c as oe, d as ae, f as K, g as ce } from "./lzc-video-player.6ff297b1.js";
|
|
3
|
+
import "pinia";
|
|
4
|
+
const de = {}, re = (e) => (Q("data-v-7a0e044b"), e = e(), H(), e), _e = /* @__PURE__ */ re(() => /* @__PURE__ */ o("ul", null, [
|
|
5
|
+
/* @__PURE__ */ o("li", { class: "m1" }),
|
|
6
|
+
/* @__PURE__ */ o("li", { class: "m2" }),
|
|
7
|
+
/* @__PURE__ */ o("li", { class: "m3" })
|
|
8
|
+
], -1)), pe = [
|
|
9
|
+
_e
|
|
10
|
+
];
|
|
11
|
+
function ve(e, s) {
|
|
12
|
+
return u(), d("div", null, pe);
|
|
13
|
+
}
|
|
14
|
+
const me = /* @__PURE__ */ D(de, [["render", ve], ["__scopeId", "data-v-7a0e044b"]]);
|
|
15
|
+
function ye() {
|
|
16
|
+
const e = f(!1), s = f([]), l = f([]), a = S(
|
|
17
|
+
() => s.value.length > 0 && l.value.length === s.value.length
|
|
18
|
+
);
|
|
19
|
+
function r() {
|
|
20
|
+
if (a.value) {
|
|
21
|
+
s.value = [];
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
s.value = l.value;
|
|
25
|
+
}
|
|
26
|
+
function c() {
|
|
27
|
+
e.value = !1, s.value = [];
|
|
28
|
+
}
|
|
29
|
+
function p(v) {
|
|
30
|
+
if (s.value.includes(v)) {
|
|
31
|
+
s.value = s.value.filter((b) => b !== v);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
s.value.push(v);
|
|
35
|
+
}
|
|
36
|
+
function m(v) {
|
|
37
|
+
console.log("updateData"), l.value = v;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
selectedKeys: s,
|
|
41
|
+
isEditing: e,
|
|
42
|
+
isSelectAll: a,
|
|
43
|
+
hdlSelectAll: r,
|
|
44
|
+
hdlCancel: c,
|
|
45
|
+
hdlToggleItem: p,
|
|
46
|
+
updateData: m
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
const ge = /* @__PURE__ */ x({
|
|
50
|
+
__name: "choose",
|
|
51
|
+
props: {
|
|
52
|
+
keyValue: null,
|
|
53
|
+
selectedKeys: null
|
|
54
|
+
},
|
|
55
|
+
emits: ["toggle"],
|
|
56
|
+
setup(e, { emit: s }) {
|
|
57
|
+
const l = "page-title-edit";
|
|
58
|
+
function a(r) {
|
|
59
|
+
s("toggle", r);
|
|
60
|
+
}
|
|
61
|
+
return (r, c) => (u(), d("div", {
|
|
62
|
+
class: y(`${l}-toggle`),
|
|
63
|
+
onClick: c[0] || (c[0] = w((p) => a(e.keyValue), ["stop"]))
|
|
64
|
+
}, [
|
|
65
|
+
e.selectedKeys.includes(e.keyValue) ? (u(), $(T, {
|
|
66
|
+
key: 0,
|
|
67
|
+
name: "svguse:#icon-\u5168\u9009_\u5DF2\u9009\u4E2D.svg"
|
|
68
|
+
})) : (u(), d("div", {
|
|
69
|
+
key: 1,
|
|
70
|
+
class: y(`${l}-toggle-unselect`)
|
|
71
|
+
}, null, 2))
|
|
72
|
+
], 2));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
const fe = /* @__PURE__ */ D(ge, [["__scopeId", "data-v-b520dd6c"]]), he = { class: "card" }, ke = { class: "title" }, $e = {
|
|
76
|
+
key: 0,
|
|
77
|
+
class: "subtitle"
|
|
78
|
+
}, Ce = { class: "buttons" }, xe = /* @__PURE__ */ x({
|
|
79
|
+
__name: "index",
|
|
80
|
+
props: {
|
|
81
|
+
show: { type: Boolean },
|
|
82
|
+
title: null,
|
|
83
|
+
desc: null
|
|
84
|
+
},
|
|
85
|
+
emits: ["update:show", "confirm"],
|
|
86
|
+
setup(e, { emit: s }) {
|
|
87
|
+
const l = e, a = S({
|
|
88
|
+
set(r) {
|
|
89
|
+
s("update:show", r);
|
|
90
|
+
},
|
|
91
|
+
get() {
|
|
92
|
+
return !!l.show;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
return (r, c) => (u(), $(ne, {
|
|
96
|
+
"model-value": i(a),
|
|
97
|
+
"onUpdate:model-value": c[2] || (c[2] = (p) => X(a) ? a.value = p : null)
|
|
98
|
+
}, {
|
|
99
|
+
default: B(() => [
|
|
100
|
+
o("div", he, [
|
|
101
|
+
o("span", ke, g(e.title), 1),
|
|
102
|
+
e.desc ? (u(), d("span", $e, g(e.desc), 1)) : k("", !0),
|
|
103
|
+
o("div", Ce, [
|
|
104
|
+
o("span", {
|
|
105
|
+
class: "cancel",
|
|
106
|
+
onClick: c[0] || (c[0] = (p) => a.value = !1)
|
|
107
|
+
}, "\u53D6\u6D88"),
|
|
108
|
+
o("span", {
|
|
109
|
+
class: "confirm",
|
|
110
|
+
onClick: c[1] || (c[1] = (p) => r.$emit("confirm"))
|
|
111
|
+
}, "\u786E\u5B9A")
|
|
112
|
+
])
|
|
113
|
+
])
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}, 8, ["model-value"]));
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
const De = /* @__PURE__ */ D(xe, [["__scopeId", "data-v-136158d9"]]), M = (e) => (Q("data-v-4e728578"), e = e(), H(), e), be = { class: "list-top-bar" }, Ee = /* @__PURE__ */ M(() => /* @__PURE__ */ o("span", { class: "cancel-edit-text" }, "\u8BF7\u9009\u62E9", -1)), Fe = {
|
|
120
|
+
key: 1,
|
|
121
|
+
class: "title"
|
|
122
|
+
}, Ie = { class: "clear" }, Ve = { key: 0 }, we = ["onClick"], Be = { class: "item" }, Te = { class: "item-pic" }, Se = { class: "item-info" }, Pe = { class: "item-info-title" }, Ae = { class: "item-info-subtitle" }, Ue = {
|
|
123
|
+
key: 1,
|
|
124
|
+
class: "empty-text"
|
|
125
|
+
}, Ke = /* @__PURE__ */ M(() => /* @__PURE__ */ o("span", null, "\u6682\u65E0\u64AD\u653E\u5185\u5BB9", -1)), Qe = [
|
|
126
|
+
Ke
|
|
127
|
+
], He = /* @__PURE__ */ x({
|
|
128
|
+
__name: "index",
|
|
129
|
+
props: {
|
|
130
|
+
player: null,
|
|
131
|
+
isPlaying: null
|
|
132
|
+
},
|
|
133
|
+
emits: ["openVideo", "back"],
|
|
134
|
+
setup(e, { emit: s }) {
|
|
135
|
+
const l = e;
|
|
136
|
+
Y((t) => ({
|
|
137
|
+
e7f8d06a: "url(" + i(U) + ")"
|
|
138
|
+
}));
|
|
139
|
+
const a = ie(), r = f(l.player ? l.player.currentTime() : 0), c = () => {
|
|
140
|
+
r.value = l.player.currentTime();
|
|
141
|
+
}, p = "page-title-edit", {
|
|
142
|
+
selectedKeys: m,
|
|
143
|
+
isEditing: v,
|
|
144
|
+
isSelectAll: b,
|
|
145
|
+
hdlSelectAll: P,
|
|
146
|
+
hdlCancel: E,
|
|
147
|
+
hdlToggleItem: N,
|
|
148
|
+
updateData: O
|
|
149
|
+
} = ye(), C = f(!1), F = f(null), q = S(() => !!a.infos.length), L = (t) => t._id ? ce(t._id) : U;
|
|
150
|
+
function z(t) {
|
|
151
|
+
s("openVideo", t);
|
|
152
|
+
}
|
|
153
|
+
function R(t) {
|
|
154
|
+
return !t.duration || t.duration == 0 || !t.currentTime || t.currentTime == 0 ? "0" : (t.currentTime / t.duration * 100).toFixed(0);
|
|
155
|
+
}
|
|
156
|
+
function j(t) {
|
|
157
|
+
return !t.invalid && l.isPlaying(t) && l.player ? `\u6B63\u5728\u89C2\u770B\uFF1A${K(r.value)}` : `\u89C2\u770B\u81F3: ${R(t)}%`;
|
|
158
|
+
}
|
|
159
|
+
function G() {
|
|
160
|
+
C.value = !1, a.batchDeleteHistory(m.value);
|
|
161
|
+
const t = a.infos.find(l.isPlaying);
|
|
162
|
+
t && m.value.includes(t._id) && s("back"), E();
|
|
163
|
+
}
|
|
164
|
+
function J() {
|
|
165
|
+
!m.value.length || (C.value = !0);
|
|
166
|
+
}
|
|
167
|
+
return Z(() => {
|
|
168
|
+
const t = a.infos.findIndex(l.isPlaying);
|
|
169
|
+
t > -1 && ee(() => {
|
|
170
|
+
F.value && F.value.$el.scrollBy(0, ue(9.4) * t);
|
|
171
|
+
}), l.player && l.player.on("timeupdate", c);
|
|
172
|
+
}), te(() => {
|
|
173
|
+
l.player && l.player.off("timeupdate", c);
|
|
174
|
+
}), se(() => {
|
|
175
|
+
const t = a.infos.map((_) => _._id);
|
|
176
|
+
O(t);
|
|
177
|
+
}), (t, _) => {
|
|
178
|
+
var A;
|
|
179
|
+
return u(), d("div", {
|
|
180
|
+
class: "list",
|
|
181
|
+
onClick: _[4] || (_[4] = w(() => {
|
|
182
|
+
}, ["stop"]))
|
|
183
|
+
}, [
|
|
184
|
+
h(De, {
|
|
185
|
+
title: "\u786E\u8BA4\u5220\u9664",
|
|
186
|
+
desc: "\u662F\u5426\u5220\u9664\u5DF2\u9009\u4E2D\u7684\u89C6\u9891",
|
|
187
|
+
show: C.value,
|
|
188
|
+
"onUpdate:show": _[0] || (_[0] = (n) => C.value = n),
|
|
189
|
+
onConfirm: G
|
|
190
|
+
}, null, 8, ["show"]),
|
|
191
|
+
o("div", be, [
|
|
192
|
+
i(v) ? (u(), d("div", {
|
|
193
|
+
key: 0,
|
|
194
|
+
class: "title cancel-edit",
|
|
195
|
+
onClick: _[1] || (_[1] = w(
|
|
196
|
+
(...n) => i(E) && i(E)(...n),
|
|
197
|
+
["stop"]
|
|
198
|
+
))
|
|
199
|
+
}, [
|
|
200
|
+
h(T, { name: "svguse:#icon-\u5173\u95ED\u591A\u9009.svg" }),
|
|
201
|
+
Ee
|
|
202
|
+
])) : (u(), d("span", Fe, "\u64AD\u653E\u5217\u8868")),
|
|
203
|
+
o("div", Ie, [
|
|
204
|
+
i(q) ? (u(), d("div", Ve, [
|
|
205
|
+
i(v) ? (u(), d("span", {
|
|
206
|
+
key: 1,
|
|
207
|
+
class: y(`${p}-select`),
|
|
208
|
+
onClick: _[3] || (_[3] = (...n) => i(P) && i(P)(...n))
|
|
209
|
+
}, g(i(b) ? "\u53D6\u6D88\u5168\u9009" : "\u5168\u9009"), 3)) : (u(), d("span", {
|
|
210
|
+
key: 0,
|
|
211
|
+
class: y(`${p}-edit`),
|
|
212
|
+
onClick: _[2] || (_[2] = (n) => v.value = !0)
|
|
213
|
+
}, " \u7F16\u8F91 ", 2))
|
|
214
|
+
])) : k("", !0)
|
|
215
|
+
])
|
|
216
|
+
]),
|
|
217
|
+
h(oe, {
|
|
218
|
+
class: y(`list-items ${i(v) ? "list-editing" : ""}`),
|
|
219
|
+
ref_key: "qlist",
|
|
220
|
+
ref: F
|
|
221
|
+
}, {
|
|
222
|
+
default: B(() => [
|
|
223
|
+
i(a).infos.length > 0 ? (u(!0), d(I, { key: 0 }, le(i(a).infos, (n) => (u(), d("div", {
|
|
224
|
+
key: n.sourceUrl,
|
|
225
|
+
onClick: (W) => z(n),
|
|
226
|
+
class: y(["info-item", { active: e.isPlaying(n) }])
|
|
227
|
+
}, [
|
|
228
|
+
o("div", Be, [
|
|
229
|
+
o("div", Te, [
|
|
230
|
+
h(ae, {
|
|
231
|
+
fit: "fill",
|
|
232
|
+
src: L(n),
|
|
233
|
+
"no-spinner": ""
|
|
234
|
+
}, {
|
|
235
|
+
default: B(() => [
|
|
236
|
+
o("div", {
|
|
237
|
+
class: y(["absolute-bottom-right text-subtitle2 item-subtitle", { "item-invalid": n.invalid }])
|
|
238
|
+
}, [
|
|
239
|
+
n.invalid ? (u(), d(I, { key: 0 }, [
|
|
240
|
+
h(T, { name: "svguse:#icon-\u5931\u6548.svg" }),
|
|
241
|
+
V(" \u5DF2\u5931\u6548 ")
|
|
242
|
+
], 64)) : (u(), d(I, { key: 1 }, [
|
|
243
|
+
V(g(i(K)(n.duration)), 1)
|
|
244
|
+
], 64))
|
|
245
|
+
], 2)
|
|
246
|
+
]),
|
|
247
|
+
_: 2
|
|
248
|
+
}, 1032, ["src"])
|
|
249
|
+
]),
|
|
250
|
+
o("div", Se, [
|
|
251
|
+
o("div", Pe, g(n.name || n.sourceUrl), 1),
|
|
252
|
+
o("div", Ae, [
|
|
253
|
+
!n.invalid && e.isPlaying(n) ? (u(), $(me, { key: 0 })) : k("", !0),
|
|
254
|
+
V(" " + g(j(n)), 1)
|
|
255
|
+
])
|
|
256
|
+
]),
|
|
257
|
+
o("div", null, [
|
|
258
|
+
i(v) ? (u(), $(fe, {
|
|
259
|
+
key: 0,
|
|
260
|
+
keyValue: n._id,
|
|
261
|
+
selectedKeys: i(m),
|
|
262
|
+
onToggle: (W) => i(N)(n._id)
|
|
263
|
+
}, null, 8, ["keyValue", "selectedKeys", "onToggle"])) : k("", !0)
|
|
264
|
+
])
|
|
265
|
+
])
|
|
266
|
+
], 10, we))), 128)) : (u(), d("div", Ue, Qe))
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
}, 8, ["class"]),
|
|
270
|
+
i(v) ? (u(), d("div", {
|
|
271
|
+
key: 0,
|
|
272
|
+
class: y(`${p}-delete ${((A = i(m)) == null ? void 0 : A.length) && `${p}-delete-active`}`),
|
|
273
|
+
onClick: J
|
|
274
|
+
}, " \u5220\u9664" + g(i(m).length > 0 ? `\uFF08${i(m).length}\uFF09` : ""), 3)) : k("", !0)
|
|
275
|
+
]);
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
const Me = /* @__PURE__ */ D(He, [["__scopeId", "data-v-4e728578"]]), Le = /* @__PURE__ */ x({
|
|
280
|
+
__name: "list",
|
|
281
|
+
props: {
|
|
282
|
+
player: null
|
|
283
|
+
},
|
|
284
|
+
setup(e) {
|
|
285
|
+
const s = e;
|
|
286
|
+
function l(c) {
|
|
287
|
+
return c.sourceUrl === s.player.currentSrc();
|
|
288
|
+
}
|
|
289
|
+
function a() {
|
|
290
|
+
s.player.trigger({ type: "back" });
|
|
291
|
+
}
|
|
292
|
+
function r(c) {
|
|
293
|
+
s.player.trigger({ type: "openVideo", info: c });
|
|
294
|
+
}
|
|
295
|
+
return (c, p) => (u(), $(Me, {
|
|
296
|
+
player: e.player,
|
|
297
|
+
isPlaying: l,
|
|
298
|
+
onBack: a,
|
|
299
|
+
onOpenVideo: r
|
|
300
|
+
}, null, 8, ["player"]));
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
export {
|
|
304
|
+
Le as default
|
|
305
|
+
};
|