mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-15 19:10:40 +08:00
排除关键词设置
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import AbSwitch from '../basic/ab-switch.vue';
|
||||
import AbSelect from '../basic/ab-select.vue';
|
||||
import type { AbSettingProps } from '#/components';
|
||||
import { NDynamicTags } from 'naive-ui';
|
||||
|
||||
withDefaults(defineProps<AbSettingProps>(), {
|
||||
css: '',
|
||||
@@ -35,6 +36,10 @@ const data = defineModel<any>('data');
|
||||
:class="css"
|
||||
v-bind="prop"
|
||||
/>
|
||||
|
||||
<div max-w-200px v-else-if="type === 'dynamic-tags'">
|
||||
<n-dynamic-tags v-model:value="data" size="small"></n-dynamic-tags>
|
||||
</div>
|
||||
</ab-label>
|
||||
|
||||
<div v-if="bottomLine" line my-12px></div>
|
||||
|
||||
@@ -66,6 +66,11 @@ const items: SettingItem<RssParser>[] = [
|
||||
items: parserMethods,
|
||||
},
|
||||
},
|
||||
{
|
||||
configKey: 'filter',
|
||||
label: 'Exclude',
|
||||
type: 'dynamic-tags',
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ export interface SelectItem {
|
||||
|
||||
export interface AbSettingProps {
|
||||
label: string;
|
||||
type: 'input' | 'switch' | 'select';
|
||||
type: 'input' | 'switch' | 'select' | 'dynamic-tags';
|
||||
css?: string;
|
||||
prop?: any;
|
||||
bottomLine?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user