冲突合并

This commit is contained in:
BianLzhaoMin 2024-12-02 18:41:52 +08:00
commit 72eb9ea652
3 changed files with 78 additions and 59 deletions

View File

@ -1,61 +1,61 @@
<script setup lang="ts"> <script setup lang="ts">
// //
const handleSizeChange = (val: Number) => { const handleSizeChange = (val: Number) => {
emit('update:pageSize', val) emit('update:pageSize', val)
// //
emit('getListChange') emit('getListChange')
} }
// //
const handleCurrentChange = (val: Number) => { const handleCurrentChange = (val: Number) => {
emit('update:pageNum', val)
//
emit('getListChange')
}
const props = withDefaults(
defineProps<{
page?: number
size?: number
total?: number
}>(),
{
page: 1,
size: 10,
total: 0,
},
)
const emit = defineEmits(['getListChange', 'update:pageSize', 'update:pageNum'])
const currentPage = computed({
get: () => {
return props.page
},
set: (val: number) => {
emit('update:pageNum', val) emit('update:pageNum', val)
// },
emit('getListChange') })
} const pageSize = computed({
get: () => {
return props.size
},
set: (val: number) => {
emit('update:pageSize', val)
},
})
const props = withDefaults( // const paginationData = reactive({
defineProps<{ // pageSize: Props.pageSize,
page?: number // pageNumber: Props.pageNumber
size?: number // })
total?: number
}>(),
{
page: 1,
size: 10,
total: 0
}
)
const emit = defineEmits(['getListChange', 'update:pageSize', 'update:pageNum']) // const handleTotalText = () => {
// const targetDom: any = document.querySelector('.el-pagination__total')
const currentPage = computed({ // targetDom.innerText = `${total.value}`
get: () => { // }
return props.page // onMounted(() => {
}, // // handleTotalText()
set: (val: number) => { // })
emit('update:pageNum', val)
}
})
const pageSize = computed({
get: () => {
return props.size
},
set: (val: number) => {
emit('update:pageSize', val)
}
})
// const paginationData = reactive({
// pageSize: Props.pageSize,
// pageNumber: Props.pageNumber
// })
// const handleTotalText = () => {
// const targetDom: any = document.querySelector('.el-pagination__total')
// targetDom.innerText = `${total.value}`
// }
// onMounted(() => {
// // handleTotalText()
// })
</script> </script>
<template> <template>
@ -69,11 +69,18 @@
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="total"
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" /> @current-change="handleCurrentChange"
/>
</template> </template>
<style> <style scoped lang="scss">
.el-pagination { .el-pagination {
margin-top: 15px; justify-content: flex-end;
} padding: 5px 0;
}
:deep.el-pagination.is-background .el-pager li.is-active {
background-color: #3cb4a6;
//
}
</style> </style>

View File

@ -0,0 +1,11 @@
.primary-lease {
--el-color-primary:#00a288;
--el-color-primary-light-3:#00ad9d;
--el-color-primary-dark-2:#00ad9d;
--el-color-primary-light-5:#78d3cb
}
:root {
--el-color-primary:#00a288;
}

View File

@ -689,6 +689,7 @@ const handleRemove = (list: any, index: Number) => {
</script> </script>
<template> <template>
<!-- 样式修改 -->
<!-- 商品管理 --> <!-- 商品管理 -->
<el-form :model="queryParams" ref="queryFormRef" :inline="true" size="small" label-width="auto"> <el-form :model="queryParams" ref="queryFormRef" :inline="true" size="small" label-width="auto">