|
|
@@ -13,9 +13,7 @@
|
|
|
@ended="onAudioEnded"
|
|
|
@error="onAudioError"
|
|
|
/>
|
|
|
- <div
|
|
|
- class="c-designer__side c-side"
|
|
|
- >
|
|
|
+ <div class="c-designer__side c-side">
|
|
|
<div class="c-side__tool">
|
|
|
<div
|
|
|
class="c-side__item"
|
|
|
@@ -605,12 +603,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
saveAssets () {
|
|
|
- this.changeAttr(this.sources.map(({ name, keyName, size, md5 }) => {
|
|
|
- return { name, keyName, size, md5 }
|
|
|
+ this.changeAttr(this.sources.map(({ name, keyName, duration, size, md5 }) => {
|
|
|
+ const source = { name, keyName, size, md5 }
|
|
|
+ if (!this.isImage) {
|
|
|
+ source.duration = duration
|
|
|
+ }
|
|
|
+ return source
|
|
|
}))
|
|
|
this.handleCloseAssetsDialog()
|
|
|
},
|
|
|
- chooseAsset ({ originalName, keyName, url, size, md5 }) {
|
|
|
+ chooseAsset ({ originalName, keyName, url, duration, size, md5 }) {
|
|
|
const source = {
|
|
|
name: originalName,
|
|
|
keyName,
|
|
|
@@ -620,6 +622,8 @@ export default {
|
|
|
if (this.dialogVisibleAssets) {
|
|
|
if (this.isImage) {
|
|
|
source.url = url
|
|
|
+ } else {
|
|
|
+ source.duration = duration
|
|
|
}
|
|
|
this.sources.unshift(source)
|
|
|
} else {
|
|
|
@@ -761,7 +765,7 @@ $drak: #242a30;
|
|
|
overflow: visible;
|
|
|
|
|
|
&.dragging::after {
|
|
|
- content: '';
|
|
|
+ content: "";
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
@@ -829,13 +833,13 @@ $drak: #242a30;
|
|
|
}
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
- box-shadow: 1px 1px 5px rgba(116, 148, 170, .5) inset;
|
|
|
+ box-shadow: 1px 1px 5px rgba(116, 148, 170, 0.5) inset;
|
|
|
}
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
min-height: 20px;
|
|
|
background-clip: content-box;
|
|
|
- box-shadow: 0 0 0 5px rgba(116, 148, 170, .5) inset;
|
|
|
+ box-shadow: 0 0 0 5px rgba(116, 148, 170, 0.5) inset;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -884,14 +888,14 @@ $drak: #242a30;
|
|
|
.c-card {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
- background-color: rgba(0, 0, 0, .8);
|
|
|
+ background-color: rgba(0, 0, 0, 0.8);
|
|
|
|
|
|
&:hover &__icon {
|
|
|
display: block;
|
|
|
padding: 6px;
|
|
|
color: #fff;
|
|
|
border-radius: 50%;
|
|
|
- background-color: rgba(0, 0, 0, .6);
|
|
|
+ background-color: rgba(0, 0, 0, 0.6);
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
@@ -921,7 +925,7 @@ $drak: #242a30;
|
|
|
color: $gray;
|
|
|
font-size: 14px;
|
|
|
text-align: center;
|
|
|
- background-color: rgba(0, 0, 0, .6);
|
|
|
+ background-color: rgba(0, 0, 0, 0.6);
|
|
|
}
|
|
|
|
|
|
&__text {
|