style(gui-v2): resolve 7 ESLint errors in Plan 3 components/specs (behavior-neutral, DoD #13)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 14:23:30 +02:00
parent 1a66ac6e64
commit 0b19e7856b
4 changed files with 9 additions and 14 deletions

View File

@@ -16,7 +16,7 @@ import type { TagSeverity } from '@/components-v2/shared/statusSeverity'
interface TagBit { label: string; severity?: TagSeverity }
const props = withDefaults(defineProps<{
withDefaults(defineProps<{
line1Left: { tag?: TagBit; text?: string }
line1Right?: { tag?: TagBit; pill?: string }
line2Left?: string

View File

@@ -24,15 +24,13 @@ const text = computed(() =>
props.label ?? props.status.replace(/_/g, ' '),
)
const pt = computed(() =>
props.dot
? {
root: {
class: 'before:content-[""] before:inline-block before:w-2 before:h-2 before:rounded-full before:bg-current before:mr-1.5 before:align-middle',
},
}
: {},
)
const DOT_PT = {
root: {
class: 'before:content-[""] before:inline-block before:w-2 before:h-2 before:rounded-full before:bg-current before:mr-1.5 before:align-middle',
},
}
const pt = computed(() => props.dot ? DOT_PT : {})
</script>
<template>

View File

@@ -6,7 +6,7 @@ import StateBlock from '@/components-v2/shared/StateBlock.vue'
const stubs = {
Skeleton: defineComponent({ name: 'Skeleton', template: '<div class="skeleton-stub" />' }),
Message: defineComponent({ name: 'Message', props: ['severity'], template: '<div class="message-stub"><slot /></div>' }),
Button: defineComponent({ name: 'Button', props: ['label'], emits: ['click'], template: '<button class="btn-stub" @click="$emit(\'click\')">{{ label }}</button>' }),
Button: defineComponent({ name: 'ButtonStub', props: ['label'], emits: ['click'], template: '<button class="btn-stub" @click="$emit(\'click\')">{{ label }}</button>' }),
Card: defineComponent({ name: 'Card', template: '<div class="card-stub"><slot name="content" /></div>' }),
}

View File

@@ -12,9 +12,6 @@ const AutoCompleteStub = defineComponent({
name: 'AutoComplete',
props: { modelValue: { type: Array, default: () => [] }, suggestions: { type: Array, default: () => [] }, multiple: Boolean, typeahead: Boolean },
emits: ['update:modelValue', 'complete'],
methods: {
addRaw(raw: string) { this.$emit('update:modelValue', [...(this.modelValue as string[]), raw]) },
},
template: '<div class="ac-stub" :data-count="modelValue.length" />',
})