@qilitt-mickey/vue3-temp-skill 1.1.75 → 1.2.1
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/README.md +85 -84
- package/SKILL.md +55 -27
- package/bin/cli.js +5 -6
- package/mapping/admin.json +60 -0
- package/package.json +4 -13
- package/references/adapters/_new-adapter.md +88 -0
- package/references/adapters/vue-antdv.md +70 -0
- package/references/adapters/vue-element-plus.md +90 -0
- package/references/design-apply.md +238 -122
- package/scripts/modules.json +2 -2
- package/dist/mapping-type.d.ts +0 -33
- package/dist/theme-vars.js +0 -62
- package/dist/theme-vars.ts +0 -113
- package/dist/theme.css +0 -73
- package/mapping/basic/color.json +0 -35
- package/mapping/basic/radius.json +0 -17
- package/mapping/basic/semantic-values.json +0 -72
- package/mapping/basic/spacing.json +0 -21
- package/mapping/basic/typography.json +0 -21
- package/mapping/component/button.json +0 -90
- package/mapping/component/card.json +0 -31
- package/mapping/component/input.json +0 -42
- package/mapping/component/overlay.json +0 -79
- package/mapping/component/pagination.json +0 -34
- package/mapping/component/table.json +0 -42
- package/mapping/component/tag.json +0 -48
- package/mapping/layout/breakpoint.json +0 -20
- package/mapping/layout/shell-geometry.json +0 -26
- package/mapping/scenes/admin/content.json +0 -497
- package/mapping/scenes/admin/layout.json +0 -577
- package/parser/fixtures/changeset-fullpage-restore.json +0 -259
- package/parser/fixtures/changeset-gap-block.json +0 -24
- package/parser/fixtures/changeset-legacy.json +0 -11
- package/parser/fixtures/changeset-neg1.json +0 -8
- package/parser/fixtures/changeset-neg2.json +0 -10
- package/parser/fixtures/changeset-neg3.json +0 -22
- package/parser/fixtures/changeset-neg4-g8.json +0 -15
- package/parser/fixtures/changeset-neg5-g8-stub.json +0 -26
- package/parser/fixtures/changeset-neg6-g9-identity.json +0 -39
- package/parser/fixtures/changeset-neg7-g10-dims.json +0 -57
- package/parser/fixtures/changeset-neg8-g11-oracle.json +0 -57
- package/parser/fixtures/changeset-neg9-g6-token-chain.json +0 -34
- package/parser/fixtures/changeset-pos-g6-token-chain.json +0 -35
- package/parser/fixtures/changeset-pos-theme-neutral.json +0 -264
- package/parser/fixtures/changeset-pos-theme-nometa.json +0 -260
- package/parser/fixtures/changeset-pos.json +0 -50
- package/parser/fixtures/changeset-registry-gap.json +0 -29
- package/parser/fixtures/changeset-v32-fields.json +0 -71
- package/parser/fixtures/fake-project/src/styles/app.scss +0 -5
- package/parser/fixtures/fake-project/src/views/list.vue +0 -13
- package/parser/fixtures/registry-bad.json +0 -11
- package/parser/fixtures/registry-g6-token-chain.json +0 -10
- package/parser/fixtures/registry-sample.json +0 -15
- package/parser/fixtures/verify/actual-clean.json +0 -35
- package/parser/fixtures/verify/actual.json +0 -33
- package/parser/fixtures/verify/mockup-baseline-admin-list.html +0 -27
- package/parser/fixtures/verify/mockup-g6-content.html +0 -12
- package/parser/fixtures/verify/mockup-neutral.html +0 -26
- package/parser/fixtures/verify/mockup-nometa.html +0 -26
- package/parser/fixtures/verify/oracle.json +0 -37
- package/parser/fixtures/verify/snapshot-latest.json +0 -103
- package/parser/generator.js +0 -178
- package/parser/index.js +0 -2706
- package/parser/loader.js +0 -66
- package/parser/override.js +0 -119
- package/parser/regression.js +0 -301
- package/parser/validator.js +0 -206
- package/parser/watch.js +0 -103
- package/references/steps/maintenance.md +0 -31
- package/references/steps/regression.md +0 -49
- package/references/steps/step0-preflight.md +0 -58
- package/references/steps/step1-match.md +0 -65
- package/references/steps/step1b-audit.md +0 -23
- package/references/steps/step1c-registry.md +0 -29
- package/references/steps/step2-structure.md +0 -73
- package/references/steps/step3-style.md +0 -38
- package/references/steps/step3b-shell.md +0 -63
- package/references/steps/step3c-priority.md +0 -26
- package/references/steps/step4-l3.md +0 -14
- package/references/steps/step5-gates.md +0 -64
- package/references/steps/step6-verify.md +0 -77
- package/scripts/apply-final-gate.mjs +0 -170
- package/scripts/check.mjs +0 -207
- package/scripts/design-audit.mjs +0 -1575
- package/scripts/validate.mjs +0 -106
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "全局原子层 · 弹窗/抽屉/分页等通用组件映射。",
|
|
3
|
-
"meta": {
|
|
4
|
-
"layer": "basic",
|
|
5
|
-
"domain": "component_overlay",
|
|
6
|
-
"version": "1.0.0",
|
|
7
|
-
"scene": "global",
|
|
8
|
-
"tech_stack": "vue3 + element-plus"
|
|
9
|
-
},
|
|
10
|
-
"mappings": {
|
|
11
|
-
"component.modal.base": {
|
|
12
|
-
"type": "global_component",
|
|
13
|
-
"component": "ElDialog / ReDialog",
|
|
14
|
-
"style_scope": ":root",
|
|
15
|
-
"css_vars": {
|
|
16
|
-
"radius": "--dialog-border-radius",
|
|
17
|
-
"header_height": "--dialog-header-height",
|
|
18
|
-
"footer_height": "--dialog-footer-height",
|
|
19
|
-
"body_padding": "--dialog-body-padding"
|
|
20
|
-
},
|
|
21
|
-
"custom_style_map": {
|
|
22
|
-
"bg": "background",
|
|
23
|
-
"shadow": "box-shadow"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"component.drawer.base": {
|
|
27
|
-
"type": "global_component",
|
|
28
|
-
"component": "ElDrawer",
|
|
29
|
-
"style_scope": ":root",
|
|
30
|
-
"css_vars": {
|
|
31
|
-
"bg_color": "--el-drawer-bg-color"
|
|
32
|
-
},
|
|
33
|
-
"custom_style_map": {
|
|
34
|
-
"padding": "padding"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"component.card.base": {
|
|
38
|
-
"type": "global_component",
|
|
39
|
-
"component": "ElCard",
|
|
40
|
-
"style_scope": ":root",
|
|
41
|
-
"css_vars": {
|
|
42
|
-
"bg_color": "--el-card-bg-color",
|
|
43
|
-
"border_color": "--el-card-border-color",
|
|
44
|
-
"border_radius": "--el-card-border-radius",
|
|
45
|
-
"padding": "--el-card-padding"
|
|
46
|
-
},
|
|
47
|
-
"custom_style_map": {
|
|
48
|
-
"shadow": "box-shadow"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"component.pagination.base": {
|
|
52
|
-
"type": "global_component",
|
|
53
|
-
"component": "ElPagination",
|
|
54
|
-
"style_scope": ":root",
|
|
55
|
-
"css_vars": {
|
|
56
|
-
"button_bg_color": "--el-pagination-bg-color",
|
|
57
|
-
"button_hover_color": "--el-pagination-button-hover-color",
|
|
58
|
-
"hover_color": "--el-pagination-hover-color"
|
|
59
|
-
},
|
|
60
|
-
"custom_style_map": {}
|
|
61
|
-
},
|
|
62
|
-
"component.tooltip.base": {
|
|
63
|
-
"type": "global_component",
|
|
64
|
-
"component": "ElTooltip(原生)/ v-tippy(指令)",
|
|
65
|
-
"style_scope": ":root",
|
|
66
|
-
"css_vars": {
|
|
67
|
-
"bg_color": "--el-tooltip-bg-color",
|
|
68
|
-
"text_color": "--el-tooltip-color"
|
|
69
|
-
},
|
|
70
|
-
"custom_style_map": {
|
|
71
|
-
"radius": "border-radius",
|
|
72
|
-
"padding": "padding",
|
|
73
|
-
"font_size": "font-size",
|
|
74
|
-
"max_width": "max-width"
|
|
75
|
-
},
|
|
76
|
-
"$note": "全局提示气泡。项目内提示有**两条来路**——Element Plus 原生 ElTooltip(继承 --el-tooltip-* 令牌,如 ReAvatars 的 el-tooltip)与 v-tippy 指令(ReTableBar / ReCollapsible / ReAnchor / lay-tag 等处使用,走 tippy 主题,**不自动继承 --el-* 令牌**)。本条目面向 ElTooltip;若设计要求覆盖 v-tippy 气泡,须先确认 tippy 主题变量与本节令牌的对应关系,未映射时按「补通道」补主题变量并在交付说明单列申报(**不得假设自动生效**)。"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "全局原子层 · 分页组件映射(EP el-pagination / RePagination 根节点即 el-pagination)。registry list-page §11.83-11.94 登记的 always 子项 height/radius/hover_color/icon_size/gap/text_color/active_bg/active_color/border_color。样式规则经 src/styles/design-shell.scss 落在 .vts-page-card .el-pagination(设计层文件,非出厂源码)。字段名严格对齐 restore-registry 的 dim(parser 逐项校验;registry 11.88 原为 button_hover_color,已对齐为 hover_color 以匹配 host admin.content.pagination 与变更集)。版本恒 1.0.0(由 SKILL.md 体系版本统一管理)。",
|
|
3
|
-
"meta": {
|
|
4
|
-
"layer": "basic",
|
|
5
|
-
"domain": "component_pagination",
|
|
6
|
-
"version": "1.0.0",
|
|
7
|
-
"scene": "global",
|
|
8
|
-
"tech_stack": "vue3 + element-plus"
|
|
9
|
-
},
|
|
10
|
-
"mappings": {
|
|
11
|
-
"component.pagination.base": {
|
|
12
|
-
"type": "global_component",
|
|
13
|
-
"component": "ElPagination(RePagination 根节点即 el-pagination)",
|
|
14
|
-
"style_scope": ".vts-page-card .el-pagination",
|
|
15
|
-
"css_vars": {},
|
|
16
|
-
"custom_style_map": {
|
|
17
|
-
"height": "height",
|
|
18
|
-
"radius": "border-radius",
|
|
19
|
-
"hover_color": "color",
|
|
20
|
-
"icon_size": "font-size",
|
|
21
|
-
"gap": "gap",
|
|
22
|
-
"active_bg": "background-color",
|
|
23
|
-
"active_color": "color",
|
|
24
|
-
"border_color": "border-color",
|
|
25
|
-
"text_color": "color"
|
|
26
|
-
},
|
|
27
|
-
"priority": {
|
|
28
|
-
"strategy": "scope_qualified",
|
|
29
|
-
"reason": "作用域限定到 .vts-page-card .el-pagination 即可覆盖 EP 出厂分页样式。"
|
|
30
|
-
},
|
|
31
|
-
"$note": "registry §11.83-11.94 多项均为 always,变更集必须声明;hover_color 为分页整体悬停/激活文字色(对齐 host 的 hover_color 字段名);active_bg/active_color 为当前页按钮底色与文字色;border_color 为分页器边框;text_color/gap/icon_size 为整体文字、间距与翻页图标尺寸。字段名严格对齐 restore-registry 的 dim。"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "全局原子层 · 表格组件映射(EP 原生 el-table + 项目 element-plus.scss 表头变量化 --vts-table-header-*)。",
|
|
3
|
-
"meta": {
|
|
4
|
-
"layer": "basic",
|
|
5
|
-
"domain": "component_table",
|
|
6
|
-
"version": "1.0.0",
|
|
7
|
-
"scene": "global",
|
|
8
|
-
"tech_stack": "vue3 + element-plus"
|
|
9
|
-
},
|
|
10
|
-
"mappings": {
|
|
11
|
-
"component.table.base": {
|
|
12
|
-
"type": "global_component",
|
|
13
|
-
"component": "ElTable",
|
|
14
|
-
"style_scope": ":root",
|
|
15
|
-
"css_vars": {
|
|
16
|
-
"header_bg": "--el-table-header-bg-color",
|
|
17
|
-
"header_text_color": "--el-table-header-text-color",
|
|
18
|
-
"row_hover_bg": "--el-table-row-hover-bg-color",
|
|
19
|
-
"border_color": "--el-table-border-color",
|
|
20
|
-
"text_color": "--el-table-text-color",
|
|
21
|
-
"bg_color": "--el-table-bg-color",
|
|
22
|
-
"tr_bg_color": "--el-table-tr-bg-color",
|
|
23
|
-
"expanded_row_bg_color": "--el-table-expanded-cell-bg-color",
|
|
24
|
-
"fixed_box_shadow": "--el-table-fixed-box-shadow"
|
|
25
|
-
},
|
|
26
|
-
"custom_style_map": {
|
|
27
|
-
"header_border_bottom": "border-bottom",
|
|
28
|
-
"header_font_weight": "font-weight"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"component.table.header_ext": {
|
|
32
|
-
"type": "global_token",
|
|
33
|
-
"style_scope": ":root",
|
|
34
|
-
"$note": "项目扩展表头令牌(element-plus.scss 消费),与 --el-table-header-* 并存",
|
|
35
|
-
"css_vars": {
|
|
36
|
-
"vts_header_bg": "--vts-table-header-bg",
|
|
37
|
-
"vts_header_text": "--vts-table-header-text"
|
|
38
|
-
},
|
|
39
|
-
"custom_style_map": {}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "全局原子层 · 状态标签组件映射(EP 原生 el-tag)。对应设计侧 list-page §7 状态标签(filled 默认变体)与 component-spec 3.4 状态色映射。版本恒 1.0.0(由 SKILL.md 体系版本统一管理)。",
|
|
3
|
-
"meta": {
|
|
4
|
-
"layer": "basic",
|
|
5
|
-
"domain": "component_tag",
|
|
6
|
-
"version": "1.0.0",
|
|
7
|
-
"scene": "global",
|
|
8
|
-
"tech_stack": "vue3 + element-plus"
|
|
9
|
-
},
|
|
10
|
-
"mappings": {
|
|
11
|
-
"component.tag.status": {
|
|
12
|
-
"type": "global_component",
|
|
13
|
-
"component": "ElTag",
|
|
14
|
-
"default_props": { "effect": "light" },
|
|
15
|
-
"style_scope": ":root",
|
|
16
|
-
"forms": {
|
|
17
|
-
"filled": "浅色背景+浅边框+语义色文字(EP effect=light,设计侧默认变体)",
|
|
18
|
-
"outlined": "透明背景+语义色边框+语义色文字(EP effect=plain)",
|
|
19
|
-
"solid": "纯色填充+白字(EP effect=dark)",
|
|
20
|
-
"with_icon": "filled + 16px 图标(物流状态等带图标场景)"
|
|
21
|
-
},
|
|
22
|
-
"css_vars": {
|
|
23
|
-
"bg_color": "--el-tag-bg-color",
|
|
24
|
-
"text_color": "--el-tag-text-color",
|
|
25
|
-
"border_color": "--el-tag-border-color"
|
|
26
|
-
},
|
|
27
|
-
"custom_style_map": {
|
|
28
|
-
"height": "height",
|
|
29
|
-
"radius": "border-radius",
|
|
30
|
-
"font_size": "font-size",
|
|
31
|
-
"padding_x": "padding",
|
|
32
|
-
"icon_size": "font-size"
|
|
33
|
-
},
|
|
34
|
-
"$note": "状态语义色走 EP 功能色变量:success=--el-color-success / processing=--el-color-primary / warning=--el-color-warning / error=--el-color-danger。列级声明机制:component.tag.status 是 :root 全局默认,逐列差异必须声明为内容点位(admin.content.table.cell_tag.<列语义> 走 pending/L3,或写入该列 notes),禁止对全局 ID 声明多份互相覆盖的 form"
|
|
35
|
-
},
|
|
36
|
-
"component.tag.size": {
|
|
37
|
-
"type": "global_token",
|
|
38
|
-
"style_scope": ":root",
|
|
39
|
-
"css_vars": {},
|
|
40
|
-
"custom_style_map": {
|
|
41
|
-
"height": "height",
|
|
42
|
-
"font_size": "font-size",
|
|
43
|
-
"padding_x": "padding"
|
|
44
|
-
},
|
|
45
|
-
"$note": "设计值:高 24px、圆角 6px、字号 12px、内边距 0 8px(list-page §11.64)"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "布局规则 · 断点映射。项目断点由 useResizeObserver(layout/index.vue)与 UnoCSS presetWind3 决定,映射为设计侧抽象断点字段。",
|
|
3
|
-
"meta": {
|
|
4
|
-
"layer": "layout",
|
|
5
|
-
"domain": "breakpoint",
|
|
6
|
-
"version": "1.0.0",
|
|
7
|
-
"scene": "global",
|
|
8
|
-
"tech_stack": "vue3 + element-plus + vue3-web-temp"
|
|
9
|
-
},
|
|
10
|
-
"tokens": {
|
|
11
|
-
"bp_mobile": { "value": 760, "type": "breakpoint", "unit": "px", "desc": "≤760 判定移动端:隐藏侧栏,强制 vertical", "hook": "useResizeObserver → toggle('mobile')" },
|
|
12
|
-
"bp_collapse": { "value": 990, "type": "breakpoint", "unit": "px", "desc": "760~990 折叠侧栏", "hook": "useResizeObserver → toggle('desktop', false)" },
|
|
13
|
-
"bp_expand": { "value": 990, "type": "breakpoint", "unit": "px", "desc": ">990 展开侧栏(非点击折叠态)", "hook": "useResizeObserver → toggle('desktop', true)" },
|
|
14
|
-
"unocss_sm": { "value": 640, "type": "breakpoint", "unit": "px", "desc": "UnoCSS sm 断点(presetWind3)" },
|
|
15
|
-
"unocss_md": { "value": 768, "type": "breakpoint", "unit": "px", "desc": "UnoCSS md 断点" },
|
|
16
|
-
"unocss_lg": { "value": 1024, "type": "breakpoint", "unit": "px", "desc": "UnoCSS lg 断点" },
|
|
17
|
-
"unocss_xl": { "value": 1280, "type": "breakpoint", "unit": "px", "desc": "UnoCSS xl 断点" }
|
|
18
|
-
},
|
|
19
|
-
"$note": "断点值为只读事实映射:设计侧应适配上述断点输出响应式意图;修改断点属于模板行为变更,不在主题变更集范围内。"
|
|
20
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "布局规则 · 壳层几何令牌映射(admin 场景标准布局:vertical/horizontal/mix 三模式共用)。设计侧输出 layout_geometry.* 抽象字段或对 layout.* 语义 ID 的 style.width/height 即可转换。header 顶栏(navbar)、tabs 页签栏、sidebar 侧栏、content 内容区。",
|
|
3
|
-
"meta": {
|
|
4
|
-
"layer": "layout",
|
|
5
|
-
"domain": "shell_geometry",
|
|
6
|
-
"version": "1.0.0",
|
|
7
|
-
"scene": "admin",
|
|
8
|
-
"tech_stack": "vue3 + element-plus + vue3-web-temp"
|
|
9
|
-
},
|
|
10
|
-
"tokens": {
|
|
11
|
-
"header_height": { "token": "--header-height → --vts-bar-height", "type": "size", "default": "48px", "desc": "顶栏高度;改后壳层 padding-top 自动跟随(--layout-header-offset)" },
|
|
12
|
-
"tabs_height": { "token": "--tabs-height → --vts-tabs-height", "type": "size", "default": "32px", "desc": "多标签页签栏高度(≠ EP 内容区 Tabs --tabs-item-height)" },
|
|
13
|
-
"sidebar_width": { "token": "--sidebar-width", "type": "size", "default": "208px", "desc": "侧栏展开宽度(sidebar.scss mixin 三布局共用)" },
|
|
14
|
-
"sidebar_collapsed_width": { "token": "--sidebar-collapsed-width", "type": "size", "default": "64px", "desc": "侧栏折叠宽度" },
|
|
15
|
-
"sidebar_collapse_bar_height": { "token": "--sidebar-collapse-bar-height", "type": "size", "default": "40px", "desc": "侧栏底部折叠条高度" },
|
|
16
|
-
"layout_footer_height": { "token": "--layout-footer-height", "type": "size", "default": "48px", "desc": "页脚高度" },
|
|
17
|
-
"tabs_item_height": { "token": "--tabs-item-height", "type": "size", "default": "46px", "desc": "EP 内容区 Tabs 项高(非壳层页签)" },
|
|
18
|
-
"menu_item_height": { "token": "--el-menu-item-height", "type": "size", "default": "40px", "desc": "侧栏菜单项高度" }
|
|
19
|
-
},
|
|
20
|
-
"layout_modes": {
|
|
21
|
-
"$comment": "标准布局枚举:现有三模式即标准布局(platform-config.json Layout 字段)。变体/定制布局按布局分级规则派生。",
|
|
22
|
-
"vertical": { "desc": "侧边导航(出厂默认)", "switch": "platform-config.json Layout=vertical", "sidebar": true },
|
|
23
|
-
"horizontal": { "desc": "顶部导航(菜单入顶栏)", "switch": "Layout=horizontal", "sidebar": false },
|
|
24
|
-
"mix": { "desc": "混合(一级菜单侧栏 + 二级顶部)", "switch": "Layout=mix", "sidebar": true }
|
|
25
|
-
}
|
|
26
|
-
}
|