import { defineComponent } from 'vue'; /* eslint-disable no-console */ import Select, { Option } from '..'; import '../assets/index.less'; import './single.less'; const Test = defineComponent({ data() { return { destroy: false, value: '9', }; }, methods: { onChange(e) { let value; if (e && e.target) { ({ value } = e.target); } else { value = e; } console.log('onChange', value); this.value = value; }, onDestroy() { this.destroy = 1; }, onBlur(v) { console.log('onBlur', v); }, onFocus() { console.log('onFocus'); }, onSearch(val) { console.log('Search:', val); }, }, render() { const { value, destroy } = this; if (destroy) { return null; } return (