@tfdesign/b-end 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AI_READ_FIRST.md +131 -0
- package/LICENSE +21 -0
- package/README.md +353 -0
- package/package.json +67 -0
- package/scripts/check-tfds-contract.mjs +334 -0
- package/scripts/check-tfds-integration.mjs +263 -0
- package/scripts/postinstall-cursor-skill.mjs +382 -0
- package/scripts/setup.mjs +520 -0
- package/skills/tfds/CHECKLIST.md +205 -0
- package/skills/tfds/COMMON_FAILURES.md +238 -0
- package/skills/tfds/DESIGN_PRINCIPLES.md +477 -0
- package/skills/tfds/GLOBAL_DESIGN_RULES.md +636 -0
- package/skills/tfds/LAYOUT_RECIPES.md +140 -0
- package/skills/tfds/LAYOUT_RULES.md +1355 -0
- package/skills/tfds/PAGE_ARCHETYPES.md +201 -0
- package/skills/tfds/SKILL.md +188 -0
- package/skills/tfds/components.index.json +7305 -0
- package/skills/tfds/components.summary.json +1809 -0
- package/src/_b_end_runtime/components/AiSuggestionShared.jsx +166 -0
- package/src/_b_end_runtime/components/Avatar.jsx +325 -0
- package/src/_b_end_runtime/components/Avatar.tokens.js +76 -0
- package/src/_b_end_runtime/components/AvatarGridPreview.jsx +56 -0
- package/src/_b_end_runtime/components/AvatarGroup.jsx +80 -0
- package/src/_b_end_runtime/components/AvatarGroup.tokens.js +28 -0
- package/src/_b_end_runtime/components/Button.jsx +144 -0
- package/src/_b_end_runtime/components/Button.tokens.js +90 -0
- package/src/_b_end_runtime/components/Card.jsx +460 -0
- package/src/_b_end_runtime/components/Card.tokens.js +124 -0
- package/src/_b_end_runtime/components/CardPreview.jsx +51 -0
- package/src/_b_end_runtime/components/ChatBubble.jsx +384 -0
- package/src/_b_end_runtime/components/ChatBubble.tokens.js +60 -0
- package/src/_b_end_runtime/components/ChatBubblePreview.jsx +129 -0
- package/src/_b_end_runtime/components/ChatInput.jsx +1399 -0
- package/src/_b_end_runtime/components/ChatInput.tokens.js +75 -0
- package/src/_b_end_runtime/components/ChatMessage.jsx +2215 -0
- package/src/_b_end_runtime/components/ChatMessage.tokens.js +257 -0
- package/src/_b_end_runtime/components/ChatMessagePreview.jsx +388 -0
- package/src/_b_end_runtime/components/Checkbox.jsx +317 -0
- package/src/_b_end_runtime/components/Checkbox.tokens.js +59 -0
- package/src/_b_end_runtime/components/ConversationList.jsx +1264 -0
- package/src/_b_end_runtime/components/ConversationList.tokens.js +135 -0
- package/src/_b_end_runtime/components/ConversationListPreview.jsx +108 -0
- package/src/_b_end_runtime/components/CustomerServiceWorkspaceFrame.jsx +324 -0
- package/src/_b_end_runtime/components/CustomerServiceWorkspaceFrame.tokens.js +69 -0
- package/src/_b_end_runtime/components/DatePicker.jsx +739 -0
- package/src/_b_end_runtime/components/DatePicker.tokens.js +99 -0
- package/src/_b_end_runtime/components/Empty.jsx +141 -0
- package/src/_b_end_runtime/components/Empty.tokens.js +40 -0
- package/src/_b_end_runtime/components/Form.jsx +609 -0
- package/src/_b_end_runtime/components/Form.tokens.js +77 -0
- package/src/_b_end_runtime/components/FormFieldStack.jsx +123 -0
- package/src/_b_end_runtime/components/FormFieldStack.tokens.js +12 -0
- package/src/_b_end_runtime/components/FormTitle.jsx +119 -0
- package/src/_b_end_runtime/components/FormTitle.tokens.js +87 -0
- package/src/_b_end_runtime/components/FullScreenPage.jsx +97 -0
- package/src/_b_end_runtime/components/FullScreenPage.tokens.js +19 -0
- package/src/_b_end_runtime/components/Icon.jsx +172 -0
- package/src/_b_end_runtime/components/Icon.tokens.js +26 -0
- package/src/_b_end_runtime/components/IconGridPreview.jsx +277 -0
- package/src/_b_end_runtime/components/InfoDisplayPanel.jsx +620 -0
- package/src/_b_end_runtime/components/InfoDisplayPanel.tokens.js +71 -0
- package/src/_b_end_runtime/components/InfoDisplayPanelPreview.jsx +133 -0
- package/src/_b_end_runtime/components/Input.jsx +258 -0
- package/src/_b_end_runtime/components/Input.tokens.js +68 -0
- package/src/_b_end_runtime/components/InputNumber.jsx +242 -0
- package/src/_b_end_runtime/components/InputNumber.tokens.js +55 -0
- package/src/_b_end_runtime/components/Modal.jsx +155 -0
- package/src/_b_end_runtime/components/Modal.tokens.js +73 -0
- package/src/_b_end_runtime/components/NavBar.jsx +842 -0
- package/src/_b_end_runtime/components/NavBar.tokens.js +97 -0
- package/src/_b_end_runtime/components/NavBarPreview.jsx +11 -0
- package/src/_b_end_runtime/components/Radio.jsx +227 -0
- package/src/_b_end_runtime/components/Radio.tokens.js +59 -0
- package/src/_b_end_runtime/components/Select.jsx +766 -0
- package/src/_b_end_runtime/components/Select.tokens.js +99 -0
- package/src/_b_end_runtime/components/Sheet.jsx +132 -0
- package/src/_b_end_runtime/components/Sheet.tokens.js +61 -0
- package/src/_b_end_runtime/components/Slider.jsx +346 -0
- package/src/_b_end_runtime/components/Slider.tokens.js +47 -0
- package/src/_b_end_runtime/components/Switch.jsx +124 -0
- package/src/_b_end_runtime/components/Switch.tokens.js +38 -0
- package/src/_b_end_runtime/components/Table.jsx +1338 -0
- package/src/_b_end_runtime/components/Table.tokens.js +147 -0
- package/src/_b_end_runtime/components/TablePreview.jsx +599 -0
- package/src/_b_end_runtime/components/Tabs.jsx +149 -0
- package/src/_b_end_runtime/components/Tabs.tokens.js +102 -0
- package/src/_b_end_runtime/components/Tag.jsx +199 -0
- package/src/_b_end_runtime/components/Tag.tokens.js +171 -0
- package/src/_b_end_runtime/components/TagBar.jsx +1134 -0
- package/src/_b_end_runtime/components/TagBar.tokens.js +75 -0
- package/src/_b_end_runtime/components/TagGridPreview.jsx +23 -0
- package/src/_b_end_runtime/components/TagInput.jsx +382 -0
- package/src/_b_end_runtime/components/TagInput.tokens.js +52 -0
- package/src/_b_end_runtime/components/TextArea.jsx +363 -0
- package/src/_b_end_runtime/components/TextArea.tokens.js +65 -0
- package/src/_b_end_runtime/components/TimePicker.jsx +444 -0
- package/src/_b_end_runtime/components/TimePicker.tokens.js +77 -0
- package/src/_b_end_runtime/components/Toast.jsx +120 -0
- package/src/_b_end_runtime/components/Toast.tokens.js +146 -0
- package/src/_b_end_runtime/components/Tooltip.jsx +282 -0
- package/src/_b_end_runtime/components/Tooltip.tokens.js +48 -0
- package/src/_b_end_runtime/components/TooltipPreview.jsx +50 -0
- package/src/_b_end_runtime/components/Upload.jsx +455 -0
- package/src/_b_end_runtime/components/Upload.tokens.js +47 -0
- package/src/_b_end_runtime/components/avatar-assets/avatar-default.png +0 -0
- package/src/_b_end_runtime/components/avatar-group-assets/avatar-group-1.png +0 -0
- package/src/_b_end_runtime/components/avatar-group-assets/avatar-group-2.png +0 -0
- package/src/_b_end_runtime/components/avatar-group-assets/avatar-group-3.png +0 -0
- package/src/_b_end_runtime/components/avatar-group-assets/avatar-group-4.png +0 -0
- package/src/_b_end_runtime/components/avatar-group-assets/avatar-group-5.png +0 -0
- package/src/_b_end_runtime/components/empty-assets/administrator-1.svg +40 -0
- package/src/_b_end_runtime/components/empty-assets/administrator-2.svg +33 -0
- package/src/_b_end_runtime/components/empty-assets/construction.svg +33 -0
- package/src/_b_end_runtime/components/empty-assets/failure.svg +49 -0
- package/src/_b_end_runtime/components/empty-assets/idle.svg +34 -0
- package/src/_b_end_runtime/components/empty-assets/no-access.svg +36 -0
- package/src/_b_end_runtime/components/empty-assets/no-content.svg +77 -0
- package/src/_b_end_runtime/components/empty-assets/no-result.svg +61 -0
- package/src/_b_end_runtime/components/empty-assets/not-found.svg +46 -0
- package/src/_b_end_runtime/components/empty-assets/success.svg +38 -0
- package/src/_b_end_runtime/components/file-type-assets/batch-report.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/catcat.svg +21 -0
- package/src/_b_end_runtime/components/file-type-assets/code.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/conversation.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/document.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/feishu-card.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/feishu-sheet.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/feishu.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/image.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/index.js +105 -0
- package/src/_b_end_runtime/components/file-type-assets/knowledge.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/pdf.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/pe.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/strategy.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/table.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/webpage.png +0 -0
- package/src/_b_end_runtime/components/file-type-assets/xmind.png +0 -0
- package/src/_b_end_runtime/components/icons/icon-data.js +12496 -0
- package/src/_b_end_runtime/components/nav-bar-assets/bytehi-logo-mark.svg +21 -0
- package/src/_b_end_runtime/components/table-assets/avatar.png +0 -0
- package/src/_b_end_runtime/components/table-assets/button.png +0 -0
- package/src/_b_end_runtime/components/table-assets/icon-chevron-down.png +0 -0
- package/src/_b_end_runtime/components/table-cell-assets/avatar.png +0 -0
- package/src/_b_end_runtime/components/table-cell-assets/button.png +0 -0
- package/src/_b_end_runtime/components/table-cell-assets/checkbox.png +0 -0
- package/src/_b_end_runtime/components/table-cell-assets/icon-chevron-right.png +0 -0
- package/src/_b_end_runtime/components/table-cell-assets/icon.png +0 -0
- package/src/_b_end_runtime/components/table-cell-assets/semi-icons-handle.png +0 -0
- package/src/_b_end_runtime/components/table-cell-assets/semi-icons-tree-triangle-right.png +0 -0
- package/src/_b_end_runtime/components/table-cell-assets/switch.png +0 -0
- package/src/_b_end_runtime/components/tagShared.js +3 -0
- package/src/_b_end_runtime/components/team-avatar-assets/chengcheng-murphy.png +0 -0
- package/src/_b_end_runtime/components/team-avatar-assets/duan-ran.png +0 -0
- package/src/_b_end_runtime/components/team-avatar-assets/guo-zhezhi.png +0 -0
- package/src/_b_end_runtime/components/team-avatar-assets/li-siru.png +0 -0
- package/src/_b_end_runtime/components/team-avatar-assets/liu-delin.png +0 -0
- package/src/_b_end_runtime/components.js +3499 -0
- package/src/_b_end_runtime/index.js +9 -0
- package/src/_b_end_runtime/page-patterns/BasePageFramePattern.jsx +395 -0
- package/src/_b_end_runtime/page-patterns/ChatConversationPattern.jsx +989 -0
- package/src/_b_end_runtime/page-patterns/ChatHomePagePattern.jsx +281 -0
- package/src/_b_end_runtime/page-patterns/CopilotPagePattern.jsx +380 -0
- package/src/_b_end_runtime/page-patterns/CustomerServiceWorkspaceFramePattern.jsx +392 -0
- package/src/_b_end_runtime/page-patterns/IMConversationPattern.jsx +590 -0
- package/src/_b_end_runtime/page-patterns/McpManagementPage.jsx +237 -0
- package/src/_b_end_runtime/page-patterns/StrategyListPage.jsx +189 -0
- package/src/_b_end_runtime/page-patterns/TabTopBarListPage.jsx +594 -0
- package/src/_b_end_runtime/page-patterns/VariableManagementPage.jsx +87 -0
- package/src/_b_end_runtime/page-patterns/pageListShared.jsx +177 -0
- package/src/_b_end_runtime/patterns.js +428 -0
- package/src/_b_end_runtime/preview-registry.jsx +4719 -0
- package/src/_b_end_runtime/teamMembers.js +56 -0
- package/src/_b_end_runtime/tokens.js +500 -0
- package/src/index.d.ts +1073 -0
- package/src/index.js +52 -0
- package/theme.css +350 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table — TOKEN_MAP(供平台属性面板展示)
|
|
3
|
+
*
|
|
4
|
+
* 分组顺序:容器 → 表头 → 单元格 → 交互类型 → 复合类型 → 分页 → 卡片型表单 → 引用组件
|
|
5
|
+
*/
|
|
6
|
+
export const TABLE_TOKEN_MAP = {
|
|
7
|
+
容器: [
|
|
8
|
+
{ label: '外层背景', cssProp: 'background', token: '--color-page', value: '#FFFFFF', semanticRef: 'bg-page' },
|
|
9
|
+
{ label: '外层留白', cssProp: 'padding', token: '--spacing-3', value: '12px' },
|
|
10
|
+
{ label: '外层圆角', cssProp: 'border-radius', value: '12px' },
|
|
11
|
+
{ label: '内层背景', cssProp: 'background', token: '--color-surface', value: '#FFFFFF', semanticRef: 'bg-surface' },
|
|
12
|
+
{ label: '预览边距', cssProp: 'padding', token: '--spacing-6', value: '24px' },
|
|
13
|
+
],
|
|
14
|
+
表头: [
|
|
15
|
+
{ label: '文字色', cssProp: 'color', token: '--color-foreground-muted', value: '#667085', semanticRef: 'text-tertiary' },
|
|
16
|
+
{ label: '字重', cssProp: 'font-weight', token: '--font-semibold', value: '600(运行时使用 [font-weight:var(--font-semibold)])' },
|
|
17
|
+
{ label: '字号', cssProp: 'font-size', token: '--text-sm', value: '14px' },
|
|
18
|
+
{ label: '行高', cssProp: 'line-height', token: '--leading-5', value: '20px' },
|
|
19
|
+
{ label: '底边色', cssProp: 'border-bottom-color', token: '--color-border-default', value: '#E4E7EC', semanticRef: 'border-default' },
|
|
20
|
+
{ label: '底边宽', cssProp: 'border-bottom-width', value: '2px' },
|
|
21
|
+
{ label: '单元距', cssProp: 'padding-inline / padding-block', token: '--spacing-4 / --spacing-3', value: '16px 12px' },
|
|
22
|
+
],
|
|
23
|
+
单元格: [
|
|
24
|
+
{ label: '背景色', cssProp: 'background', token: '--color-surface', value: '#FFFFFF', semanticRef: 'bg-surface' },
|
|
25
|
+
{ label: '文字色', cssProp: 'color', token: '--color-foreground', value: '#182230', semanticRef: 'text-primary' },
|
|
26
|
+
{ label: '字号', cssProp: 'font-size', token: '--text-sm', value: '14px' },
|
|
27
|
+
{ label: '行高', cssProp: 'line-height', token: '--leading-5', value: '20px' },
|
|
28
|
+
{ label: '底边色', cssProp: 'border-bottom-color', token: '--color-border-default', value: '#E4E7EC', semanticRef: 'border-default' },
|
|
29
|
+
{ label: '底边宽', cssProp: 'border-bottom-width', value: '1px' },
|
|
30
|
+
{ label: '默认内距', cssProp: 'padding-inline / padding-block', token: '--spacing-3', value: '12px 12px' },
|
|
31
|
+
{ label: '中尺寸内距', cssProp: 'padding', token: '--spacing-3 / --spacing-2', value: '12px 8px' },
|
|
32
|
+
{ label: '小尺寸内距', cssProp: 'padding-inline / padding-block', token: '--spacing-2 / --spacing-1', value: '8px 4px' },
|
|
33
|
+
],
|
|
34
|
+
可点文本: [
|
|
35
|
+
{ label: '文字色', cssProp: 'color', token: '--color-brand-700', value: '#18B49D', semanticRef: 'text-link' },
|
|
36
|
+
{ label: '悬浮色', cssProp: 'color', token: '--color-brand-800', value: '#129683', state: 'hover', semanticRef: 'text-link.hover' },
|
|
37
|
+
{ label: '按下色', cssProp: 'color', token: '--color-brand-900', value: '#0D786A', state: 'active', semanticRef: 'text-link.active' },
|
|
38
|
+
{ label: '字重', cssProp: 'font-weight', token: '--font-semibold', value: '600(运行时使用 [font-weight:var(--font-semibold)])' },
|
|
39
|
+
],
|
|
40
|
+
状态: [
|
|
41
|
+
{ label: '点色-成功', cssProp: 'background-color', token: '--color-green-500', value: '#3EB346', semanticRef: 'status-success' },
|
|
42
|
+
{ label: '文字色', cssProp: 'color', token: '--color-foreground', value: '#182230', semanticRef: 'text-primary' },
|
|
43
|
+
{ label: '间距', cssProp: 'gap', token: '--spacing-2', value: '8px' },
|
|
44
|
+
],
|
|
45
|
+
勾选开关: [
|
|
46
|
+
{ label: '选中色', cssProp: 'background / border-color', token: '--color-brand-500', value: '#56D3BC', semanticRef: 'status-primary' },
|
|
47
|
+
{ label: '未选底', cssProp: 'background', token: '--color-fill', value: 'rgba(83, 96, 143, 0.07)', semanticRef: 'fill-default' },
|
|
48
|
+
{ label: '默认高', cssProp: 'height', value: '44px ~ 48px' },
|
|
49
|
+
{ label: '中尺寸高', cssProp: 'height', value: '36px ~ 40px' },
|
|
50
|
+
{ label: '小尺寸高', cssProp: 'height', value: '28px ~ 32px' },
|
|
51
|
+
],
|
|
52
|
+
头像信息: [
|
|
53
|
+
{ label: '间距', cssProp: 'gap', token: '--spacing-2', value: '8px' },
|
|
54
|
+
{ label: '头像宽', cssProp: 'width', token: '--spacing-6', value: '24px' },
|
|
55
|
+
{ label: '头像高', cssProp: 'height', token: '--spacing-6', value: '24px' },
|
|
56
|
+
{ label: '文字色', cssProp: 'color', token: '--color-foreground', value: '#182230', semanticRef: 'text-primary' },
|
|
57
|
+
{ label: '副文本色', cssProp: 'color', token: '--color-foreground-muted', value: '#667085', semanticRef: 'text-tertiary', state: 'secondary' },
|
|
58
|
+
],
|
|
59
|
+
图片进度: [
|
|
60
|
+
{ label: '进度底轨', cssProp: 'background', token: '--color-fill', value: 'rgba(83, 96, 143, 0.07)', semanticRef: 'fill-default' },
|
|
61
|
+
{ label: '进度高亮', cssProp: 'background', token: '--color-data-0', value: '#24CDA5', semanticRef: 'data-0' },
|
|
62
|
+
{ label: '轨道总长', cssProp: 'width', value: '70px' },
|
|
63
|
+
{ label: '轨道高度', cssProp: 'height', value: '10px' },
|
|
64
|
+
],
|
|
65
|
+
操作区: [
|
|
66
|
+
{ label: '间距', cssProp: 'gap', token: '--spacing-2', value: '8px' },
|
|
67
|
+
{ label: '文字色', cssProp: 'color', token: '--color-brand-500', value: '#56D3BC', semanticRef: 'status-primary' },
|
|
68
|
+
{ label: '悬浮色', cssProp: 'color', token: '--color-brand-600', value: '#32C4AC', state: 'hover' },
|
|
69
|
+
{ label: '字重', cssProp: 'font-weight', token: '--font-semibold', value: '600(运行时使用 [font-weight:var(--font-semibold)])' },
|
|
70
|
+
{ label: '图标宽', cssProp: 'width', token: '--spacing-6', value: '24px' },
|
|
71
|
+
{ label: '图标高', cssProp: 'height', token: '--spacing-6', value: '24px' },
|
|
72
|
+
],
|
|
73
|
+
分页: [
|
|
74
|
+
{ label: '总距', cssProp: 'padding-inline / padding-top / padding-bottom', value: '0px 12px 0px' },
|
|
75
|
+
{ label: '主间距', cssProp: 'gap', token: '--spacing-4', value: '16px' },
|
|
76
|
+
{ label: '次间距', cssProp: 'gap (pages)', token: '--spacing-1', value: '4px' },
|
|
77
|
+
{ label: '统计色', cssProp: 'color', token: '--color-foreground-muted', value: '#667085', semanticRef: 'text-tertiary' },
|
|
78
|
+
{ label: '选中底', cssProp: 'background', token: '--color-brand-50', value: '#EAFAF6', state: 'active' },
|
|
79
|
+
{ label: '选中色', cssProp: 'color', token: '--color-brand-600', value: 'Brand 600', semanticRef: 'text-brand', state: 'active' },
|
|
80
|
+
{ label: '选中字重', cssProp: 'font-weight', token: '--font-semibold', value: '600(运行时使用 [font-weight:var(--font-semibold)])', state: 'active' },
|
|
81
|
+
{ label: '选中态组合', cssProp: 'background / color / font-weight', value: 'bg-brand-50 + text-brand-600 + semibold;数字颜色必须为 Brand 600' },
|
|
82
|
+
{ label: '真实数量', cssProp: 'data', value: '本地完整数据场景 total 必须等于 dataSource.length;Table 按 current/pageSize 自动切片,展示数量、统计范围、总条数和页码保持一致' },
|
|
83
|
+
{ label: '服务端分页', cssProp: 'data', value: '服务端分页才允许 total 大于当前页 dataSource.length,此时 dataSource 只传当前页数据' },
|
|
84
|
+
{ label: '页码宽', cssProp: 'width', value: '32px' },
|
|
85
|
+
{ label: '页码高', cssProp: 'height', value: '32px' },
|
|
86
|
+
{ label: '箭头宽', cssProp: 'width', value: '36px' },
|
|
87
|
+
{ label: '箭头高', cssProp: 'height', value: '36px' },
|
|
88
|
+
{ label: '页码圆角', cssProp: 'border-radius', value: '6px' },
|
|
89
|
+
{ label: '箭头圆角', cssProp: 'border-radius', token: '--radius-md', value: '8px' },
|
|
90
|
+
],
|
|
91
|
+
卡片型表单: [
|
|
92
|
+
{ label: '类型', cssProp: 'variant', value: 'Table variant="card-form" / 卡片型表单' },
|
|
93
|
+
{ label: '适用场景', cssProp: 'usage', value: '策略 / 流程 / 脚本 / 模板 / SOP / 知识条目等父项 + 多版本业务列表' },
|
|
94
|
+
{ label: '默认判定', cssProp: 'usage', value: '只要存在父子级关系,且父项需要展开/收起查看子级内容,默认优先使用 card-form' },
|
|
95
|
+
{ label: '适用边界', cssProp: 'usage', value: '父子流程、版本记录、分组表单使用 card-form;无父子展开关系的平铺多列对比才使用标准表格' },
|
|
96
|
+
{ label: '多字段场景', cssProp: 'usage', value: '即使父项包含状态、引用次数、渠道、负责人、更新时间和操作,只要有展开子项,也归类为 card-form' },
|
|
97
|
+
{ label: '禁用配置', cssProp: 'props', value: 'card-form 不适用 columns / fixedColumnsMode / tableSize / 标准表格列 type' },
|
|
98
|
+
{ label: '列表间距', cssProp: 'gap', token: '--spacing-3', value: '12px' },
|
|
99
|
+
{ label: '父卡背景', cssProp: 'background', token: '--color-surface', value: '#FFFFFF', semanticRef: 'bg-surface' },
|
|
100
|
+
{ label: '父卡描边', cssProp: 'border-color', token: '--color-border-default', value: '#E4E7EC', semanticRef: 'border-default' },
|
|
101
|
+
{ label: '父卡圆角', cssProp: 'border-radius', token: '--radius-xl', value: '16px(运行时使用 rounded-xl)' },
|
|
102
|
+
{ label: '父行内距', cssProp: 'padding-inline / padding-block', token: '--spacing-8 / --spacing-4', value: '32px 16px' },
|
|
103
|
+
{ label: '父行悬浮底', cssProp: 'background', token: '--color-blueGrey-50', value: '#FCFCFD', state: 'hover' },
|
|
104
|
+
{ label: '标题字号', cssProp: 'font-size', token: '--text-base', value: '16px' },
|
|
105
|
+
{ label: '标题行高', cssProp: 'line-height', token: '--leading-6', value: '24px' },
|
|
106
|
+
{ label: '标题字重', cssProp: 'font-weight', token: '--font-semibold', value: '600(运行时使用 [font-weight:var(--font-semibold)])' },
|
|
107
|
+
{ label: '副标题字号', cssProp: 'font-size', token: '--text-xs', value: '12px' },
|
|
108
|
+
{ label: '副标题行高', cssProp: 'line-height', token: '--leading-4', value: '16px' },
|
|
109
|
+
{ label: '父项内容结构', cssProp: 'layout', value: '左侧固定两行:标题 + 副标题;标题区 min-w-0 + overflow-hidden,不覆盖右侧标签/时间/操作区' },
|
|
110
|
+
{ label: '左侧区约束', cssProp: 'min-width / overflow', value: 'min-w-0 + overflow-hidden;标题和副标题必须 block w-full truncate' },
|
|
111
|
+
{ label: '右侧区约束', cssProp: 'flex-shrink', value: 'shrink-0;分类标签、头像、日期、查看和更多操作不得被标题区覆盖' },
|
|
112
|
+
{ label: '省略文案交互', cssProp: 'interaction', value: '父标题 / 副标题 / 版本标题 / 日期等文本发生真实截断时,hover/focus 通过 Tooltip 展示完整文案' },
|
|
113
|
+
{ label: '分类标签长度', cssProp: 'content', value: '8 个字以内,模拟文案使用短标签' },
|
|
114
|
+
{ label: '分类标签样式', cssProp: 'component', value: 'Tag / variant=white / size=m / radius=md' },
|
|
115
|
+
{ label: '父项数据字段', cssProp: 'data', value: '推荐 id / title / subtitle / category / updatedAt / avatar / versions;不要主动生成 categoryEmpty / quoteCount / channels' },
|
|
116
|
+
{ label: '右侧区间距', cssProp: 'gap', token: '--spacing-8', value: '32px' },
|
|
117
|
+
{ label: '子行外距', cssProp: 'padding-inline / padding-bottom', token: '--spacing-4', value: '16px 16px' },
|
|
118
|
+
{ label: '子行背景', cssProp: 'background', token: '--color-blueGrey-100', value: '#F8F9FB' },
|
|
119
|
+
{ label: '子行悬浮底', cssProp: 'background', token: '--color-blueGrey-200', value: '#F2F4F7', state: 'hover' },
|
|
120
|
+
{ label: '子行内距', cssProp: 'padding', token: '--spacing-4', value: '16px' },
|
|
121
|
+
{ label: '子行圆角', cssProp: 'border-radius', token: '--radius-lg', value: '12px(运行时使用 rounded-lg)' },
|
|
122
|
+
{ label: '版本号尺寸', cssProp: 'width / height', token: '--spacing-6', value: '24px' },
|
|
123
|
+
{ label: '版本号圆角', cssProp: 'border-radius', token: '--radius-md', value: '8px(运行时使用 rounded-md)' },
|
|
124
|
+
{ label: '版本号背景', cssProp: 'background', token: '--color-blueGrey-900', value: '#182230' },
|
|
125
|
+
{ label: '版本号文字', cssProp: 'color', token: '--color-white', value: '#FFFFFF' },
|
|
126
|
+
{ label: '版本号计数', cssProp: 'content', value: '按当前父项子行展示顺序从 v1 开始递增,不读取业务传入的 v/version 字段' },
|
|
127
|
+
{ label: '子项数据字段', cssProp: 'data', value: '推荐 id / title / status / metrics / updatedAt / avatar;不要主动生成 v/version' },
|
|
128
|
+
{ label: '状态标签映射', cssProp: 'component', value: '草稿中/暂未生效/已下线=grey;实验中=blue;已发布/线上生效=green' },
|
|
129
|
+
{ label: '指标间距', cssProp: 'gap', token: '--spacing-5', value: '20px' },
|
|
130
|
+
{ label: '指标数量', cssProp: 'content', value: '默认最多展示 4 项,超出字段进入 Tooltip 或更多信息,不横向撑破布局' },
|
|
131
|
+
{ label: '指标宽度适配', cssProp: 'overflow / text-overflow / white-space', value: 'overflow-hidden / text-ellipsis / nowrap,窄宽时收敛为“…”' },
|
|
132
|
+
{ label: '指标完整展示', cssProp: 'interaction', value: '仅发生截断时 hover/focus 触发 Tooltip,展示完整指标字段' },
|
|
133
|
+
{ label: '操作区间距', cssProp: 'gap', token: '--spacing-2', value: '8px' },
|
|
134
|
+
{ label: '展开交互', cssProp: 'interaction', value: '左侧展开 Button 控制展开收起,箭头旋转 90deg' },
|
|
135
|
+
{ label: '模板数据量', cssProp: 'content', value: '模板预览建议展示 5 个父项,每个父项都提供非空 versions 支持展开子级表单' },
|
|
136
|
+
{ label: '业务文案', cssProp: 'content', value: '模拟抖音体验与服务场景,例如账号服务、权益申诉、处罚解释、举报处理、售后协同' },
|
|
137
|
+
],
|
|
138
|
+
引用组件: [
|
|
139
|
+
{ label: '头像', cssProp: '—', value: 'Avatar round xs image / fallback;Avatar mini 用于卡片型表单更新时间;Avatar rect robot m|default|s' },
|
|
140
|
+
{ label: '按钮', cssProp: '—', value: 'Button text-brand sm / outline-black / ghost-black iconOnly / 分页按钮' },
|
|
141
|
+
{ label: '标签', cssProp: '—', value: 'Tag white|grey|green|blue m md;卡片型表单父项分类标签固定 white,版本状态标签按状态语义' },
|
|
142
|
+
{ label: '图标', cssProp: '—', value: 'Icon chevron-right / dots-horizontal / chevron-left / chevron-right / file / dots-grid / copy' },
|
|
143
|
+
{ label: '开关', cssProp: '—', value: 'Switch brand sm(switch 类型完整复用)' },
|
|
144
|
+
{ label: '勾选框', cssProp: '—', value: 'Checkbox brand md|sm' },
|
|
145
|
+
{ label: '选择器', cssProp: '—', value: 'Select md' },
|
|
146
|
+
],
|
|
147
|
+
};
|