|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <ui-group-option class="sign">
|
|
|
|
|
|
+ <ui-group-option class="sign record-sign">
|
|
<div class="content">
|
|
<div class="content">
|
|
<span class="cover">
|
|
<span class="cover">
|
|
<img :src="getResource(getFileUrl(record.cover))" alt="" v-if="record.cover">
|
|
<img :src="getResource(getFileUrl(record.cover))" alt="" v-if="record.cover">
|
|
@@ -18,6 +18,7 @@
|
|
v-show="isEditTitle"
|
|
v-show="isEditTitle"
|
|
ref="inputRef"
|
|
ref="inputRef"
|
|
height="28px"
|
|
height="28px"
|
|
|
|
+ :maxlength="15"
|
|
/>
|
|
/>
|
|
<div class="title" v-show="!isEditTitle">
|
|
<div class="title" v-show="!isEditTitle">
|
|
<p>{{ record.title }}</p>
|
|
<p>{{ record.title }}</p>
|
|
@@ -51,7 +52,7 @@
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
import { defineComponent, ref, computed, watchEffect } from 'vue'
|
|
import { defineComponent, ref, computed, watchEffect } from 'vue'
|
|
-import { getFileUrl } from '@/utils'
|
|
|
|
|
|
+import { getFileUrl, getExtname } from '@/utils'
|
|
import { useFocus } from 'bill/hook/useFocus'
|
|
import { useFocus } from 'bill/hook/useFocus'
|
|
import { RecordStatus, createRecordFragment, getRecordFragmentBlobs, recordFragments } from '@/store'
|
|
import { RecordStatus, createRecordFragment, getRecordFragmentBlobs, recordFragments } from '@/store'
|
|
import { saveAs, loadPack } from '@/utils'
|
|
import { saveAs, loadPack } from '@/utils'
|
|
@@ -114,8 +115,8 @@ export default defineComponent({
|
|
play: () => isPlayVideo.value = true,
|
|
play: () => isPlayVideo.value = true,
|
|
download() {
|
|
download() {
|
|
const url = getResource(props.record.url)
|
|
const url = getResource(props.record.url)
|
|
- const paths = url.split('/')
|
|
|
|
- loadPack(saveAs(url, paths[paths.length - 1]))
|
|
|
|
|
|
+ const ext = getExtname(url) || 'mp4'
|
|
|
|
+ loadPack(saveAs(url, `${props.record.title}.${ext}`))
|
|
},
|
|
},
|
|
}
|
|
}
|
|
props.record.immediately && actions.continue()
|
|
props.record.immediately && actions.continue()
|
|
@@ -158,4 +159,10 @@ export default defineComponent({
|
|
|
|
|
|
|
|
|
|
<style lang="scss" src="./style.scss" scoped>
|
|
<style lang="scss" src="./style.scss" scoped>
|
|
|
|
+</style>
|
|
|
|
+
|
|
|
|
+<style>
|
|
|
|
+ .record-sign .ui-input .text.suffix input {
|
|
|
|
+ padding-right: 60px;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|