From 71de06633e475381c7dffb7fba45121d6087b2d0 Mon Sep 17 00:00:00 2001 From: YangFong Date: Wed, 18 Dec 2024 09:53:56 +0800 Subject: [PATCH] feat: init post list (#475) --- .../CodemirrorEditor/EditorHeader/index.vue | 8 +- .../CodemirrorEditor/PostSlider.vue | 189 ++++++++++++++++++ src/stores/index.ts | 47 ++++- src/views/CodemirrorEditor.vue | 17 +- 4 files changed, 251 insertions(+), 10 deletions(-) create mode 100644 src/components/CodemirrorEditor/PostSlider.vue diff --git a/src/components/CodemirrorEditor/EditorHeader/index.vue b/src/components/CodemirrorEditor/EditorHeader/index.vue index 2da55a0..56be49a 100644 --- a/src/components/CodemirrorEditor/EditorHeader/index.vue +++ b/src/components/CodemirrorEditor/EditorHeader/index.vue @@ -33,7 +33,7 @@ import { } from '@/config' import { useDisplayStore, useStore } from '@/stores' import { mergeCss, solveWeChatImage } from '@/utils' -import { Moon, Paintbrush, Sun } from 'lucide-vue-next' +import { Moon, Paintbrush, PanelLeftClose, PanelLeftOpen, Sun } from 'lucide-vue-next' import { storeToRefs } from 'pinia' import { nextTick, ref, useTemplateRef } from 'vue' import PickColors from 'vue-pick-colors' @@ -219,6 +219,12 @@ const formatOptions = ref([`rgb`, `hex`, `hsl`, `hsv`]) + +