daily-video-editor 0.1.3 → 0.1.4
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 +7 -5
- 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;
|