mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-07 15:52:47 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96b7a9604c |
@@ -1,24 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import { Textarea } from '@/components/ui/textarea'
|
||||
|
||||
import { useVModel } from '@vueuse/core'
|
||||
import { type HTMLAttributes, onMounted, ref } from 'vue'
|
||||
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
const props = defineProps<{
|
||||
class?: HTMLAttributes['class']
|
||||
defaultValue?: string | number
|
||||
modelValue?: string | number
|
||||
}>()
|
||||
|
||||
const emits = defineEmits<{
|
||||
(e: 'update:modelValue', payload: string | number): void
|
||||
}>()
|
||||
|
||||
const modelValue = useVModel(props, 'modelValue', emits, {
|
||||
passive: true,
|
||||
defaultValue: props.defaultValue
|
||||
const modelValue = defineModel<string>({
|
||||
default: ''
|
||||
})
|
||||
|
||||
const textarea = ref<HTMLElement | null>(null)
|
||||
|
||||
@@ -32,7 +32,8 @@ const selectedItems = ref<string[]>(props.modelValue)
|
||||
|
||||
watch(
|
||||
() => selectedItems.value,
|
||||
(value) => emit('update:modelValue', value)
|
||||
(value) => emit('update:modelValue', value),
|
||||
{ deep: true }
|
||||
)
|
||||
|
||||
const filteredItems = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user