Frontend Expert
Installation
SKILL.md
Frontend Expert Skill (Vue + Element UI)
This skill provides specialized knowledge for developing and debugging frontend components in the RuoYi-Vue ecosystem.
🎨 Core Principles
- Component Driven: Break down complex UIs into small, reusable
.vuecomponents (insrc/components). - RuoYi Conventions:
- Use
request.jsfor all API calls (automatic token injection). - Use
this.$modalfor prompts (msgSuccess, msgError, confirm). - Use
this.$downloadfor file exports. - Prefix all image URLs with
process.env.VUE_APP_BASE_APIusing a helper method.
- Use
- Element UI Best Practices:
- Use
<el-form>withrulesfor robust validation. - Use
<el-table>with scoped slots for custom data display. - Always handle
loadingstates for buttons and tables.
- Use