你瞅啥呢

随笔分类 -  arco-design

摘要:2025-11-17 使用acro-cli快速创建一个前端项目npm install -g @arco-design/arco-cliarco init hello-arco-pro 安装遇到的问题: arco : 无法将“arco”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确 ,然后再试一次。 所在 阅读全文
posted @ 2025-11-17 11:31 叶乘风 阅读(19) 评论(0) 推荐(0)
摘要:2025-11-03 arco-design-vue的组件的自定义类名不生效==》查看style是否设置了scoped,如有请把scoped去掉rt。注意是vue版本,arco-design-vue的组件,比如文字气泡 Tooltip,有个弹出框箭头的类名,可让开发者自定义类名,当你设置了类名后死活都不生效,那么请查看style是否加了scoped标签,该标签会导致自定义类名失效。 阅读全文
posted @ 2025-11-03 11:43 叶乘风 阅读(11) 评论(0) 推荐(0)
摘要:2025-08-28 有2个a-scrollbar,如何滑动其中一个a-scrollbar同步另一个a-scrollbar?<a-scrollbar ref="bar1" style="height: 100%; overflow: auto"> xxx </a-scrollbar> <a-scrollbar ref="bar2" style="height: 100%; overflow: auto"> yyy </a 阅读全文
posted @ 2025-08-28 11:14 叶乘风 阅读(18) 评论(0) 推荐(0)
摘要: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 叶乘风 阅读(184) 评论(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 叶乘风 阅读(479) 评论(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 叶乘风 阅读(693) 评论(0) 推荐(0)