如何使用 vue vxe-table 来实现一个产品对比表表格
如何使用 vuevxe-table 来实现一个产品对比表表格查看官网:https://vxetable.cn
gitbub:https://github.com/x-extends/vxe-table
gitee:https://gitee.com/x-extends/vxe-table
效果
代码
<template>
<vxe-grid v-bind="gridOptions">
<template #img11>
<vxe-image src="https://vxeui.com/resource/productImg/m11.jpg" width="100%"></vxe-image>
</template>
<template #img12>
<vxe-image src="https://vxeui.com/resource/productImg/m12.jpg" width="100%"></vxe-image>
</template>
<template #img21>
<vxe-image src="https://vxeui.com/resource/productImg/m21.jpg" width="100%"></vxe-image>
</template>
<template #img22>
<vxe-image src="https://vxeui.com/resource/productImg/m22.jpg" width="100%"></vxe-image>
</template>
<template #img31>
<vxe-image src="https://vxeui.com/resource/productImg/m31.jpg" width="100%"></vxe-image>
</template>
<template #img32>
<vxe-image src="https://vxeui.com/resource/productImg/m32.jpg" width="100%"></vxe-image>
</template>
<template #cell11="{ row }">
{{ row.product11 ? '✔️' : '❌' }}
{{ row.product11 }}
</template>
<template #cell12="{ row }">
{{ row.product12 ? '✔️' : '❌' }}
{{ row.product12 }}
</template>
<template #cell21="{ row }">
{{ row.product21 ? '✔️' : '❌' }}
{{ row.product21 }}
</template>
<template #cell22="{ row }">
{{ row.product22 ? '✔️' : '❌' }}
{{ row.product22 }}
</template>
<template #cell31="{ row }">
{{ row.product31 ? '✔️' : '❌' }}
{{ row.product31 }}
</template>
<template #cell32="{ row }">
{{ row.product32 ? '✔️' : '❌' }}
{{ row.product32 }}
</template>
</vxe-grid>
</template>https://gitee.com/x-extends/vxe-table
来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作! 感谢分享,下载保存了,貌似很强大 感谢分享,下载保存了,貌似很强大 谢谢分享,试用一下 感谢,下载保存了 鼓励转贴优秀软件安全工具和文档! 谢谢分享,辛苦了 感谢分享 谢谢分享,辛苦了 东西不错很实用谢谢分享 前排留名,哈哈哈 鼓励转贴优秀软件安全工具和文档! 感谢分享,下载保存了,貌似很强大 yyds。多谢分享 鼓励转贴优秀软件安全工具和文档! 分享、互助 让互联网精神温暖你我 谢谢分享,试用一下 感谢发布原创作品,程序园因你更精彩 过来提前占个楼
页:
[1]