diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index c1bd8d17..e0f85f21 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -17,7 +17,7 @@ import {computed} from "vue"; import {scrollTo} from '@/utils/scroll-to' -const props=defineProps({ +const props = defineProps({ total: { required: true, type: Number, @@ -70,18 +70,19 @@ const pageSize = computed({ get() { return props.limit }, - set(val){ + set(val) { emit('update:limit', val) } }) -function handleSizeChange(val){ +function handleSizeChange(val) { emit('pagination', {page: currentPage, limit: val}) if (props.autoScroll) { scrollTo(0, 800) } } -function handleCurrentChange(val){ + +function handleCurrentChange(val) { emit('pagination', {page: val, limit: props.pageSizes}) if (props.autoScroll) { scrollTo(0, 800) diff --git a/src/components/RightPanel/index.vue b/src/components/RightPanel/index.vue new file mode 100644 index 00000000..a90dece0 --- /dev/null +++ b/src/components/RightPanel/index.vue @@ -0,0 +1,150 @@ + + + + + + + diff --git a/src/components/SizeSelect/index.vue b/src/components/SizeSelect/index.vue index aaa643b0..91212f38 100644 --- a/src/components/SizeSelect/index.vue +++ b/src/components/SizeSelect/index.vue @@ -27,8 +27,6 @@ import {ElMessage} from 'element-plus' import {useAppStoreHook} from '@/store/modules/app' import SvgIcon from '@/components/SvgIcon/index.vue' -const route = useRoute() -const router = useRouter() const size = computed(() => useAppStoreHook().size) const sizeOptions = ref([ @@ -40,7 +38,7 @@ const sizeOptions = ref([ function handleSetSize(size: string) { useAppStoreHook().setSize(size) window.location.reload() - ElMessage.success('切换全局大小成功') + ElMessage.success('切换布局大小成功') } diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue index 1b0575f2..2cc3539b 100644 --- a/src/layout/components/Settings/index.vue +++ b/src/layout/components/Settings/index.vue @@ -29,12 +29,10 @@