@agile-team/wl-skills-kit 2.3.3 → 2.3.5

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.
Files changed (91) hide show
  1. package/CHANGELOG.md +24 -23
  2. package/README.md +15 -146
  3. package/files/.cursor/mcp.json +8 -0
  4. package/files/.github/guides/README.md +13 -13
  5. package/files/.github/guides/architecture.md +555 -555
  6. package/files/.github/guides/mcp-setup.md +109 -0
  7. package/files/.github/guides/usage.md +184 -176
  8. package/files/.github/reports/README.md +65 -65
  9. package/files/.github/reports/SYS_DICT_INFO.md +50 -50
  10. package/files/.github/reports/SYS_MENU_INFO.md +247 -247
  11. package/files/.github/reports/SYS_PERMISSION_INFO.md +20 -20
  12. package/files/.github/reports//347/273/204/344/273/266/346/217/220/345/217/226/345/273/272/350/256/256.md +33 -33
  13. package/files/.github/reports//350/247/204/350/214/203/345/256/241/346/237/245/346/212/245/345/221/212.md +44 -44
  14. package/files/.github/skills/_compat/README.md +108 -108
  15. package/files/.github/skills/_compat/editors.json +7 -0
  16. package/files/.github/skills/_compat/headers/agents.txt +8 -8
  17. package/files/.github/skills/_compat/headers/claude-code.txt +7 -7
  18. package/files/.github/skills/_compat/headers/cline.txt +7 -7
  19. package/files/.github/skills/_compat/headers/cursor-mdc.txt +16 -16
  20. package/files/.github/skills/_compat/headers/cursor-rules.txt +7 -7
  21. package/files/.github/skills/_compat/headers/github-copilot.txt +1 -1
  22. package/files/.github/skills/_compat/headers/kiro.txt +10 -10
  23. package/files/.github/skills/_compat/headers/qoder.txt +8 -0
  24. package/files/.github/skills/_compat/headers/trae.txt +11 -11
  25. package/files/.github/skills/_compat/headers/windsurf.txt +7 -7
  26. package/files/.github/skills/_registry.md +81 -81
  27. package/files/.github/skills/core/api-contract/SKILL.md +344 -344
  28. package/files/.github/skills/core/api-contract/USAGE.md +110 -110
  29. package/files/.github/skills/core/convention-audit/SKILL.md +189 -189
  30. package/files/.github/skills/core/convention-audit/USAGE.md +99 -99
  31. package/files/.github/skills/core/page-codegen/SKILL.md +973 -973
  32. package/files/.github/skills/core/page-codegen/USAGE.md +102 -102
  33. package/files/.github/skills/core/page-codegen/templates/_index.md +46 -46
  34. package/files/.github/skills/core/page-codegen/templates/domains/_CONTRIBUTING.md +107 -107
  35. package/files/.github/skills/core/page-codegen/templates/domains/produce/TPL-OPERATION-STATION.md +442 -442
  36. package/files/.github/skills/core/page-codegen/templates/domains/sale/README.md +26 -26
  37. package/files/.github/skills/core/page-codegen/templates/universal/TPL-CHANGE-HISTORY.md +276 -276
  38. package/files/.github/skills/core/page-codegen/templates/universal/TPL-DETAIL-TABS.md +1145 -1145
  39. package/files/.github/skills/core/page-codegen/templates/universal/TPL-DRIVEN.md +309 -309
  40. package/files/.github/skills/core/page-codegen/templates/universal/TPL-FORM-ROUTE.md +436 -436
  41. package/files/.github/skills/core/page-codegen/templates/universal/TPL-LIST.md +191 -191
  42. package/files/.github/skills/core/page-codegen/templates/universal/TPL-MASTER-DETAIL.md +148 -148
  43. package/files/.github/skills/core/page-codegen/templates/universal/TPL-RECORD-FORM.md +376 -376
  44. package/files/.github/skills/core/page-codegen/templates/universal/TPL-TREE-LIST.md +186 -186
  45. package/files/.github/skills/core/prototype-scan/SKILL.md +498 -498
  46. package/files/.github/skills/core/prototype-scan/USAGE.md +95 -95
  47. package/files/.github/skills/core/template-extract/SKILL.md +139 -139
  48. package/files/.github/skills/core/template-extract/USAGE.md +93 -93
  49. package/files/.github/skills/domain/README.md +51 -51
  50. package/files/.github/skills/sync/menu-sync/SKILL.md +263 -263
  51. package/files/.github/skills/sync/menu-sync/USAGE.md +104 -104
  52. package/files/.github/skills/sync/menu-sync/env/env.local.json +7 -7
  53. package/files/.github/skills/sync/menu-sync/env/guide.md +99 -99
  54. package/files/.github/skills/sync/permission-sync/SKILL.draft.md +91 -91
  55. package/files/.github/standards/01-toolchain.md +57 -57
  56. package/files/.github/standards/02-code-structure.md +111 -111
  57. package/files/.github/standards/03-comments.md +53 -53
  58. package/files/.github/standards/04-coding-basics.md +33 -33
  59. package/files/.github/standards/05-logging.md +38 -38
  60. package/files/.github/standards/06-security.md +44 -44
  61. package/files/.github/standards/07-config.md +52 -52
  62. package/files/.github/standards/08-git.md +60 -60
  63. package/files/.github/standards/09-typescript.md +71 -71
  64. package/files/.github/standards/10-pinia.md +57 -57
  65. package/files/.github/standards/11-form-validation.md +81 -81
  66. package/files/.github/standards/12-base-table.md +153 -153
  67. package/files/.github/standards/13-platform-components.md +123 -123
  68. package/files/.github/standards/index.md +89 -89
  69. package/files/.kiro/settings/mcp.json +8 -0
  70. package/files/.mcp.json +8 -0
  71. package/files/.vscode/mcp.json +9 -0
  72. package/files/demo/produce/aiflow/mmwr-customer-apply-change-history/data.ts +196 -196
  73. package/files/demo/produce/aiflow/mmwr-customer-apply-change-history/index.scss +150 -150
  74. package/files/demo/produce/aiflow/mmwr-customer-apply-change-history/index.vue +79 -79
  75. package/files/docs/jh-date-range.md +257 -257
  76. package/files/docs/jh-date.md +222 -222
  77. package/files/docs/jh-dept-picker.md +190 -190
  78. package/files/docs/jh-drag-row.md +590 -590
  79. package/files/docs/jh-file-upload.md +216 -216
  80. package/files/docs/jh-picker.md +218 -218
  81. package/files/docs/jh-select.md +148 -148
  82. package/files/docs/jh-text.md +248 -248
  83. package/files/docs/jh-user-picker.md +197 -197
  84. package/files/src/components/global/C_RightToolbar/data.ts +228 -228
  85. package/files/src/components/global/C_RightToolbar/index.scss +44 -44
  86. package/files/src/components/global/C_Splitter/index.scss +61 -61
  87. package/files/src/components/global/C_SvgIcon/index.scss +15 -15
  88. package/files/src/components/global/C_TagStatus/index.scss +20 -20
  89. package/files/src/components/global/C_Tree/data.ts +61 -61
  90. package/files/src/components/local/c_listModal/index.scss +4 -4
  91. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
