ant-design-vue
ant-design-vue copied to clipboard
list 使用浏览器引入的渲染不出来数据呀
trafficstars
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.1.0
Environment
可以访问 https://codepen.io/ikux/pen/NWJrvxR 查看问题复现
Reproduction link
https://codepen.io/ikux/pen/NWJrvxR
Steps to reproduce
list 使用浏览器引入的渲染不出来数据呀
What is expected?
list 使用浏览器引入的渲染不出来数据呀
What is actually happening?
list 使用浏览器引入的渲染不出来数据呀
list 使用浏览器引入的渲染不出来数据呀
https://codepen.io/ikux/pen/oNVYYeN
a-table 不能自定义列展示
使用template标签
const app = createApp({
setup() {
return {
data: ref([
{
title: "Ant Design Title 1",
},
{
title: "Ant Design Title 2",
},
{
title: "Ant Design Title 3",
},
{
title: "Ant Design Title 4",
},
]),
};
},
template: `
<a-list item-layout="horizontal" :data-source="data">
<template #renderItem="{ item }">
<a-list-item>
<a-list-item-meta
description="Ant Design, a design language for background applications, is refined by Ant UED Team">
<template #title>
<a href="https://www.antdv.com/">{{ item.title }}</a>
</template>
<template #avatar>
<a-avatar src="https://joeschmoe.io/api/v1/random" />
</template>
</a-list-item-meta>
</a-list-item>
</template>
</a-list>`,
});
那不是我所有的 页面代码都要写到template里面 , 大佬这个能改进一下吗?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days