修改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> <style lang="scss" scoped>
.container { .container {
width: 100%; width: 100%;
min-height: calc(100vh - 50px); /*min-height: calc(100vh - 50px);*/
} }
.share-empty { .share-empty {
height: 30%; height: 30%;

View File

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

View File

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

View File

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