- .sub-el-icon,
2
- .nav-icon {
3
- display: inline-block;
4
- font-size: 15px;
5
- margin-right: 12px;
6
- position: relative;
7
- }
8
-
9
- .svg-icon {
10
- width: 1em;
11
- height: 1em;
12
- position: relative;
13
- fill: currentColor;
14
- vertical-align: -2px;
15
- }
1
+ .sub-el-icon,
2
+ .nav-icon {
3
+ display: inline-block;
4
+ font-size: 15px;
5
+ margin-right: 12px;
6
+ position: relative;
7
+ }
8
+
9
+ .svg-icon {
10
+ width: 1em;
11
+ height: 1em;
12
+ position: relative;
13
+ fill: currentColor;
14
+ vertical-align: -2px;
15
+ }
@@ -1,20 +1,20 @@
1
- .status-fallback {
2
- display: inline-block;
3
- padding: 0 8px;
4
- font-size: 12px;
5
- color: #909399;
6
- line-height: 22px;
7
- white-space: nowrap;
8
- }
9
-
10
- // 增强 el-tag 的视觉效果
11
- :deep(.el-tag) {
12
- font-weight: 500;
13
- border: none;
14
-
15
- // 为淡色效果添加边框
16
- &.el-tag--light {
17
- border: 1px solid currentColor;
18
- border-color: var(--el-tag-border-color);
19
- }
20
- }
1
+ .status-fallback {
2
+ display: inline-block;
3
+ padding: 0 8px;
4
+ font-size: 12px;
5
+ color: #909399;
6
+ line-height: 22px;
7
+ white-space: nowrap;
8
+ }
9
+
10
+ // 增强 el-tag 的视觉效果
11
+ :deep(.el-tag) {
12
+ font-weight: 500;
13
+ border: none;
14
+
15
+ // 为淡色效果添加边框
16
+ &.el-tag--light {
17
+ border: 1px solid currentColor;
18
+ border-color: var(--el-tag-border-color);
19
+ }
20
+ }
@@ -1,61 +1,61 @@
1
- import { ref, watch } from "vue";
2
- import { Search } from "@element-plus/icons-vue";
3
-
4
- // ===== 类型定义 =====
5
- export interface Props {
6
- tabs?: Array<{ label: string; name: string }>;
7
- treeData: any[];
8
- treeProps?: Record<string, string>;
9
- defaultActiveTab?: string;
10
- showSearch?: boolean;
11
- searchPlaceholder?: string;
12
- defaultExpandAll?: boolean;
13
- highlightCurrent?: boolean;
14
- }
15
-
16
- // ===== 组件逻辑 =====
17
- export function createTree(
18
- props: Props,
19
- emit: (e: "node-click" | "tab-change", ...args: any[]) => void,
20
- ) {
21
- const activeTab = ref(props.defaultActiveTab ?? "tab1");
22
- const searchKeyword = ref("");
23
- const treeRef = ref<any>(null);
24
-
25
- const filterNode = (value: string, data: any) => {
26
- if (!value) return true;
27
- const label = data[props.treeProps?.label || "label"];
28
- return label && label.includes(value);
29
- };
30
-
31
- const handleNodeClick = (data: any) => {
32
- emit("node-click", data);
33
- };
34
-
35
- watch(searchKeyword, (val) => {
36
- treeRef.value?.filter(val);
37
- });
38
-
39
- watch(activeTab, (val) => {
40
- emit("tab-change", val);
41
- });
42
-
43
- const clearSearch = () => {
44
- searchKeyword.value = "";
45
- };
46
-
47
- const switchTab = (tabName: string) => {
48
- activeTab.value = tabName;
49
- };
50
-
51
- return {
52
- Search,
53
- activeTab,
54
- searchKeyword,
55
- treeRef,
56
- filterNode,
57
- handleNodeClick,
58
- clearSearch,
59
- switchTab,
60
- };
61
- }
1
+ import { ref, watch } from "vue";
2
+ import { Search } from "@element-plus/icons-vue";
3
+
4
+ // ===== 类型定义 =====
5
+ export interface Props {
6
+ tabs?: Array<{ label: string; name: string }>;
7
+ treeData: any[];
8
+ treeProps?: Record<string, string>;
9
+ defaultActiveTab?: string;
10
+ showSearch?: boolean;
11
+ searchPlaceholder?: string;
12
+ defaultExpandAll?: boolean;
13
+ highlightCurrent?: boolean;
14
+ }
15
+
16
+ // ===== 组件逻辑 =====
17
+ export function createTree(
18
+ props: Props,
19
+ emit: (e: "node-click" | "tab-change", ...args: any[]) => void,
20
+ ) {
21
+ const activeTab = ref(props.defaultActiveTab ?? "tab1");
22
+ const searchKeyword = ref("");
23
+ const treeRef = ref<any>(null);
24
+
25
+ const filterNode = (value: string, data: any) => {
26
+ if (!value) return true;
27
+ const label = data[props.treeProps?.label || "label"];
28
+ return label && label.includes(value);
29
+ };
30
+
31
+ const handleNodeClick = (data: any) => {
32
+ emit("node-click", data);
33
+ };
34
+
35
+ watch(searchKeyword, (val) => {
36
+ treeRef.value?.filter(val);
37
+ });
38
+
39
+ watch(activeTab, (val) => {
40
+ emit("tab-change", val);
41
+ });
42
+
43
+ const clearSearch = () => {
44
+ searchKeyword.value = "";
45
+ };
46
+
47
+ const switchTab = (tabName: string) => {
48
+ activeTab.value = tabName;
49
+ };
50
+
51
+ return {
52
+ Search,
53
+ activeTab,
54
+ searchKeyword,
55
+ treeRef,
56
+ filterNode,
57
+ handleNodeClick,
58
+ clearSearch,
59
+ switchTab,
60
+ };
61
+ }
@@ -1,4 +1,4 @@
1
- .dialog-footer {
2
- display: flex;
3
- justify-content: flex-end;
4
- }
1
+ .dialog-footer {
2
+ display: flex;
3
+ justify-content: flex-end;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agile-team/wl-skills-kit",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "description": "AI Skill 模板包 — 一键导入 AI 指令 + 组件文档 + 通用组件 + 领域样例,覆盖 Copilot/Cursor/Windsurf/Kiro 等主流 AI 编辑器",
5
5
  "main": "./bin/wl-skills.js",
6
6
  "bin": {