<template>
	<uni-data-picker :localdata="localdata" placeholder="请选择问题类型" :border="false" :map="{text:'name', value: 'id'}" />
</template>

<script setup>
import { onMounted, ref} from 'vue'
import { problemTypeTree } from '@/api/problemType'

	const localdata = ref([]);
	
	onMounted(() => {
		problemTypeTree().then(data => {
			localdata.value = data;
		})
	})

</script>

<style lang="scss" scoped>

</style>