✨ feat(vscode): 代码阅读的 React 组件卡片:原子图标,名称后面跟具名导出 / 默认导出 / 客户端组件 / 记忆化 / 转发 ref 小标签,属性表按属性一行(类型取字段、默认值、必填、说明,来自 XxxProps 可点,导入的类型经工作区索引查),"use client" 和组件上的 JSDoc 不再单独成块

This commit is contained in:
cruldra committed 2026-10-03 03:11:46 +08:00
1 parent 1a32a51e75
commit 15f3a6600d
14 files changed
+666 -34

No files matched your search

@@ -3,6 +3,7 @@ import type { ReactElement } from 'react'
import type { BlockKind, BlockView, KindIconName } from './types'
import {
Activity,
Atom,
Box,
Braces,
CalendarClock,
@@ -17,6 +18,7 @@ import {
ListOrdered,
Lock,
MessageSquareText,
MousePointerClick,
Network,
Package,
Play,
@@ -34,6 +36,7 @@ import {
Terminal,
TriangleAlert,
Variable,
Zap,
} from 'lucide-react'
/** 插件定义的这组种类图标,每个名字一个 lucide 图标(逐个 import,打包只带这些)。 */
@@ -70,6 +73,9 @@ export const KIND_ICON_COMPONENTS: Record<KindIconName, LucideIcon> = {
'calendar-clock': CalendarClock,
'globe': Globe,
'network': Network,
'atom': Atom,
'zap': Zap,
'mouse-pointer-click': MousePointerClick,
}
/**