style(VSelect): add clearable option

This commit is contained in:
InfinityPacer
2024-10-18 10:55:38 +08:00
parent 832cae635e
commit 15319bf586
9 changed files with 22 additions and 2 deletions

View File

@@ -94,6 +94,7 @@ onMounted(() => {
chips
label=""
multiple
clearable
@update:modelValue="filtersChanged"
/>
</VCol>

View File

@@ -330,6 +330,7 @@ onMounted(() => {
:items="librariesOptions"
chips
multiple
clearable
hint="只有选中的媒体库才会被同步"
persistent-hint
active

View File

@@ -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() {
<VImg :src="getIcon" cover class="mt-5 me-7" max-width="3rem" />
</VCardText>
</VCard>
<VDialog v-model="notificationInfoDialog" scrollable max-width="40rem" persistent >
<VDialog v-model="notificationInfoDialog" scrollable max-width="40rem" persistent>
<VCard :title="`${props.notification.name} - 配置`" class="rounded-t">
<DialogCloseBtn v-model="notificationInfoDialog" />
<VDivider />
@@ -146,6 +146,7 @@ function onClose() {
label="消息类型"
hint="开启通知的消息类型"
multiple
clearable
chips
persistent-hint
/>

View File

@@ -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

View File

@@ -277,6 +277,7 @@ function loadMore({ done }: { done: any }) {
chips
label="站点"
multiple
clearable
/>
</VCol>
<VCol v-if="seasonFilterOptions.length > 0" cols="6" md="">
@@ -288,6 +289,7 @@ function loadMore({ done }: { done: any }) {
chips
label="季集"
multiple
clearable
/>
</VCol>
<VCol v-if="releaseGroupFilterOptions.length > 0" cols="6" md="">
@@ -299,6 +301,7 @@ function loadMore({ done }: { done: any }) {
chips
label="制作组"
multiple
clearable
/>
</VCol>
<VCol v-if="editionFilterOptions.length > 0" cols="6" md="">
@@ -310,6 +313,7 @@ function loadMore({ done }: { done: any }) {
chips
label="质量"
multiple
clearable
/>
</VCol>
<VCol v-if="resolutionFilterOptions.length > 0" cols="6" md="">
@@ -321,6 +325,7 @@ function loadMore({ done }: { done: any }) {
chips
label="分辨率"
multiple
clearable
/>
</VCol>
<VCol v-if="videoCodeFilterOptions.length > 0" cols="6" md="">
@@ -332,6 +337,7 @@ function loadMore({ done }: { done: any }) {
chips
label="视频编码"
multiple
clearable
/>
</VCol>
<VCol v-if="freeStateFilterOptions.length > 0" cols="6" md="">
@@ -343,6 +349,7 @@ function loadMore({ done }: { done: any }) {
chips
label="促销状态"
multiple
clearable
/>
</VCol>
</VRow>

View File

@@ -388,6 +388,7 @@ onBeforeMount(async () => {
chips
label="作者"
multiple
clearable
/>
</VCol>
<VCol v-if="labelFilterOptions.length > 0" cols="6" md="">
@@ -399,6 +400,7 @@ onBeforeMount(async () => {
chips
label="标签"
multiple
clearable
/>
</VCol>
<VCol v-if="repoFilterOptions.length > 0" cols="6" md="">
@@ -410,6 +412,7 @@ onBeforeMount(async () => {
chips
label="插件库"
multiple
clearable
/>
</VCol>
<VCol v-if="repoFilterOptions.length > 0" cols="6" md="">

View File

@@ -256,6 +256,7 @@ onMounted(() => {
v-model="selectedTorrentPriority"
:items="TorrentPriorityItems"
multiple
clearable
chips
label="当前使用下载优先规则"
hint="排在前面的优先级越高,未选择的项不纳入排序"

View File

@@ -148,6 +148,7 @@ onMounted(() => {
<VSelect
v-model="selectedMediaSource"
multiple
clearable
chips
:items="mediaSourcesDict"
label="媒体数据源"
@@ -159,6 +160,7 @@ onMounted(() => {
<VSelect
v-model="selectedFilterGroup"
multiple
clearable
chips
:items="filterRuleGroupOptions"
label="优先级规则组"

View File

@@ -199,6 +199,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