daily-video-editor 0.1.3 → 0.1.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/index.js +9 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21622,7 +21622,10 @@ function Z1(A) {
|
|
|
21622
21622
|
aA.endTime != null && ($ = !0, X = Math.max(X, aA.endTime));
|
|
21623
21623
|
return $ ? X : G.reduce((aA, DA) => aA + (DA.durationSec || 0), 0);
|
|
21624
21624
|
}
|
|
21625
|
-
const R = Y(() =>
|
|
21625
|
+
const R = Y(() => {
|
|
21626
|
+
const G = w();
|
|
21627
|
+
return G > 0 ? G : h();
|
|
21628
|
+
}), S = Y(() => !a.value.length && h() > 0), U = Y(() => B.value === 0 ? e.value : n.value), x = Y(() => B.value === 0 ? n.value : e.value);
|
|
21626
21629
|
let M = 0, eA = null, j = !1, T = 0, y = 0, v = 0, D = 0, N = -1, Z = -1, J = -1, L = 0, K = 0;
|
|
21627
21630
|
function P(G) {
|
|
21628
21631
|
var $;
|
|
@@ -35665,7 +35668,7 @@ const eS = { class: "flex items-center gap-3" }, tS = { class: "relative flex h-
|
|
|
35665
35668
|
submitting: { type: Boolean },
|
|
35666
35669
|
title: { default: "上传音频" },
|
|
35667
35670
|
pickerText: { default: "点击或拖拽上传音频" },
|
|
35668
|
-
successText: { default: "
|
|
35671
|
+
successText: { default: "已添加到音频列表" }
|
|
35669
35672
|
},
|
|
35670
35673
|
emits: ["update:open", "uploaded"],
|
|
35671
35674
|
setup(A, { emit: e }) {
|
|
@@ -36356,9 +36359,8 @@ function vZ(A, e, n, g) {
|
|
|
36356
36359
|
n.onAddTextTemplate(K, L.startTime);
|
|
36357
36360
|
}
|
|
36358
36361
|
function M(L, K) {
|
|
36359
|
-
|
|
36360
|
-
|
|
36361
|
-
e.audioAssets.value = AA, g("audio-uploaded", { file: K, item: L, items: AA }), R(P, L);
|
|
36362
|
+
const P = [...e.audioAssets.value, L];
|
|
36363
|
+
e.audioAssets.value = P, g("audio-uploaded", { file: K, item: L, items: P });
|
|
36362
36364
|
}
|
|
36363
36365
|
async function eA(L) {
|
|
36364
36366
|
var AA;
|
|
@@ -36993,7 +36995,7 @@ function ZZ(A, e, n, g) {
|
|
|
36993
36995
|
T.length && await iQ(
|
|
36994
36996
|
T,
|
|
36995
36997
|
(D) => {
|
|
36996
|
-
U(D.id, D.durationSec), n.syncDerivedClipsFromTimeline();
|
|
36998
|
+
U(D.id, D.durationSec), n.syncDerivedClipsFromTimeline(), b();
|
|
36997
36999
|
},
|
|
36998
37000
|
f
|
|
36999
37001
|
);
|
|
@@ -37026,7 +37028,7 @@ function ZZ(A, e, n, g) {
|
|
|
37026
37028
|
const D = A.modelValue.tracks;
|
|
37027
37029
|
!!(D != null && D.some((Z) => Z.clips.length > 0)) && D && ((v = e.timelineRef.value) == null || v.importTracks(D), e.tracks.value = JSON.parse(JSON.stringify(D)));
|
|
37028
37030
|
}
|
|
37029
|
-
I = !0, n.syncDerivedClipsFromTimeline(), n.syncSidebarFromTracks(), g("ready"), await x(), T === s && S() && (c = window.setTimeout(() => {
|
|
37031
|
+
I = !0, n.syncDerivedClipsFromTimeline(), n.syncSidebarFromTracks(), b(), g("ready"), await x(), T === s && S() && (c = window.setTimeout(() => {
|
|
37030
37032
|
c = null, T === s && x();
|
|
37031
37033
|
}, C));
|
|
37032
37034
|
}
|