ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

list 使用浏览器引入的渲染不出来数据呀

Open gakkiox opened this issue 1 year ago • 3 comments
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 使用浏览器引入的渲染不出来数据呀

gakkiox avatar Jan 09 '24 09:01 gakkiox

https://codepen.io/ikux/pen/oNVYYeN

a-table 不能自定义列展示

gakkiox avatar Jan 12 '24 16:01 gakkiox

使用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>`,
      });

wlonghaha avatar Jan 12 '24 16:01 wlonghaha

那不是我所有的 页面代码都要写到template里面 , 大佬这个能改进一下吗?

gakkiox avatar Jan 13 '24 05:01 gakkiox

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

github-actions[bot] avatar Mar 14 '24 02:03 github-actions[bot]