排除关键词设置

This commit is contained in:
Rewrite0
2023-05-27 16:38:14 +08:00
parent 2702959c0b
commit 0bbdb12ae9
3 changed files with 11 additions and 1 deletions

View File

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

View File

@@ -66,6 +66,11 @@ const items: SettingItem<RssParser>[] = [
items: parserMethods,
},
},
{
configKey: 'filter',
label: 'Exclude',
type: 'dynamic-tags',
},
];
</script>

View File

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