1、完善客商模块
2、完善基础数据模块 3、完善规范
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div v-if="isEmptyTotal" class="empty-pagination avue-crud__pagination">
|
||||
<div v-if="shouldShow" class="empty-pagination avue-crud__pagination">
|
||||
<el-pagination
|
||||
background
|
||||
:current-page="page.currentPage"
|
||||
@@ -21,9 +21,16 @@ export default {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
alwaysShow: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
emits: ['size-change', 'current-change', 'load'],
|
||||
computed: {
|
||||
shouldShow() {
|
||||
return this.alwaysShow || this.isEmptyTotal;
|
||||
},
|
||||
isEmptyTotal() {
|
||||
return Number(this.page.total || 0) === 0;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user