add page count

This commit is contained in:
2022-11-15 14:58:26 +08:00
parent 7b125d0216
commit eb1b0c9b16
7 changed files with 20 additions and 11 deletions

View File

@@ -224,6 +224,6 @@ watch(
{{ t("page.confirm") }}
</button>
</span>
<span v-if="props.count">{{props.count}}</span>
<span v-if="count">{{count}}</span>
</div>
</template>

View File

@@ -21,6 +21,7 @@ export interface TablePageProps {
total: number;
limit: number;
theme?: string;
count?:number;
}
const props = withDefaults(defineProps<TablePageProps>(), {
@@ -65,6 +66,7 @@ const change = (pageData: any) => {
:limits="limits"
:theme="theme"
:pages="pages"
:count="count"
v-model="current"
v-model:limit="limit"
@change="change"

View File

@@ -910,6 +910,7 @@ onBeforeUnmount(() => {
:showRefresh="page.showRefresh"
:showLimit="page.showLimit"
:showCount="page.showCount"
:count="page.count"
v-model:current="page.current"
v-model:limit="page.limit"
@change="change"