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