From 9e95e7bd743325eebfd4443ac0b0d03f66e5b4fd Mon Sep 17 00:00:00 2001 From: Hayden <48267247+hayden-fr@users.noreply.github.com> Date: Mon, 10 Feb 2025 16:42:53 +0800 Subject: [PATCH] style: optimize style (#131) --- src/components/DialogManager.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/DialogManager.vue b/src/components/DialogManager.vue index 237aac1..dfd39db 100644 --- a/src/components/DialogManager.vue +++ b/src/components/DialogManager.vue @@ -20,14 +20,17 @@
@@ -97,7 +100,8 @@ const { $lg: $content_lg } = useContainerQueries(contentContainer) const searchContent = ref() -const currentType = ref('all') +const allType = 'All' +const currentType = ref(allType) const typeOptions = computed(() => { const excludeScanTypes = app.ui?.settings.getSettingValue( configSetting.excludeScanTypes, @@ -108,7 +112,7 @@ const typeOptions = computed(() => { .map((type) => type.trim()) .filter(Boolean) ?? [] return [ - 'all', + allType, ...Object.keys(folders.value).filter( (folder) => !customBlackList.includes(folder), ), @@ -163,7 +167,7 @@ const list = computed(() => { const mergedList = Object.values(data.value).flat() const filterList = mergedList.filter((model) => { - const showAllModel = currentType.value === 'all' + const showAllModel = currentType.value === allType const matchType = showAllModel || model.type === currentType.value const matchName = model.fullname