修改showFile

This commit is contained in:
jmal 2020-04-17 23:21:59 +08:00
parent 1eb23fe7f1
commit 65ae60521f
4 changed files with 7 additions and 7 deletions

View File

@ -45,7 +45,7 @@
<style lang="scss" scoped>
.container {
width: 100%;
min-height: calc(100vh - 50px);
/*min-height: calc(100vh - 50px);*/
}
.share-empty {
height: 30%;

View File

@ -144,10 +144,10 @@
<!--list布局-->
<!--<div v-show="!grid && fileList.length > 0" :style="{'width':'100%','height': clientHeight+'px'}">-->
<div id="v-draw-rectangle" :style="{'width':'100%','height': clientHeight+'px'}">
<div v-show="fileList.length > 0" id="v-draw-rectangle" :style="{'width':'100%','height': clientHeight+'px'}">
<pl-table
ref="fileListTable"
v-show="!grid && fileList.length > 0"
v-show="!grid"
v-loading="tableLoading"
:max-height="clientHeight"
:default-sort="sortable"
@ -291,7 +291,7 @@
<!--grid布局-->
<div v-show="grid && fileList.length > 0" v-loading="tableLoading"
<div v-show="grid" v-loading="tableLoading"
element-loading-text="文件加载中"
element-loading-spinner="el-icon-loading"
element-loading-background="#f6f7fa88">
@ -342,7 +342,7 @@
</div>
<empty-file
v-if="this.fileList.length < 1 && !tableLoading"
v-if="fileList.length < 1 && !tableLoading"
:emptyStatus="emptyStatus"
>
</empty-file>

View File

@ -113,7 +113,7 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.button {
--background: #409EFF;
--background-hover: #6bcbff;

View File

@ -106,7 +106,7 @@ export function substring(str,n){
*/
export function formatTime(agoTime) {
const diff = agoTime / 1000
if (diff < 30) {
if (diff < 60) {
return '刚刚'
} else if (diff < 3600) {
// less 1 hour