import { ElButton } from 'element-plus' import './index.less' export default { name: 'CipSearchInput', props: { modelValue: {}, loading: Boolean, buttonText: String }, emits: ['search', 'update:modelValue'], setup (props, { emit, slots }) { const emitValue = (e) => { emit('update:modelValue', e.target.value) } return () =>
emitValue(e)}/> emit('search')} loading={props.loading} >{props.buttonText || slots.buttonText?.() || '搜索'}
{slots?.append &&
{slots?.append()}
}
} }