create-yss-spec 2.1.10 → 2.1.11
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 +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/ask-matt/SKILL.md +8 -2
- package/template/.agents/skills/code-review/SKILL.md +6 -4
- package/template/.agents/skills/high-fidelity-html-prototype/SKILL.md +1 -1
- package/template/.agents/skills/implement/SKILL.md +1 -1
- package/template/.agents/skills/to-spec/SKILL.md +1 -1
- package/template/.agents/skills/yss-api-integration/SKILL.md +2 -0
- package/template/.agents/skills/yss-application/SKILL.md +52 -0
- package/template/.agents/skills/yss-application/agents/openai.yaml +5 -0
- package/template/{.claude/skills/yss-backend-scaffold-application/SKILL.md → .agents/skills/yss-application/references/application-layer-guide.md} +0 -7
- package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
- package/template/.agents/skills/yss-domain/SKILL.md +5 -0
- package/template/{.claude/skills/yss-backend-scaffold-domain/SKILL.md → .agents/skills/yss-domain/references/domain-layer-guide.md} +0 -7
- package/template/.agents/skills/yss-microapp-commit/SKILL.md +2 -0
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.agents/skills/yss-prototype-stage/SKILL.md +1 -1
- package/template/.agents/skills/yss-repository/SKILL.md +5 -0
- package/template/{.codex/skills/yss-backend-scaffold-infrastructure/SKILL.md → .agents/skills/yss-repository/references/infrastructure-layer-guide.md} +0 -7
- package/template/.agents/skills/yss-router/references/boundaries.md +2 -6
- package/template/.agents/skills/yss-router/references/router-contract.yaml +8 -12
- package/template/.agents/skills/yss-source-index/references/source-map-config.md +0 -4
- package/template/.agents/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
- package/template/.agents/skills/yss-web-controller/SKILL.md +1 -0
- package/template/.agents/skills/{yss-backend-scaffold-web/SKILL.md → yss-web-controller/references/web-adapter-layer-guide.md} +0 -7
- package/template/.claude/skills/ask-matt/SKILL.md +8 -2
- package/template/.claude/skills/code-review/SKILL.md +6 -4
- package/template/.claude/skills/high-fidelity-html-prototype/SKILL.md +1 -1
- package/template/.claude/skills/implement/SKILL.md +1 -1
- package/template/.claude/skills/to-spec/SKILL.md +1 -1
- package/template/.claude/skills/yss-api-integration/SKILL.md +2 -0
- package/template/.claude/skills/yss-application/SKILL.md +52 -0
- package/template/.claude/skills/yss-application/agents/openai.yaml +5 -0
- package/template/{.codex/skills/yss-backend-scaffold-application/SKILL.md → .claude/skills/yss-application/references/application-layer-guide.md} +0 -7
- package/template/.claude/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
- package/template/.claude/skills/yss-domain/SKILL.md +5 -0
- package/template/{.agents/skills/yss-backend-scaffold-domain/SKILL.md → .claude/skills/yss-domain/references/domain-layer-guide.md} +0 -7
- package/template/.claude/skills/yss-microapp-commit/SKILL.md +2 -0
- package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.claude/skills/yss-prototype-stage/SKILL.md +1 -1
- package/template/.claude/skills/yss-repository/SKILL.md +5 -0
- package/template/.claude/skills/{yss-backend-scaffold-infrastructure/SKILL.md → yss-repository/references/infrastructure-layer-guide.md} +0 -7
- package/template/.claude/skills/yss-router/references/boundaries.md +2 -6
- package/template/.claude/skills/yss-router/references/router-contract.yaml +8 -12
- package/template/.claude/skills/yss-source-index/references/source-map-config.md +0 -4
- package/template/.claude/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
- package/template/.claude/skills/yss-web-controller/SKILL.md +1 -0
- package/template/{.codex/skills/yss-backend-scaffold-web/SKILL.md → .claude/skills/yss-web-controller/references/web-adapter-layer-guide.md} +0 -7
- package/template/.codex/skills/ask-matt/SKILL.md +8 -2
- package/template/.codex/skills/code-review/SKILL.md +6 -4
- package/template/.codex/skills/high-fidelity-html-prototype/SKILL.md +1 -1
- package/template/.codex/skills/implement/SKILL.md +1 -1
- package/template/.codex/skills/to-spec/SKILL.md +1 -1
- package/template/.codex/skills/yss-api-integration/SKILL.md +2 -0
- package/template/.codex/skills/yss-application/SKILL.md +52 -0
- package/template/.codex/skills/yss-application/agents/openai.yaml +5 -0
- package/template/{.agents/skills/yss-backend-scaffold-application/SKILL.md → .codex/skills/yss-application/references/application-layer-guide.md} +0 -7
- package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
- package/template/.codex/skills/yss-domain/SKILL.md +5 -0
- package/template/.codex/skills/{yss-backend-scaffold-domain/SKILL.md → yss-domain/references/domain-layer-guide.md} +0 -7
- package/template/.codex/skills/yss-microapp-commit/SKILL.md +2 -0
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.codex/skills/yss-prototype-stage/SKILL.md +1 -1
- package/template/.codex/skills/yss-repository/SKILL.md +5 -0
- package/template/{.hermes/skills/yss-backend-scaffold-infrastructure/SKILL.md → .codex/skills/yss-repository/references/infrastructure-layer-guide.md} +0 -7
- package/template/.codex/skills/yss-router/references/boundaries.md +2 -6
- package/template/.codex/skills/yss-router/references/router-contract.yaml +8 -12
- package/template/.codex/skills/yss-source-index/references/source-map-config.md +0 -4
- package/template/.codex/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
- package/template/.codex/skills/yss-web-controller/SKILL.md +1 -0
- package/template/{.hermes/skills/yss-backend-scaffold-web/SKILL.md → .codex/skills/yss-web-controller/references/web-adapter-layer-guide.md} +0 -7
- package/template/.cursor/environment.json +5 -0
- package/template/.cursor/skills/alibaba-java-code-style/SKILL.md +51 -0
- package/template/.cursor/skills/alibaba-java-code-style/agents/openai.yaml +4 -0
- package/template/.cursor/skills/alibaba-java-code-style/references/database-engineering-design.md +147 -0
- package/template/.cursor/skills/alibaba-java-code-style/references/java-programming.md +178 -0
- package/template/.cursor/skills/alibaba-java-code-style/references/reliability-test-security.md +89 -0
- package/template/.cursor/skills/ask-matt/PHASE-BOUNDARIES.md +55 -0
- package/template/.cursor/skills/ask-matt/SKILL.md +95 -0
- package/template/.cursor/skills/ask-matt/agents/openai.yaml +5 -0
- package/template/.cursor/skills/code-review/SKILL.md +117 -0
- package/template/.cursor/skills/code-review/agents/openai.yaml +3 -0
- package/template/.cursor/skills/codebase-design/DEEPENING.md +37 -0
- package/template/.cursor/skills/codebase-design/DESIGN-IT-TWICE.md +44 -0
- package/template/.cursor/skills/codebase-design/SKILL.md +114 -0
- package/template/.cursor/skills/codebase-design/agents/openai.yaml +3 -0
- package/template/.cursor/skills/competitive-intelligence/SKILL.md +94 -0
- package/template/.cursor/skills/cross-repo-implementation-routing/SKILL.md +51 -0
- package/template/.cursor/skills/diagnosing-bugs/SKILL.md +138 -0
- package/template/.cursor/skills/diagnosing-bugs/agents/openai.yaml +3 -0
- package/template/.cursor/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +44 -0
- package/template/.cursor/skills/dispatching-parallel-agents/SKILL.md +185 -0
- package/template/.cursor/skills/domain-modeling/ADR-FORMAT.md +47 -0
- package/template/.cursor/skills/domain-modeling/CONTEXT-FORMAT.md +60 -0
- package/template/.cursor/skills/domain-modeling/SKILL.md +74 -0
- package/template/.cursor/skills/domain-modeling/agents/openai.yaml +3 -0
- package/template/.cursor/skills/grill-me/SKILL.md +7 -0
- package/template/.cursor/skills/grill-me/agents/openai.yaml +5 -0
- package/template/.cursor/skills/grill-with-docs/SKILL.md +19 -0
- package/template/.cursor/skills/grill-with-docs/agents/openai.yaml +5 -0
- package/template/.cursor/skills/grilling/SKILL.md +28 -0
- package/template/.cursor/skills/grilling/agents/openai.yaml +3 -0
- package/template/.cursor/skills/handoff/SKILL.md +16 -0
- package/template/.cursor/skills/handoff/agents/openai.yaml +5 -0
- package/template/.cursor/skills/high-fidelity-html-prototype/SKILL.md +106 -0
- package/template/.cursor/skills/high-fidelity-html-prototype/agents/openai.yaml +5 -0
- package/template/.cursor/skills/implement/SKILL.md +15 -0
- package/template/.cursor/skills/implement/agents/openai.yaml +5 -0
- package/template/.cursor/skills/implementation-repo-onboarding/SKILL.md +50 -0
- package/template/.cursor/skills/improve-codebase-architecture/HTML-REPORT.md +123 -0
- package/template/.cursor/skills/improve-codebase-architecture/SKILL.md +71 -0
- package/template/.cursor/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
- package/template/.cursor/skills/lombok/SKILL.md +351 -0
- package/template/.cursor/skills/loop-me/SKILL.md +32 -0
- package/template/.cursor/skills/loop-me/agents/openai.yaml +5 -0
- package/template/.cursor/skills/maintaining-skills/SKILL.md +25 -0
- package/template/.cursor/skills/mapstruct/SKILL.md +334 -0
- package/template/.cursor/skills/migrate-to-shoehorn/SKILL.md +118 -0
- package/template/.cursor/skills/migrate-to-shoehorn/agents/openai.yaml +3 -0
- package/template/.cursor/skills/prototype/LOGIC.md +67 -0
- package/template/.cursor/skills/prototype/SKILL.md +26 -0
- package/template/.cursor/skills/prototype/UI.md +112 -0
- package/template/.cursor/skills/prototype/agents/openai.yaml +3 -0
- package/template/.cursor/skills/prototype-review/SKILL.md +74 -0
- package/template/.cursor/skills/prototype-review/agents/openai.yaml +4 -0
- package/template/.cursor/skills/research/SKILL.md +12 -0
- package/template/.cursor/skills/research/agents/openai.yaml +3 -0
- package/template/.cursor/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/template/.cursor/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
- package/template/.cursor/skills/scaffold-exercises/SKILL.md +106 -0
- package/template/.cursor/skills/scaffold-exercises/agents/openai.yaml +3 -0
- package/template/.cursor/skills/setup-matt-pocock-skills/SKILL.md +125 -0
- package/template/.cursor/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
- package/template/.cursor/skills/setup-matt-pocock-skills/domain.md +51 -0
- package/template/.cursor/skills/setup-matt-pocock-skills/issue-tracker-github.md +45 -0
- package/template/.cursor/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +46 -0
- package/template/.cursor/skills/setup-matt-pocock-skills/issue-tracker-local.md +66 -0
- package/template/.cursor/skills/setup-matt-pocock-skills/triage-labels.md +15 -0
- package/template/.cursor/skills/setup-pre-commit/SKILL.md +91 -0
- package/template/.cursor/skills/setup-pre-commit/agents/openai.yaml +3 -0
- package/template/.cursor/skills/setup-ts-deep-modules/SKILL.md +102 -0
- package/template/.cursor/skills/setup-ts-deep-modules/agents/openai.yaml +5 -0
- package/template/.cursor/skills/setup-ts-deep-modules/dependency-cruiser.config.cjs +95 -0
- package/template/.cursor/skills/tdd/SKILL.md +38 -0
- package/template/.cursor/skills/tdd/agents/openai.yaml +3 -0
- package/template/.cursor/skills/tdd/mocking.md +59 -0
- package/template/.cursor/skills/tdd/tests.md +77 -0
- package/template/.cursor/skills/teach/GLOSSARY-FORMAT.md +35 -0
- package/template/.cursor/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
- package/template/.cursor/skills/teach/MISSION-FORMAT.md +31 -0
- package/template/.cursor/skills/teach/RESOURCES-FORMAT.md +32 -0
- package/template/.cursor/skills/teach/SKILL.md +140 -0
- package/template/.cursor/skills/teach/agents/openai.yaml +5 -0
- package/template/.cursor/skills/to-questionnaire/SKILL.md +53 -0
- package/template/.cursor/skills/to-questionnaire/agents/openai.yaml +5 -0
- package/template/.cursor/skills/to-spec/SKILL.md +75 -0
- package/template/.cursor/skills/to-spec/agents/openai.yaml +5 -0
- package/template/.cursor/skills/to-tickets/SKILL.md +105 -0
- package/template/.cursor/skills/to-tickets/agents/openai.yaml +5 -0
- package/template/.cursor/skills/triage/AGENT-BRIEF.md +207 -0
- package/template/.cursor/skills/triage/OUT-OF-SCOPE.md +105 -0
- package/template/.cursor/skills/triage/SKILL.md +112 -0
- package/template/.cursor/skills/triage/agents/openai.yaml +5 -0
- package/template/.cursor/skills/using-git-worktrees/SKILL.md +202 -0
- package/template/.cursor/skills/wait-what/SKILL.md +7 -0
- package/template/.cursor/skills/wait-what/agents/openai.yaml +5 -0
- package/template/.cursor/skills/wayfinder/SKILL.md +128 -0
- package/template/.cursor/skills/wayfinder/agents/openai.yaml +5 -0
- package/template/.cursor/skills/writing-beats/SKILL.md +67 -0
- package/template/.cursor/skills/writing-beats/agents/openai.yaml +5 -0
- package/template/.cursor/skills/writing-for-agents/SKILL-MECHANICS.md +22 -0
- package/template/.cursor/skills/writing-for-agents/SKILL.md +81 -0
- package/template/.cursor/skills/writing-for-agents/agents/openai.yaml +3 -0
- package/template/.cursor/skills/writing-fragments/SKILL.md +79 -0
- package/template/.cursor/skills/writing-fragments/agents/openai.yaml +5 -0
- package/template/.cursor/skills/writing-shape/SKILL.md +79 -0
- package/template/.cursor/skills/writing-shape/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-api-integration/SKILL.md +429 -0
- package/template/.cursor/skills/yss-api-integration/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-application/SKILL.md +52 -0
- package/template/.cursor/skills/yss-application/agents/openai.yaml +5 -0
- package/template/{.hermes/skills/yss-backend-scaffold-application/SKILL.md → .cursor/skills/yss-application/references/application-layer-guide.md} +0 -7
- package/template/.cursor/skills/yss-audit-log/SKILL.md +67 -0
- package/template/.cursor/skills/yss-audit-log/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-audit-log/assets/AuditLogAspect.java +262 -0
- package/template/.cursor/skills/yss-audit-log/assets/YssAuditLogPrintSubscriberImpl.java +37 -0
- package/template/.cursor/skills/yss-audit-log/assets/YssAuditLogSysManagerSubscriberImpl.java +18 -0
- package/template/.cursor/skills/yss-audit-log/assets/YssAuditPublishService.java +69 -0
- package/template/.cursor/skills/yss-audit-log/references/README.md +69 -0
- package/template/.cursor/skills/yss-audit-log/references/source-index.md +43 -0
- package/template/.cursor/skills/yss-cache/SKILL.md +44 -0
- package/template/.cursor/skills/yss-cache/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-cache/references/annotations.md +39 -0
- package/template/.cursor/skills/yss-cache/references/architecture.md +25 -0
- package/template/.cursor/skills/yss-cache/references/configuration.md +34 -0
- package/template/.cursor/skills/yss-cache/references/redis-fallback.md +23 -0
- package/template/.cursor/skills/yss-cache/references/redis-topology.md +62 -0
- package/template/.cursor/skills/yss-cache/references/serialization.md +17 -0
- package/template/.cursor/skills/yss-cache/references/source-index.md +67 -0
- package/template/.cursor/skills/yss-cache/references/troubleshooting.md +33 -0
- package/template/.cursor/skills/yss-cache/references/verification.md +34 -0
- package/template/.cursor/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
- package/template/.cursor/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
- package/template/.cursor/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
- package/template/.cursor/skills/yss-components/SKILL.md +386 -0
- package/template/.cursor/skills/yss-components/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-components/references/frontend-docs.md +9 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +96 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/config/application.yml.template +37 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/config/logback-spring.xml.template +15 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/config/parent-pom.xml.template +84 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/adapter-pom.xml.template +19 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/application-pom.xml.template +43 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/bootstrap-pom.xml.template +50 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/domain-pom.xml.template +36 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/infrastructure-pom.xml.template +34 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/parent-pom.xml.template +95 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/web-pom.xml.template +44 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/jvm.config +1 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/maven.config +3 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/settings.xml +128 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/wrapper/MavenWrapperDownloader.java +117 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/wrapper/maven-wrapper.properties +18 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/mvnw +316 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/mvnw.cmd +188 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +194 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +420 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-adapter/SKILL.md +199 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-adapter/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +8 -0
- package/template/{.claude/skills → .cursor/skills/yss-ddd-scaffold-generator/references}/yss-backend-scaffold-application/agents/openai.yaml +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +8 -0
- package/template/{.agents/skills → .cursor/skills/yss-ddd-scaffold-generator/references}/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +8 -0
- package/template/{.claude/skills → .cursor/skills/yss-ddd-scaffold-generator/references}/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +138 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +8 -0
- package/template/{.claude/skills → .cursor/skills/yss-ddd-scaffold-generator/references}/yss-backend-scaffold-web/agents/openai.yaml +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +225 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +32 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +26 -0
- package/template/.cursor/skills/yss-design-system/SKILL.md +99 -0
- package/template/.cursor/skills/yss-design-system/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-design-system/references/design-system.md +237 -0
- package/template/.cursor/skills/yss-design-system/scripts/validate-frontmatter.mjs +36 -0
- package/template/.cursor/skills/yss-design-system/scripts/validate-frontmatter.test.mjs +12 -0
- package/template/.cursor/skills/yss-distributed-id/SKILL.md +69 -0
- package/template/.cursor/skills/yss-distributed-id/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-distributed-id/assets/AutoIdInterceptor.java +246 -0
- package/template/.cursor/skills/yss-distributed-id/assets/EnableDistributedId.java +25 -0
- package/template/.cursor/skills/yss-distributed-id/assets/LeafConf.java +36 -0
- package/template/.cursor/skills/yss-distributed-id/references/README.md +51 -0
- package/template/.cursor/skills/yss-distributed-id/references/source-index.md +86 -0
- package/template/.cursor/skills/yss-domain/SKILL.md +68 -0
- package/template/.cursor/skills/yss-domain/agents/openai.yaml +5 -0
- package/template/{.hermes/skills/yss-backend-scaffold-domain/SKILL.md → .cursor/skills/yss-domain/references/domain-layer-guide.md} +0 -7
- package/template/.cursor/skills/yss-dto/SKILL.md +86 -0
- package/template/.cursor/skills/yss-dto/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-dto/assets/CommandDTO.java +8 -0
- package/template/.cursor/skills/yss-dto/assets/PageQuery.java +133 -0
- package/template/.cursor/skills/yss-dto/assets/QueryDTO.java +6 -0
- package/template/.cursor/skills/yss-dto/assets/Result.java +105 -0
- package/template/.cursor/skills/yss-dto/references/README.md +67 -0
- package/template/.cursor/skills/yss-dto/references/openapi-wire-profile.yaml +181 -0
- package/template/.cursor/skills/yss-dto/references/source-index.md +55 -0
- package/template/.cursor/skills/yss-excel-mvc/SKILL.md +66 -0
- package/template/.cursor/skills/yss-excel-mvc/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-excel-mvc/assets/ExcelDynamicData.java +66 -0
- package/template/.cursor/skills/yss-excel-mvc/assets/RequestExcel.java +33 -0
- package/template/.cursor/skills/yss-excel-mvc/assets/RequestFastExcelArgumentResolver.java +272 -0
- package/template/.cursor/skills/yss-excel-mvc/assets/ResponseExcel.java +46 -0
- package/template/.cursor/skills/yss-excel-mvc/assets/ResponseFastExcelReturnValueHandler.java +154 -0
- package/template/.cursor/skills/yss-excel-mvc/references/README.md +5 -0
- package/template/.cursor/skills/yss-excel-mvc/references/source-index.md +74 -0
- package/template/.cursor/skills/yss-exception/SKILL.md +55 -0
- package/template/.cursor/skills/yss-exception/agents/openai.yaml +4 -0
- package/template/{.agents/skills/yss-log → .cursor/skills/yss-exception}/references/source-index.md +8 -7
- package/template/.cursor/skills/yss-formily/SKILL.md +304 -0
- package/template/.cursor/skills/yss-formily/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-formily/references/examples.md +65 -0
- package/template/.cursor/skills/yss-formily-schema-generator/SKILL.md +189 -0
- package/template/.cursor/skills/yss-formily-schema-generator/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-formily-schema-generator/assets/java-sdk/ExampleUsage.java +111 -0
- package/template/.cursor/skills/yss-formily-schema-generator/assets/java-sdk/YssFormilyDsl.java +1219 -0
- package/template/.cursor/skills/yss-formily-schema-generator/references/workflow.md +240 -0
- package/template/.cursor/skills/yss-frontend-scaffold-generator/SKILL.md +76 -0
- package/template/.cursor/skills/yss-hook/SKILL.md +200 -0
- package/template/.cursor/skills/yss-hook/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-hook/references/frontend-docs.md +10 -0
- package/template/.cursor/skills/yss-microapp-commit/SKILL.md +201 -0
- package/template/.cursor/skills/yss-microapp-commit/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-microapp-commit/references/scope-mapping.md +204 -0
- package/template/.cursor/skills/yss-mybatis/SKILL.md +77 -0
- package/template/.cursor/skills/yss-mybatis/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-mybatis/assets/BaseRepository.java +112 -0
- package/template/.cursor/skills/yss-mybatis/assets/EntityQueryAspect.java +37 -0
- package/template/.cursor/skills/yss-mybatis/assets/MybatisBaseConfiguration.java +18 -0
- package/template/.cursor/skills/yss-mybatis/assets/PageQueryEntityConfigration.java +18 -0
- package/template/.cursor/skills/yss-mybatis/references/README.md +57 -0
- package/template/.cursor/skills/yss-mybatis/references/source-index.md +93 -0
- package/template/.cursor/skills/yss-openapi-draft-review/SKILL.md +82 -0
- package/template/.cursor/skills/yss-openapi-governance/SKILL.md +130 -0
- package/template/.cursor/skills/yss-openapi-governance/agents/openai.yaml +4 -0
- package/template/.cursor/skills/yss-page-module-development/SKILL.md +153 -0
- package/template/.cursor/skills/yss-page-module-development/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-page-module-development/examples/AdvancedFormPage/constant.ts +32 -0
- package/template/.cursor/skills/yss-page-module-development/examples/AdvancedFormPage/hooks/useRuleConfig.ts +158 -0
- package/template/.cursor/skills/yss-page-module-development/examples/AdvancedFormPage/index.vue +188 -0
- package/template/.cursor/skills/yss-page-module-development/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +256 -0
- package/template/.cursor/skills/yss-page-module-development/examples/AdvancedFormPage/style.less +76 -0
- package/template/.cursor/skills/yss-page-module-development/examples/StandardListPage/constant.ts +128 -0
- package/template/.cursor/skills/yss-page-module-development/examples/StandardListPage/hooks/useQualityRuleList.ts +144 -0
- package/template/.cursor/skills/yss-page-module-development/examples/StandardListPage/hooks/useRuleActions.ts +141 -0
- package/template/.cursor/skills/yss-page-module-development/examples/StandardListPage/index.vue +175 -0
- package/template/.cursor/skills/yss-page-module-development/examples/StandardListPage/style.less +83 -0
- package/template/.cursor/skills/yss-page-module-development/references/frontend-docs.md +11 -0
- package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +49 -0
- package/template/.cursor/skills/yss-product-lifecycle/agents/openai.yaml +4 -0
- package/template/.cursor/skills/yss-product-lifecycle/references/artifact-dependencies.md +32 -0
- package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +122 -0
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +521 -0
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +103 -0
- package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +107 -0
- package/template/.cursor/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.cursor/skills/yss-repository/SKILL.md +76 -0
- package/template/.cursor/skills/yss-repository/agents/openai.yaml +5 -0
- package/template/{.agents/skills/yss-backend-scaffold-infrastructure/SKILL.md → .cursor/skills/yss-repository/references/infrastructure-layer-guide.md} +0 -7
- package/template/.cursor/skills/yss-resilience4j/SKILL.md +46 -0
- package/template/.cursor/skills/yss-resilience4j/agents/openai.yaml +4 -0
- package/template/{.hermes/skills/yss-jdbc → .cursor/skills/yss-resilience4j}/references/source-index.md +6 -6
- package/template/.cursor/skills/yss-router/SKILL.md +49 -0
- package/template/.cursor/skills/yss-router/agents/openai.yaml +4 -0
- package/template/.cursor/skills/yss-router/references/boundaries.md +50 -0
- package/template/.cursor/skills/yss-router/references/router-contract.yaml +245 -0
- package/template/.cursor/skills/yss-router/references/slice-implementation-contract.md +113 -0
- package/template/.cursor/skills/yss-router/references/yss-skill-execution-result.md +62 -0
- package/template/.cursor/skills/yss-security-algorithm/SKILL.md +52 -0
- package/template/.cursor/skills/yss-security-algorithm/agents/openai.yaml +4 -0
- package/template/{.agents/skills/yss-jdbc → .cursor/skills/yss-security-algorithm}/references/source-index.md +7 -5
- package/template/.cursor/skills/yss-source-index/SKILL.md +63 -0
- package/template/.cursor/skills/yss-source-index/agents/openai.yaml +4 -0
- package/template/.cursor/skills/yss-source-index/references/source-location.md +18 -0
- package/template/.cursor/skills/yss-source-index/references/source-map-config.md +30 -0
- package/template/.cursor/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +24 -0
- package/template/.cursor/skills/yss-source-index/scripts/refresh-yss-skill-index.test.mjs +15 -0
- package/template/.cursor/skills/yss-ui/SKILL.md +169 -0
- package/template/.cursor/skills/yss-ui/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-ui/assets/demos/button/auth-basic.vue +24 -0
- package/template/.cursor/skills/yss-ui/assets/demos/button/auth-dropdown.vue +29 -0
- package/template/.cursor/skills/yss-ui/assets/demos/button/permission.vue +10 -0
- package/template/.cursor/skills/yss-ui/assets/demos/button/size.vue +12 -0
- package/template/.cursor/skills/yss-ui/assets/demos/button/states.vue +12 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/basic/index.vue +54 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/basic/style.less +41 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/cover/index.vue +25 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/flexible-layout/index.vue +122 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/flexible-layout/style.less +191 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/header-extra/index.vue +260 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/header-extra/style.less +124 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/layout-metrics/constants.ts +61 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/layout-metrics/index.vue +72 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/layout-metrics/metrics-cards.vue +70 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/layout-metrics/style.less +232 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/loading/index.vue +19 -0
- package/template/.cursor/skills/yss-ui/assets/demos/card/meta/index.vue +19 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/basic/constants.ts +44 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/basic/hooks/useConditionBasic.ts +18 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/basic/index.vue +100 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/linked/constants.ts +51 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/linked/hooks/useConditionLinked.ts +29 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/linked/index.vue +23 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/nesting-between/constants.ts +35 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/nesting-between/hooks/useConditionNesting.ts +25 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/nesting-between/index.vue +24 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/remote/constants.ts +7 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/remote/hooks/useConditionRemote.ts +75 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/remote/index.vue +23 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation/constants.ts +42 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation/hooks/useConditionBasic.ts +22 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation/index.vue +138 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation-custom/constants.ts +42 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation-custom/hooks/useConditionBasic.ts +22 -0
- package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation-custom/index.vue +134 -0
- package/template/.cursor/skills/yss-ui/assets/demos/cron/basic/index.vue +54 -0
- package/template/.cursor/skills/yss-ui/assets/demos/cron/select/index.vue +145 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/basic.vue +30 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/calendar-heatmap.vue +49 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/candlestick.vue +30 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/dark.vue +40 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/expose-methods.vue +97 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/funnel.vue +42 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/gauge.vue +25 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/line.vue +24 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/mix.vue +33 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/pie.vue +34 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/radar.vue +38 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/ring-segment.vue +77 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/scatter.vue +23 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/stacked-area.vue +55 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/stacked-bar.vue +52 -0
- package/template/.cursor/skills/yss-ui/assets/demos/echarts/treemap.vue +30 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/all-types/hooks/useAllTypes.ts +259 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/all-types/index.vue +33 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/async-remote/hooks/useAsyncRemote.ts +201 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/async-remote/index.vue +45 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/basic/index.vue +104 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/big-data/index.vue +82 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/custom-rule/index.vue +114 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/direct-editable/index.vue +94 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/drag/index.vue +125 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/filter/index.vue +107 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/linkage/index.vue +181 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/pagination-action/index.vue +131 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/required/index.vue +95 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/row-edit/index.vue +220 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/row-options/index.vue +165 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/slot-linkage/index.vue +184 -0
- package/template/.cursor/skills/yss-ui/assets/demos/edit-table/submit-view/index.vue +107 -0
- package/template/.cursor/skills/yss-ui/assets/demos/file-import/basic.vue +54 -0
- package/template/.cursor/skills/yss-ui/assets/demos/file-import/formily.vue +42 -0
- package/template/.cursor/skills/yss-ui/assets/demos/file-import/multiple.vue +33 -0
- package/template/.cursor/skills/yss-ui/assets/demos/file-import/result-slot.vue +30 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/actions.vue +61 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/align.vue +56 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/async-validate.vue +69 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/basic.vue +317 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/collapse.vue +104 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/custom-component.vue +75 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/disabled.vue +71 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/dynamic-array.vue +74 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/dynamic.vue +59 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/effects.vue +117 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/events-inline.vue +82 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/events-scope.vue +101 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/grid.vue +71 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/group.vue +102 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/helper-slot.vue +50 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/label-tip.vue +42 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/linkage-multi.vue +127 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/linkage.vue +78 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/modes.vue +72 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/remote-enum.vue +88 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/slot.vue +54 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/steps.vue +135 -0
- package/template/.cursor/skills/yss-ui/assets/demos/formily/submit-failed.vue +72 -0
- package/template/.cursor/skills/yss-ui/assets/demos/monaco/basic.vue +40 -0
- package/template/.cursor/skills/yss-ui/assets/demos/monaco/diff-basic.vue +143 -0
- package/template/.cursor/skills/yss-ui/assets/demos/monaco/fullscreen.vue +84 -0
- package/template/.cursor/skills/yss-ui/assets/demos/monaco/history-log-viewer.vue +586 -0
- package/template/.cursor/skills/yss-ui/assets/demos/monaco/log-viewer.vue +260 -0
- package/template/.cursor/skills/yss-ui/assets/demos/monaco/mock/mockLogApi.ts +199 -0
- package/template/.cursor/skills/yss-ui/assets/demos/monaco/monaco.vue +66 -0
- package/template/.cursor/skills/yss-ui/assets/demos/monaco/readonly.vue +20 -0
- package/template/.cursor/skills/yss-ui/assets/demos/monaco/resizable.vue +22 -0
- package/template/.cursor/skills/yss-ui/assets/demos/monaco/sql-schema.vue +20 -0
- package/template/.cursor/skills/yss-ui/assets/demos/monaco/switch-lang-theme.vue +48 -0
- package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table/constant.ts +18 -0
- package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table/index.vue +60 -0
- package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table/style.less +39 -0
- package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table-layout/hooks/useTreeTable.ts +158 -0
- package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table-layout/index.vue +88 -0
- package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table-layout/style.less +73 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/action/index.vue +83 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/action/style.less +3 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/action-auth/index.vue +41 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/action-slot/index.vue +62 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/action-slot/style.less +36 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/basic/hooks/useBasicTable.ts +205 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/basic/index.vue +89 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/basic/style.less +28 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/column-custom-search/hooks/useColumnCustomSearch.ts +236 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/column-custom-search/index.vue +141 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/column-custom-search/style.less +48 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/drag/index.vue +42 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/expand/action-expand.vue +142 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/expand/index.vue +35 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/filter-async/index.vue +93 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/filter-auto/index.vue +99 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/filter-custom/index.vue +72 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/filter-local/index.vue +112 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/filter-mixed/index.vue +142 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/filter-remote/constant.ts +129 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/filter-remote/hooks/useTableData.ts +186 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/filter-remote/index.vue +73 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/group-header/index.vue +86 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/group-header/style.less +3 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/header-height/index.vue +29 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/header-height/style.less +9 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/merge-cells/hooks/useMergeCells.ts +183 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/merge-cells/index.vue +17 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/merge-cells/style.less +3 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/pagination-remote/hooks/usePaginationRemote.ts +106 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/pagination-remote/index.vue +24 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/renderers/index.vue +64 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/selection-checkbox/index.vue +88 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/selection-checkbox/style.less +9 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/selection-radio/index.vue +57 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/selection-radio/style.less +9 -0
- package/template/.cursor/skills/yss-ui/assets/demos/table/transform/index.vue +32 -0
- package/template/.cursor/skills/yss-ui/assets/demos/tree/basic-left/index.vue +124 -0
- package/template/.cursor/skills/yss-ui/assets/demos/tree/datasource-group/index.vue +31 -0
- package/template/.cursor/skills/yss-ui/assets/demos/tree/multi-checkable/index.vue +86 -0
- package/template/.cursor/skills/yss-ui/assets/demos/tree/multiple-select/index.vue +76 -0
- package/template/.cursor/skills/yss-ui/assets/demos/tree/resource-list/index.vue +41 -0
- package/template/.cursor/skills/yss-ui/assets/demos/tree/search-toolbar/index.vue +156 -0
- package/template/.cursor/skills/yss-ui/assets/demos/tree/slot-icon/index.vue +36 -0
- package/template/.cursor/skills/yss-ui/assets/demos/tree/slot-switcher-icon/index.vue +34 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/button.md +79 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/card.md +162 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/conditionBuilder.md +114 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/cron.md +77 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/echarts.md +110 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/editTable.md +212 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/fileImport.md +85 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/formily.md +370 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/monaco.md +369 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/sheet.md +169 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/split-pane.md +45 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/table.md +398 -0
- package/template/.cursor/skills/yss-ui/assets/docs/components/tree.md +102 -0
- package/template/.cursor/skills/yss-ui/assets/docs/guide/gitlab-ci-integration.md +166 -0
- package/template/.cursor/skills/yss-ui/assets/docs/guide/index.md +132 -0
- package/template/.cursor/skills/yss-ui/assets/docs/guide/installation.md +97 -0
- package/template/.cursor/skills/yss-ui/assets/docs/guide/jsp.md +227 -0
- package/template/.cursor/skills/yss-ui/assets/docs/guide/llms.md +295 -0
- package/template/.cursor/skills/yss-ui/assets/docs/guide/monorepo-versioning.md +149 -0
- package/template/.cursor/skills/yss-ui/assets/docs/guide/release-workflow.md +251 -0
- package/template/.cursor/skills/yss-ui/assets/docs/hooks/use-table-height.md +101 -0
- package/template/.cursor/skills/yss-ui/assets/docs/hooks/use-tree-height.md +115 -0
- package/template/.cursor/skills/yss-ui/assets/docs/hooks/useFullscreen.md +130 -0
- package/template/.cursor/skills/yss-ui/assets/docs/hooks/useLoading.md +97 -0
- package/template/.cursor/skills/yss-ui/assets/docs/root/resources.md +18 -0
- package/template/.cursor/skills/yss-ui/assets/keyword-index.json +53 -0
- package/template/.cursor/skills/yss-ui/assets/keyword-index.md +47 -0
- package/template/.cursor/skills/yss-ui/assets/reference-index.json +55 -0
- package/template/.cursor/skills/yss-ui/assets/reference-index.md +74 -0
- package/template/.cursor/skills/yss-ui/assets/scenario-index.json +50 -0
- package/template/.cursor/skills/yss-ui/assets/scenario-index.md +41 -0
- package/template/.cursor/skills/yss-ui/references/accessibility.md +23 -0
- package/template/.cursor/skills/yss-ui/references/antdv-compatibility.md +39 -0
- package/template/.cursor/skills/yss-ui/references/checklist.md +110 -0
- package/template/.cursor/skills/yss-ui/references/component-routing.md +31 -0
- package/template/.cursor/skills/yss-ui/references/frontend-docs.md +11 -0
- package/template/.cursor/skills/yss-ui/references/migration-antdv-to-yss.md +20 -0
- package/template/.cursor/skills/yss-ui/references/quick-recipes.md +280 -0
- package/template/.cursor/skills/yss-ui/references/theme-locale-overlay.md +25 -0
- package/template/.cursor/skills/yss-ui/references/verification.md +20 -0
- package/template/.cursor/skills/yss-up-springboot3/SKILL.md +40 -0
- package/template/.cursor/skills/yss-up-springboot3/agents/openai.yaml +4 -0
- package/template/.cursor/skills/yss-use-table-height/SKILL.md +340 -0
- package/template/.cursor/skills/yss-use-table-height/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-use-table-height/references/frontend-docs.md +9 -0
- package/template/.cursor/skills/yss-use-tree-height/SKILL.md +431 -0
- package/template/.cursor/skills/yss-use-tree-height/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-use-tree-height/references/frontend-docs.md +9 -0
- package/template/.cursor/skills/yss-userinfo/SKILL.md +49 -0
- package/template/.cursor/skills/yss-userinfo/agents/openai.yaml +4 -0
- package/template/{.codex/skills/yss-jdbc → .cursor/skills/yss-userinfo}/references/source-index.md +6 -5
- package/template/.cursor/skills/yss-validation/SKILL.md +56 -0
- package/template/.cursor/skills/yss-validation/agents/openai.yaml +4 -0
- package/template/{.claude/skills/yss-jdbc → .cursor/skills/yss-validation}/references/source-index.md +6 -6
- package/template/.cursor/skills/yss-web-controller/SKILL.md +78 -0
- package/template/.cursor/skills/yss-web-controller/agents/openai.yaml +5 -0
- package/template/.cursor/skills/yss-web-controller/assets/templates/Controller.java.template +73 -0
- package/template/.cursor/skills/yss-web-controller/assets/templates/WebConvertor.java.template +23 -0
- package/template/.cursor/skills/yss-web-controller/assets/templates/domain/dto/cmd/AddCmd.java.template +23 -0
- package/template/.cursor/skills/yss-web-controller/assets/templates/domain/dto/cmd/UpdateCmd.java.template +23 -0
- package/template/.cursor/skills/yss-web-controller/assets/templates/domain/dto/query/PageQuery.java.template +21 -0
- package/template/.cursor/skills/yss-web-controller/assets/templates/domain/vo/VO.java.template +20 -0
- package/template/{.claude/skills/yss-backend-scaffold-web/SKILL.md → .cursor/skills/yss-web-controller/references/web-adapter-layer-guide.md} +0 -7
- package/template/.cursor/skills/yss-web-controller/scripts/generate_controller.mjs +77 -0
- package/template/.cursor/skills/yss-web-controller/scripts/generate_controller.test.mjs +19 -0
- package/template/.hermes/skills/ask-matt/SKILL.md +8 -2
- package/template/.hermes/skills/code-review/SKILL.md +6 -4
- package/template/.hermes/skills/high-fidelity-html-prototype/SKILL.md +1 -1
- package/template/.hermes/skills/implement/SKILL.md +1 -1
- package/template/.hermes/skills/to-spec/SKILL.md +1 -1
- package/template/.hermes/skills/yss-api-integration/SKILL.md +2 -0
- package/template/.hermes/skills/yss-application/SKILL.md +52 -0
- package/template/.hermes/skills/yss-application/agents/openai.yaml +5 -0
- package/template/.hermes/skills/yss-application/references/application-layer-guide.md +132 -0
- package/template/.hermes/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
- package/template/.hermes/skills/yss-domain/SKILL.md +5 -0
- package/template/.hermes/skills/yss-domain/references/domain-layer-guide.md +274 -0
- package/template/.hermes/skills/yss-microapp-commit/SKILL.md +2 -0
- package/template/.hermes/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.hermes/skills/yss-prototype-stage/SKILL.md +1 -1
- package/template/.hermes/skills/yss-repository/SKILL.md +5 -0
- package/template/.hermes/skills/yss-repository/references/infrastructure-layer-guide.md +192 -0
- package/template/.hermes/skills/yss-router/references/boundaries.md +2 -6
- package/template/.hermes/skills/yss-router/references/router-contract.yaml +8 -12
- package/template/.hermes/skills/yss-source-index/references/source-map-config.md +0 -4
- package/template/.hermes/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
- package/template/.hermes/skills/yss-web-controller/SKILL.md +1 -0
- package/template/.hermes/skills/yss-web-controller/references/web-adapter-layer-guide.md +168 -0
- package/template/.pi/skills/ask-matt/SKILL.md +8 -2
- package/template/.pi/skills/code-review/SKILL.md +6 -4
- package/template/.pi/skills/high-fidelity-html-prototype/SKILL.md +1 -1
- package/template/.pi/skills/implement/SKILL.md +1 -1
- package/template/.pi/skills/to-spec/SKILL.md +1 -1
- package/template/.pi/skills/yss-api-integration/SKILL.md +2 -0
- package/template/.pi/skills/yss-application/SKILL.md +52 -0
- package/template/.pi/skills/yss-application/agents/openai.yaml +5 -0
- package/template/.pi/skills/yss-application/references/application-layer-guide.md +132 -0
- package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
- package/template/.pi/skills/yss-domain/SKILL.md +5 -0
- package/template/.pi/skills/yss-domain/references/domain-layer-guide.md +274 -0
- package/template/.pi/skills/yss-microapp-commit/SKILL.md +2 -0
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.pi/skills/yss-prototype-stage/SKILL.md +1 -1
- package/template/.pi/skills/yss-repository/SKILL.md +5 -0
- package/template/.pi/skills/yss-repository/references/infrastructure-layer-guide.md +192 -0
- package/template/.pi/skills/yss-router/references/boundaries.md +2 -6
- package/template/.pi/skills/yss-router/references/router-contract.yaml +8 -12
- package/template/.pi/skills/yss-source-index/references/source-map-config.md +0 -4
- package/template/.pi/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
- package/template/.pi/skills/yss-web-controller/SKILL.md +1 -0
- package/template/.pi/skills/yss-web-controller/references/web-adapter-layer-guide.md +168 -0
- package/template/.qoder/skills/ask-matt/SKILL.md +8 -2
- package/template/.qoder/skills/code-review/SKILL.md +6 -4
- package/template/.qoder/skills/high-fidelity-html-prototype/SKILL.md +1 -1
- package/template/.qoder/skills/implement/SKILL.md +1 -1
- package/template/.qoder/skills/to-spec/SKILL.md +1 -1
- package/template/.qoder/skills/yss-api-integration/SKILL.md +2 -0
- package/template/.qoder/skills/yss-application/SKILL.md +52 -0
- package/template/.qoder/skills/yss-application/agents/openai.yaml +5 -0
- package/template/.qoder/skills/yss-application/references/application-layer-guide.md +132 -0
- package/template/.qoder/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
- package/template/.qoder/skills/yss-domain/SKILL.md +5 -0
- package/template/.qoder/skills/yss-domain/references/domain-layer-guide.md +274 -0
- package/template/.qoder/skills/yss-microapp-commit/SKILL.md +2 -0
- package/template/.qoder/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.qoder/skills/yss-prototype-stage/SKILL.md +1 -1
- package/template/.qoder/skills/yss-repository/SKILL.md +5 -0
- package/template/.qoder/skills/yss-repository/references/infrastructure-layer-guide.md +192 -0
- package/template/.qoder/skills/yss-router/references/boundaries.md +2 -6
- package/template/.qoder/skills/yss-router/references/router-contract.yaml +8 -12
- package/template/.qoder/skills/yss-source-index/references/source-map-config.md +0 -4
- package/template/.qoder/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
- package/template/.qoder/skills/yss-web-controller/SKILL.md +1 -0
- package/template/.qoder/skills/yss-web-controller/references/web-adapter-layer-guide.md +168 -0
- package/template/.trae/skills/ask-matt/SKILL.md +8 -2
- package/template/.trae/skills/code-review/SKILL.md +6 -4
- package/template/.trae/skills/high-fidelity-html-prototype/SKILL.md +1 -1
- package/template/.trae/skills/implement/SKILL.md +1 -1
- package/template/.trae/skills/to-spec/SKILL.md +1 -1
- package/template/.trae/skills/yss-api-integration/SKILL.md +2 -0
- package/template/.trae/skills/yss-application/SKILL.md +52 -0
- package/template/.trae/skills/yss-application/agents/openai.yaml +5 -0
- package/template/.trae/skills/yss-application/references/application-layer-guide.md +132 -0
- package/template/.trae/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
- package/template/.trae/skills/yss-domain/SKILL.md +5 -0
- package/template/.trae/skills/yss-domain/references/domain-layer-guide.md +274 -0
- package/template/.trae/skills/yss-microapp-commit/SKILL.md +2 -0
- package/template/.trae/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.trae/skills/yss-prototype-stage/SKILL.md +1 -1
- package/template/.trae/skills/yss-repository/SKILL.md +5 -0
- package/template/.trae/skills/yss-repository/references/infrastructure-layer-guide.md +192 -0
- package/template/.trae/skills/yss-router/references/boundaries.md +2 -6
- package/template/.trae/skills/yss-router/references/router-contract.yaml +8 -12
- package/template/.trae/skills/yss-source-index/references/source-map-config.md +0 -4
- package/template/.trae/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
- package/template/.trae/skills/yss-web-controller/SKILL.md +1 -0
- package/template/.trae/skills/yss-web-controller/references/web-adapter-layer-guide.md +168 -0
- package/template/AGENTS.md +14 -1
- package/template/CONTEXT.md +1 -3
- package/template/README.md +2 -1
- package/template/docs/agents/README.md +6 -4
- package/template/docs/agents/skills-maintenance.md +3 -1
- package/template/docs/agents/yss-skill-registry.yaml +498 -0
- package/template/docs/architecture/templates/engineering-baseline-review-template.md +2 -2
- package/template/docs/templates/build-architecture-checklist-template.md +5 -5
- package/template/docs/templates/implementation-routing-template.md +5 -5
- package/template/docs/templates/review-report-template.md +3 -3
- package/template/docs/templates/vertical-slice-ticket-template.md +4 -4
- package/template/docs/user-guide//344/272/247/345/223/201/347/240/224/345/217/221/345/205/250/347/224/237/345/221/275/345/221/250/346/234/237/346/234/200/344/275/263/345/256/236/350/267/265.md +2 -1
- package/template/docs/user-guide//347/224/237/345/221/275/345/221/250/346/234/237/346/234/200/344/275/263/345/256/236/350/267/265.md +2 -2
- package/template/scripts/lib/skill-registry.mjs +198 -0
- package/template/scripts/lib/skill-supply-chain.mjs +7 -4
- package/template/scripts/verify-skill-registry +10 -0
- package/template/scripts/verify-template +3 -2
- package/template/skills-lock.json +101 -141
- package/template/yss-public-skills.json +2 -16
- package/template.snapshot.json +4 -4
- package/template/.agents/skills/product-design-prototype/SKILL.md +0 -91
- package/template/.agents/skills/product-design-prototype/agents/openai.yaml +0 -4
- package/template/.agents/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-dictionary/SKILL.md +0 -49
- package/template/.agents/skills/yss-dictionary/agents/openai.yaml +0 -4
- package/template/.agents/skills/yss-dictionary/references/source-index.md +0 -80
- package/template/.agents/skills/yss-jdbc/SKILL.md +0 -73
- package/template/.agents/skills/yss-jdbc/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
- package/template/.agents/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
- package/template/.agents/skills/yss-jdbc/assets/DsParam.java +0 -19
- package/template/.agents/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
- package/template/.agents/skills/yss-jdbc/references/README.md +0 -55
- package/template/.agents/skills/yss-log/SKILL.md +0 -48
- package/template/.agents/skills/yss-log/agents/openai.yaml +0 -4
- package/template/.agents/skills/yss-taskflow/SKILL.md +0 -58
- package/template/.agents/skills/yss-taskflow/agents/openai.yaml +0 -4
- package/template/.agents/skills/yss-taskflow/references/source-index.md +0 -158
- package/template/.claude/skills/product-design-prototype/SKILL.md +0 -91
- package/template/.claude/skills/product-design-prototype/agents/openai.yaml +0 -4
- package/template/.claude/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
- package/template/.claude/skills/yss-dictionary/SKILL.md +0 -49
- package/template/.claude/skills/yss-dictionary/agents/openai.yaml +0 -4
- package/template/.claude/skills/yss-dictionary/references/source-index.md +0 -80
- package/template/.claude/skills/yss-jdbc/SKILL.md +0 -73
- package/template/.claude/skills/yss-jdbc/agents/openai.yaml +0 -5
- package/template/.claude/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
- package/template/.claude/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
- package/template/.claude/skills/yss-jdbc/assets/DsParam.java +0 -19
- package/template/.claude/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
- package/template/.claude/skills/yss-jdbc/references/README.md +0 -55
- package/template/.claude/skills/yss-log/SKILL.md +0 -48
- package/template/.claude/skills/yss-log/agents/openai.yaml +0 -4
- package/template/.claude/skills/yss-log/references/source-index.md +0 -34
- package/template/.claude/skills/yss-taskflow/SKILL.md +0 -58
- package/template/.claude/skills/yss-taskflow/agents/openai.yaml +0 -4
- package/template/.claude/skills/yss-taskflow/references/source-index.md +0 -158
- package/template/.codex/skills/product-design-prototype/SKILL.md +0 -91
- package/template/.codex/skills/product-design-prototype/agents/openai.yaml +0 -4
- package/template/.codex/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-dictionary/SKILL.md +0 -49
- package/template/.codex/skills/yss-dictionary/agents/openai.yaml +0 -4
- package/template/.codex/skills/yss-dictionary/references/source-index.md +0 -80
- package/template/.codex/skills/yss-jdbc/SKILL.md +0 -73
- package/template/.codex/skills/yss-jdbc/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
- package/template/.codex/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
- package/template/.codex/skills/yss-jdbc/assets/DsParam.java +0 -19
- package/template/.codex/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
- package/template/.codex/skills/yss-jdbc/references/README.md +0 -55
- package/template/.codex/skills/yss-log/SKILL.md +0 -48
- package/template/.codex/skills/yss-log/agents/openai.yaml +0 -4
- package/template/.codex/skills/yss-log/references/source-index.md +0 -34
- package/template/.codex/skills/yss-taskflow/SKILL.md +0 -58
- package/template/.codex/skills/yss-taskflow/agents/openai.yaml +0 -4
- package/template/.codex/skills/yss-taskflow/references/source-index.md +0 -158
- package/template/.hermes/skills/product-design-prototype/SKILL.md +0 -91
- package/template/.hermes/skills/product-design-prototype/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-dictionary/SKILL.md +0 -49
- package/template/.hermes/skills/yss-dictionary/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-dictionary/references/source-index.md +0 -80
- package/template/.hermes/skills/yss-jdbc/SKILL.md +0 -73
- package/template/.hermes/skills/yss-jdbc/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
- package/template/.hermes/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
- package/template/.hermes/skills/yss-jdbc/assets/DsParam.java +0 -19
- package/template/.hermes/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
- package/template/.hermes/skills/yss-jdbc/references/README.md +0 -55
- package/template/.hermes/skills/yss-log/SKILL.md +0 -48
- package/template/.hermes/skills/yss-log/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-log/references/source-index.md +0 -34
- package/template/.hermes/skills/yss-taskflow/SKILL.md +0 -58
- package/template/.hermes/skills/yss-taskflow/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-taskflow/references/source-index.md +0 -158
- package/template/.pi/skills/product-design-prototype/SKILL.md +0 -91
- package/template/.pi/skills/product-design-prototype/agents/openai.yaml +0 -4
- package/template/.pi/skills/yss-backend-scaffold-application/SKILL.md +0 -139
- package/template/.pi/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-backend-scaffold-domain/SKILL.md +0 -281
- package/template/.pi/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-backend-scaffold-infrastructure/SKILL.md +0 -199
- package/template/.pi/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-backend-scaffold-web/SKILL.md +0 -175
- package/template/.pi/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-dictionary/SKILL.md +0 -49
- package/template/.pi/skills/yss-dictionary/agents/openai.yaml +0 -4
- package/template/.pi/skills/yss-dictionary/references/source-index.md +0 -80
- package/template/.pi/skills/yss-jdbc/SKILL.md +0 -73
- package/template/.pi/skills/yss-jdbc/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
- package/template/.pi/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
- package/template/.pi/skills/yss-jdbc/assets/DsParam.java +0 -19
- package/template/.pi/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
- package/template/.pi/skills/yss-jdbc/references/README.md +0 -55
- package/template/.pi/skills/yss-jdbc/references/source-index.md +0 -33
- package/template/.pi/skills/yss-log/SKILL.md +0 -48
- package/template/.pi/skills/yss-log/agents/openai.yaml +0 -4
- package/template/.pi/skills/yss-log/references/source-index.md +0 -34
- package/template/.pi/skills/yss-taskflow/SKILL.md +0 -58
- package/template/.pi/skills/yss-taskflow/agents/openai.yaml +0 -4
- package/template/.pi/skills/yss-taskflow/references/source-index.md +0 -158
- package/template/.qoder/skills/product-design-prototype/SKILL.md +0 -91
- package/template/.qoder/skills/product-design-prototype/agents/openai.yaml +0 -4
- package/template/.qoder/skills/yss-backend-scaffold-application/SKILL.md +0 -139
- package/template/.qoder/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
- package/template/.qoder/skills/yss-backend-scaffold-domain/SKILL.md +0 -281
- package/template/.qoder/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
- package/template/.qoder/skills/yss-backend-scaffold-infrastructure/SKILL.md +0 -199
- package/template/.qoder/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
- package/template/.qoder/skills/yss-backend-scaffold-web/SKILL.md +0 -175
- package/template/.qoder/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
- package/template/.qoder/skills/yss-dictionary/SKILL.md +0 -49
- package/template/.qoder/skills/yss-dictionary/agents/openai.yaml +0 -4
- package/template/.qoder/skills/yss-dictionary/references/source-index.md +0 -80
- package/template/.qoder/skills/yss-jdbc/SKILL.md +0 -73
- package/template/.qoder/skills/yss-jdbc/agents/openai.yaml +0 -5
- package/template/.qoder/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
- package/template/.qoder/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
- package/template/.qoder/skills/yss-jdbc/assets/DsParam.java +0 -19
- package/template/.qoder/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
- package/template/.qoder/skills/yss-jdbc/references/README.md +0 -55
- package/template/.qoder/skills/yss-jdbc/references/source-index.md +0 -33
- package/template/.qoder/skills/yss-log/SKILL.md +0 -48
- package/template/.qoder/skills/yss-log/agents/openai.yaml +0 -4
- package/template/.qoder/skills/yss-log/references/source-index.md +0 -34
- package/template/.qoder/skills/yss-taskflow/SKILL.md +0 -58
- package/template/.qoder/skills/yss-taskflow/agents/openai.yaml +0 -4
- package/template/.qoder/skills/yss-taskflow/references/source-index.md +0 -158
- package/template/.trae/skills/product-design-prototype/SKILL.md +0 -91
- package/template/.trae/skills/product-design-prototype/agents/openai.yaml +0 -4
- package/template/.trae/skills/yss-backend-scaffold-application/SKILL.md +0 -139
- package/template/.trae/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
- package/template/.trae/skills/yss-backend-scaffold-domain/SKILL.md +0 -281
- package/template/.trae/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
- package/template/.trae/skills/yss-backend-scaffold-infrastructure/SKILL.md +0 -199
- package/template/.trae/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
- package/template/.trae/skills/yss-backend-scaffold-web/SKILL.md +0 -175
- package/template/.trae/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
- package/template/.trae/skills/yss-dictionary/SKILL.md +0 -49
- package/template/.trae/skills/yss-dictionary/agents/openai.yaml +0 -4
- package/template/.trae/skills/yss-dictionary/references/source-index.md +0 -80
- package/template/.trae/skills/yss-jdbc/SKILL.md +0 -73
- package/template/.trae/skills/yss-jdbc/agents/openai.yaml +0 -5
- package/template/.trae/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
- package/template/.trae/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
- package/template/.trae/skills/yss-jdbc/assets/DsParam.java +0 -19
- package/template/.trae/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
- package/template/.trae/skills/yss-jdbc/references/README.md +0 -55
- package/template/.trae/skills/yss-jdbc/references/source-index.md +0 -33
- package/template/.trae/skills/yss-log/SKILL.md +0 -48
- package/template/.trae/skills/yss-log/agents/openai.yaml +0 -4
- package/template/.trae/skills/yss-log/references/source-index.md +0 -34
- package/template/.trae/skills/yss-taskflow/SKILL.md +0 -58
- package/template/.trae/skills/yss-taskflow/agents/openai.yaml +0 -4
- package/template/.trae/skills/yss-taskflow/references/source-index.md +0 -158
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
---
|
|
2
|
+
toc: content
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Y-Table 表格
|
|
6
|
+
|
|
7
|
+
基于 `vxe-table 4.17.41` 版本封装的 Vue3 表格组件,采用 Composition API 重构,支持现代化的开发体验。
|
|
8
|
+
|
|
9
|
+
## 特性
|
|
10
|
+
|
|
11
|
+
- 🚀 **Vue3 原生支持** - 使用 Composition API 和 `<script setup>` 语法
|
|
12
|
+
- 💪 **TypeScript 友好** - 完整的类型定义和智能提示
|
|
13
|
+
- 🎨 **高度可定制** - 支持插槽、渲染器等多种自定义方式
|
|
14
|
+
- ⚡ **性能优化** - 基于 vxe-table 4.17.41 的虚拟滚动和性能优化
|
|
15
|
+
- 🛠 **企业级功能** - 支持编辑、筛选、排序、拖拽等企业级功能
|
|
16
|
+
|
|
17
|
+
## 代码演示
|
|
18
|
+
|
|
19
|
+
### 基础用法
|
|
20
|
+
|
|
21
|
+
<code id="demo-table-basic" src="./demos/table/basic/index.vue" title="工具栏左右按钮 + 操作列自定义更多图标"></code>
|
|
22
|
+
|
|
23
|
+
### 大数据量+自定义筛选(虚拟列表)
|
|
24
|
+
|
|
25
|
+
<code id="demo-table-column-custom-search" src="./demos/table/column-custom-search/index.vue"></code>
|
|
26
|
+
|
|
27
|
+
### 远程分页
|
|
28
|
+
<code id="demo-table-pagination-remote" src="./demos/table/pagination-remote/index.vue"></code>
|
|
29
|
+
|
|
30
|
+
### 操作列(更多/隐藏/二次确认)
|
|
31
|
+
|
|
32
|
+
<code id="demo-table-action" src="./demos/table/action/index.vue"></code>
|
|
33
|
+
|
|
34
|
+
### 操作列权限按钮(隐藏/禁用)(localStorage)
|
|
35
|
+
|
|
36
|
+
<code id="demo-table-action-auth" src="./demos/table/action-auth/index.vue"></code>
|
|
37
|
+
|
|
38
|
+
### 自定义操作列(插槽方式)
|
|
39
|
+
|
|
40
|
+
<code id="demo-table-action-slot" src="./demos/table/action-slot/index.vue"></code>
|
|
41
|
+
|
|
42
|
+
### 行拖拽排序
|
|
43
|
+
|
|
44
|
+
<code id="demo-table-drag" src="./demos/table/drag/index.vue"></code>
|
|
45
|
+
|
|
46
|
+
### 字典翻译列
|
|
47
|
+
|
|
48
|
+
<code id="demo-table-transform" src="./demos/table/transform/index.vue"></code>
|
|
49
|
+
|
|
50
|
+
### 筛选能力
|
|
51
|
+
|
|
52
|
+
<code id="demo-table-filter-remote" src="./demos/table/filter-remote/index.vue" title="后端筛选(监听 filter-change)"></code>
|
|
53
|
+
|
|
54
|
+
<code id="demo-table-filter-local" src="./demos/table/filter-local/index.vue" title="本地筛选(filterMethod)"></code>
|
|
55
|
+
|
|
56
|
+
<code id="demo-table-filter-custom" src="./demos/table/filter-custom/index.vue" title="自定义筛选渲染(输入框)"></code>
|
|
57
|
+
|
|
58
|
+
<code id="demo-table-filter-mixed" src="./demos/table/filter-mixed/index.vue" title="组合筛选:每列不同类型"></code>
|
|
59
|
+
|
|
60
|
+
<code id="demo-table-filter-async" src="./demos/table/filter-async/index.vue" title="接口返回列 filters(异步)"></code>
|
|
61
|
+
|
|
62
|
+
<code id="demo-table-filter-auto" src="./demos/table/filter-auto/index.vue" title="自动匹配:按列类型渲染筛选 UI"></code>
|
|
63
|
+
|
|
64
|
+
### 展开行(占位示例)
|
|
65
|
+
|
|
66
|
+
<code id="demo-table-expand" src="./demos/table/expand/index.vue"></code>
|
|
67
|
+
|
|
68
|
+
### 操作列触发行展开
|
|
69
|
+
|
|
70
|
+
<code id="demo-table-action-expand" src="./demos/table/expand/action-expand.vue"></code>
|
|
71
|
+
|
|
72
|
+
### 表头插槽(推荐)
|
|
73
|
+
|
|
74
|
+
<code id="demo-table-renderers" src="./demos/table/renderers/index.vue"></code>
|
|
75
|
+
|
|
76
|
+
### 分组表头
|
|
77
|
+
|
|
78
|
+
<code id="demo-table-group-header" src="./demos/table/group-header/index.vue"></code>
|
|
79
|
+
|
|
80
|
+
### 表头行高(headerHeight)
|
|
81
|
+
|
|
82
|
+
<code id="demo-table-header-height" src="./demos/table/header-height/index.vue"></code>
|
|
83
|
+
|
|
84
|
+
### 行选择与高亮
|
|
85
|
+
<code id="demo-table-selection-checkbox" src="./demos/table/selection-checkbox/index.vue" title="复选框:按钮控制+高亮"></code>
|
|
86
|
+
<code id="demo-table-selection-radio" src="./demos/table/selection-radio/index.vue" title="单选:API 控制+高亮"></code>
|
|
87
|
+
|
|
88
|
+
### 合并单元格
|
|
89
|
+
|
|
90
|
+
支持透传 `spanMethod` 到内置的 `vxe-table`,可实现复杂的跨行/跨列合并逻辑:
|
|
91
|
+
|
|
92
|
+
<code id="demo-table-merge-cells" src="./demos/table/merge-cells/index.vue"></code>
|
|
93
|
+
|
|
94
|
+
## API
|
|
95
|
+
|
|
96
|
+
### Props
|
|
97
|
+
|
|
98
|
+
> **说明**:YTable 完整继承 vxe-table 的所有 props,以下仅列出 **YTable 特有属性** 和 **有默认值覆盖的属性**。其他 vxe-table 原生属性请参考 <a href="https://vxetable.cn/#/table/api" target="_blank" rel="noopener noreferrer">vxe-table 官方文档</a>。
|
|
99
|
+
|
|
100
|
+
#### YTable 特有属性
|
|
101
|
+
|
|
102
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
103
|
+
| --- | --- | --- | --- |
|
|
104
|
+
| columns | `YTableColumn[]` | `[]` | 列配置,详见下方 `YTableColumn` 说明 |
|
|
105
|
+
| showActionColumn | `boolean` | `true` | 是否显示操作列(配合 `actionConfig` 使用) |
|
|
106
|
+
| actionConfig | `YTableActionConfig` | `{ buttons: [] }` | 操作列配置,详见下方 `YTableActionConfig` 说明 |
|
|
107
|
+
| autoFlexColumn | `boolean` | `true` | 是否自动为最后一列添加弹性宽度以填充剩余空间 |
|
|
108
|
+
| rowDragable | `boolean` | `false` | 是否开启行拖拽排序 |
|
|
109
|
+
| showDragHandle | `boolean` | `true` | 是否显示拖拽把手列(仅在 `rowDragable=true` 时生效) |
|
|
110
|
+
| dragHandleWidth | `number \| string` | `46` | 拖拽把手列的宽度 |
|
|
111
|
+
| pageable | `boolean` | `false` | 是否启用内部分页(基于 Ant Design Vue Pagination) |
|
|
112
|
+
| pagination | `YTablePagination` | 见下方默认值 | 分页配置,详见下方 `YTablePagination` 说明 |
|
|
113
|
+
| optionsMap | `Record<string, any[]>` | `{}` | 字典数据映射,用于字典翻译列的数据源 |
|
|
114
|
+
| toolbar-config | `{ custom?: boolean }` | `{ custom: false }` | 工具栏配置,开启 `custom` 后显示列设置按钮 |
|
|
115
|
+
| toolbarSize | `'mini' \| 'small' \| 'medium' \| 'large'` | `'medium'` | 仅控制工具栏尺寸,与表格的 `size` 独立 |
|
|
116
|
+
| toolbarTools | `any[]` | - | 追加到 `vxe-toolbar` 的 tools |
|
|
117
|
+
| headerHeight | `number` | - | 表头行高(px),仅影响表头,不影响数据行 |
|
|
118
|
+
|
|
119
|
+
#### 继承自 vxe-table(有默认值覆盖)
|
|
120
|
+
|
|
121
|
+
以下属性继承自 vxe-table,但 YTable 提供了不同的默认值:
|
|
122
|
+
|
|
123
|
+
| 属性 | 类型 | YTable 默认值 | 说明 |
|
|
124
|
+
| --- | --- | --- | --- |
|
|
125
|
+
| size | `'mini' \| 'small' \| 'medium' \| 'large'` | `'small'` | 表格尺寸(vxe-table 默认 `medium`) |
|
|
126
|
+
| border | `boolean \| 'default' \| 'full' \| 'none'` | `true` | 表格边框风格 |
|
|
127
|
+
| showOverflow | `boolean \| 'ellipsis' \| 'title' \| 'tooltip'` | `'tooltip'` | 单元格内容溢出时的显示方式 |
|
|
128
|
+
| showHeaderOverflow | `boolean \| 'ellipsis' \| 'title' \| 'tooltip'` | `'tooltip'` | 表头内容溢出时的显示方式 |
|
|
129
|
+
| rowConfig | `Record<string, any>` | `{ keyField: '_X_ROW_KEY', useKey: true, isCurrent: true, isHover: true }` | 行配置。**默认启用行悬浮和当前行高亮**,可通过 `{ isCurrent: false, isHover: false }` 关闭 |
|
|
130
|
+
| cellConfig | `Record<string, any>` | `{ height: 36 }` | 单元格配置,内置行高 |
|
|
131
|
+
| columnConfig | `Record<string, any>` | `{ resizable: true, useKey: true }` | 列配置,默认开启列宽拖拽 |
|
|
132
|
+
| virtualXConfig | `Record<string, any>` | `{ enabled: true, gt: 50 }` | **智能横向虚拟滚动**:超过 50 列自动启用 |
|
|
133
|
+
| virtualYConfig | `Record<string, any>` | `{ enabled: true, gt: 200 }` | **智能纵向虚拟滚动**:超过 200 行自动启用 |
|
|
134
|
+
| customConfig | `Record<string, any>` | `{}` | 若未传且提供了 `id`,自动启用本地存储 |
|
|
135
|
+
|
|
136
|
+
**关于 `autoFlexColumn`**:
|
|
137
|
+
|
|
138
|
+
- **`true`**(默认):自动为最后一列添加弹性宽度,填充剩余空间。适合大多数场景,表格会自动占满容器宽度。
|
|
139
|
+
- **`false`**:所有列严格按照 `width` 或 `minWidth` 显示,不会自动填充。适合需要精确控制每列宽度的场景。
|
|
140
|
+
|
|
141
|
+
**示例**:
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
<!-- 场景 1:默认行为 - 自动填充 -->
|
|
145
|
+
<YTable :columns="columns" :data="data" />
|
|
146
|
+
|
|
147
|
+
<!-- 场景 2:精确控制列宽 - 不自动填充 -->
|
|
148
|
+
<YTable
|
|
149
|
+
:columns="columns"
|
|
150
|
+
:data="data"
|
|
151
|
+
:auto-flex-column="false"
|
|
152
|
+
/>
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**常见问题**:
|
|
156
|
+
|
|
157
|
+
- 如果发现最后一列宽度设置不生效,很可能是 `autoFlexColumn=true` 导致的,可以设置为 `false` 解决。
|
|
158
|
+
- 如果表格右侧出现大量空白,可能是 `autoFlexColumn=false` 且所有列宽度之和小于容器宽度,可以增加某列的 `minWidth` 或设置 `autoFlexColumn=true`。
|
|
159
|
+
|
|
160
|
+
提示:若仅开启 `filterable` 而不提供 `filters`,组件不会再注入空数组,避免渲染抖动;如需内置筛选,请提供稳定引用的 `filters` 数组。
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
### 插槽说明
|
|
165
|
+
|
|
166
|
+
插槽支持如下几类(在 HTML/JSP 等 DOM 模板中请一律使用 kebab-case):
|
|
167
|
+
|
|
168
|
+
- **单元格内容(推荐)**:按列字段命名 `#<field>`(如 `#name`),仅作用于该列。
|
|
169
|
+
- **表头(推荐)**:`#<field>-header`(如 `#name-header`)优先于全局 `#header`。兼容旧写法 `#<field>Header`。
|
|
170
|
+
- **筛选面板**:按列字段命名 `#<field>-filter`(如 `#name-filter`),或全局 `#filter`;当某列未提供前者时会回退使用全局插槽。兼容旧写法 `#<field>Filter`。
|
|
171
|
+
- **展开行内容**:`#expand-row` / `#expandRow`,用于自定义展开行的内容。需配合列配置 `type: 'expand'` 使用。作用域参数包含 `row`(当前行数据)、`rowIndex`(行索引)等。
|
|
172
|
+
- **分组表头**:`#group-header` / `#groupHeader`,用于自定义分组表头的内容。仅在列配置包含 `children` 时生效。作用域参数包含 `column`(列配置)等。
|
|
173
|
+
- **工具栏**:`#toolbar-left`、`#toolbar-right` 分别位于 vxe-toolbar 左/右侧,便于在“列设置”按钮旁放置自定义操作。兼容旧写法 `#toolbarLeft`/`#toolbarRight`。
|
|
174
|
+
- **操作列“更多”图标**:`#action-more-icon` / `#actionMoreIcon` 更换收纳触发图标(适用于所有操作列)。
|
|
175
|
+
|
|
176
|
+
**提示**:DOM 模板(如 JSP、原生 HTML 模板)会将属性名统一转为小写,`#toolbarLeft` 会变为 `#toolbarleft` 导致匹配失败。因此我们统一推荐使用中划线(kebab-case)插槽名;为兼容历史代码,组件内部同时支持 camelCase,但后续将逐步以 kebab-case 为规范。
|
|
177
|
+
|
|
178
|
+
### 列配置 YTableColumn
|
|
179
|
+
|
|
180
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
181
|
+
| --- | --- | --- | --- |
|
|
182
|
+
| field | `string` | - | 列对应字段名 |
|
|
183
|
+
| title | `string` | - | 列标题 |
|
|
184
|
+
| width | `number \| string` | - | 列宽度。设置固定宽度后,列宽不会自动伸缩 |
|
|
185
|
+
| minWidth | `number \| string` | - | 最小列宽。当未设置 `width` 时生效,列宽会根据内容和剩余空间自动分配,但不会小于此值 |
|
|
186
|
+
| align | `'left' \| 'center' \| 'right'` | - | 内容对齐方式(同时作用于表头和单元格) |
|
|
187
|
+
| headerAlign | `'left' \| 'center' \| 'right'` | - | 表头对齐方式(优先级高于 `align`,仅作用于表头;分组表头同样生效) |
|
|
188
|
+
| type | `'seq' \| 'radio' \| 'checkbox' \| 'expand' \| 'drag' \| 'action'` | - | 特殊列类型。`seq`=序号列,`action`=操作列(组件自定义类型) |
|
|
189
|
+
| fixed | `'left' \| 'right'` | - | 固定列位置 |
|
|
190
|
+
| resizable | `boolean` | `true` (继承自 `columnConfig`) | 是否允许用户拖拽调整列宽 |
|
|
191
|
+
| sortable | `boolean` | - | 是否可排序 |
|
|
192
|
+
| filterable | `boolean` | - | 是否启用筛选功能(配合 `filters` 使用) |
|
|
193
|
+
| filters | `any[]` | - | 筛选配置数组,与 vxe-table 对齐。例如:`[{ label: '选项1', value: 1 }]` |
|
|
194
|
+
| filterMethod | `(params: any) => boolean` | - | 筛选方法。**本地筛选**:定义筛选逻辑,返回 `true` 表示该行通过筛选;**远程筛选**:返回 `() => true` 禁用本地筛选,数据由后端返回。参数包含 `value`、`option`、`row`、`cellValue` 等 |
|
|
195
|
+
| filterMultiple | `boolean` | `true` | 筛选是否支持多选 |
|
|
196
|
+
| formatter | `(params: any) => string \| number` | - | 单元格内容格式化函数,与 vxe-table 对齐 |
|
|
197
|
+
| isTransform | `boolean` | - | 是否启用字典翻译显示(配合 `optionsMap` 使用) |
|
|
198
|
+
| props | `Record<string, any>` | - | 扩展配置对象,如字典翻译的 `fieldNames: { label: 'name', value: 'id' }` |
|
|
199
|
+
| actionConfig | `YTableActionConfig` | - | 当 `type='action'` 时的列级操作配置(优先级高于顶层 `actionConfig`) |
|
|
200
|
+
| children | `YTableColumn[]` | - | 分组表头:子列配置(仅叶子列会渲染为实际列) |
|
|
201
|
+
|
|
202
|
+
> **提示**:
|
|
203
|
+
> - 当 `filterable=true` 时,如不需要内置筛选 UI,可直接省略 `filters`;如需远程筛选,请监听 `filter-change` 事件并更新数据源。
|
|
204
|
+
> - **远程筛选关键**:设置 `filterMethod: () => true` 禁用本地筛选,让数据直接显示(vxe-table 默认会对数据进行本地过滤,即使数据已从后端获取)。
|
|
205
|
+
> - `width` 与 `minWidth` 的区别:`width` 是固定宽度,`minWidth` 是弹性宽度(会根据剩余空间自动分配)。
|
|
206
|
+
> - 如需禁止某列调整宽度,设置 `resizable: false`。
|
|
207
|
+
|
|
208
|
+
**筛选使用示例**:
|
|
209
|
+
|
|
210
|
+
```typescript
|
|
211
|
+
// 本地筛选(前端过滤)
|
|
212
|
+
{
|
|
213
|
+
field: 'name',
|
|
214
|
+
filterable: true,
|
|
215
|
+
filters: [{ data: '' }],
|
|
216
|
+
filterMethod: ({ option, cellValue }) => {
|
|
217
|
+
const keyword = String(option?.data || '').trim();
|
|
218
|
+
if (!keyword) return true;
|
|
219
|
+
return String(cellValue || '').includes(keyword);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// 远程筛选(后端接口)
|
|
224
|
+
{
|
|
225
|
+
field: 'name',
|
|
226
|
+
filterable: true,
|
|
227
|
+
filters: [{ data: '' }],
|
|
228
|
+
// ✅ 关键:返回 true 禁用本地筛选,数据由后端返回
|
|
229
|
+
filterMethod: () => true,
|
|
230
|
+
}
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### 分页 YTablePagination
|
|
235
|
+
|
|
236
|
+
YTable 的分页基于 Ant Design Vue 的 `Pagination` 组件,**支持几乎所有 AntD Pagination 的 API**(通过 `v-bind` 透传)。
|
|
237
|
+
|
|
238
|
+
**类型继承与扩展**:
|
|
239
|
+
- 继承自 `ant-design-vue@^4` 的 `PaginationProps`。
|
|
240
|
+
- **移除了事件类 props**:`onChange`、`onShowSizeChange`、`onUpdate:current`、`onUpdate:pageSize`(请使用组件事件 `page-change`、`size-change`、`update:pagination`)。
|
|
241
|
+
- **扩展属性**:`remote?: boolean` 用于声明是否远程分页。
|
|
242
|
+
- **类型收窄**:`showQuickJumper` 仅支持 `boolean`(AntD 原生支持对象配置,我们简化为布尔值)。
|
|
243
|
+
- **类型扩展**:`pageSizeOptions` 支持 `(number | string)[]`(更灵活)。
|
|
244
|
+
|
|
245
|
+
**常用属性**:
|
|
246
|
+
|
|
247
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
248
|
+
| --- | --- | --- | --- |
|
|
249
|
+
| current | `number` | 1 | 当前页码 |
|
|
250
|
+
| pageSize | `number` | 20 | 每页条数 |
|
|
251
|
+
| total | `number` | 0 | 数据总数(`remote=true` 时由外部传入;`remote=false` 时组件自动计算) |
|
|
252
|
+
| remote | `boolean` | 自动推断 | 是否远程分页。未显式设置时:若 `total>0` 自动视为远程分页(不对数据做前端 `slice`) |
|
|
253
|
+
| size | `'small' \| 'default'` | `'small'` | 分页器尺寸 |
|
|
254
|
+
| showSizeChanger | `boolean` | `true` | 是否显示每页条数切换器 |
|
|
255
|
+
| showQuickJumper | `boolean` | `true` | 是否显示快速跳转输入框 |
|
|
256
|
+
| pageSizeOptions | `(number \| string)[]` | `['20','50','100','200']` | 每页条数选项列表 |
|
|
257
|
+
| showTotal | `(total, range) => string` | `(t) => \`共 ${t} 条\`` | 自定义总数展示函数 |
|
|
258
|
+
| disabled | `boolean` | `false` | 是否禁用分页 |
|
|
259
|
+
| hideOnSinglePage | `boolean` | `false` | 只有一页时是否隐藏分页器 |
|
|
260
|
+
| simple | `boolean` | `false` | 是否使用简单模式 |
|
|
261
|
+
| responsive | `boolean` | `false` | 是否响应式显示(窄屏幕时自动收缩) |
|
|
262
|
+
| showLessItems | `boolean` | `false` | 是否显示较少的页码 |
|
|
263
|
+
| itemRender | `Function` | - | 自定义分页项渲染函数 |
|
|
264
|
+
|
|
265
|
+
**透传支持**:
|
|
266
|
+
|
|
267
|
+
除上述常用属性外,YTable 通过 `v-bind="innerPagination"` 将分页配置透传给 AntD Pagination,因此 **Ant Design Vue Pagination 的其他所有属性均可使用**(除了已移除的事件类 props)。
|
|
268
|
+
|
|
269
|
+
分页配置支持"部分传入",组件会基于默认值进行合并(如仅传 `{ remote: true }`)。
|
|
270
|
+
|
|
271
|
+
**使用示例**:
|
|
272
|
+
```
|
|
273
|
+
<YTable
|
|
274
|
+
:data="tableData"
|
|
275
|
+
:columns="columns"
|
|
276
|
+
pageable
|
|
277
|
+
:pagination="{
|
|
278
|
+
current: 1,
|
|
279
|
+
pageSize: 20,
|
|
280
|
+
total: 100,
|
|
281
|
+
remote: true, // 远程分页
|
|
282
|
+
simple: false, // 完整模式
|
|
283
|
+
responsive: true, // 响应式
|
|
284
|
+
showTotal: (total) => `共 ${total} 条记录`,
|
|
285
|
+
}"
|
|
286
|
+
@page-change="handlePageChange"
|
|
287
|
+
/>
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
### 操作列配置 YTableActionConfig
|
|
291
|
+
|
|
292
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
293
|
+
| --- | --- | --- | --- |
|
|
294
|
+
| title | `string` | 操作 | 列标题 |
|
|
295
|
+
| width | `number` | 120 | 列宽 |
|
|
296
|
+
| align | `'left' \| 'center' \| 'right'` | center | 对齐方式 |
|
|
297
|
+
| fixed | `'left' \| 'right'` | right | 固定方向 |
|
|
298
|
+
| displayLimit | `number` | 3 | 直显按钮个数,超出收纳到"更多" |
|
|
299
|
+
| moreRenderType | `'ellipsis' \| 'moreButton'` | moreButton | 更多展现形式:`ellipsis` 显示省略号图标,`moreButton` 显示"更多"文字按钮 |
|
|
300
|
+
| buttons | `ActionButtonConfig[]` | [] | 按钮配置数组 |
|
|
301
|
+
|
|
302
|
+
### 操作按钮配置 ActionButtonConfig
|
|
303
|
+
|
|
304
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
305
|
+
| --- | --- | --- | --- |
|
|
306
|
+
| key | `string` | - | 按钮唯一标识(必填) |
|
|
307
|
+
| text | `string` | - | 按钮文案(必填) |
|
|
308
|
+
| type | `'text' \| 'link' \| 'primary' \| 'default'` | `text` | 按钮风格 |
|
|
309
|
+
| permissionCode | `string` | - | 权限码,传入后会根据权限控制按钮显示/禁用 |
|
|
310
|
+
| fallback | `'hide' \| 'disable'` | `hide` | 无权限时的处理方式:`hide` 隐藏按钮,`disable` 禁用按钮 |
|
|
311
|
+
| hideFn | `(scope) => boolean` | - | 动态控制按钮是否隐藏,返回 `true` 则隐藏。`scope` 包含 `{ row, rowIndex, column }` |
|
|
312
|
+
| disabledFn | `(scope) => boolean` | - | 动态控制按钮是否禁用,返回 `true` 则禁用。`scope` 包含 `{ row, rowIndex, column }` |
|
|
313
|
+
| isConfirm | `boolean` | `false` | 是否启用二次确认(点击时弹出确认框) |
|
|
314
|
+
| confirmProps | `object` | - | 二次确认配置,详见下方 |
|
|
315
|
+
| clickFn | `(scope, btn, helpers) => void \| Promise<void>` | - | 按钮点击回调函数,详见下方 |
|
|
316
|
+
|
|
317
|
+
**confirmProps 配置**:
|
|
318
|
+
|
|
319
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
320
|
+
| --- | --- | --- | --- |
|
|
321
|
+
| title | `string` | `确定要执行此操作吗?` | 确认框标题 |
|
|
322
|
+
| okText | `string` | `确定` | 确认按钮文字 |
|
|
323
|
+
| cancelText | `string` | `取消` | 取消按钮文字 |
|
|
324
|
+
| needLoading | `boolean` | `false` | 是否在确认后显示 loading 状态(需配合 `clickFn` 中的 `helpers.hideLoading()` 手动关闭) |
|
|
325
|
+
| popProps | `Record<string, any>` | - | 透传给 `Popconfirm` 的其他属性(如 `placement`、`icon` 等) |
|
|
326
|
+
|
|
327
|
+
**clickFn 回调参数**:
|
|
328
|
+
|
|
329
|
+
```typescript
|
|
330
|
+
clickFn?: (scope, btn, helpers) => void | Promise<void>
|
|
331
|
+
|
|
332
|
+
// scope: { row, rowIndex, column } - 当前行数据、行索引、列配置
|
|
333
|
+
// btn: ActionButtonConfig - 当前按钮配置
|
|
334
|
+
// helpers: {
|
|
335
|
+
// close: () => void // 关闭确认框(仅 isConfirm=true 时有效)
|
|
336
|
+
// hideLoading: () => void // 关闭 loading 状态(仅 needLoading=true 时有效)
|
|
337
|
+
// }
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### 事件
|
|
341
|
+
|
|
342
|
+
| 事件名 | 回调参数 | 说明 |
|
|
343
|
+
| --- | --- | --- |
|
|
344
|
+
| current-row-change | `params` | 当前行变更(vxe-table 原生事件) |
|
|
345
|
+
| current-change | `params` | 兼容旧事件,等同 `current-row-change` |
|
|
346
|
+
| cell-click | `params` | 单元格点击(vxe-table 原生事件) |
|
|
347
|
+
| edit-closed | `params` | 关闭编辑(vxe-table 原生事件) |
|
|
348
|
+
| edit-activated | `params` | 激活编辑(vxe-table 原生事件) |
|
|
349
|
+
| filter-change | `params: { column, values, datas, ... }` | 筛选条件变化。`column` 为触发筛选的列配置,`values` 为选中的值列表(多选筛选),`datas` 为自定义筛选的数据(如输入框内容)。详见下方说明 |
|
|
350
|
+
| page-change | `{ current: number, pageSize: number }` | 分页变化(页码或每页条数改变时触发) |
|
|
351
|
+
| size-change | `pageSize: number` | 每页条数变化 |
|
|
352
|
+
| update:pagination | `pagination: YTablePagination` | 受控分页同步(用于 `v-model:pagination`) |
|
|
353
|
+
| update:data | `data: any[]` | 受控数据同步(用于 `v-model:data`,行拖拽时触发) |
|
|
354
|
+
| row-dragend | `data: any[]` | 行拖拽结束,参数为拖拽后的完整数据数组 |
|
|
355
|
+
|
|
356
|
+
**`filter-change` 事件参数详解**:
|
|
357
|
+
|
|
358
|
+
触发时机:用户在列筛选面板中确认筛选条件后触发。
|
|
359
|
+
|
|
360
|
+
参数结构(从 vxe-table 透传):
|
|
361
|
+
```typescript
|
|
362
|
+
{
|
|
363
|
+
column: YTableColumn, // 触发筛选的列配置对象
|
|
364
|
+
values: any[], // 选中的值列表(适用于多选筛选,如复选框列表)
|
|
365
|
+
datas: any[], // 自定义筛选数据(适用于自定义筛选面板,如输入框内容、日期范围等)
|
|
366
|
+
filters: any[], // 当前列的 filters 配置
|
|
367
|
+
// ... 其他 vxe-table 原生参数
|
|
368
|
+
}
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
使用示例:
|
|
372
|
+
```
|
|
373
|
+
<YTable @filter-change="handleFilterChange" />
|
|
374
|
+
|
|
375
|
+
const handleFilterChange = (params) => {
|
|
376
|
+
const { column, values, datas } = params
|
|
377
|
+
const field = column?.field
|
|
378
|
+
|
|
379
|
+
if (field === 'name') {
|
|
380
|
+
// 自定义筛选(输入框)使用 datas
|
|
381
|
+
const [keyword] = datas || []
|
|
382
|
+
tableData.value = allData.filter(row => row.name.includes(keyword))
|
|
383
|
+
} else if (field === 'status') {
|
|
384
|
+
// 多选筛选使用 values
|
|
385
|
+
tableData.value = allData.filter(row => values.includes(row.status))
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### 实例方法(通过 `ref` 调用)
|
|
391
|
+
|
|
392
|
+
| 方法 | 说明 |
|
|
393
|
+
| --- | --- |
|
|
394
|
+
| `getTableInstance()` | 获取 vxe-table 实例 |
|
|
395
|
+
| `refresh()` | 刷新表格数据 |
|
|
396
|
+
| `recalculate()` | 重新计算布局 |
|
|
397
|
+
| `clearSelection()` | 清除多选勾选 |
|
|
398
|
+
| `getPaginationInstance()` | 获取 Ant Design Vue Pagination 实例 |
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
toc: content
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Y-Tree 树组件
|
|
6
|
+
|
|
7
|
+
基于 `ant-design-vue@^4` 的 `Tree` 封装,完整透传 API/插槽,并补充企业常用能力:搜索、节点文本溢出 Tooltip(支持延迟)、节点更多(下拉动作)。
|
|
8
|
+
|
|
9
|
+
## 代码演示
|
|
10
|
+
|
|
11
|
+
### 左侧树 + 搜索 + 更多
|
|
12
|
+
<code id="demo-tree-basic-left" src="./demos/tree/basic-left/index.vue" title="左侧树 + 搜索输入 + 节点更多下拉"></code>
|
|
13
|
+
|
|
14
|
+
### 自定义搜索区(刷新/新增)
|
|
15
|
+
<code id="demo-tree-search-toolbar" src="./demos/tree/search-toolbar/index.vue" title="自定义搜索区域(刷新树/新增文件)"></code>
|
|
16
|
+
|
|
17
|
+
### 左侧树 + 可拖拽/折叠布局
|
|
18
|
+
<code id="demo-tree-split-pane" src="./demos/split-pane/tree-table/index.vue" title="左侧树可拖拽/折叠 + 右侧工具栏与表格示意"></code>
|
|
19
|
+
|
|
20
|
+
### 资源列表(分类着色)
|
|
21
|
+
<code id="demo-tree-resource-list" src="./demos/tree/resource-list/index.vue" title="资源列表分组展示"></code>
|
|
22
|
+
|
|
23
|
+
### 数据来源分组(计数/图标)
|
|
24
|
+
<code id="demo-tree-datasource-group" src="./demos/tree/datasource-group/index.vue" title="数据来源分组样式"></code>
|
|
25
|
+
|
|
26
|
+
### 自定义展开/收起图标(兼容 antdv #switcherIcon)
|
|
27
|
+
<code id="demo-tree-slot-switcher-icon" src="./demos/tree/slot-switcher-icon/index.vue" ></code>
|
|
28
|
+
|
|
29
|
+
### 显示节点图标(兼容 antdv #icon 需 :show-icon=true)
|
|
30
|
+
<code id="demo-tree-slot-icon" src="./demos/tree/slot-icon/index.vue" ></code>
|
|
31
|
+
|
|
32
|
+
### 多选(复选框)开启 checkable,受控 checkedKeys
|
|
33
|
+
<code id="demo-tree-multi-checkable" src="./demos/tree/multi-checkable/index.vue"></code>
|
|
34
|
+
|
|
35
|
+
### 多选(高亮选中)开启 multiple,受控 selectedKeys
|
|
36
|
+
<code id="demo-tree-multiple-select" src="./demos/tree/multiple-select/index.vue"></code>
|
|
37
|
+
|
|
38
|
+
## API
|
|
39
|
+
|
|
40
|
+
### Props
|
|
41
|
+
|
|
42
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
43
|
+
| --- | --- | --- | --- |
|
|
44
|
+
| treeData | `any[]` | `[]` | 同 antdv Tree 数据 |
|
|
45
|
+
| fieldNames | `{ title?: string; key?: string; children?: string }` | `{ title:'title', key:'key', children:'children' }` | 同 antdv `fieldNames` |
|
|
46
|
+
| filterable | `boolean` | `true` | 开启内置搜索输入;为 `false` 时默认搜索框不展示(但依然可通过插槽自定义) |
|
|
47
|
+
| searchValue | `string` | `''` | 受控搜索值(`v-model:searchValue`) |
|
|
48
|
+
| searchProps | `Record<string, any>` | `{}` | 内置搜索框属性透传(如 `placeholder`、`size`、`allowClear` 等) |
|
|
49
|
+
| ellipsisTooltip | `boolean` | `true` | 超出省略展示 Tooltip |
|
|
50
|
+
| tooltipDelay | `number` | `500` | Tooltip 延迟(毫秒) |
|
|
51
|
+
| showActions | `boolean` | `true` | 是否显示"更多"按钮 |
|
|
52
|
+
| getNodeActions | `(node)=>YTreeActionItem[]` | `() => []` | 返回当前节点的下拉动作列表 |
|
|
53
|
+
| actionTrigger | `'hover' \| 'click' \| 'contextmenu' \| Array<...>` | `'click'` | 节点"更多"下拉触发方式 |
|
|
54
|
+
| selectOnActionClick | `boolean` | `true` | 点击"更多"按钮时是否自动选中当前节点 |
|
|
55
|
+
| selectable | `boolean` | `true` | 节点可选中 |
|
|
56
|
+
| blockNode | `boolean` | `true` | 节点内容占满整行,利于省略与操作对齐 |
|
|
57
|
+
| selectedKeys | `(string \| number)[]` | - | 受控选中节点(`v-model:selectedKeys`),不传时使用内部状态 |
|
|
58
|
+
| loading | `boolean` | `false` | 是否显示加载中状态 |
|
|
59
|
+
| loadingTip | `string` | `'加载中...'` | 加载中的提示文案 |
|
|
60
|
+
|
|
61
|
+
### Slots
|
|
62
|
+
|
|
63
|
+
| 插槽 | 参数 | 说明 |
|
|
64
|
+
| --- | --- | --- |
|
|
65
|
+
| header-left | - | 搜索区域左侧内容 |
|
|
66
|
+
| search | - | 自定义搜索区域,覆盖内置搜索输入 |
|
|
67
|
+
| header-right | - | 搜索区域右侧内容 |
|
|
68
|
+
| node-prefix | `{ node }` | 节点标题前缀内容 |
|
|
69
|
+
| node-title | `{ node, text }` | 自定义节点标题内容 |
|
|
70
|
+
| node-suffix | `{ node }` | 节点标题后缀内容 |
|
|
71
|
+
| title | 同 antdv | 透传 antdv `Tree` 的 `#title` |
|
|
72
|
+
| switcherIcon | 同 antdv | 透传 antdv `Tree` 的 `#switcherIcon` |
|
|
73
|
+
| icon | 同 antdv | 透传 antdv `Tree` 的 `#icon`(需 `:show-icon="true"`) |
|
|
74
|
+
|
|
75
|
+
### 事件
|
|
76
|
+
|
|
77
|
+
| 事件名 | 回调参数 | 说明 |
|
|
78
|
+
| --- | --- | --- |
|
|
79
|
+
| action | `{ key, node }` | 点击节点"更多"菜单项时触发 |
|
|
80
|
+
| update:searchValue | `string` | 搜索框输入变化(受控) |
|
|
81
|
+
| update:selectedKeys | `(string \| number)[]` | 选中节点变化(受控) |
|
|
82
|
+
| select | `selectedKeys, { node, selected }` | 节点被选中时触发(与 antdv Tree 一致) |
|
|
83
|
+
|
|
84
|
+
### YTreeActionItem 类型
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
interface YTreeActionItem {
|
|
88
|
+
key: string; // 操作项唯一标识
|
|
89
|
+
label: string; // 操作项显示文本
|
|
90
|
+
icon?: VNodeChild; // 操作项图标
|
|
91
|
+
disabled?: boolean;// 是否禁用
|
|
92
|
+
danger?: boolean; // 是否为危险操作(红色显示)
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 行为说明
|
|
97
|
+
|
|
98
|
+
- **更多图标显示**:默认仅在行 hover 时显示"更多"图标;点击后打开下拉菜单。
|
|
99
|
+
- **点击更多自动选中**:默认启用(`selectOnActionClick: true`),点击其他节点的"更多"按钮会自动选中该节点;如需保持原有选中状态,可设置 `:select-on-action-click="false"`。
|
|
100
|
+
- **触发方式**:默认点击触发;可通过 `:action-trigger="['hover']"` 改为 hover 触发,或组合使用。
|
|
101
|
+
- **文本省略**:当开启 `ellipsisTooltip=true` 时,悬浮在被省略的文本上显示完整内容 Tooltip。
|
|
102
|
+
- **受控/非受控模式**:`selectedKeys` 支持 `v-model:selectedKeys` 受控模式;不传时使用组件内部状态。
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# GitLab CI 集成说明
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
本项目已配置自动化发版流程,支持在 GitLab CI 中一键发布新版本并自动生成更新日志。
|
|
6
|
+
|
|
7
|
+
## 发版流程
|
|
8
|
+
|
|
9
|
+
### 方式一:GitLab UI 手动触发(推荐)
|
|
10
|
+
|
|
11
|
+
1. **提交代码**:确保所有 commit 遵循 Conventional Commits 规范
|
|
12
|
+
```bash
|
|
13
|
+
git commit -m "feat(@yss-ui/components): Table 新增虚拟滚动"
|
|
14
|
+
git push origin dev
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
2. **触发发版**:
|
|
18
|
+
- 进入 GitLab 项目页面
|
|
19
|
+
- 点击 CI/CD → Pipelines
|
|
20
|
+
- 找到最新的 pipeline
|
|
21
|
+
- 点击 `should_run_release_ci` 阶段的手动按钮
|
|
22
|
+
- 在弹出的对话框中选择发版类型(设置 `BUMP` 变量):
|
|
23
|
+
- `patch` - 补丁版本(默认)
|
|
24
|
+
- `minor` - 次版本
|
|
25
|
+
- `major` - 主版本
|
|
26
|
+
- `auto` - 自动检测
|
|
27
|
+
|
|
28
|
+
3. **等待完成**:CI 会自动:
|
|
29
|
+
- 根据 commit 历史生成更新日志
|
|
30
|
+
- Bump 版本号
|
|
31
|
+
- 创建 Git tag
|
|
32
|
+
- 推送到仓库
|
|
33
|
+
|
|
34
|
+
### 方式二:通过 GitLab API 触发
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# 使用 GitLab API 触发发版
|
|
38
|
+
curl -X POST \
|
|
39
|
+
--form "token=$CI_TRIGGER_TOKEN" \
|
|
40
|
+
--form "ref=dev" \
|
|
41
|
+
--form "variables[BUMP]=minor" \
|
|
42
|
+
"https://gitlab.com/api/v4/projects/$PROJECT_ID/trigger/pipeline"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 环境变量说明
|
|
46
|
+
|
|
47
|
+
在 GitLab 项目设置中需要配置以下环境变量:
|
|
48
|
+
|
|
49
|
+
### 必需变量
|
|
50
|
+
|
|
51
|
+
| 变量名 | 说明 | 示例 |
|
|
52
|
+
|--------|------|------|
|
|
53
|
+
| `GITLAB_USER_NAME` | Git 提交者名称 | `GitLab CI` |
|
|
54
|
+
| `GITLAB_USER_EMAIL` | Git 提交者邮箱 | `ci@company.com` |
|
|
55
|
+
| `GIT_LAB_PUSH_TOKEN` | GitLab 个人访问令牌(需要 write_repository 权限) | `glpat-xxx` |
|
|
56
|
+
|
|
57
|
+
### 可选变量
|
|
58
|
+
|
|
59
|
+
| 变量名 | 说明 | 默认值 |
|
|
60
|
+
|--------|------|--------|
|
|
61
|
+
| `BUMP` | 发版类型 | `patch` |
|
|
62
|
+
| `NPM_TOKEN` | NPM 发布令牌(如果需要发布到 NPM) | - |
|
|
63
|
+
|
|
64
|
+
### 创建 Personal Access Token
|
|
65
|
+
|
|
66
|
+
1. 进入 GitLab Settings → Access Tokens
|
|
67
|
+
2. 创建新 Token,勾选以下权限:
|
|
68
|
+
- `read_repository`
|
|
69
|
+
- `write_repository`
|
|
70
|
+
- `api`
|
|
71
|
+
3. 复制生成的 token
|
|
72
|
+
4. 在项目 Settings → CI/CD → Variables 中添加 `GIT_LAB_PUSH_TOKEN`
|
|
73
|
+
|
|
74
|
+
## GitLab CI 配置详解
|
|
75
|
+
|
|
76
|
+
当前 `.gitlab-ci.yml` 中的发版阶段:
|
|
77
|
+
|
|
78
|
+
```yaml
|
|
79
|
+
should_run_release_ci:
|
|
80
|
+
stage: release
|
|
81
|
+
script:
|
|
82
|
+
- |
|
|
83
|
+
# 在 Docker 容器中执行发版脚本
|
|
84
|
+
docker run --rm \
|
|
85
|
+
-e BUMP="$BUMP" \
|
|
86
|
+
-e GITLAB_USER_NAME="$GITLAB_USER_NAME" \
|
|
87
|
+
-e GITLAB_USER_EMAIL="$GITLAB_USER_EMAIL" \
|
|
88
|
+
-e GIT_LAB_PUSH_TOKEN="$GIT_LAB_PUSH_TOKEN" \
|
|
89
|
+
-v "$CI_PROJECT_DIR":/app -w /app \
|
|
90
|
+
"$NODE_IMAGE" \
|
|
91
|
+
sh /app/scripts/ci-release.sh
|
|
92
|
+
only:
|
|
93
|
+
- dev
|
|
94
|
+
when: manual
|
|
95
|
+
allow_failure: false
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## 本地测试
|
|
99
|
+
|
|
100
|
+
在本地测试发版流程:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
# 模拟 CI 环境
|
|
104
|
+
export GITLAB_USER_NAME="Your Name"
|
|
105
|
+
export GITLAB_USER_EMAIL="your@email.com"
|
|
106
|
+
export BUMP="patch"
|
|
107
|
+
|
|
108
|
+
# 执行发版脚本
|
|
109
|
+
sh scripts/ci-release.sh
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## 常见问题
|
|
113
|
+
|
|
114
|
+
### Q: 发版失败,提示 "Permission denied"
|
|
115
|
+
|
|
116
|
+
A: 检查 `GIT_LAB_PUSH_TOKEN` 是否配置正确,确保 token 有 `write_repository` 权限。
|
|
117
|
+
|
|
118
|
+
### Q: 如何跳过 CI 发版?
|
|
119
|
+
|
|
120
|
+
A: 在 commit message 中添加 `[skip ci]`:
|
|
121
|
+
```bash
|
|
122
|
+
git commit -m "chore: update README [skip ci]"
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Q: 如何在发版后自动发布到 NPM?
|
|
126
|
+
|
|
127
|
+
A: 在 `.gitlab-ci.yml` 中添加 npm publish 步骤:
|
|
128
|
+
|
|
129
|
+
```yaml
|
|
130
|
+
should_run_release_ci:
|
|
131
|
+
after_script:
|
|
132
|
+
- |
|
|
133
|
+
if [ -n "$NPM_TOKEN" ]; then
|
|
134
|
+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
|
|
135
|
+
pnpm publish --filter="./packages/*" --access public --no-git-checks
|
|
136
|
+
fi
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Q: 如何回滚错误的发版?
|
|
140
|
+
|
|
141
|
+
A: 在 GitLab 中删除错误的 tag,然后本地回退:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
# 删除本地 tag
|
|
145
|
+
git tag -d v1.0.1
|
|
146
|
+
|
|
147
|
+
# 删除远程 tag
|
|
148
|
+
git push origin :refs/tags/v1.0.1
|
|
149
|
+
|
|
150
|
+
# 回退 commit
|
|
151
|
+
git reset --hard HEAD~1
|
|
152
|
+
git push -f origin dev
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## 发版后的检查清单
|
|
156
|
+
|
|
157
|
+
- [ ] 检查新 tag 是否创建成功
|
|
158
|
+
- [ ] 查看更新日志是否正确生成
|
|
159
|
+
- [ ] 验证分包日志是否同步
|
|
160
|
+
- [ ] 检查文档网站是否更新
|
|
161
|
+
- [ ] (可选)验证 NPM 包是否发布成功
|
|
162
|
+
|
|
163
|
+
## 相关文档
|
|
164
|
+
|
|
165
|
+
- [发版工作流指南](./guide/release-workflow.md)
|
|
166
|
+
- [Commit 规范说明](./guide/release-workflow.md#-commit-message-规范必须遵守)
|