From d0efecc9b3c6b97c417590cecd43cba4ae0b5b10 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 24 Nov 2022 13:51:01 +0800 Subject: [PATCH] perf: filter dropdown selector (#704) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind improvement /milestone 2.0 #### What this PR does / why we need it: 优化文章管理的分类/标签/作者的筛选下拉框样式,以及支持搜索。 #### Screenshots: image #### Special notes for your reviewer: /cc @halo-dev/sig-halo-console 测试方式:检查文章管理的分类 / 标签 / 作者筛选功能是否正常。 #### Does this PR introduce a user-facing change? ```release-note 优化文章管理的分类/标签/作者的筛选下拉框样式,以及支持搜索。 ``` --- .../CategoryDropdownSelector.vue | 119 +++++++++++++++ .../dropdown-selector/TagDropdownSelector.vue | 114 ++++++++++++++ .../UserDropdownSelector.vue | 93 ++++++++---- src/modules/contents/posts/PostList.vue | 140 ++---------------- 4 files changed, 307 insertions(+), 159 deletions(-) create mode 100644 src/components/dropdown-selector/CategoryDropdownSelector.vue create mode 100644 src/components/dropdown-selector/TagDropdownSelector.vue diff --git a/src/components/dropdown-selector/CategoryDropdownSelector.vue b/src/components/dropdown-selector/CategoryDropdownSelector.vue new file mode 100644 index 00000000..250d1d1e --- /dev/null +++ b/src/components/dropdown-selector/CategoryDropdownSelector.vue @@ -0,0 +1,119 @@ + + + diff --git a/src/components/dropdown-selector/TagDropdownSelector.vue b/src/components/dropdown-selector/TagDropdownSelector.vue new file mode 100644 index 00000000..2fc86642 --- /dev/null +++ b/src/components/dropdown-selector/TagDropdownSelector.vue @@ -0,0 +1,114 @@ + + + diff --git a/src/components/dropdown-selector/UserDropdownSelector.vue b/src/components/dropdown-selector/UserDropdownSelector.vue index 619d67eb..47051071 100644 --- a/src/components/dropdown-selector/UserDropdownSelector.vue +++ b/src/components/dropdown-selector/UserDropdownSelector.vue @@ -1,7 +1,10 @@