<template>
	<!-- 单列选择器 -->
	<u-select v-model="is_show" mode="single-column" :value_name="value_name" :label_name="label_name" :list="list" @confirm="confirm"></u-select>
</template>

<script>
	export default {
		props: {
			list: {
				default () {
					return []
				}
			},
			title: {
				default () {
					return ''
				}
			},
			value_name: {
				default () {
					return 'value'
				}
			},
			label_name: {
				default () {
					return 'label'
				}
			}
		},
		data() {
			return {
				is_show: false,
			}
		},
		methods: {
			show() {
				this.is_show = true
				// console.log(this.list)
			},
			hide() {
				this.is_show = false
			},
			confirm(e) {
				// console.log(e)
				this.$emit('vacChange', e)
			}
		},
	}
</script>

<style>
</style>
