From 4ebdce52e0234ad0cf975685aff58b366af98323 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 9 May 2022 14:12:13 +0800 Subject: [PATCH] perf: optimize the layout of some forms on mobile (#564) Signed-off-by: Ryan Wang --- src/components/Category/CategoryCreateModal.vue | 8 +++++--- src/components/Post/PostSettingModal.vue | 10 ++++++---- src/views/sheet/components/SheetSettingModal.vue | 10 ++++++---- .../sheet/independent/components/PhotoFormModal.vue | 8 +++++--- 4 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/components/Category/CategoryCreateModal.vue b/src/components/Category/CategoryCreateModal.vue index 37fbe943..f06e34ee 100644 --- a/src/components/Category/CategoryCreateModal.vue +++ b/src/components/Category/CategoryCreateModal.vue @@ -2,10 +2,10 @@ @@ -76,7 +76,9 @@ export default { slug: [{ max: 255, message: '* 分类别名的字符长度不能超过 255', trigger: ['change'] }], thumbnail: [{ max: 1023, message: '* 封面图链接的字符长度不能超过 1023', trigger: ['change'] }], description: [{ max: 100, message: '* 分类描述的字符长度不能超过 100', trigger: ['change'] }] - } + }, + labelCol: { sm: { span: 4 }, xs: { span: 24 } }, + wrapperCol: { sm: { span: 20 }, xs: { span: 24 } } } } }, diff --git a/src/components/Post/PostSettingModal.vue b/src/components/Post/PostSettingModal.vue index 01c4483c..2d631680 100644 --- a/src/components/Post/PostSettingModal.vue +++ b/src/components/Post/PostSettingModal.vue @@ -15,7 +15,7 @@
- + @@ -54,7 +54,7 @@ - + @@ -101,7 +101,7 @@ - + - + @@ -45,7 +45,7 @@ - + @@ -86,7 +86,7 @@ - + @@ -106,7 +106,9 @@ export default { name: [{ required: true, message: '* 图片名称不能为空', trigger: ['change'] }] }, saving: false, - saveErrored: false + saveErrored: false, + labelCol: { sm: { span: 4 }, xs: { span: 24 } }, + wrapperCol: { sm: { span: 20 }, xs: { span: 24 } } }, attachmentSelectModal: { visible: false