package com.lukouguoji.gjc.holder

import android.view.View
import com.lukouguoji.gjc.databinding.ItemIntExpAssembleSubBinding
import com.lukouguoji.module_base.base.BaseViewHolder
import com.lukouguoji.module_base.bean.GjcWarehouse

/**
 * 国际出港-出港组装 子列表ViewHolder
 * 显示运单明细信息
 */
class IntExpAssembleSubViewHolder(view: View) :
    BaseViewHolder<GjcWarehouse, ItemIntExpAssembleSubBinding>(view) {

    override fun onBind(item: Any?, position: Int) {
        val bean = getItemBean(item) ?: return
        binding.bean = bean
        binding.position = position + 1  // 序号从1开始
        binding.executePendingBindings()
    }
}
