2024-07-05 12:22:31 +00:00
|
|
|
<template>
|
|
|
|
<div :class="rootPT">
|
|
|
|
<slot />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2024-07-08 11:24:09 +00:00
|
|
|
import { computed, ref } from "vue";
|
2024-07-05 12:22:31 +00:00
|
|
|
import { twMerge } from 'tailwind-merge';
|
|
|
|
import type { DropDownItemPT, DropDownItemProps } from './types';
|
|
|
|
|
|
|
|
const props = withDefaults(defineProps<DropDownItemProps>(), {});
|
|
|
|
|
|
|
|
const PT = {
|
|
|
|
root: {
|
|
|
|
class: ''
|
|
|
|
}
|
|
|
|
} as DropDownItemPT;
|
|
|
|
|
|
|
|
const rootPT = computed(() => twMerge(PT.root?.class, props.pt?.root?.class));
|
|
|
|
</script>
|