@94ai/nf-audio 3.2.4 → 3.2.21
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 +13 -13
- package/lib/nf-audio.esm-bundler.js +13 -13
- package/package/more-btn.vue +1 -1
- package/package/nf-audio.vue +6 -6
- package/package/volume-tool.vue +0 -1
- package/package.json +3 -3
package/lib/nf-audio.cjs.js
CHANGED
|
@@ -136,8 +136,8 @@ var _sfc_render$1 = function render2() {
|
|
|
136
136
|
"slot": "reference"
|
|
137
137
|
},
|
|
138
138
|
slot: "reference"
|
|
139
|
-
}, [_c("
|
|
140
|
-
staticClass: "more-btn"
|
|
139
|
+
}, [_c("i", {
|
|
140
|
+
staticClass: "iconfont icon-gengduo1 more-btn"
|
|
141
141
|
})])])], 1);
|
|
142
142
|
};
|
|
143
143
|
var _sfc_staticRenderFns$1 = [];
|
|
@@ -370,8 +370,8 @@ var _sfc_render = function render3() {
|
|
|
370
370
|
}
|
|
371
371
|
}), _c("div", {
|
|
372
372
|
staticClass: "nf-fast"
|
|
373
|
-
}, [_c("
|
|
374
|
-
staticClass: "nf-fast-icon",
|
|
373
|
+
}, [_c("i", {
|
|
374
|
+
staticClass: "iconfont icon-zanting1 nf-fast-icon",
|
|
375
375
|
on: {
|
|
376
376
|
"click": _vm.jumpToTime
|
|
377
377
|
}
|
|
@@ -382,22 +382,22 @@ var _sfc_render = function render3() {
|
|
|
382
382
|
on: {
|
|
383
383
|
"click": _vm.handlePauseOrPlay
|
|
384
384
|
}
|
|
385
|
-
}, [_c("
|
|
385
|
+
}, [_c("i", {
|
|
386
386
|
directives: [{
|
|
387
387
|
name: "show",
|
|
388
388
|
rawName: "v-show",
|
|
389
389
|
value: !_vm.paused,
|
|
390
390
|
expression: "!paused"
|
|
391
391
|
}],
|
|
392
|
-
staticClass: "pause-icon"
|
|
393
|
-
}), _c("
|
|
392
|
+
staticClass: "iconfont icon-zanting2 pause-icon"
|
|
393
|
+
}), _c("i", {
|
|
394
394
|
directives: [{
|
|
395
395
|
name: "show",
|
|
396
396
|
rawName: "v-show",
|
|
397
397
|
value: _vm.paused,
|
|
398
398
|
expression: "paused"
|
|
399
399
|
}],
|
|
400
|
-
staticClass: "play-icon"
|
|
400
|
+
staticClass: "iconfont icon-bofang1 play-icon"
|
|
401
401
|
})]), _c("div", {
|
|
402
402
|
staticClass: "time"
|
|
403
403
|
}, [_c("span", {
|
|
@@ -434,16 +434,16 @@ var _sfc_render = function render3() {
|
|
|
434
434
|
scopedSlots: _vm._u([{
|
|
435
435
|
key: "reference",
|
|
436
436
|
fn: function() {
|
|
437
|
-
return [_vm.volume == 0 ? _c("
|
|
438
|
-
staticClass: "volume"
|
|
439
|
-
}) : _c("
|
|
440
|
-
staticClass: "volume
|
|
437
|
+
return [_vm.volume == 0 ? _c("i", {
|
|
438
|
+
staticClass: "iconfont icon-yinliang_guanbi volume-mute"
|
|
439
|
+
}) : _c("i", {
|
|
440
|
+
staticClass: "iconfont icon-yinliang_kaiqi volume"
|
|
441
441
|
})];
|
|
442
442
|
},
|
|
443
443
|
proxy: true
|
|
444
444
|
}])
|
|
445
445
|
}, [_c("el-slider", {
|
|
446
|
-
class: _vm.volumeValue === 0 ? "volume-mute" : "volume-phonic",
|
|
446
|
+
class: _vm.volumeValue === 0 ? "volume-mute-slider" : "volume-phonic",
|
|
447
447
|
attrs: {
|
|
448
448
|
"vertical": "",
|
|
449
449
|
"min": 0,
|
|
@@ -134,8 +134,8 @@ var _sfc_render$1 = function render2() {
|
|
|
134
134
|
"slot": "reference"
|
|
135
135
|
},
|
|
136
136
|
slot: "reference"
|
|
137
|
-
}, [_c("
|
|
138
|
-
staticClass: "more-btn"
|
|
137
|
+
}, [_c("i", {
|
|
138
|
+
staticClass: "iconfont icon-gengduo1 more-btn"
|
|
139
139
|
})])])], 1);
|
|
140
140
|
};
|
|
141
141
|
var _sfc_staticRenderFns$1 = [];
|
|
@@ -368,8 +368,8 @@ var _sfc_render = function render3() {
|
|
|
368
368
|
}
|
|
369
369
|
}), _c("div", {
|
|
370
370
|
staticClass: "nf-fast"
|
|
371
|
-
}, [_c("
|
|
372
|
-
staticClass: "nf-fast-icon",
|
|
371
|
+
}, [_c("i", {
|
|
372
|
+
staticClass: "iconfont icon-zanting1 nf-fast-icon",
|
|
373
373
|
on: {
|
|
374
374
|
"click": _vm.jumpToTime
|
|
375
375
|
}
|
|
@@ -380,22 +380,22 @@ var _sfc_render = function render3() {
|
|
|
380
380
|
on: {
|
|
381
381
|
"click": _vm.handlePauseOrPlay
|
|
382
382
|
}
|
|
383
|
-
}, [_c("
|
|
383
|
+
}, [_c("i", {
|
|
384
384
|
directives: [{
|
|
385
385
|
name: "show",
|
|
386
386
|
rawName: "v-show",
|
|
387
387
|
value: !_vm.paused,
|
|
388
388
|
expression: "!paused"
|
|
389
389
|
}],
|
|
390
|
-
staticClass: "pause-icon"
|
|
391
|
-
}), _c("
|
|
390
|
+
staticClass: "iconfont icon-zanting2 pause-icon"
|
|
391
|
+
}), _c("i", {
|
|
392
392
|
directives: [{
|
|
393
393
|
name: "show",
|
|
394
394
|
rawName: "v-show",
|
|
395
395
|
value: _vm.paused,
|
|
396
396
|
expression: "paused"
|
|
397
397
|
}],
|
|
398
|
-
staticClass: "play-icon"
|
|
398
|
+
staticClass: "iconfont icon-bofang1 play-icon"
|
|
399
399
|
})]), _c("div", {
|
|
400
400
|
staticClass: "time"
|
|
401
401
|
}, [_c("span", {
|
|
@@ -432,16 +432,16 @@ var _sfc_render = function render3() {
|
|
|
432
432
|
scopedSlots: _vm._u([{
|
|
433
433
|
key: "reference",
|
|
434
434
|
fn: function() {
|
|
435
|
-
return [_vm.volume == 0 ? _c("
|
|
436
|
-
staticClass: "volume"
|
|
437
|
-
}) : _c("
|
|
438
|
-
staticClass: "volume
|
|
435
|
+
return [_vm.volume == 0 ? _c("i", {
|
|
436
|
+
staticClass: "iconfont icon-yinliang_guanbi volume-mute"
|
|
437
|
+
}) : _c("i", {
|
|
438
|
+
staticClass: "iconfont icon-yinliang_kaiqi volume"
|
|
439
439
|
})];
|
|
440
440
|
},
|
|
441
441
|
proxy: true
|
|
442
442
|
}])
|
|
443
443
|
}, [_c("el-slider", {
|
|
444
|
-
class: _vm.volumeValue === 0 ? "volume-mute" : "volume-phonic",
|
|
444
|
+
class: _vm.volumeValue === 0 ? "volume-mute-slider" : "volume-phonic",
|
|
445
445
|
attrs: {
|
|
446
446
|
"vertical": "",
|
|
447
447
|
"min": 0,
|
package/package/more-btn.vue
CHANGED
package/package/nf-audio.vue
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<audio @canplay="getDuration" controls crossOrigin="anonymous" @timeupdate="updateTime" @ended="handleAudioEnded" v-show="false" ref="audio"
|
|
4
4
|
:src="audioSrc"/>
|
|
5
5
|
<div class="nf-fast">
|
|
6
|
-
<
|
|
6
|
+
<i class="iconfont icon-zanting1 nf-fast-icon" @click="jumpToTime" />
|
|
7
7
|
<!-- 以下是 快进/快退 功能 -->
|
|
8
8
|
<!--
|
|
9
9
|
<div>
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
</div>
|
|
22
22
|
<div class="nf-audio">
|
|
23
23
|
<div class="play" @click="handlePauseOrPlay">
|
|
24
|
-
<
|
|
25
|
-
<
|
|
24
|
+
<i class="iconfont icon-zanting2 pause-icon" v-show="!paused"/>
|
|
25
|
+
<i class="iconfont icon-bofang1 play-icon" v-show="paused"/>
|
|
26
26
|
</div>
|
|
27
27
|
<div class="time">
|
|
28
28
|
<span class="startTime">{{ currentDuration }}</span>/
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
<div class="nf-volume-panel">
|
|
37
37
|
<volumeTool :visible.sync="volumeVisible">
|
|
38
38
|
<template v-slot:reference>
|
|
39
|
-
<
|
|
40
|
-
<
|
|
39
|
+
<i class="iconfont icon-yinliang_guanbi volume-mute" v-if="volume == 0" />
|
|
40
|
+
<i class="iconfont icon-yinliang_kaiqi volume" v-else/>
|
|
41
41
|
</template>
|
|
42
42
|
<el-slider
|
|
43
43
|
v-model="volumeValue"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
:min="0"
|
|
46
46
|
:max="100"
|
|
47
47
|
:show-tooltip="volumeVisible"
|
|
48
|
-
:class="volumeValue===0 ? 'volume-mute' : 'volume-phonic'"
|
|
48
|
+
:class="volumeValue===0 ? 'volume-mute-slider' : 'volume-phonic'"
|
|
49
49
|
@change="rangeVolume"
|
|
50
50
|
height="60px">
|
|
51
51
|
</el-slider>
|
package/package/volume-tool.vue
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-audio",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.21",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "liuxiangxiang <liuxiangxiang@94ai.com>",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/nf-theme-chalk": "^3.2.
|
|
17
|
+
"@94ai/nf-theme-chalk": "^3.2.21",
|
|
18
18
|
"vue-demi": "^0.14.5"
|
|
19
19
|
},
|
|
20
20
|
"peerDependenciesMeta": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"types": "lib/index.d.ts",
|
|
31
31
|
"main": "lib/nf-audio.cjs.js",
|
|
32
32
|
"module": "lib/nf-audio.esm-bundler.js",
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "8da3362ffe37c1c3114c8bca6c0fe24ac21c0c78"
|
|
34
34
|
}
|