element-plus
Version:
A Component Library for Vue 3
18 lines (16 loc) • 344 B
JavaScript
function useOption(props, { emit }) {
return {
hoverItem: () => {
if (!props.disabled) {
emit("hover", props.index);
}
},
selectOptionClick: () => {
if (!props.disabled) {
emit("select", props.item, props.index);
}
}
};
}
export { useOption };
//# sourceMappingURL=useOption.mjs.map