mpx-development-guides
Mpx 开发指南
本 Skill 提供了 Mpx 框架的基础开发指南索引。Mpx 是一款致力于提高小程序开发体验和开发效率的增强型小程序框架。
1. Mpx 框架简介
Mpx 是对小程序原生开发标准的补强和扩充,支持单文件开发、数据响应、增强模板语法等。
- 详细介绍: intro.md
2. 快速开始
- 项目创建与运行: start.md
- 项目结构: project-structure.md
- IDE 配置: ide.md
3. 核心概念
Mpx 的核心由 App、Page 和 Component 组成。
- App (应用实例): app.md - 介绍 App 的生命周期、全局配置等。
- Page (页面): page.md - 介绍页面的创建、生命周期、配置等。
- Component (组件): component.md - 介绍自定义组件的创建、属性、生命周期、插槽等。
4. 基础语法
Mpx 支持类似 Vue 的开发体验。
- 单文件组件 (SFC): single-file.md
- 模板语法: template.md
- 数据绑定: data-binding.md
- 列表渲染 (wx:for): list-render.md
- 条件渲染 (wx:if): conditional-render.md
- 事件处理: event.md
- 样式处理 (CSS): css.md
- Class 与 Style 绑定: class-style-binding.md
5. 响应式系统
Mpx 提供了强大的数据响应能力。
- 响应式原理: reactive.md - 包含 watch, computed 等。
- 双向绑定: two-way-binding.md - wx:model 语法。
- 引用 (Refs): refs.md
6. 其他
- 生命周期: lifecycle.md
使用此 Skill 时,请根据用户的问题查阅上述对应的文档文件,并提供准确的代码示例和解释。
More from didi/mpx
mpx-rn-style-guide
Mpx 跨端输出 RN (简称为 Mpx2RN or Mpx2DRN)的样式适配开发指南,当用户问题或上下文中同时包含 Mpx、RN、样式三个关键要素时强制调用,如:Mpx2RN 样式适配、Mpx2RN 样式报错等。当用户问题不涉及 Mpx 跨端输出 RN 或与样式无关时不应调用,如:Mpx 输出小程序相关问题、RN 相关问题等。
72doc-add-simple-hash
markdown文档编辑时,为标题添加简单的哈希锚点,当用户提到添加简单哈希锚点时强制调用。
16changelog-generator
通过查看当前最新版本与上一版本间的git提交记录与代码变更,生成版本变更日志,当用户询问“创建/生成变更日志”、“创建/生成changelog”时使用。
16network-proxy
Helps when network-related commands (like curl, git, npm, pip, brew) are failing, timing out, or running slowly due to network issues. It suggests and applies proxy environment variables to fix connectivity problems.
14skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
13karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
5