package com.zswc.creativity.adapter

import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.zswc.creativity.R
import com.zswc.creativity.databinding.ItemHomeDriverBinding
import com.zswc.creativity.model.InfoListBean
import com.zswc.creativity.vmodel.HomeDriverVModel
import com.ysnows.base.base.BAdapter

class HomeDriverAdapter(val vm: HomeDriverVModel) : BAdapter<InfoListBean, BaseDataBindingHolder<ItemHomeDriverBinding>>(R.layout.item_home_driver) {
    override fun convert(holder: BaseDataBindingHolder<ItemHomeDriverBinding>, item: InfoListBean) {
        holder.dataBinding?.vm=vm
        holder.dataBinding?.item = item
    }
}
