From ad57525b0cfc1e90ca02b4f1735c79e999500de5 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Tue, 19 Nov 2019 14:23:10 +0800 Subject: [PATCH] feat: refactor option forms. --- .../interface/components/ThemeSetting.vue | 6 +- src/views/post/PostEdit.vue | 5 - src/views/post/components/PostSetting.vue | 2 +- src/views/sheet/SheetEdit.vue | 5 - src/views/sheet/internal/JournalList.vue | 10 +- src/views/system/Installation.vue | 16 - src/views/system/OptionForm.vue | 439 +++++------------- 7 files changed, 125 insertions(+), 358 deletions(-) diff --git a/src/views/interface/components/ThemeSetting.vue b/src/views/interface/components/ThemeSetting.vue index 61019373..e2001aee 100644 --- a/src/views/interface/components/ThemeSetting.vue +++ b/src/views/interface/components/ThemeSetting.vue @@ -77,12 +77,14 @@ :key="index.toString()" :tab="group.label" > - + - + diff --git a/src/views/sheet/SheetEdit.vue b/src/views/sheet/SheetEdit.vue index b3b409fe..11f5be8e 100644 --- a/src/views/sheet/SheetEdit.vue +++ b/src/views/sheet/SheetEdit.vue @@ -80,11 +80,6 @@ export default { data() { return { toolbars, - wrapperCol: { - xl: { span: 24 }, - sm: { span: 24 }, - xs: { span: 24 } - }, attachmentDrawerVisible: false, sheetSettingVisible: false, sheetToStage: {} diff --git a/src/views/sheet/internal/JournalList.vue b/src/views/sheet/internal/JournalList.vue index 9431231b..3e04c4ab 100644 --- a/src/views/sheet/internal/JournalList.vue +++ b/src/views/sheet/internal/JournalList.vue @@ -62,7 +62,9 @@
+ - + {{ item.likes }} @@ -110,9 +110,7 @@ href="javascript:void(0);" @click="handleCommentShow(item)" > - + {{ item.commentCount }} diff --git a/src/views/system/Installation.vue b/src/views/system/Installation.vue index 6956b9e5..4bc70c2c 100644 --- a/src/views/system/Installation.vue +++ b/src/views/system/Installation.vue @@ -225,22 +225,6 @@ import recoveryApi from '@/api/recovery' export default { data() { return { - formItemLayout: { - labelCol: { - xs: { span: 24 }, - sm: { span: 5 }, - lg: { span: 4 }, - xl: { span: 4 }, - xxl: { span: 3 } - }, - wrapperCol: { - xs: { span: 24 }, - sm: { span: 19 }, - lg: { span: 20 }, - xl: { span: 20 }, - xxl: { span: 21 } - } - }, installation: {}, migrationUploadName: 'file', migrationData: null, diff --git a/src/views/system/OptionForm.vue b/src/views/system/OptionForm.vue index 73dedb51..28203d0e 100644 --- a/src/views/system/OptionForm.vue +++ b/src/views/system/OptionForm.vue @@ -8,26 +8,20 @@ 常规设置 - - + + - + - + - + - + SEO 设置 - - + + - + - + 文章设置 - - + + 创建时间 最后编辑时间 点击量 - + - + - + 评论设置 - - + + 默认 抽象几何图形 @@ -178,34 +151,19 @@ 不显示头像 - + - + - + - + - + - + - +