package com.quansu.heifengwuliu.adapter

import android.view.View
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.quansu.heifengwuliu.R
import com.quansu.heifengwuliu.databinding.ItemAddressBinding
import com.quansu.heifengwuliu.model.AddressBean
import com.quansu.heifengwuliu.vmodel.AddressVModel
import com.ysnows.base.base.BAdapter

class AddressAdapter(val vm: AddressVModel,var isShow:String) : BAdapter<AddressBean,
        BaseDataBindingHolder<ItemAddressBinding>>(R.layout.item_address) {


    override fun convert(holder: BaseDataBindingHolder<ItemAddressBinding>, item: AddressBean) {

        if(isShow=="0"){
            holder.dataBinding?.ivChose!!.visibility=View.GONE
        }
        holder.dataBinding?.item = item
        holder.dataBinding?.vm= vm

    }
}
