Commit 7b866fe9 by qinjianhui

fix: 表格选中问题修改

parent 03336ad7
...@@ -90,9 +90,13 @@ defineProps({ ...@@ -90,9 +90,13 @@ defineProps({
}) })
const attrs = useAttrs() const attrs = useAttrs()
const slots = useSlots() as Record<string, Slot> const slots = useSlots() as Record<string, Slot>
const setCurrentRow = (row: T) => {
tableRef.value?.setCurrentRow(row)
}
defineExpose({ defineExpose({
tableRef, tableRef,
setCurrentRow,
}) })
</script> </script>
......
...@@ -43,4 +43,5 @@ export interface ProductList { ...@@ -43,4 +43,5 @@ export interface ProductList {
count?: number count?: number
power?: boolean power?: boolean
variantImage?: string variantImage?: string
podJomallUsNo?: string
} }
...@@ -382,7 +382,7 @@ const renderItemBox = (bool: boolean) => { ...@@ -382,7 +382,7 @@ const renderItemBox = (bool: boolean) => {
} }
if (currentCode) { if (currentCode) {
for (const product of productList) { for (const product of productList) {
if (product.podJomallNo === currentCode) { if (product.podJomallUsNo === currentCode) {
coverImage.value = product.variantImage || '' coverImage.value = product.variantImage || ''
nextTick(() => { nextTick(() => {
tableRef.value?.setCurrentRow(product) 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