From 15319bf586bc0ec5179a0f0a93c621fccf5d415e Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:55:38 +0800 Subject: [PATCH] style(VSelect): add clearable option --- src/components/cards/FilterRuleCard.vue | 1 + src/components/cards/MediaServerCard.vue | 1 + src/components/cards/NotificationChannelCard.vue | 5 +++-- src/components/dialog/SubscribeEditDialog.vue | 2 ++ src/views/discover/TorrentCardListView.vue | 7 +++++++ src/views/plugin/PluginCardListView.vue | 3 +++ src/views/setting/AccountSettingRule.vue | 1 + src/views/setting/AccountSettingSearch.vue | 2 ++ src/views/setting/AccountSettingSubscribe.vue | 2 ++ 9 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/components/cards/FilterRuleCard.vue b/src/components/cards/FilterRuleCard.vue index ea91b851..fab0ca81 100644 --- a/src/components/cards/FilterRuleCard.vue +++ b/src/components/cards/FilterRuleCard.vue @@ -94,6 +94,7 @@ onMounted(() => { chips label="" multiple + clearable @update:modelValue="filtersChanged" /> diff --git a/src/components/cards/MediaServerCard.vue b/src/components/cards/MediaServerCard.vue index 686e90a7..88b83043 100644 --- a/src/components/cards/MediaServerCard.vue +++ b/src/components/cards/MediaServerCard.vue @@ -330,6 +330,7 @@ onMounted(() => { :items="librariesOptions" chips multiple + clearable hint="只有选中的媒体库才会被同步" persistent-hint active diff --git a/src/components/cards/NotificationChannelCard.vue b/src/components/cards/NotificationChannelCard.vue index 77512b31..8d72bfc5 100644 --- a/src/components/cards/NotificationChannelCard.vue +++ b/src/components/cards/NotificationChannelCard.vue @@ -79,7 +79,7 @@ function saveNotificationInfo() { return } // 重名判断 - if (props.notifications.some(item => item.name === notificationName.value && item!== props.notification)) { + if (props.notifications.some(item => item.name === notificationName.value && item !== props.notification)) { $toast.error(`【${notificationName.value}】已存在,请替换为其他名称`) return } @@ -129,7 +129,7 @@ function onClose() { - + @@ -146,6 +146,7 @@ function onClose() { label="消息类型" hint="开启通知的消息类型" multiple + clearable chips persistent-hint /> diff --git a/src/components/dialog/SubscribeEditDialog.vue b/src/components/dialog/SubscribeEditDialog.vue index 33e41d17..ce5bc4d6 100644 --- a/src/components/dialog/SubscribeEditDialog.vue +++ b/src/components/dialog/SubscribeEditDialog.vue @@ -387,6 +387,7 @@ onMounted(() => { chips label="订阅站点" multiple + clearable hint="订阅的站点范围,不选使用系统设置" persistent-hint /> @@ -447,6 +448,7 @@ onMounted(() => { :items="filterRuleGroupOptions" chips multiple + clearable label="优先级规则组" hint="按选定的过滤规则组对订阅进行过滤" persistent-hint diff --git a/src/views/discover/TorrentCardListView.vue b/src/views/discover/TorrentCardListView.vue index c55b68bb..aea64c54 100644 --- a/src/views/discover/TorrentCardListView.vue +++ b/src/views/discover/TorrentCardListView.vue @@ -277,6 +277,7 @@ function loadMore({ done }: { done: any }) { chips label="站点" multiple + clearable /> @@ -288,6 +289,7 @@ function loadMore({ done }: { done: any }) { chips label="季集" multiple + clearable /> @@ -299,6 +301,7 @@ function loadMore({ done }: { done: any }) { chips label="制作组" multiple + clearable /> @@ -310,6 +313,7 @@ function loadMore({ done }: { done: any }) { chips label="质量" multiple + clearable /> @@ -321,6 +325,7 @@ function loadMore({ done }: { done: any }) { chips label="分辨率" multiple + clearable /> @@ -332,6 +337,7 @@ function loadMore({ done }: { done: any }) { chips label="视频编码" multiple + clearable /> @@ -343,6 +349,7 @@ function loadMore({ done }: { done: any }) { chips label="促销状态" multiple + clearable /> diff --git a/src/views/plugin/PluginCardListView.vue b/src/views/plugin/PluginCardListView.vue index 684d0ee3..82b38b15 100644 --- a/src/views/plugin/PluginCardListView.vue +++ b/src/views/plugin/PluginCardListView.vue @@ -388,6 +388,7 @@ onBeforeMount(async () => { chips label="作者" multiple + clearable /> @@ -399,6 +400,7 @@ onBeforeMount(async () => { chips label="标签" multiple + clearable /> @@ -410,6 +412,7 @@ onBeforeMount(async () => { chips label="插件库" multiple + clearable /> diff --git a/src/views/setting/AccountSettingRule.vue b/src/views/setting/AccountSettingRule.vue index c1713b66..118f124d 100644 --- a/src/views/setting/AccountSettingRule.vue +++ b/src/views/setting/AccountSettingRule.vue @@ -256,6 +256,7 @@ onMounted(() => { v-model="selectedTorrentPriority" :items="TorrentPriorityItems" multiple + clearable chips label="当前使用下载优先规则" hint="排在前面的优先级越高,未选择的项不纳入排序" diff --git a/src/views/setting/AccountSettingSearch.vue b/src/views/setting/AccountSettingSearch.vue index 24a42ac3..9d748c98 100644 --- a/src/views/setting/AccountSettingSearch.vue +++ b/src/views/setting/AccountSettingSearch.vue @@ -148,6 +148,7 @@ onMounted(() => { { { :items="filterRuleGroupOptions" chips multiple + clearable label="订阅优先级规则组" hint="按选定的过滤规则组对订阅进行过滤" persistent-hint @@ -210,6 +211,7 @@ onMounted(() => { :items="filterRuleGroupOptions" chips multiple + clearable label="洗版优先级规则组" hint="按选定的过滤规则组对洗版订阅进行过滤" persistent-hint