1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-05-01 06:39:01 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
大脸怪
c98e489063
Merge pull request #82 from mengdebiao/2.x
fix: 修复 crud 组件不显示总条数
2024-06-18 21:36:44 +08:00
mdb
0ab029a124 fix: 修复 crud 组件不显示总条数 2024-06-18 21:09:03 +08:00

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 {