Skip to content

Commit bace4e4

Browse files
committed
fix: 修复 SKills 没有 css 知识的问题
1 parent de79f10 commit bace4e4

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ yarn-error.log*
4242
# OS
4343
.DS_Store
4444
Thumbs.db
45+
.history

skills/antv-s2-expert/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,11 @@ When a user asks about S2 development:
6363
2. Read the corresponding reference file(s) for context
6464
3. Generate code or explanations based on the reference material and code generation guidelines
6565
4. Always provide complete, runnable code examples when possible
66+
67+
## CSS Import Paths
68+
69+
When generating code that requires importing built-in styles, you MUST use the following exact paths (do not omit `/dist/` or use fake paths):
70+
- Vanilla S2: `import '@antv/s2/dist/s2.min.css';`
71+
- React Components: `import '@antv/s2-react/dist/s2-react.min.css';`
72+
- React Advanced Components: `import '@antv/s2-react-components/dist/s2-react-components.min.css';`
73+
- Vue Components: `import '@antv/s2-vue/dist/s2-vue.min.css';`

0 commit comments

Comments
 (0)