@94ai/nf-audio 8.0.5 → 8.0.12
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/lib/nf-audio.cjs.js +7 -5
- package/lib/nf-audio.esm-bundler.js +7 -5
- package/lib/style/css.d.ts +1 -1
- package/lib/style/index.d.ts +1 -1
- package/package/nf-audio.vue +5 -5
- package/package.json +4 -4
package/lib/nf-audio.cjs.js
CHANGED
|
@@ -209,9 +209,9 @@ const _sfc_main = {
|
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
211
|
methods: {
|
|
212
|
-
locationToTime(time) {
|
|
212
|
+
locationToTime(time, autoPlay) {
|
|
213
213
|
this.betweenPlaying = false;
|
|
214
|
-
this.jumpToTime(time);
|
|
214
|
+
this.jumpToTime(time, autoPlay);
|
|
215
215
|
},
|
|
216
216
|
docClick(e) {
|
|
217
217
|
if (this.$refs.popperRef.contains(e.target) || this.$refs.reference.contains(e.target)) {
|
|
@@ -519,7 +519,7 @@ const _sfc_main = {
|
|
|
519
519
|
checkAudioEffectNull() {
|
|
520
520
|
return this.audio.duration === 0 || Number.isNaN(this.audio.duration);
|
|
521
521
|
},
|
|
522
|
-
jumpToTime(time) {
|
|
522
|
+
jumpToTime(time, autoPlay = true) {
|
|
523
523
|
if (!this.disabled) {
|
|
524
524
|
this.pauseAudio();
|
|
525
525
|
if (this.checkAudioEffectNull()) {
|
|
@@ -537,12 +537,14 @@ const _sfc_main = {
|
|
|
537
537
|
this.audio.currentTime = time;
|
|
538
538
|
this.currentTime = timeFormat(this.audio.currentTime);
|
|
539
539
|
this.calcMoveX();
|
|
540
|
-
|
|
540
|
+
if (autoPlay)
|
|
541
|
+
this.playAudio();
|
|
541
542
|
} else {
|
|
542
543
|
this.audio.currentTime = 0;
|
|
543
544
|
this.currentTime = timeFormat(this.audio.currentTime);
|
|
544
545
|
this.calcMoveX();
|
|
545
|
-
|
|
546
|
+
if (autoPlay)
|
|
547
|
+
this.playAudio();
|
|
546
548
|
}
|
|
547
549
|
this.$emit("jumpToTime", time);
|
|
548
550
|
}
|
|
@@ -207,9 +207,9 @@ const _sfc_main = {
|
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
methods: {
|
|
210
|
-
locationToTime(time) {
|
|
210
|
+
locationToTime(time, autoPlay) {
|
|
211
211
|
this.betweenPlaying = false;
|
|
212
|
-
this.jumpToTime(time);
|
|
212
|
+
this.jumpToTime(time, autoPlay);
|
|
213
213
|
},
|
|
214
214
|
docClick(e) {
|
|
215
215
|
if (this.$refs.popperRef.contains(e.target) || this.$refs.reference.contains(e.target)) {
|
|
@@ -517,7 +517,7 @@ const _sfc_main = {
|
|
|
517
517
|
checkAudioEffectNull() {
|
|
518
518
|
return this.audio.duration === 0 || Number.isNaN(this.audio.duration);
|
|
519
519
|
},
|
|
520
|
-
jumpToTime(time) {
|
|
520
|
+
jumpToTime(time, autoPlay = true) {
|
|
521
521
|
if (!this.disabled) {
|
|
522
522
|
this.pauseAudio();
|
|
523
523
|
if (this.checkAudioEffectNull()) {
|
|
@@ -535,12 +535,14 @@ const _sfc_main = {
|
|
|
535
535
|
this.audio.currentTime = time;
|
|
536
536
|
this.currentTime = timeFormat(this.audio.currentTime);
|
|
537
537
|
this.calcMoveX();
|
|
538
|
-
|
|
538
|
+
if (autoPlay)
|
|
539
|
+
this.playAudio();
|
|
539
540
|
} else {
|
|
540
541
|
this.audio.currentTime = 0;
|
|
541
542
|
this.currentTime = timeFormat(this.audio.currentTime);
|
|
542
543
|
this.calcMoveX();
|
|
543
|
-
|
|
544
|
+
if (autoPlay)
|
|
545
|
+
this.playAudio();
|
|
544
546
|
}
|
|
545
547
|
this.$emit("jumpToTime", time);
|
|
546
548
|
}
|
package/lib/style/css.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/lib/style/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/package/nf-audio.vue
CHANGED
|
@@ -393,9 +393,9 @@ export default {
|
|
|
393
393
|
}
|
|
394
394
|
},
|
|
395
395
|
methods: {
|
|
396
|
-
locationToTime(time) {
|
|
396
|
+
locationToTime(time, autoPlay) {
|
|
397
397
|
this.betweenPlaying = false
|
|
398
|
-
this.jumpToTime(time)
|
|
398
|
+
this.jumpToTime(time, autoPlay)
|
|
399
399
|
},
|
|
400
400
|
docClick(e) {
|
|
401
401
|
//如果点击的是音量 或者 是音量面板 则 不隐藏音量面板
|
|
@@ -713,7 +713,7 @@ export default {
|
|
|
713
713
|
checkAudioEffectNull() {
|
|
714
714
|
return this.audio.duration === 0 || Number.isNaN(this.audio.duration)
|
|
715
715
|
},
|
|
716
|
-
jumpToTime(time) {
|
|
716
|
+
jumpToTime(time, autoPlay = true) {
|
|
717
717
|
if (!this.disabled) {
|
|
718
718
|
this.pauseAudio()
|
|
719
719
|
if (this.checkAudioEffectNull()) {
|
|
@@ -738,12 +738,12 @@ export default {
|
|
|
738
738
|
this.audio.currentTime = time
|
|
739
739
|
this.currentTime = timeFormat(this.audio.currentTime)
|
|
740
740
|
this.calcMoveX()
|
|
741
|
-
this.playAudio()
|
|
741
|
+
if(autoPlay) this.playAudio()
|
|
742
742
|
} else {
|
|
743
743
|
this.audio.currentTime = 0
|
|
744
744
|
this.currentTime = timeFormat(this.audio.currentTime)
|
|
745
745
|
this.calcMoveX()
|
|
746
|
-
this.playAudio()
|
|
746
|
+
if(autoPlay) this.playAudio()
|
|
747
747
|
}
|
|
748
748
|
this.$emit('jumpToTime', time)
|
|
749
749
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-audio",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.12",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "liuxiangxiang <liuxiangxiang@94ai.com>",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/nf-message": "^8.0.
|
|
18
|
-
"@94ai/nf-theme-chalk": "^8.0.
|
|
17
|
+
"@94ai/nf-message": "^8.0.12",
|
|
18
|
+
"@94ai/nf-theme-chalk": "^8.0.12",
|
|
19
19
|
"vue-demi": "^0.14.5"
|
|
20
20
|
},
|
|
21
21
|
"peerDependenciesMeta": {
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"types": "lib/index.d.ts",
|
|
32
32
|
"main": "lib/nf-audio.cjs.js",
|
|
33
33
|
"module": "lib/nf-audio.esm-bundler.js",
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "dd2adc2b66c074a49c7a33477c806464d85ee254"
|
|
35
35
|
}
|