Commit 7b866fe9 by qinjianhui

fix: 表格选中问题修改

parent 03336ad7
......@@ -90,9 +90,13 @@ defineProps({
})
const attrs = useAttrs()
const slots = useSlots() as Record<string, Slot>
const setCurrentRow = (row: T) => {
tableRef.value?.setCurrentRow(row)
}
defineExpose({
tableRef,
setCurrentRow,
})
</script>
......
......@@ -43,4 +43,5 @@ export interface ProductList {
count?: number
power?: boolean
variantImage?: string
podJomallUsNo?: string
}
......@@ -382,7 +382,7 @@ const renderItemBox = (bool: boolean) => {
}
if (currentCode) {
for (const product of productList) {
if (product.podJomallNo === currentCode) {
if (product.podJomallUsNo === currentCode) {
coverImage.value = product.variantImage || ''
nextTick(() => {
tableRef.value?.setCurrentRow(product)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment