docs(ui): explain shared controls and canvas display adapters

This commit is contained in:
2026-11-12 01:51:59 +08:00
parent 1306df2b35
commit b51d78b47d
11 changed files with 115 additions and 0 deletions
+6
View File
@@ -1,3 +1,9 @@
/**
* 按既有静态资源命名约定展示仪表盘图标的小封装,不负责画布图标库的分片加载或搜索。
*/
/** name是调用方提供的资源后缀,拼成/assets/dashboardcontext-imgIcon{name}.svg。
* size同时设置宽高,默认18px;空alt表示装饰用途,承载动作的外层控件须另有可访问名称。
* 此处没有资源白名单校验或加载失败占位,调用方应使用项目已有的图标名。 */
export function Icon({ name, size = 18 }: { name: string; size?: number }) {
return (
<img