Open longshihui opened 1 year ago
The descriptions component is render correctly.
<template> <a-descriptions title="Incorrect" :column="{ xs: 1, md: 3, lg: 4 }"> <SubDesc /> </a-descriptions> </template> <script> import { DescriptionsItem, Tag } from "@arco-design/web-vue"; import { h } from "vue"; const SubDesc = { setup() { const data = [ { label: "Name", value: "Socrates", }, { label: "Mobile", value: "123-1234-1234", }, { label: "Residence", value: "Beijing", }, { label: "Hometown", value: "Beijing", }, { label: "Address", value: "Yingdu Building, Zhichun Road, Beijing", }, ]; return () => { return data.map((item) => { return h( DescriptionsItem, { label: item.label, }, h(Tag, item.value) ); }); }; }, }; export default { components: { SubDesc, }, setup() { }, }; </script>
descriptions里问题比较大,这问题存在很久了,我目前的解决方法就是这样:https://github.com/arco-design/arco-design-vue/issues/1685#issuecomment-1387699444
简单说,东西没准备好之前不显示descriptions
Basic Info
What is expected?
The descriptions component is render correctly.
Steps to reproduce