|
|
|
|
@ -9,6 +9,8 @@ import {
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
class?: any;
|
|
|
|
|
// 弹出层的类名
|
|
|
|
|
contentClass?: any;
|
|
|
|
|
options?: Array<{ label: string; value: string }>;
|
|
|
|
|
placeholder?: string;
|
|
|
|
|
}
|
|
|
|
|
@ -20,7 +22,7 @@ const props = defineProps<Props>();
|
|
|
|
|
<SelectTrigger :class="props.class">
|
|
|
|
|
<SelectValue :placeholder="placeholder" />
|
|
|
|
|
</SelectTrigger>
|
|
|
|
|
<SelectContent>
|
|
|
|
|
<SelectContent :class="props.contentClass">
|
|
|
|
|
<template v-for="item in options" :key="item.value">
|
|
|
|
|
<SelectItem :value="item.value"> {{ item.label }} </SelectItem>
|
|
|
|
|
</template>
|
|
|
|
|
|