/* eslint-disable no-console */ import Select, { Option } from '..'; import '../assets/index.less'; const Controlled = { data: () => ({ destroy: false, value: 9, open: true, }), 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 = true; }, onBlur(v) { console.log('onBlur', v); }, onFocus() { console.log('onFocus'); }, onDropdownVisibleChange(open) { this.open = open; }, getPopupContainer(node) { return node.parentNode; }, }, render() { const { open, destroy, value } = this; if (destroy) { return null; } return (

controlled Select

); }, }; export default Controlled; /* eslint-enable */