你瞅啥呢

随笔分类 -  arco-design

摘要:2024-10-18 arco-design的a-table的表字段无法显示值问题:arco-design的a-table的表字段number无法显示值 原因:该值不能作为表字段,number为特殊变量,不可用作dataIndex 解决方案:更换字段名即可,比如原来的是number,改成dataIndex: number2,然后在插槽里转换一下: <template #num 阅读全文
posted @ 2024-10-18 16:01 叶乘风 阅读(69) 评论(0) 推荐(0) 编辑
摘要:2024=10-15 arco-design之a-cascader多级下拉选中值时只显示最后一级名称==》format-label:format-label="format" 加上这个属性format-label:允许用户格式化展示内容 const format = (labels: any) => { return labels[labels.length - 1].label; } 注意你的数据结构 阅读全文
posted @ 2024-10-15 09:44 叶乘风 阅读(205) 评论(0) 推荐(0) 编辑
摘要:2024-10-11 自定义渲染之arco-design-vue table的columns的title ==》使用DOM插入子元素业务场景如下: 给表头插入一个必填的符号*,就这么简单的需求。 代码如下: const elements: any = document.querySelectorAll('.arco-table-th-title'); elements.forEach((a: any) => { const it 阅读全文
posted @ 2024-10-11 10:25 叶乘风 阅读(268) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示