feat: 样式修改

This commit is contained in:
ZhuRui 2026-07-25 11:50:43 +08:00
parent 3b4dd72b11
commit 352f52006f
5 changed files with 27 additions and 15 deletions

View File

@ -4,7 +4,6 @@ import zhCN from 'ant-design-vue/locale/zh_CN';
import { RouterView } from 'vue-router'; import { RouterView } from 'vue-router';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn'; import 'dayjs/locale/zh-cn';
dayjs.locale('zh-cn'); dayjs.locale('zh-cn');
/** /**

View File

@ -73,6 +73,9 @@ a {
column-gap: 16px; column-gap: 16px;
row-gap: 12px; row-gap: 12px;
flex-shrink: 0; flex-shrink: 0;
padding: 16px;
background-color: #fff;
border-radius: 10px;
} }
// 筛选区域操作按钮组:横向 flex // 筛选区域操作按钮组:横向 flex
@ -90,12 +93,20 @@ a {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex: 1; flex: 1;
background-color: #fff;
min-height: 0; min-height: 0;
min-width: 0; min-width: 0;
margin-top: 16px; margin-top: 16px;
overflow: hidden; overflow: hidden;
border-radius: 10px;
} }
.page-pagination {
flex-shrink: 0;
display: flex;
justify-content: flex-end;
padding: 14px;
}
// ===== antd 组件覆盖 ===== // ===== antd 组件覆盖 =====
// Tag 默认 margin-right: 8px会挤开表格列或卡片内间距统一去掉 // Tag 默认 margin-right: 8px会挤开表格列或卡片内间距统一去掉

View File

@ -34,8 +34,6 @@
.content { .content {
margin: 16px; margin: 16px;
padding: 24px;
background: #fff;
border-radius: 8px; border-radius: 8px;
flex: 1; flex: 1;
min-height: 0; min-height: 0;

View File

@ -12,6 +12,7 @@ import {
} from 'ant-design-vue'; } from 'ant-design-vue';
import { JUMP_TYPE_OPTIONS, EVENT_OPTIONS, REGION_OPTIONS } from '../model/useBannerModel'; import { JUMP_TYPE_OPTIONS, EVENT_OPTIONS, REGION_OPTIONS } from '../model/useBannerModel';
import { uploadFilesOneByOne, OssUploadType } from '@/utils/oss'; import { uploadFilesOneByOne, OssUploadType } from '@/utils/oss';
import dayjs from 'dayjs';
import styles from './BannerFormModal.module.less'; import styles from './BannerFormModal.module.less';
/** 默认表单数据 */ /** 默认表单数据 */
@ -397,9 +398,14 @@ export default defineComponent({
<DatePicker <DatePicker
placeholder="年-月-日" placeholder="年-月-日"
format="YYYY-MM-DD" format="YYYY-MM-DD"
value={formData.displayTimeRange?.[0] as any} value={
formData.displayTimeRange?.[0] ? dayjs(formData.displayTimeRange[0]) : undefined
}
onUpdate:value={(v: any) => { onUpdate:value={(v: any) => {
formData.displayTimeRange = [v, formData.displayTimeRange?.[1] || '']; formData.displayTimeRange = [
v ? v.format('YYYY-MM-DD') : '',
formData.displayTimeRange?.[1] || '',
];
}} }}
style={{ width: '100%' }} style={{ width: '100%' }}
/> />
@ -425,9 +431,14 @@ export default defineComponent({
<DatePicker <DatePicker
placeholder="年-月-日" placeholder="年-月-日"
format="YYYY-MM-DD" format="YYYY-MM-DD"
value={formData.displayTimeRange?.[1] as any} value={
formData.displayTimeRange?.[1] ? dayjs(formData.displayTimeRange[1]) : undefined
}
onUpdate:value={(v: any) => { onUpdate:value={(v: any) => {
formData.displayTimeRange = [formData.displayTimeRange?.[0] || '', v]; formData.displayTimeRange = [
formData.displayTimeRange?.[0] || '',
v ? v.format('YYYY-MM-DD') : '',
];
}} }}
style={{ width: '100%' }} style={{ width: '100%' }}
/> />

View File

@ -271,14 +271,7 @@ export default defineComponent({
</div> </div>
{/* 独立分页,右下方 */} {/* 独立分页,右下方 */}
<div <div class="page-pagination">
style={{
flexShrink: 0,
display: 'flex',
justifyContent: 'flex-end',
padding: '10px 0 0',
}}
>
<Pagination <Pagination
current={pagination.value.current} current={pagination.value.current}
pageSize={pagination.value.pageSize} pageSize={pagination.value.pageSize}