create-yss-spec 3.4.6 → 3.4.7
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/package.json +1 -1
- package/template/.agents/skills/.strategic-design-skills-manifest.json +1 -1
- package/template/.agents/skills/.yss-skills-manifest.json +1 -8
- package/template/.agents/skills/formily-mode-slot-detail/SKILL.md +3 -4
- package/template/.agents/skills/yedit-table-usage/SKILL.md +2 -0
- package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -2
- package/template/.agents/skills/yss-design-system/SKILL.md +2 -2
- package/template/.agents/skills/yss-formily/SKILL.md +2 -2
- package/template/.agents/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
- package/template/.agents/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
- package/template/.agents/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
- package/template/.agents/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
- package/template/.agents/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
- package/template/.agents/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
- package/template/.agents/skills/yss-hook/SKILL.md +3 -2
- package/template/.agents/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +0 -7
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -3
- package/template/.agents/skills/yss-skill-source-index-refresh/references/source-map-config.md +3 -2
- package/template/.agents/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +3 -2
- package/template/.agents/skills/yss-technical-design/SKILL.md +1 -1
- package/template/.agents/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.agents/skills/yss-technical-design/tests/run-scenarios.mjs +1 -2
- package/template/.agents/skills/yss-ui/SKILL.md +9 -6
- package/template/.agents/skills/yss-ui/references/component-routing.md +11 -4
- package/template/.agents/skills/yss-ui-business-page-generation/SKILL.md +5 -1
- package/template/.agents/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
- package/template/.agents/skills/ytable-usage/SKILL.md +14 -7
- package/template/.agents/skills/ytree-usage/SKILL.md +1 -0
- package/template/.codex/skills/formily-mode-slot-detail/SKILL.md +3 -4
- package/template/.codex/skills/yedit-table-usage/SKILL.md +2 -0
- package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -2
- package/template/.codex/skills/yss-design-system/SKILL.md +2 -2
- package/template/.codex/skills/yss-formily/SKILL.md +2 -2
- package/template/.codex/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
- package/template/.codex/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
- package/template/.codex/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
- package/template/.codex/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
- package/template/.codex/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
- package/template/.codex/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
- package/template/.codex/skills/yss-hook/SKILL.md +3 -2
- package/template/.codex/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +0 -7
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -3
- package/template/.codex/skills/yss-skill-source-index-refresh/references/source-map-config.md +3 -2
- package/template/.codex/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +3 -2
- package/template/.codex/skills/yss-technical-design/SKILL.md +1 -1
- package/template/.codex/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.codex/skills/yss-technical-design/tests/run-scenarios.mjs +1 -2
- package/template/.codex/skills/yss-ui/SKILL.md +9 -6
- package/template/.codex/skills/yss-ui/references/component-routing.md +11 -4
- package/template/.codex/skills/yss-ui-business-page-generation/SKILL.md +5 -1
- package/template/.codex/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
- package/template/.codex/skills/ytable-usage/SKILL.md +14 -7
- package/template/.codex/skills/ytree-usage/SKILL.md +1 -0
- package/template/.cursor/skills/formily-mode-slot-detail/SKILL.md +3 -4
- package/template/.cursor/skills/yedit-table-usage/SKILL.md +2 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -2
- package/template/.cursor/skills/yss-design-system/SKILL.md +2 -2
- package/template/.cursor/skills/yss-formily/SKILL.md +2 -2
- package/template/.cursor/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
- package/template/.cursor/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
- package/template/.cursor/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
- package/template/.cursor/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
- package/template/.cursor/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
- package/template/.cursor/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
- package/template/.cursor/skills/yss-hook/SKILL.md +3 -2
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +0 -7
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -3
- package/template/.cursor/skills/yss-skill-source-index-refresh/references/source-map-config.md +3 -2
- package/template/.cursor/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +3 -2
- package/template/.cursor/skills/yss-technical-design/SKILL.md +1 -1
- package/template/.cursor/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.cursor/skills/yss-technical-design/tests/run-scenarios.mjs +1 -2
- package/template/.cursor/skills/yss-ui/SKILL.md +9 -6
- package/template/.cursor/skills/yss-ui/references/component-routing.md +11 -4
- package/template/.cursor/skills/yss-ui-business-page-generation/SKILL.md +5 -1
- package/template/.cursor/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
- package/template/.cursor/skills/ytable-usage/SKILL.md +14 -7
- package/template/.cursor/skills/ytree-usage/SKILL.md +1 -0
- package/template/.pi/skills/formily-mode-slot-detail/SKILL.md +3 -4
- package/template/.pi/skills/yedit-table-usage/SKILL.md +2 -0
- package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -2
- package/template/.pi/skills/yss-design-system/SKILL.md +2 -2
- package/template/.pi/skills/yss-formily/SKILL.md +2 -2
- package/template/.pi/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
- package/template/.pi/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
- package/template/.pi/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
- package/template/.pi/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
- package/template/.pi/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
- package/template/.pi/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
- package/template/.pi/skills/yss-hook/SKILL.md +3 -2
- package/template/.pi/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +0 -7
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -3
- package/template/.pi/skills/yss-skill-source-index-refresh/references/source-map-config.md +3 -2
- package/template/.pi/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +3 -2
- package/template/.pi/skills/yss-technical-design/SKILL.md +1 -1
- package/template/.pi/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.pi/skills/yss-technical-design/tests/run-scenarios.mjs +1 -2
- package/template/.pi/skills/yss-ui/SKILL.md +9 -6
- package/template/.pi/skills/yss-ui/references/component-routing.md +11 -4
- package/template/.pi/skills/yss-ui-business-page-generation/SKILL.md +5 -1
- package/template/.pi/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
- package/template/.pi/skills/ytable-usage/SKILL.md +14 -7
- package/template/.pi/skills/ytree-usage/SKILL.md +1 -0
- package/template/docs/agents/digital-human-roles.yaml +2 -2
- package/template/docs/agents/skill-migrations.md +23 -10
- package/template/docs/agents/yss-skill-registry.yaml +3 -75
- package/template/scripts/lib/skill-registry.mjs +5 -1
- package/template/scripts/lib/skill-supply-chain.mjs +1 -1
- package/template/skills-lock.json +22 -149
- package/template/yss-public-skills.json +1 -5
- package/template.snapshot.json +4 -4
- package/template/.agents/skills/component-selection-imports/SKILL.md +0 -64
- package/template/.agents/skills/page-form-module/SKILL.md +0 -168
- package/template/.agents/skills/page-list-module/SKILL.md +0 -137
- package/template/.agents/skills/page-skeleton/SKILL.md +0 -76
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
- package/template/.agents/skills/vue3-best-practices/SKILL.md +0 -68
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +0 -12
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -12
- package/template/.agents/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -18
- package/template/.agents/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
- package/template/.agents/skills/yss-mvc-design/SKILL.md +0 -12
- package/template/.agents/skills/yss-mvc-design/agents/openai.yaml +0 -4
- package/template/.agents/skills/yss-mvc-design/references/mvc-design.schema.json +0 -315
- package/template/.agents/skills/yss-use-table-height/SKILL.md +0 -130
- package/template/.agents/skills/yss-use-table-height/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-use-table-height/references/frontend-docs.md +0 -9
- package/template/.agents/skills/yss-use-tree-height/SKILL.md +0 -98
- package/template/.agents/skills/yss-use-tree-height/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
- package/template/.codex/skills/component-selection-imports/SKILL.md +0 -64
- package/template/.codex/skills/page-form-module/SKILL.md +0 -168
- package/template/.codex/skills/page-list-module/SKILL.md +0 -137
- package/template/.codex/skills/page-skeleton/SKILL.md +0 -76
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
- package/template/.codex/skills/vue3-best-practices/SKILL.md +0 -68
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +0 -12
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -12
- package/template/.codex/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -18
- package/template/.codex/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
- package/template/.codex/skills/yss-mvc-design/SKILL.md +0 -12
- package/template/.codex/skills/yss-mvc-design/agents/openai.yaml +0 -4
- package/template/.codex/skills/yss-mvc-design/references/mvc-design.schema.json +0 -315
- package/template/.codex/skills/yss-use-table-height/SKILL.md +0 -130
- package/template/.codex/skills/yss-use-table-height/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-use-table-height/references/frontend-docs.md +0 -9
- package/template/.codex/skills/yss-use-tree-height/SKILL.md +0 -98
- package/template/.codex/skills/yss-use-tree-height/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
- package/template/.cursor/skills/component-selection-imports/SKILL.md +0 -64
- package/template/.cursor/skills/page-form-module/SKILL.md +0 -168
- package/template/.cursor/skills/page-list-module/SKILL.md +0 -137
- package/template/.cursor/skills/page-skeleton/SKILL.md +0 -76
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
- package/template/.cursor/skills/vue3-best-practices/SKILL.md +0 -68
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +0 -12
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
- package/template/.cursor/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -12
- package/template/.cursor/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -18
- package/template/.cursor/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
- package/template/.cursor/skills/yss-mvc-design/SKILL.md +0 -12
- package/template/.cursor/skills/yss-mvc-design/agents/openai.yaml +0 -4
- package/template/.cursor/skills/yss-mvc-design/references/mvc-design.schema.json +0 -315
- package/template/.cursor/skills/yss-use-table-height/SKILL.md +0 -130
- package/template/.cursor/skills/yss-use-table-height/agents/openai.yaml +0 -5
- package/template/.cursor/skills/yss-use-table-height/references/frontend-docs.md +0 -9
- package/template/.cursor/skills/yss-use-tree-height/SKILL.md +0 -98
- package/template/.cursor/skills/yss-use-tree-height/agents/openai.yaml +0 -5
- package/template/.cursor/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
- package/template/.pi/skills/component-selection-imports/SKILL.md +0 -64
- package/template/.pi/skills/page-form-module/SKILL.md +0 -168
- package/template/.pi/skills/page-list-module/SKILL.md +0 -137
- package/template/.pi/skills/page-skeleton/SKILL.md +0 -76
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
- package/template/.pi/skills/vue3-best-practices/SKILL.md +0 -68
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +0 -12
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -12
- package/template/.pi/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -18
- package/template/.pi/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
- package/template/.pi/skills/yss-mvc-design/SKILL.md +0 -12
- package/template/.pi/skills/yss-mvc-design/agents/openai.yaml +0 -4
- package/template/.pi/skills/yss-mvc-design/references/mvc-design.schema.json +0 -315
- package/template/.pi/skills/yss-use-table-height/SKILL.md +0 -130
- package/template/.pi/skills/yss-use-table-height/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-use-table-height/references/frontend-docs.md +0 -9
- package/template/.pi/skills/yss-use-tree-height/SKILL.md +0 -98
- package/template/.pi/skills/yss-use-tree-height/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
package/template/.pi/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml
CHANGED
|
@@ -1,3 +1,161 @@
|
|
|
1
|
+
---
|
|
2
|
+
lockfileVersion: '9.0'
|
|
3
|
+
|
|
4
|
+
importers:
|
|
5
|
+
|
|
6
|
+
.:
|
|
7
|
+
configDependencies: {}
|
|
8
|
+
packageManagerDependencies:
|
|
9
|
+
pnpm:
|
|
10
|
+
specifier: 12.4.2
|
|
11
|
+
version: 12.4.2
|
|
12
|
+
|
|
13
|
+
packages:
|
|
14
|
+
|
|
15
|
+
'@pnpm/exe.android-arm64@12.4.2':
|
|
16
|
+
resolution: {integrity: sha512-E255MbcQ0V1577M2BV0ajWuP7KmTPYA0jqZnk3rK6Lq3kTvZWulMMb7iqRmnLsQbyWTkMEB2CfyM70loVDA8xg==}
|
|
17
|
+
cpu: [arm64]
|
|
18
|
+
os: [android]
|
|
19
|
+
|
|
20
|
+
'@pnpm/exe.android-x64@12.4.2':
|
|
21
|
+
resolution: {integrity: sha512-J1pSeCUwuKxMG70ZzpWn8JzElxiEa8NN/3N0SlZRtU2xbztChaJCKF3HaBNIj9yPfeofWzJo/lwNvDDjraQuZw==}
|
|
22
|
+
cpu: [x64]
|
|
23
|
+
os: [android]
|
|
24
|
+
|
|
25
|
+
'@pnpm/exe.darwin-arm64@12.4.2':
|
|
26
|
+
resolution: {integrity: sha512-A0WDo8iErfZBXgrLseQxw8i8Y9ctUpOEl/Uu+cubnTzpD8tT9ykIB548L8YTM2WD4OS+ZOHSxy8aGZcvKq8PaQ==}
|
|
27
|
+
cpu: [arm64]
|
|
28
|
+
os: [darwin]
|
|
29
|
+
|
|
30
|
+
'@pnpm/exe.darwin-x64@12.4.2':
|
|
31
|
+
resolution: {integrity: sha512-MSgJdovBWHcb5DEOvfPH9yNi/T5O1Xa4ess+E1ESGo/5yuty7S4JoiIjami+fsNXfnoQMlwsMUqYU4zAvBcNCw==}
|
|
32
|
+
cpu: [x64]
|
|
33
|
+
os: [darwin]
|
|
34
|
+
|
|
35
|
+
'@pnpm/exe.freebsd-x64@12.4.2':
|
|
36
|
+
resolution: {integrity: sha512-h2YumlQSNvgbRPv+RXwABohX65f9bOBZn+jMIt7bFDISZPCzQ+Nvpt6Awbp4ip5PwQgYxbu5iREJ1fHE39Fm8A==}
|
|
37
|
+
cpu: [x64]
|
|
38
|
+
os: [freebsd]
|
|
39
|
+
|
|
40
|
+
'@pnpm/exe.linux-arm64-musl@12.4.2':
|
|
41
|
+
resolution: {integrity: sha512-LwSEtSEDTv6S51YLs3YvSkPyun/QmfMic1UGICUkPWFu6ByP43RdMlkKvmVkfGhAYCpnxO057vrmyJqtfZrPCA==}
|
|
42
|
+
cpu: [arm64]
|
|
43
|
+
os: [linux]
|
|
44
|
+
libc: [musl]
|
|
45
|
+
|
|
46
|
+
'@pnpm/exe.linux-arm64@12.4.2':
|
|
47
|
+
resolution: {integrity: sha512-2dSiDXyhx+RTHsewxex8f/jVjqQXWJ2oow4kCVHEWdZKeBpgMxvZ6fHkTAUBJXgqhbKIDHvuNlZBP7gJfUWL5A==}
|
|
48
|
+
cpu: [arm64]
|
|
49
|
+
os: [linux]
|
|
50
|
+
libc: [glibc]
|
|
51
|
+
|
|
52
|
+
'@pnpm/exe.linux-ppc64@12.4.2':
|
|
53
|
+
resolution: {integrity: sha512-8Itc+jQk+MTz04LS9D1RcH+VctAWmzM4l1cJQ+Sx7pAJNo7EKHdRMbC0Tok1jyQ7eEHNJZD5EleYneZqWfZM+g==}
|
|
54
|
+
cpu: [ppc64]
|
|
55
|
+
os: [linux]
|
|
56
|
+
libc: [glibc]
|
|
57
|
+
|
|
58
|
+
'@pnpm/exe.linux-riscv64@12.4.2':
|
|
59
|
+
resolution: {integrity: sha512-hleOeqhTVpH+z9RVMGnxvU4ZnrkBUClWjCbHD9u6kwyqhGSpevoU1wTGish+CBRhmIgMAy9pAfFpqhbAKOKNfw==}
|
|
60
|
+
cpu: [riscv64]
|
|
61
|
+
os: [linux]
|
|
62
|
+
libc: [glibc]
|
|
63
|
+
|
|
64
|
+
'@pnpm/exe.linux-s390x@12.4.2':
|
|
65
|
+
resolution: {integrity: sha512-LAsQRRdP9aToENR6dtcIJ9l+e1zMYOX0tQcLGpRyLPVBQcYRLlvAPcmDshsiIHQjp05SDa9FI0czX1ZQ1a7a/A==}
|
|
66
|
+
cpu: [s390x]
|
|
67
|
+
os: [linux]
|
|
68
|
+
libc: [glibc]
|
|
69
|
+
|
|
70
|
+
'@pnpm/exe.linux-x64-musl@12.4.2':
|
|
71
|
+
resolution: {integrity: sha512-kzfzH2/0BWdTABK14Yj5a1xsdkTEQUp2eXEPNakaD9jKL025lq3hyaKHIz/gIZaPDMe/1bFFK/En4ztFlbBJxw==}
|
|
72
|
+
cpu: [x64]
|
|
73
|
+
os: [linux]
|
|
74
|
+
libc: [musl]
|
|
75
|
+
|
|
76
|
+
'@pnpm/exe.linux-x64@12.4.2':
|
|
77
|
+
resolution: {integrity: sha512-/pbt0UVTa8NMDhzOWLQRfZ6G9ROKXlJPZtx845BqyWfc7hCrWXhTLBd70yO2y8+E+IWN3oHM1s/JsIQNGk1yvg==}
|
|
78
|
+
cpu: [x64]
|
|
79
|
+
os: [linux]
|
|
80
|
+
libc: [glibc]
|
|
81
|
+
|
|
82
|
+
'@pnpm/exe.win32-arm64@12.4.2':
|
|
83
|
+
resolution: {integrity: sha512-PsW19e4dAUNpZ0cS9flaxFuAmpt2dKlH/Vvi8TZ4qyJjjQzue/CEsWm+6wKVP4CJ7IT8RdL4qh+soOPWIgF2Zw==}
|
|
84
|
+
cpu: [arm64]
|
|
85
|
+
os: [win32]
|
|
86
|
+
|
|
87
|
+
'@pnpm/exe.win32-x64@12.4.2':
|
|
88
|
+
resolution: {integrity: sha512-+xGoeE0g55ztWvl8i5QqdmNfW3nIrTVcoQrNshEOwxthm9Ag48oXton3uxOA3/SANyz5AXexEjj2KO20NnOrEw==}
|
|
89
|
+
cpu: [x64]
|
|
90
|
+
os: [win32]
|
|
91
|
+
|
|
92
|
+
pnpm@12.4.2:
|
|
93
|
+
resolution: {integrity: sha512-CK3GYTGAJ1x8ntraOdzwjJxhrU5+rzMKTzRh8QKw+QdCNFTRF/mOctR/7wYWBwZE17/8lzpqV/UJCm18NosHyQ==}
|
|
94
|
+
engines: {node: '>=18.*'}
|
|
95
|
+
hasBin: true
|
|
96
|
+
|
|
97
|
+
snapshots:
|
|
98
|
+
|
|
99
|
+
'@pnpm/exe.android-arm64@12.4.2':
|
|
100
|
+
optional: true
|
|
101
|
+
|
|
102
|
+
'@pnpm/exe.android-x64@12.4.2':
|
|
103
|
+
optional: true
|
|
104
|
+
|
|
105
|
+
'@pnpm/exe.darwin-arm64@12.4.2':
|
|
106
|
+
optional: true
|
|
107
|
+
|
|
108
|
+
'@pnpm/exe.darwin-x64@12.4.2':
|
|
109
|
+
optional: true
|
|
110
|
+
|
|
111
|
+
'@pnpm/exe.freebsd-x64@12.4.2':
|
|
112
|
+
optional: true
|
|
113
|
+
|
|
114
|
+
'@pnpm/exe.linux-arm64-musl@12.4.2':
|
|
115
|
+
optional: true
|
|
116
|
+
|
|
117
|
+
'@pnpm/exe.linux-arm64@12.4.2':
|
|
118
|
+
optional: true
|
|
119
|
+
|
|
120
|
+
'@pnpm/exe.linux-ppc64@12.4.2':
|
|
121
|
+
optional: true
|
|
122
|
+
|
|
123
|
+
'@pnpm/exe.linux-riscv64@12.4.2':
|
|
124
|
+
optional: true
|
|
125
|
+
|
|
126
|
+
'@pnpm/exe.linux-s390x@12.4.2':
|
|
127
|
+
optional: true
|
|
128
|
+
|
|
129
|
+
'@pnpm/exe.linux-x64-musl@12.4.2':
|
|
130
|
+
optional: true
|
|
131
|
+
|
|
132
|
+
'@pnpm/exe.linux-x64@12.4.2':
|
|
133
|
+
optional: true
|
|
134
|
+
|
|
135
|
+
'@pnpm/exe.win32-arm64@12.4.2':
|
|
136
|
+
optional: true
|
|
137
|
+
|
|
138
|
+
'@pnpm/exe.win32-x64@12.4.2':
|
|
139
|
+
optional: true
|
|
140
|
+
|
|
141
|
+
pnpm@12.4.2:
|
|
142
|
+
optionalDependencies:
|
|
143
|
+
'@pnpm/exe.android-arm64': 12.4.2
|
|
144
|
+
'@pnpm/exe.android-x64': 12.4.2
|
|
145
|
+
'@pnpm/exe.darwin-arm64': 12.4.2
|
|
146
|
+
'@pnpm/exe.darwin-x64': 12.4.2
|
|
147
|
+
'@pnpm/exe.freebsd-x64': 12.4.2
|
|
148
|
+
'@pnpm/exe.linux-arm64': 12.4.2
|
|
149
|
+
'@pnpm/exe.linux-arm64-musl': 12.4.2
|
|
150
|
+
'@pnpm/exe.linux-ppc64': 12.4.2
|
|
151
|
+
'@pnpm/exe.linux-riscv64': 12.4.2
|
|
152
|
+
'@pnpm/exe.linux-s390x': 12.4.2
|
|
153
|
+
'@pnpm/exe.linux-x64': 12.4.2
|
|
154
|
+
'@pnpm/exe.linux-x64-musl': 12.4.2
|
|
155
|
+
'@pnpm/exe.win32-arm64': 12.4.2
|
|
156
|
+
'@pnpm/exe.win32-x64': 12.4.2
|
|
157
|
+
|
|
158
|
+
---
|
|
1
159
|
lockfileVersion: '9.0'
|
|
2
160
|
|
|
3
161
|
settings:
|
package/template/.pi/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json
CHANGED
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
".gitignore": "sha256:fb8288522033f645a728dfb53cef24a11824bdbec858b93279d4809924b4539d",
|
|
18
18
|
".npmrc.example": "sha256:cee4433295152854b58babea9072215a2d84b8de086d218b15ffb7e84f1fe9e1",
|
|
19
19
|
"DESIGN.md": "sha256:e84a6c175840efe9663a2d0aba37f5635c053f47452bb146d1025d65665b1bec",
|
|
20
|
-
"README.md": "sha256:
|
|
20
|
+
"README.md": "sha256:745bd31b3397876fc239bde12378bc265a1a8d1626159f188de76873951d471a",
|
|
21
21
|
"micro-config.json": "sha256:8266b0eb806696d6bb2023a0d1e72113cdffc355bb0fafd8b2095d727f827711",
|
|
22
22
|
"orval.config.ts": "sha256:d918458e4ee972ae94740899dd15701530bdc31fd758240fc00e96aba3ba9b3a",
|
|
23
|
-
"package.json": "sha256:
|
|
23
|
+
"package.json": "sha256:51a73185fac255062e4f3eaa415017f9c9886d5e3aac4ff483694c49ae810ba7",
|
|
24
24
|
"packages/.env.development": "sha256:e698b56d83ad282c221e2c8067bc4e3e90789c610fd31da2489bd3ac2d8efc5f",
|
|
25
25
|
"packages/.env.example": "sha256:b8cf60af269af3f4dc3c167df88045af949683b302bd9b77e50fb77fa1adf81f",
|
|
26
26
|
"packages/.env.production": "sha256:b0a96ab02559a99fc95c37b967f604675686c8de336731a1721d54f43b047249",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"packages/src/views/Welcome.vue": "sha256:0498edee6e25b45644a2d12c6fded1e3c0fda830c9196d4fc5389b94fb1a0e0d",
|
|
44
44
|
"packages/tsconfig.json": "sha256:40e27bb07cd4ae8c0c636b5d9581fe378d00e21acb28423cc2a08bfa1a67c11f",
|
|
45
45
|
"packages/vite.config.ts": "sha256:d3c1775bdca54e1b0f2b267a7dae992cc61836891588e93e02caa49184cb2ab2",
|
|
46
|
-
"pnpm-lock.yaml": "sha256:
|
|
46
|
+
"pnpm-lock.yaml": "sha256:ddab6b19cb74c769ba1cd3854d3eb0649843e8136811b7cbf2800c3084f73949",
|
|
47
47
|
"pnpm-workspace.yaml": "sha256:d5cdbd2e0a167297976d11695d1593a4e71694ed462120569e20e98fd9c63fbe"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/template/.pi/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs
CHANGED
|
@@ -66,6 +66,11 @@ const saveBundle = () => writeFileSync(contractFile, JSON.stringify(bundle));
|
|
|
66
66
|
saveBundle();
|
|
67
67
|
const bundled = generate({ contractFile, outputDir: bundle.target_output_dir });
|
|
68
68
|
assert.equal(bundled.template.checkout, undefined);
|
|
69
|
+
const bundledPackage = JSON.parse(readFileSync(path.join(bundle.target_output_dir, 'package.json')));
|
|
70
|
+
assert.equal(bundledPackage.packageManager, 'pnpm@12.4.2');
|
|
71
|
+
assert.equal(bundledPackage.engines.node, '>=22.12.0');
|
|
72
|
+
assert.equal(bundledPackage.engines.pnpm, '>=12.4.2 <13');
|
|
73
|
+
assert.match(readFileSync(path.join(bundle.target_output_dir, 'README.md'), 'utf8'), /pnpm 12\.4\.2/);
|
|
69
74
|
assert.equal(JSON.parse(readFileSync(path.join(bundle.target_output_dir, 'packages/package.json'))).dependencies['ant-design-vue'], '4.2.6');
|
|
70
75
|
assert.equal(JSON.parse(readFileSync(path.join(bundle.target_output_dir, 'packages/src/config/theme.json'))).algorithm, 'default');
|
|
71
76
|
for (const forbidden of ['.npmrc', 'node_modules', '.git', 'packages/src/views/datasource/index.vue', 'scripts/sync-openapi.js']) assert.equal(existsSync(path.join(bundle.target_output_dir, forbidden)), false, forbidden);
|
|
@@ -13,7 +13,7 @@ description: Use when YSS Vue 页面涉及 vue-hooks-plus/useRequest、分页、
|
|
|
13
13
|
- Vue Hooks Plus `useRequest`: `https://inhiblabcore.github.io/vue-hooks-plus/zh/hooks/useRequest/quick-start`
|
|
14
14
|
- Local reference index: `references/frontend-docs.md`
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
本技能负责请求执行、分页/筛选参数、选择状态、响应映射、异步竞态和页面级调度。接口导入与 Orval mutator 使用 `yss-api-integration`;页面布局和组件选型从 `yss-ui` 路由到 `yss-ui-business-page-generation` 及具体组件 Skill;表格和树高度分别服从 `ytable-usage`、`yedit-table-usage`、`ytree-usage`。
|
|
17
17
|
|
|
18
18
|
官方 `@yss-ui/hooks` 当前公开 `useFullscreen`、`useTreeHeight`、`useTableHeight`、`useLoading`、`usePollingTask` 与 `useUrlState`。`useRequest`、防抖、缓存或重试不属于这套公开 YSS Hooks 契约。仅当项目已批准 `vue-hooks-plus` 及其具体版本时,才可使用第 3 节的 `useRequest`;不得把它命名或包装成 YSS 官方 API。
|
|
19
19
|
|
|
@@ -34,6 +34,7 @@ description: Use when YSS Vue 页面涉及 vue-hooks-plus/useRequest、分页、
|
|
|
34
34
|
- 将请求执行、参数合并、响应映射与数据竞争处理放在 `hooks/useXxx.ts`;页面只保留布局、事件绑定和渲染。
|
|
35
35
|
- 以业务域划分 Hook,而不是为每个微小工具函数各建一个 Hook。
|
|
36
36
|
- 每个对外动作都必须有明确的 loading、成功、失败和数据陈旧策略;不要把这些分支留给模板或页面组件。
|
|
37
|
+
- 组件内不直接修改 `props`;双向绑定使用 `emit('update:xxx')`。模板不承载复杂业务表达式,优先下沉 `computed` 或业务 Hook;避免无边界的深层 `watch`,只观察明确依赖源。
|
|
37
38
|
|
|
38
39
|
## 2. 列表 / 分页 Hook
|
|
39
40
|
|
|
@@ -185,7 +186,7 @@ const polling = usePollingTask(async ({ isCurrent, signal }) => {
|
|
|
185
186
|
|
|
186
187
|
- `useUrlState()`:返回扁平字符串 `state`、`setState`、`clearKeys`、`clearState`。`setState` 合并状态,`undefined`、`null`、空字符串删除键。默认 `mode: 'replace'`、`strategy: 'history'`;需要路由守卫或导航语义时用 `strategy: 'router'`。
|
|
187
188
|
- `useFullscreen(target, options?)`:返回 `isFullscreen`、`enterFullscreen`、`exitFullscreen`、`toggleFullscreen`、`isEnabled`。浏览器真全屏需要用户手势;`pageFullscreen` 是 CSS 模拟全屏,可配置 `className`、`zIndex`,并可用 `escTip` 控制提示。
|
|
188
|
-
- `useTreeHeight` 与 `useTableHeight` 通过 `ResizeObserver` 计算可用高度。树的 `extraOffset` 仅用于 YTree 内置 `filterable` 搜索区;表格可配置 `boundaryRef` 避免尺寸反馈循环,并可扣除分页、工具栏或新增按钮高度。具体布局约束交由 `
|
|
189
|
+
- `useTreeHeight` 与 `useTableHeight` 通过 `ResizeObserver` 计算可用高度。树的 `extraOffset` 仅用于 YTree 内置 `filterable` 搜索区;表格可配置 `boundaryRef` 避免尺寸反馈循环,并可扣除分页、工具栏或新增按钮高度。具体布局约束交由 `ytree-usage` / `ytable-usage` / `yedit-table-usage`。
|
|
189
190
|
|
|
190
191
|
## 8. 返回契约与自检
|
|
191
192
|
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
| `yss-validation` | `yss-exception` | `component-dependency` | — |
|
|
151
151
|
| `yss-security-algorithm` | `yss-exception` | `component-dependency` | — |
|
|
152
152
|
| `yss-exception` | `yss-dto` | `context-required` | — |
|
|
153
|
-
| `yss-ui-business-page-generation` | `
|
|
153
|
+
| `yss-ui-business-page-generation` | `yss-ui` | `context-required` | — |
|
|
154
154
|
| `yss-ui-business-page-generation` | `yss-hook` | `context-conditional` | `hooks` |
|
|
155
155
|
| `yss-ui-business-page-generation` | `yss-formily` | `context-conditional` | `form` |
|
|
156
156
|
| `yss-ui-business-page-generation` | `yss-api-integration` | `context-conditional` | `api` |
|
|
@@ -70,7 +70,7 @@ node scripts/generate_and_verify_scaffold.mjs \
|
|
|
70
70
|
## 硬约束
|
|
71
71
|
|
|
72
72
|
- 新生成只接受包含 API Contract Decision 的统一 schema v4;缺 API 字段的预发布 v4 不得静默接受。验证器可只读检查历史 Manifest v3,恢复必须另行完成所有权审计、技术/数据/API 设计补齐与当前批准。历史 v2/v3 均不用于新生成。
|
|
73
|
-
- `architecture_family` 必须为 `layered-mvc`,`generator_skill` 必须为本 skill
|
|
73
|
+
- `architecture_family` 必须为 `layered-mvc`,`generator_skill` 必须为本 skill。旧数据分析初始化合同必须标记 `stale` 并按 `mvc-data-analysis-v1` Profile 重编译,不自动替换或继承批准。
|
|
74
74
|
- 目标存在、`--force`、旧项目迁移、模板升级均为 `unsupported`。
|
|
75
75
|
- Harness 内只允许以 `apps/backend/` 为输出父容器;外部实现仓库使用已登记真实路径。
|
|
76
76
|
- 不生成业务示例。健康检查、上下文加载测试和架构测试只能验证机械工程能力,不定义用户可见 API。
|
package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs
CHANGED
|
@@ -93,13 +93,6 @@ test("数据分析初始化生成 H2 六模块和独立治理信封", async (t)
|
|
|
93
93
|
assert.doesNotMatch(core, /demo-service-client|spring-web|ojdbc|mysql-connector/);
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
test("历史数据分析初始化入口只返回稳定退役错误", () => {
|
|
97
|
-
const initializer = path.resolve(path.dirname(script), "../../yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs");
|
|
98
|
-
const result = spawnSync(process.execPath, [initializer], { encoding: "utf8" });
|
|
99
|
-
assert.notEqual(result.status, 0);
|
|
100
|
-
assert.match(result.stderr, /^skill-deprecated:/);
|
|
101
|
-
});
|
|
102
|
-
|
|
103
96
|
test("数据分析 Profile 缺少 CONTEXT handoff 或独立 Git 合同时零写入阻断", async (t) => {
|
|
104
97
|
const profile = { capabilities: [], modules: ["server", "core", "client", "repository", "adapter", "feign-client"] };
|
|
105
98
|
const missingContext = await fixture(t, { architectureProfile: "mvc-data-analysis-v1", profile });
|
|
@@ -299,7 +299,7 @@ skill_source_contract:
|
|
|
299
299
|
lock_version: 3
|
|
300
300
|
source_revisions_required: [mattpocock/skills, iloveZzz/yss-ui]
|
|
301
301
|
adaptation_ref_required_when_effective_diff: true
|
|
302
|
-
retired_shared_skills: [yss-antd-design, yss-antdv-next-design, ask-matt, batch-grill-me, dispatching-parallel-agents, loop-me, migrate-to-shoehorn, product-design-prototype, prototype-page-acceptance, scaffold-exercises, setup-pre-commit, setup-ts-deep-modules, teach, writing-beats, writing-fragments, writing-shape, yss-components, yss-dictionary, yss-jdbc, yss-log, yss-microapp-commit, yss-mvc-scaffold-generator, yss-page-module-development, yss-taskflow, yss-backend-scaffold-application, yss-backend-scaffold-domain, yss-backend-scaffold-infrastructure, yss-backend-scaffold-web, yss-backend-scaffold-adapter, yss-application-layer-reference, yss-domain-layer-reference, yss-infrastructure-layer-reference, yss-web-layer-reference]
|
|
302
|
+
retired_shared_skills: [yss-antd-design, yss-antdv-next-design, ask-matt, batch-grill-me, dispatching-parallel-agents, loop-me, migrate-to-shoehorn, product-design-prototype, prototype-page-acceptance, scaffold-exercises, setup-pre-commit, setup-ts-deep-modules, teach, writing-beats, writing-fragments, writing-shape, yss-components, yss-dictionary, yss-jdbc, yss-log, yss-microapp-commit, yss-mvc-scaffold-generator, yss-mvc-design, yss-mvc-data-analysis-project-initializer, yss-backend-scaffold-parent, yss-page-module-development, yss-taskflow, yss-backend-scaffold-application, yss-backend-scaffold-domain, yss-backend-scaffold-infrastructure, yss-backend-scaffold-web, yss-backend-scaffold-adapter, yss-application-layer-reference, yss-domain-layer-reference, yss-infrastructure-layer-reference, yss-web-layer-reference]
|
|
303
303
|
|
|
304
304
|
# 生命周期默认走原生工作单元;Matt user-invoked skill 仅保留为兼容入口。
|
|
305
305
|
lifecycle_native_entries:
|
|
@@ -462,7 +462,6 @@ work_unit_routes:
|
|
|
462
462
|
formily_impact: [yss-formily]
|
|
463
463
|
table_impact: [ytable-usage, yedit-table-usage]
|
|
464
464
|
tree_impact: [ytree-usage]
|
|
465
|
-
height_impact: [yss-use-table-height, yss-use-tree-height]
|
|
466
465
|
export_impact: [file-export-download]
|
|
467
466
|
theme_impact: [theme-token-usage]
|
|
468
467
|
not_applicable_reasons:
|
|
@@ -470,7 +469,6 @@ work_unit_routes:
|
|
|
470
469
|
formily_impact: no_formily_impact
|
|
471
470
|
table_impact: no_table_impact
|
|
472
471
|
tree_impact: no_tree_impact
|
|
473
|
-
height_impact: no_height_impact
|
|
474
472
|
export_impact: no_export_impact
|
|
475
473
|
theme_impact: no_theme_impact
|
|
476
474
|
applies_when: ready_for_agent
|
|
@@ -31,5 +31,6 @@ Frontend docs are written to these skills:
|
|
|
31
31
|
| --- | --- |
|
|
32
32
|
| `yss-ui` | components, hooks, skills docs |
|
|
33
33
|
| `yss-hook` | hooks docs |
|
|
34
|
-
| `
|
|
35
|
-
| `
|
|
34
|
+
| `ytable-usage` | hooks docs |
|
|
35
|
+
| `yedit-table-usage` | hooks docs |
|
|
36
|
+
| `ytree-usage` | hooks docs |
|
package/template/.pi/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs
CHANGED
|
@@ -58,8 +58,9 @@ const FRONTEND = {
|
|
|
58
58
|
"yss-ui": ["components", "hooks", "skills"],
|
|
59
59
|
"yss-hook": ["hooks"],
|
|
60
60
|
"yss-ui-business-page-generation": ["components", "hooks", "skills"],
|
|
61
|
-
"
|
|
62
|
-
"
|
|
61
|
+
"ytable-usage": ["hooks"],
|
|
62
|
+
"yedit-table-usage": ["hooks"],
|
|
63
|
+
"ytree-usage": ["hooks"],
|
|
63
64
|
};
|
|
64
65
|
|
|
65
66
|
const URLS = {
|
|
@@ -30,7 +30,7 @@ description: 在 YSS 技术分析中统一承接需求与战略输入,按已
|
|
|
30
30
|
|
|
31
31
|
新产物使用 schema v2 Technical Design Contract:共同头记录架构来源、输入版本与摘要、规则/场景承接、评审证据和状态,`design` 保存架构专属内容。合同格式与兼容规则见 `references/technical-design-contract.md`,Schema 见 `references/technical-design.schema.json`。
|
|
32
32
|
|
|
33
|
-
MVC `design` 分支由 `references/mvc-design.schema.json` 约束。无状态流转或外部集成时记录有依据的不适用;业务规则和关键场景必须关联具体用例与成功/失败测试 seam。MVC 与 DDD 使用同一承接和审查要求,不能因采用分层 MVC
|
|
33
|
+
MVC `design` 分支由 `references/mvc-design.schema.json` 约束。无状态流转或外部集成时记录有依据的不适用;业务规则和关键场景必须关联具体用例与成功/失败测试 seam。MVC 与 DDD 使用同一承接和审查要求,不能因采用分层 MVC 省略规则、一致性或测试设计。旧 MVC 设计合同必须迁移到本入口并重新编译、批准。
|
|
34
34
|
|
|
35
35
|
运行 `node .agents/skills/yss-technical-design/scripts/validate-technical-design.mjs <合同> --root <项目根>`。整体存在延期或冲突即阻断整体;相关切片可带 `--slice <切片ID>` 按依赖核验,仍须合同已批准。校验成功只返回审查输入,不批准、不设置 `ready-for-agent`。
|
|
36
36
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Technical Design Contract v2
|
|
2
2
|
|
|
3
|
-
共同合同字段由 `technical-design-common.schema.json` 定义,完整 `technical-design.schema.json` 通过 `scripts/generate-schema.mjs` 合并专项 Schema 派生,使用 `--check` 检查同步,`design` 按 `architecture.family` 校验:`domain-driven` 沿用 DDD v1 内容结构,`layered-mvc` 使用本 skill 的 `references/mvc-design.schema.json`。DDD 内层的 schema/version/status 是分支内容版本,status
|
|
3
|
+
共同合同字段由 `technical-design-common.schema.json` 定义,完整 `technical-design.schema.json` 通过 `scripts/generate-schema.mjs` 合并专项 Schema 派生,使用 `--check` 检查同步,`design` 按 `architecture.family` 校验:`domain-driven` 沿用 DDD v1 内容结构,`layered-mvc` 使用本 skill 的 `references/mvc-design.schema.json`。DDD 内层的 schema/version/status 是分支内容版本,status 必须与共同头一致;战略交接绑定只写共同头,避免双重维护。
|
|
4
4
|
|
|
5
5
|
## 共同头
|
|
6
6
|
|
|
@@ -15,8 +15,7 @@ const root = mkdtempSync(path.join(tmpdir(), 'yss-technical-design-'));
|
|
|
15
15
|
let checks = 0;
|
|
16
16
|
try {
|
|
17
17
|
const activeMvcSchema = JSON.parse(readFileSync(fileURLToPath(new URL('../references/mvc-design.schema.json', import.meta.url)), 'utf8'));
|
|
18
|
-
|
|
19
|
-
assert.deepEqual(activeMvcSchema, deprecatedMvcSchema); checks++;
|
|
18
|
+
assert.equal(activeMvcSchema.title, 'YSS MVC 技术设计内容'); checks++;
|
|
20
19
|
const mvc = mvcFixture(root);
|
|
21
20
|
const validate = data => validateTechnicalDesign(data, { root });
|
|
22
21
|
assert.equal((await validate(mvc)).architecture_family, 'layered-mvc'); checks++;
|
|
@@ -5,7 +5,7 @@ description: "选择和核验 YSS Vue 生产页面组件及 Ant Design Vue 兼
|
|
|
5
5
|
|
|
6
6
|
# YSS UI 统一路由与交付门禁
|
|
7
7
|
|
|
8
|
-
本技能是 YSS Vue
|
|
8
|
+
本技能是 YSS Vue 生产页面的统一入口。它负责组件与导入来源路由、版本预检、跨组件约束和交付证据;具体页面、组件、请求和表单实现交给最小专项 skill,避免重复维护 API 细节。
|
|
9
9
|
|
|
10
10
|
## 1. 权威事实顺序
|
|
11
11
|
|
|
@@ -51,16 +51,19 @@ pnpm why vue @yss-ui/components @yss-ui/hooks ant-design-vue vxe-table
|
|
|
51
51
|
- `YFormily` 是新代码 canonical name;`YssFormily` 仅作为已确认导出的历史兼容 alias。
|
|
52
52
|
- `YSplitPane`、`YButton`、`YCard` 等已有封装优先使用 YSS。
|
|
53
53
|
|
|
54
|
+
导入来源必须可追溯:优先使用当前会话的 yss-ui MCP 查询真实组件、Hook、Utils 与导出包;不可用时再读取与安装版本匹配的本地文档、`llms-full.txt`、源码 `src/index.ts` 和已编译用法。已导出的能力分别从 `@yss-ui/components`、`@yss-ui/hooks`、`@yss-ui/utils` 导入;确认未封装的 `Modal`、`Drawer`、`Popconfirm`、`Input` 等才从 `ant-design-vue` 导入。禁止臆造 `YModal`、`YDrawer`、`YInput`、`YPopconfirm` 或直接导入 `@formily/antdv` 业务 UI。
|
|
55
|
+
|
|
54
56
|
## 4. 最小专项 skill 路由
|
|
55
57
|
|
|
56
58
|
| 任务 | 必须路由 |
|
|
57
59
|
|---|---|
|
|
58
60
|
| 新建或改造完整业务页面 | `yss-ui-business-page-generation` |
|
|
59
|
-
| 页面布局与无独立 Skill 的专项组件 | `page-
|
|
61
|
+
| 页面布局与无独立 Skill 的专项组件 | `yss-ui-business-page-generation`、`references/component-routing.md`、`references/specialized-components.md` |
|
|
60
62
|
| 请求、分页、参数、树数据映射 | `yss-hook` |
|
|
61
63
|
| Formily schema、联动、校验、详情态 | `yss-formily` |
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
+
| YTable 与表格高度 | `ytable-usage` |
|
|
65
|
+
| YEditTable 与表格高度 | `yedit-table-usage` |
|
|
66
|
+
| YTree 与树高度 | `ytree-usage` |
|
|
64
67
|
| Orval、API、useRequest 接入 | `yss-api-integration` |
|
|
65
68
|
| 视觉、token、响应式体验 | `yss-design-system` |
|
|
66
69
|
|
|
@@ -133,7 +136,7 @@ verification: pnpm type-check
|
|
|
133
136
|
3. 搭页面目录和布局。
|
|
134
137
|
4. 接 `YFormily`、`YTable`、`YTree` 等 YSS 主体组件。
|
|
135
138
|
5. 下沉请求、分页和映射到 `yss-hook`。
|
|
136
|
-
6.
|
|
139
|
+
6. 按组件专项接高度,再接主题、locale、浮层和无障碍约束。
|
|
137
140
|
7. 联调冻结 API、Mock、路由和权限。
|
|
138
141
|
8. 按 `references/verification.md` 完成分层验证。
|
|
139
142
|
|
|
@@ -142,7 +145,7 @@ verification: pnpm type-check
|
|
|
142
145
|
- [ ] 已记录 Vue、YSS UI、AntDV、VXE 实际版本。
|
|
143
146
|
- [ ] 组件选型符合 `component-routing.md`,回退有证据。
|
|
144
147
|
- [ ] 新代码使用 `YFormily` 和真实存在的 `yss-hook`。
|
|
145
|
-
- [ ] YTable/YTree/Formily
|
|
148
|
+
- [ ] YTable/YEditTable/YTree/Formily 及其高度 Hook 遵循对应组件专项 skill。
|
|
146
149
|
- [ ] 主题、locale、浮层容器和微应用隔离已检查。
|
|
147
150
|
- [ ] loading/empty/error/no-access/selected 状态按影响面覆盖。
|
|
148
151
|
- [ ] 键盘、焦点、标签和颜色对比度已检查。
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|---|---|---|---|---|
|
|
7
7
|
| 普通按钮、权限按钮 | `YButton` | AntDV Button | required | 权限、主题和统一动作语义;不得直接导入 Button |
|
|
8
8
|
| 卡片 | `YCard` | AntDV Card | required | YSS 布局与间距扩展 |
|
|
9
|
-
| 数据表格 | `YTable` | VXE Table + AntDV Pagination | specialized | 使用 `ytable-usage
|
|
10
|
-
| 编辑表格 | `YEditTable` | VXE Table | specialized | 使用 `yedit-table-usage
|
|
11
|
-
| 树 | `YTree` | AntDV Tree | specialized | 使用 `ytree-usage
|
|
9
|
+
| 数据表格 | `YTable` | VXE Table + AntDV Pagination | specialized | 使用 `ytable-usage`;远程分页与高度均由该专项和 `yss-hook` 协作 |
|
|
10
|
+
| 编辑表格 | `YEditTable` | VXE Table | specialized | 使用 `yedit-table-usage`,包括添加按钮偏移与弹层高度;不要和展示表格混用 API |
|
|
11
|
+
| 树 | `YTree` | AntDV Tree | specialized | 使用 `ytree-usage`,包括搜索区偏移、隐藏容器重算和左树右表联动 |
|
|
12
12
|
| Schema 表单 | `YFormily` | Formily + AntDV | specialized | `YFormily` 为 canonical;`YssFormily` 仅为历史兼容名;加载 `yss-formily` |
|
|
13
|
-
| 分栏布局 | `YSplitPane` | YSS layout | required |
|
|
13
|
+
| 分栏布局 | `YSplitPane` | YSS layout | required | 页面编排使用 `yss-ui-business-page-generation`;组件边界见 `specialized-components.md` |
|
|
14
14
|
| 文件导入 | `YFileImport` | Upload/业务适配 | required | 两步导入边界见 `specialized-components.md` |
|
|
15
15
|
| 条件构建 | `YConditionBuilder` | YSS domain component | required | 标准模型与校验边界见 `specialized-components.md` |
|
|
16
16
|
| 月历 | `YMonthCalendar` | YSS domain component | required | 日期、月份、高度与事件边界见 `specialized-components.md` |
|
|
@@ -27,6 +27,13 @@
|
|
|
27
27
|
|
|
28
28
|
YSS `required` wrapper 缺少必要能力时,记录组件、能力缺口、依赖版本、替代方案、主题/locale/浮层影响和验证证据。没有记录不得回退。
|
|
29
29
|
|
|
30
|
+
## 导入来源判定
|
|
31
|
+
|
|
32
|
+
1. MCP 可用时,先用 `list_components` 校正名称,再用 `get_component_docs` 确认导出包、Props、Events 和 Slots;复杂场景再查 Demo。
|
|
33
|
+
2. MCP 不可用或结果与目标工程版本不一致时,以 lockfile、当前源码可编译导出、TypeScript 类型和已通过测试的用法为准。
|
|
34
|
+
3. 已封装组件从 `@yss-ui/components` 导入,公开 Hook 和 Utils 分别从 `@yss-ui/hooks`、`@yss-ui/utils` 导入;确认未封装后才回退 `ant-design-vue`。
|
|
35
|
+
4. 禁止仅凭名称猜测 `Y*` 导出,禁止因文档暂时不可达就把猜测实现当作已验证事实。
|
|
36
|
+
|
|
30
37
|
## 更新规则
|
|
31
38
|
|
|
32
39
|
新增或变更 YSS Wrapper 时同步:本表、组件 docs、至少一个已验证 demo、三个索引、兼容矩阵和验证脚本。
|
|
@@ -31,6 +31,7 @@ description: "生成或改造完整 YSS UI CRUD、列表、表单、详情或左
|
|
|
31
31
|
- 主题 Token 与换肤:`../theme-token-usage/SKILL.md`
|
|
32
32
|
- 文件导出下载:`../file-export-download/SKILL.md`
|
|
33
33
|
- Orval 接口与错误处理:`../yss-api-integration/SKILL.md`
|
|
34
|
+
- 请求、分页、参数与异步竞态:`../yss-hook/SKILL.md`
|
|
34
35
|
|
|
35
36
|
## 文档检索顺序
|
|
36
37
|
|
|
@@ -56,6 +57,9 @@ description: "生成或改造完整 YSS UI CRUD、列表、表单、详情或左
|
|
|
56
57
|
- 删除确认默认使用 `YTable actionConfig.buttons[].isConfirm` 按钮项或 AntDV `Popconfirm` 气泡确认,禁止默认使用居中 `Modal.confirm`。
|
|
57
58
|
- 样式抽离到 `style.less`,在 SFC 中使用 `<style scoped lang="less">@import './style.less';</style>`。
|
|
58
59
|
- `index.vue` 原则上不超过 150 行;状态、API、副作用和处理方法进入 `hooks/`,列定义和静态配置进入 `constant.ts`。
|
|
60
|
+
- 页面目录默认使用 `index.vue + constant.ts + style.less + hooks/`;只有存在多个私有视图或大量独立类型时才增加 `components/` 和 `type.ts`。`index.vue` 只做 Hook 组合、视图编排和事件转发。
|
|
61
|
+
- 列表查询只维护一份 `currentParams`;查询、重置、树节点切换均回到第一页,翻页保留筛选条件,批量操作成功后清空选中态。组件 API 服从 `ytable-usage` / `ytree-usage`,请求和竞态服从 `yss-hook`。
|
|
62
|
+
- Modal/Drawer 表单的 `open/mode/currentId/formModel/submitting`、回填、提交和关闭收敛在同一业务 Hook。新增/编辑数据在打开容器前准备,容器关闭时销毁并清理;默认依赖响应式 `mode`/model,不用动态 `:key` 强制重挂载。
|
|
59
63
|
- 所有导出函数、hooks、类型和静态配置必须使用中文 JSDoc。
|
|
60
64
|
- Orval 请求必须使用真实生成导出和 DTO;禁止 `if (res?.success)` 冗余包裹,也禁止在 `else`/`catch` 重复 `message.error`。
|
|
61
65
|
- 页面、公共组件、内联样式、TS 渲染配置和 SVG 必须遵循 `theme-token-usage`;禁止硬编码品牌色及 hover/active/selected/focus 色阶,主色透明态必须由真实动态 Token 派生。
|
|
@@ -83,7 +87,7 @@ src/views/{module-name}/
|
|
|
83
87
|
1. 读取本 skill 的三个 reference,并按上述文档检索顺序核对真实 API 与导出,禁止根据旧示例猜测。
|
|
84
88
|
2. 读取 `theme-token-usage`,检查项目真实主题变量与运行时同步链路。
|
|
85
89
|
3. 若有截图或旧项目路径,先读取已批准且 digest 当前的 Visual Baseline manifest 和 `frontend_implementation_plan`,按 `case_id` 提取布局、状态、交互、响应式与控件类型验收项;缺失或摘要漂移时返回 `blocked`,不得凭目录或截图猜测。
|
|
86
|
-
4. 按需求类型加载细分 skill:列表读 `
|
|
90
|
+
4. 按需求类型加载细分 skill:列表读 `ytable-usage` 与 `yss-hook`;表单读 `yss-formily`;编辑表格读 `yedit-table-usage`;树读 `ytree-usage`;导出下载读 `file-export-download`。
|
|
87
91
|
5. 先设计 `constant.ts`、`style.less` 和 hooks;独立类型或私有视图确有需要时再增加 `type.ts`/`components/`,最后写 `index.vue` 组合视图。
|
|
88
92
|
6. 对 API 请求使用 Orval 真实生成类型和导出,在 hooks 内封装 loading、分页映射和失败后状态;错误 Toast 由 mutator 统一处理。
|
|
89
93
|
7. 交付前检查导入来源、真实组件 API、分页字段、Formily schema 层级、主题 Token、查询按钮右下角布局、表格工具栏、样式作用域、删除确认和原型对照清单。
|
|
@@ -10,25 +10,26 @@ const { tableHeight, isReady, recalculateHeight } = useTableHeight(tableAreaRef,
|
|
|
10
10
|
withPagination: true,
|
|
11
11
|
withToolbar: true,
|
|
12
12
|
withAddButton: false,
|
|
13
|
-
extraOffset: 16,
|
|
14
13
|
});
|
|
15
14
|
```
|
|
16
15
|
|
|
17
16
|
- 必须传入表格父容器 `ref`。
|
|
18
17
|
- 返回值是 `recalculateHeight`,不要使用旧的错误返回名。
|
|
19
18
|
- 可选项:`boundaryRef`、`minHeight`、`defaultHeight`、`extraOffset`、`withPagination`、`withToolbar`、`withAddButton`、`paginationHeight`、`toolbarHeight`、`addButtonHeight`。
|
|
19
|
+
- 被观察区域若会被表格内容撑开,使用更外层稳定的 `boundaryRef`,避免尺寸反馈循环;`extraOffset` 只能对应可说明的实际布局占位。
|
|
20
20
|
|
|
21
21
|
## useTreeHeight
|
|
22
22
|
|
|
23
23
|
```ts
|
|
24
24
|
const treeAreaRef = ref<HTMLDivElement>();
|
|
25
25
|
const { treeHeight, recalculateHeight } = useTreeHeight(treeAreaRef, {
|
|
26
|
-
extraOffset: YTREE_SEARCH_HEIGHT
|
|
26
|
+
extraOffset: YTREE_SEARCH_HEIGHT,
|
|
27
27
|
});
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
- 必须传入树区域父容器 `ref`。
|
|
31
31
|
- 搜索树可引入 `YTREE_SEARCH_HEIGHT`。
|
|
32
|
+
- 内置搜索已由 `YTREE_SEARCH_HEIGHT` 扣除,不得再叠加无依据的 `+16`;Tab/Drawer 可见后按需 `nextTick(recalculateHeight)`。
|
|
32
33
|
|
|
33
34
|
## useLoading
|
|
34
35
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ytable-usage
|
|
3
|
-
description: "配置或修复 YSS UI YTable
|
|
3
|
+
description: "配置或修复 YSS UI YTable 的列表查询、列、分页、行操作、筛选、拖拽、插槽与自适应高度。"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# YTable 使用
|
|
@@ -19,7 +19,7 @@ description: "配置或修复 YSS UI YTable 的列、分页、行操作、筛选
|
|
|
19
19
|
|
|
20
20
|
1. 当前会话可用 yss-ui MCP 时,先用 `get_component_docs` 查询 `YTable` 的 Props、Events、Slots、Types 与实例方法;需要远程分页、筛选、操作列、拖拽或工具栏时,再用 `get_demo` 获取对应官方 Demo。
|
|
21
21
|
2. MCP 工具不可用、调用失败或用 `search_docs/list_components` 校正后仍无结果时,才读取最新 `llms-full.txt`;若文档与当前项目依赖版本不一致,用当前源码和导出核验。
|
|
22
|
-
3.
|
|
22
|
+
3. 把 `currentParams`、远程数据、`loading`、分页映射、选择态、API 调用和事件处理放入 Hook;把列定义和纯配置放入 `constant.ts`。
|
|
23
23
|
4. 在模板中组合 `data/columns/loading/pagination`,并根据真实开启的工具栏和分页配置高度 Hook。
|
|
24
24
|
5. 完成后核对删除确认、远程筛选、分页字段映射和 API 错误处理边界。
|
|
25
25
|
|
|
@@ -37,6 +37,9 @@ description: "配置或修复 YSS UI YTable 的列、分页、行操作、筛选
|
|
|
37
37
|
- 远程筛选必须提供稳定 `filters`,设置 `filterMethod: () => true` 禁用本地二次过滤,并监听 `filter-change`。
|
|
38
38
|
- 自适应滚动列表绑定 `:height="tableHeight"`;`pageable`、工具栏分别对应 `withPagination: true`、`withToolbar: true`。纯短表不强制引入高度 Hook。
|
|
39
39
|
- `mutator.ts` 已对网络错误和 `success === false` 统一 `message.error` 并 reject。API Hook 不再检查 `success === false`,不在 `else/catch` 重复 `message.error`;用 `finally` 恢复 loading,让异常继续中断流程。
|
|
40
|
+
- 远程列表只维护一份 `currentParams`。查询和重置回到第一页,翻页只更新页码与页大小并保留筛选条件;刷新、导出和编辑后重载复用同一参数源。批量操作成功后清空受控选中态和组件内部选中态。
|
|
41
|
+
- 使用真实签名 `useTableHeight(tableAreaRef, options)`,结果绑定 `:height="tableHeight"`。稳定布局采用可计算高度的 flex column,表格区设置 `flex: 1; min-height: 0; overflow: hidden`,不用固定大高度或魔法偏移。
|
|
42
|
+
- `pageable`、工具栏插槽、YEditTable 添加按钮分别对应 `withPagination`、`withToolbar`、`withAddButton`;只扣除实际开启的区域。shrink-wrap 容器使用更外层稳定 `boundaryRef`,弹层或隐藏布局仅在可见后按需 `nextTick(recalculateHeight)`。
|
|
40
43
|
|
|
41
44
|
## 标准代码骨架
|
|
42
45
|
|
|
@@ -105,16 +108,19 @@ export interface ItemListApi {
|
|
|
105
108
|
export const useItemList = (api: ItemListApi) => {
|
|
106
109
|
const dataList = ref<ItemRow[]>([]);
|
|
107
110
|
const loading = ref(false);
|
|
111
|
+
const currentParams = ref({ pageIndex: 1, pageSize: 20 });
|
|
108
112
|
const pagination = ref<YTablePagination>({ current: 1, pageSize: 20, total: 0, remote: true });
|
|
109
113
|
|
|
110
114
|
/** 查询当前页;错误提示由 mutator 统一处理。 */
|
|
111
115
|
const loadList = async () => {
|
|
112
116
|
loading.value = true;
|
|
113
117
|
try {
|
|
114
|
-
|
|
118
|
+
currentParams.value = {
|
|
119
|
+
...currentParams.value,
|
|
115
120
|
pageIndex: pagination.value.current,
|
|
116
121
|
pageSize: pagination.value.pageSize,
|
|
117
|
-
}
|
|
122
|
+
};
|
|
123
|
+
const result = await api.queryPage(currentParams.value);
|
|
118
124
|
dataList.value = result.list ?? [];
|
|
119
125
|
pagination.value = { ...pagination.value, total: result.totalCount ?? 0 };
|
|
120
126
|
} finally {
|
|
@@ -134,7 +140,7 @@ export const useItemList = (api: ItemListApi) => {
|
|
|
134
140
|
await loadList();
|
|
135
141
|
};
|
|
136
142
|
|
|
137
|
-
return { dataList, loading, pagination, loadList, handlePageChange, handleDelete };
|
|
143
|
+
return { currentParams, dataList, loading, pagination, loadList, handlePageChange, handleDelete };
|
|
138
144
|
};
|
|
139
145
|
```
|
|
140
146
|
|
|
@@ -196,7 +202,7 @@ onMounted(loadList);
|
|
|
196
202
|
```less
|
|
197
203
|
/* style.less */
|
|
198
204
|
.table-area {
|
|
199
|
-
|
|
205
|
+
flex: 1;
|
|
200
206
|
min-height: 0;
|
|
201
207
|
overflow: hidden;
|
|
202
208
|
}
|
|
@@ -241,6 +247,8 @@ onMounted(loadList);
|
|
|
241
247
|
- [ ] 批量操作成功后已重置 `selectedRowKeys` 并调用 `tableRef.clearSelection()`。
|
|
242
248
|
- [ ] 未使用虚构 `request/searchParams/row-key` Props,也未把 `refresh()` 当成远程请求。
|
|
243
249
|
- [ ] 工具栏、字典翻译、操作确认与高度偏移均与实际开关一致。
|
|
250
|
+
- [ ] 查询、重置、翻页、刷新和导出复用同一份 `currentParams`;查询/重置回到第一页,批量成功后清空选中态。
|
|
251
|
+
- [ ] 高度观察容器稳定;分页/工具栏偏移没有重复扣减,隐藏态仅在必要时补算。
|
|
244
252
|
- [ ] API Hook 没有 `success === false` 分支或重复 `message.error`。
|
|
245
253
|
|
|
246
254
|
## 失败兜底策略
|
|
@@ -248,4 +256,3 @@ onMounted(loadList);
|
|
|
248
256
|
- 分页字段混乱时,在 Hook 中分离 YTable 状态和后端参数,不直接把 `pageIndex/totalCount` 绑到组件。
|
|
249
257
|
- 操作过多时使用 `displayLimit` 和更多菜单;远程刷新失效时回到业务 `loadList()`,不把实例 `refresh()` 当成接口请求。
|
|
250
258
|
- API 失败后只在 `finally` 恢复本地 loading,让 mutator 的 reject 继续中断删除后刷新等后续流程。
|
|
251
|
-
|
|
@@ -32,6 +32,7 @@ description: "配置或修复 YSS UI YTree 的字段映射、搜索、选中与
|
|
|
32
32
|
- `danger: true` 只改变危险项视觉,不会弹出确认框。删除必须放在节点附近的 `#node-suffix` 或当前选中节点操作区,用 Ant Design Vue `Popconfirm` 的 `@confirm` 调用接口;不使用居中 `Modal.confirm`。
|
|
33
33
|
- 树区域需要滚动时绑定 `:height="treeHeight"`,不默认添加 `:virtual="true"`。只有展开后可见扁平节点数 `* itemHeight > height` 时才会实际裁剪 DOM。
|
|
34
34
|
- 使用 YTree 内置搜索时,高度 Hook 通过 `extraOffset: YTREE_SEARCH_HEIGHT` 扣除 48px;不再叠加无依据的魔法数。
|
|
35
|
+
- 最外层必须有可计算高度,树区域设置 `flex: 1; min-height: 0; overflow: hidden`;Hook 挂载时 `treeAreaRef` 必须存在。Tab/Drawer 优先保持外层容器挂载,隐藏态得到的最小高度不作为最终结果,可见后按需 `nextTick(recalculateHeight)`。
|
|
35
36
|
- 左树右表优先组合 `YSplitPane + YCard + YTree + YTable`;切换节点时同步查询条件并把右表分页重置为第 1 页。
|
|
36
37
|
- 节点删除 API 的错误由 `mutator.ts` 统一提示并 reject;不在 `else/catch` 重复 `message.error`。
|
|
37
38
|
|
|
@@ -112,7 +112,7 @@ roles:
|
|
|
112
112
|
title: YSS 前端工程师
|
|
113
113
|
stages: [ stage.product-design, stage.system-data-engineering, stage.ticket-formalization, stage.vertical-slice-implementation, stage.verification-release-retrospective ]
|
|
114
114
|
draft_artifact_ids: [ artifact.frontend-implementation-plan ]
|
|
115
|
-
core_skills: [ yss-ui, yss-ui-business-page-generation, yss-formily, ytable-usage, ytree-usage, yedit-table-usage, yss-api-integration, yss-hook, theme-token-usage,
|
|
115
|
+
core_skills: [ yss-ui, yss-ui-business-page-generation, yss-formily, ytable-usage, ytree-usage, yedit-table-usage, yss-api-integration, yss-hook, theme-token-usage, tdd ]
|
|
116
116
|
forbidden_skills: [ yss-domain, yss-application, yss-repository, yss-mybatis, yss-web-controller, yss-ddd-scaffold-generator, yss-layered-mvc-scaffold-generator, java-backend-commit ]
|
|
117
117
|
description: >-
|
|
118
118
|
Own Vue page modules, frontend tests, and frontend_implementation_plan. Review OpenAPI Draft for client fit and prototype feasibility. Write only contract-allowed frontend paths. Verify with pnpm. Do not freeze API, own backend domain, or countersign your own merge.
|
|
@@ -125,7 +125,7 @@ roles:
|
|
|
125
125
|
stages: [ stage.system-data-engineering, stage.ticket-formalization, stage.vertical-slice-implementation, stage.verification-release-retrospective ]
|
|
126
126
|
draft_artifact_ids: [ artifact.openapi-draft, artifact.data-architecture, artifact.technical-design ]
|
|
127
127
|
core_skills: [ yss-implementation-contract-compiler, yss-technical-design, yss-tactical-design, yss-domain, yss-application, yss-repository, yss-mybatis, yss-web-controller, yss-dto, mapstruct, lombok, alibaba-java-code-style, yss-exception, yss-validation, tdd, yss-ddd-scaffold-generator, yss-layered-mvc-scaffold-generator ]
|
|
128
|
-
forbidden_skills: [ yss-ui, yss-ui-business-page-generation, yss-formily, yss-frontend-scaffold-generator
|
|
128
|
+
forbidden_skills: [ yss-ui, yss-ui-business-page-generation, yss-formily, yss-frontend-scaffold-generator ]
|
|
129
129
|
description: >-
|
|
130
130
|
Own OpenAPI Draft, data-architecture contributions, and backend tests. Write only contract-allowed backend paths. Verify with ./mvnw. Do not Freeze OpenAPI, treat UI copy as requirements, or countersign your own implementation.
|
|
131
131
|
|