add 分页总数

This commit is contained in:
2022-11-15 14:55:22 +08:00
parent e7e7aeda2d
commit 7b125d0216
4 changed files with 11 additions and 8 deletions

View File

@@ -22,6 +22,7 @@ export interface PageProps {
pages?: number;
limits?: number[];
modelValue?: number;
count?: number;
}
const props = withDefaults(defineProps<PageProps>(), {
@@ -223,6 +224,6 @@ watch(
{{ t("page.confirm") }}
</button>
</span>
<span>共11</span>
<span v-if="props.count">{{props.count}}</span>
</div>
</template>