Commit 885a48a6 by wusiyi

feat: PODUS和工厂订单new缩略图优化

parent 93a3a450
......@@ -4,6 +4,7 @@
:style="imageStyle"
:src="imageUrl"
loading="lazy"
preview-teleported
/>
</template>
......@@ -46,8 +47,8 @@ const displayHeight = computed(() => {
const imageStyle = computed(() => {
return {
width: `${displayWidth}px`,
height: `${displayHeight}px`,
width: `${displayWidth.value}px`,
height: `${displayHeight.value}px`,
}
})
......
......@@ -66,6 +66,7 @@ import { getRestockListApi, restockCheckApi } from '@/api/factoryOrderNew'
import type { RestockData } from '@/types/api/factoryOrderNew'
import TableView from '@/components/TableView.vue'
import usePageList from '@/utils/hooks/usePageList'
import Thumbnail from '@/components/Thumbnail.vue'
const filterForm = reactive({
warehouseSku: '',
......@@ -108,11 +109,11 @@ const columns = [
align: 'center',
render: (row: RestockData) => {
return (
<el-image
<Thumbnail
src={row.image ?? ''}
style={{ width: '50px', height: '50px' }}
width="45"
display-width="50"
previewSrcList={[row.image ?? '']}
previewTeleported
/>
)
},
......
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