feat: pageContent组件,分页按钮固定位置

This commit is contained in:
超凡
2025-04-22 23:02:46 +08:00
parent fe295bcbba
commit 2899e13ecd
3 changed files with 14 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div v-show="visible" v-bind="{ style: { 'margin-bottom': '12px' }, ...cardAttrs }">
<div v-show="visible">
<el-card v-bind="cardAttrs">
<el-form ref="queryFormRef" :model="queryParams" v-bind="formAttrs" :class="isGrid">
<template v-for="(item, index) in formItems" :key="item.prop">
@@ -105,7 +105,7 @@ const showNumber = computed(() =>
);
// 卡片组件自定义属性(阴影、自定义边距样式等)
const cardAttrs = computed<IObject>(() => {
return { shadow: "never", ...props.searchConfig?.cardAttrs };
return { shadow: "never", style: { "margin-bottom": "12px" }, ...props.searchConfig?.cardAttrs };
});
// 表单组件自定义属性label位置、宽度、对齐方式等
const formAttrs = computed<IForm>(() => {