|
|
@@ -11,6 +11,7 @@
|
|
|
<slot
|
|
|
name="header"
|
|
|
:condition="options.params"
|
|
|
+ :total-count="options.totalCount"
|
|
|
/>
|
|
|
<template v-if="buttons">
|
|
|
<button
|
|
|
@@ -77,6 +78,7 @@
|
|
|
<grid-table-body
|
|
|
:data="tableData"
|
|
|
:item-render="itemRender"
|
|
|
+ v-bind="$attrs"
|
|
|
/>
|
|
|
<pagination
|
|
|
:total="options.totalCount"
|
|
|
@@ -101,11 +103,13 @@ export default {
|
|
|
mixins: [tableMixin],
|
|
|
data () {
|
|
|
return {
|
|
|
- pageSize: 8,
|
|
|
itemRender: null
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
+ pageSize () {
|
|
|
+ return this.schema.pageSize || 8
|
|
|
+ },
|
|
|
isAbnormal () {
|
|
|
const options = this.options
|
|
|
return options.error || !options.loading && options.totalCount === 0
|