22 lines
476 B
Vue
22 lines
476 B
Vue
<template>
|
|
<div :class="rootPT">
|
|
<slot />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed, ref } from "vue";
|
|
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>
|