|
@@ -11,12 +11,18 @@ export default defineComponent({
|
|
|
item: {
|
|
|
type: Object,
|
|
|
default: () => ({})
|
|
|
+ },
|
|
|
+ onItemClick: {
|
|
|
+ type: Function,
|
|
|
+ default: (item: any) => {}
|
|
|
}
|
|
|
},
|
|
|
render() {
|
|
|
const item = this.item
|
|
|
return (
|
|
|
- <div class="rounded-[10px] w-[156px] cursor-pointer overflow-hidden relative transition-all">
|
|
|
+ <div class="rounded-[10px] w-[156px] cursor-pointer overflow-hidden relative transition-all" onClick={() => {
|
|
|
+ this.onItemClick(item)
|
|
|
+ }}>
|
|
|
<ElImage src={iconStart} class="w-6 h-6 !absolute top-2 right-4 z-10" />
|
|
|
|
|
|
<ElImage
|