diff --git a/src/components/global.less b/src/components/global.less index 1ac88332..b739412d 100644 --- a/src/components/global.less +++ b/src/components/global.less @@ -1,15 +1,17 @@ @import './index.less'; -*{ +* { &::-webkit-scrollbar { width: 6px; height: 6px; background-color: #eee; } + &::-webkit-scrollbar-thumb { background-color: #1890ff; cursor: pointer; } + &::-webkit-scrollbar-track { background-color: #eee; cursor: pointer; @@ -545,7 +547,7 @@ body { } } -.comment-tab-wrapper{ +.comment-tab-wrapper { .ant-card-body { padding: 0 !important; } @@ -694,33 +696,41 @@ body { margin-bottom: 0; - p{ + p { margin-bottom: 0; } } -.post-thum { +.post-thumb { .img { width: 100%; cursor: pointer; border-radius: 4px; } - .post-thum-remove { + + .post-thumb-remove { margin-top: 16px; } } -.sheet-thum { +.sheet-thumb { .img { width: 100%; cursor: pointer; border-radius: 4px; } - .sheet-thum-remove { + + .sheet-thumb-remove { margin-top: 16px; } } -.ant-calendar-picker{ - width: 100%!important; +.ant-calendar-picker { + width: 100% !important; +} + +#editor { + .v-note-wrapper { + min-height: 580px; + } } \ No newline at end of file diff --git a/src/views/post/PostEdit.vue b/src/views/post/PostEdit.vue index e6c99182..24ca8c60 100644 --- a/src/views/post/PostEdit.vue +++ b/src/views/post/PostEdit.vue @@ -41,7 +41,7 @@ 发布 - diff --git a/src/views/post/PostList.vue b/src/views/post/PostList.vue index c565b2d7..e622e44c 100644 --- a/src/views/post/PostList.vue +++ b/src/views/post/PostList.vue @@ -149,7 +149,7 @@ > {{ text }} diff --git a/src/views/post/components/PostSetting.vue b/src/views/post/components/PostSetting.vue index 492750b4..ab80d5a0 100644 --- a/src/views/post/components/PostSetting.vue +++ b/src/views/post/components/PostSetting.vue @@ -138,14 +138,14 @@

缩略图

-
+
移除 @@ -156,7 +156,7 @@
@@ -200,7 +200,7 @@ export default { }, data() { return { - thumDrawerVisible: false, + thumbDrawerVisible: false, categoryFormVisible: false, settingLoading: true, options: [], @@ -313,7 +313,7 @@ export default { }, handleSelectPostThumb(data) { this.selectedPost.thumbnail = encodeURI(data.path) - this.thumDrawerVisible = false + this.thumbDrawerVisible = false }, handlerRemoveThumb() { this.selectedPost.thumbnail = null diff --git a/src/views/sheet/SheetEdit.vue b/src/views/sheet/SheetEdit.vue index a227dac8..f6663354 100644 --- a/src/views/sheet/SheetEdit.vue +++ b/src/views/sheet/SheetEdit.vue @@ -18,115 +18,24 @@ :toolbars="toolbars" :ishljs="true" :autofocus="false" - @imgAdd="pictureUploadHandle" + @imgAdd="handleAttachmentUpload" />
- - - -
-
-

基本设置

-
- - - - - - - - - - 开启 - 关闭 - - - - - - {{ tpl }} - - - -
-
- - -
-

缩略图

-
-
- - 移除 -
-
-
- -
- -
- 保存草稿 - 发布 -
-
-
+ + + 发布 - diff --git a/src/views/sheet/SheetList.vue b/src/views/sheet/SheetList.vue index 64ff75a3..69521e25 100644 --- a/src/views/sheet/SheetList.vue +++ b/src/views/sheet/SheetList.vue @@ -107,7 +107,7 @@ > {{ text }} diff --git a/src/views/sheet/components/SheetSetting.vue b/src/views/sheet/components/SheetSetting.vue new file mode 100644 index 00000000..f1a493fe --- /dev/null +++ b/src/views/sheet/components/SheetSetting.vue @@ -0,0 +1,236 @@ + + +