import { ElIcon } from 'element-plus' import './index.less' export default { props: { modelValue: {}, options: {} }, emits: ['update:modelValue', 'change'], setup (props, { emit }) { const change = (value) => { emit('update:modelValue', value) emit('change', value) } return () =>
{(props.options || []).map(option => (
change(option.value)}> {option.svg.render()}
))}
} }