mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
21 lines
524 B
Vue
21 lines
524 B
Vue
<template>
|
|
<div className="tableSelect" style="margin-left: 0">
|
|
<a-select :value="value" dropdownClassName="tabledropdown">
|
|
<template :key="index" v-for="(item, index) in $slots.default()">
|
|
<a-select-option v-if="item.children!=='v-if'" :value="index">
|
|
<component :is="item"></component>
|
|
</a-select-option>
|
|
</template>
|
|
</a-select>
|
|
</div>
|
|
</template>
|
|
<script setup>
|
|
import {defineProps} from "vue";
|
|
defineProps({
|
|
value: {
|
|
type: String,
|
|
default: ''
|
|
}
|
|
})
|
|
</script>
|