/** * @file Santd transfer render list body file * @author mayihui@baidu.com **/ import {classCreator} from '../core/util'; import Icon from '../icon'; import Base from 'santd/base'; const prefixCls = classCreator('transfer')('list'); const inputPrefixCls = classCreator('input')(); export default class Search extends Base { handleChange(e: {target: {value: any}}) { this.fire('change', e.target.value); } handleClear(e: Event) { e.preventDefault(); const disabled = this.data.get('disabled'); if (!disabled) { this.fire('clear', e); } } static components = { 's-icon': Icon } static template = `
` };