@sigmaott/base-library-next 2.2.7 → 2.2.8
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/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
// import { fileSizeFilter } from './fileSizeFilter'
|
|
3
3
|
|
|
4
|
-
const props = defineProps<{ media: any }>()
|
|
4
|
+
const props = defineProps<{ media: any, isShowPId?: boolean }>()
|
|
5
5
|
|
|
6
6
|
const hasInterlaced = computed(() => {
|
|
7
7
|
return (
|
|
8
8
|
(props.media && props.media.interlaced)
|
|
9
9
|
|| (props.media
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
&& !props.media.interlaced
|
|
11
|
+
&& typeof props.media.interlaced === 'boolean')
|
|
12
12
|
)
|
|
13
13
|
})
|
|
14
14
|
|
|
@@ -30,10 +30,17 @@ function fileSizeFilter(size: number) {
|
|
|
30
30
|
<template>
|
|
31
31
|
<div class="item-list-row inline-flex">
|
|
32
32
|
<ul class="flex flex-wrap items-center justify-center">
|
|
33
|
+
<template v-if="isShowPId">
|
|
34
|
+
<li title="PID">
|
|
35
|
+
<div class="i-carbon:id text-primary text-20px" />
|
|
36
|
+
<span>{{ media.id }}</span>
|
|
37
|
+
</li>
|
|
38
|
+
</template>
|
|
33
39
|
<template v-if="media && media.name && media.type !== 'video'">
|
|
34
40
|
<li title="Name">
|
|
35
41
|
<el-icon>
|
|
36
|
-
<div class="i-ep:camera-filled text-primary"
|
|
42
|
+
<div class="i-ep:camera-filled text-primary"
|
|
43
|
+
:class="media.type === 'audio' ? 'i-ep:headset' : 'i-ep:menu'" />
|
|
37
44
|
</el-icon>
|
|
38
45
|
<span v-if="media.codec === 'copy'"> </span>
|
|
39
46
|
<span class="item__name" :title="media.name">{{
|
|
@@ -62,7 +69,8 @@ function fileSizeFilter(size: number) {
|
|
|
62
69
|
<el-icon>
|
|
63
70
|
<div class="i-ep:scale-to-original text-teal-600" />
|
|
64
71
|
</el-icon>
|
|
65
|
-
<span>{{ media.audioBitrate ? fileSizeFilter(media.audioBitrate || media.bitrate) :
|
|
72
|
+
<span>{{ media.audioBitrate ? fileSizeFilter(media.audioBitrate || media.bitrate) :
|
|
73
|
+
fileSizeFilter(media.videoBitrate || media.bitrate) }}/s</span>
|
|
66
74
|
</li>
|
|
67
75
|
</template>
|
|
68
76
|
<template v-if="media?.fps && media?.fps !== 0 && media.type !== 'data'">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
// import { fileSizeFilter } from './fileSizeFilter'
|
|
3
3
|
|
|
4
|
-
defineProps<{ media: any; encoding?: boolean
|
|
4
|
+
defineProps<{ media: any; encoding?: boolean }>()
|
|
5
5
|
|
|
6
6
|
function fileSizeFilter(size: number) {
|
|
7
7
|
if (Number.isNaN(size))
|
|
@@ -14,12 +14,6 @@ function fileSizeFilter(size: number) {
|
|
|
14
14
|
<template>
|
|
15
15
|
<div class="item-list-row relative inline-flex border-1px border-primary rounded-4px border-solid p-5px">
|
|
16
16
|
<ul class="flex flex-wrap items-center justify-center">
|
|
17
|
-
<template v-if="isShowPId">
|
|
18
|
-
<li title="PID">
|
|
19
|
-
<div class="i-carbon:id text-primary text-20px" />
|
|
20
|
-
<span>{{ media.id }}</span>
|
|
21
|
-
</li>
|
|
22
|
-
</template>
|
|
23
17
|
<template v-if="media?.name && media?.type !== 'video'">
|
|
24
18
|
<el-tooltip :content="$t('profile.name')" placement="top">
|
|
25
19
|
<li>
|