/
githubmirror
/
halo
Обзор
Документация
Войти
/
githubmirror
/
halo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ui/src/formkit/inputs/select/MultipleSelectItem.vue
19 строк
503 B
Takagi
refactor: enhance formkit select component to support additional features (#6473)
26 авг 2024, 12:03
Не верифицирован
26 авг 2024, 12:03
3be91fc
Код
Авторство
О чём код?
<script lang="ts" setup> import { IconClose } from "@halo-dev/components"; const emit = defineEmits<{ (event: "deleteSelectItem"): void; }>(); </script> <template> <div class="inline-flex select-none items-center self-center rounded bg-gray-200 px-2 py-1 text-sm font-medium text-gray-800" > <slot></slot> <span @click.stop="emit('deleteSelectItem')"> <IconClose class="h-4 w-4 cursor-pointer text-gray-400 hover:text-gray-700" /> </span> </div> </template>