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

Merge pull request #82 from mengdebiao/2.x

fix: 修复 crud 组件不显示总条数
This commit is contained in:
大脸怪 2024-06-18 21:36:44 +08:00 committed by GitHub
commit c98e489063
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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