From ab850e16fdf40fac118c0cd2ab67f17e219aa5d7 Mon Sep 17 00:00:00 2001 From: YangFong Date: Sun, 8 Sep 2024 17:20:59 +0800 Subject: [PATCH] feat: add style panel (#391) --- .../EditorHeader/PostInfo.vue | 4 +- .../CodemirrorEditor/EditorHeader/index.vue | 233 +++++++++++++++++- src/components/ui/button/Button.vue | 26 ++ src/components/ui/button/index.ts | 35 +++ src/components/ui/popover/Popover.vue | 15 ++ src/components/ui/popover/PopoverContent.vue | 48 ++++ src/components/ui/popover/PopoverTrigger.vue | 11 + src/components/ui/popover/index.ts | 3 + src/components/ui/select/Select.vue | 15 ++ src/components/ui/select/SelectContent.vue | 53 ++++ src/components/ui/select/SelectGroup.vue | 19 ++ src/components/ui/select/SelectItem.vue | 44 ++++ src/components/ui/select/SelectItemText.vue | 11 + src/components/ui/select/SelectLabel.vue | 13 + .../ui/select/SelectScrollDownButton.vue | 24 ++ .../ui/select/SelectScrollUpButton.vue | 24 ++ src/components/ui/select/SelectSeparator.vue | 17 ++ src/components/ui/select/SelectTrigger.vue | 31 +++ src/components/ui/select/SelectValue.vue | 11 + src/components/ui/select/index.ts | 11 + 20 files changed, 643 insertions(+), 5 deletions(-) create mode 100644 src/components/ui/button/Button.vue create mode 100644 src/components/ui/button/index.ts create mode 100644 src/components/ui/popover/Popover.vue create mode 100644 src/components/ui/popover/PopoverContent.vue create mode 100644 src/components/ui/popover/PopoverTrigger.vue create mode 100644 src/components/ui/popover/index.ts create mode 100644 src/components/ui/select/Select.vue create mode 100644 src/components/ui/select/SelectContent.vue create mode 100644 src/components/ui/select/SelectGroup.vue create mode 100644 src/components/ui/select/SelectItem.vue create mode 100644 src/components/ui/select/SelectItemText.vue create mode 100644 src/components/ui/select/SelectLabel.vue create mode 100644 src/components/ui/select/SelectScrollDownButton.vue create mode 100644 src/components/ui/select/SelectScrollUpButton.vue create mode 100644 src/components/ui/select/SelectSeparator.vue create mode 100644 src/components/ui/select/SelectTrigger.vue create mode 100644 src/components/ui/select/SelectValue.vue create mode 100644 src/components/ui/select/index.ts diff --git a/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue b/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue index a2bd8a7..01ed486 100644 --- a/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue +++ b/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue @@ -51,9 +51,9 @@ function post() {