1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-04-30 22:29:01 +08:00

fix: 修复 crud 组件不显示总条数

This commit is contained in:
mdb 2024-06-18 21:09:03 +08:00
parent e30e1fa27f
commit 0ab029a124

View File

@ -95,7 +95,13 @@ const emit = defineEmits(['update:queryItems', 'onChecked', 'onDataChange'])
const loading = ref(false) const loading = ref(false)
const initQuery = { ...props.queryItems } const initQuery = { ...props.queryItems }
const tableData = ref([]) const tableData = ref([])
const pagination = reactive({ page: 1, pageSize: 10 }) const pagination = reactive({
page: 1,
pageSize: 10,
prefix({ itemCount }) {
return `${itemCount} 条数据`
},
})
async function handleQuery() { async function handleQuery() {
try { try {