import { ElTag } from 'element-plus' const SelectTags = (props, { emit }) => { const valueKey = props.optionProps.value const labelKey = props.optionProps.label const getLabel = (row) => typeof props.optionProps.getLabel === 'function' ? props.optionProps.getLabel(row) : row[labelKey] return <> { props.modelValue.map((v, index) => emit('remove', index)} > {getLabel(v)} ) } } SelectTags.props = { modelValue: { type: Array, default: () => [] }, optionProps: { type: Object }, multiple: Boolean } SelectTags.emits = ['remove'] export default SelectTags