create_page
Generate Vue pages for M8 mobile development by describing requirements. Automatically loads specifications, produces code, and validates standards for forms, lists, details, or custom layouts.
Instructions
【推荐使用】一站式 M8 页面生成工具。自动完成:1.加载完整规范 2.生成代码 3.验证规范。用户只需描述页面需求即可,无需手动调用其他工具。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module_name | Yes | 模块名称(小写下划线格式,如 user_list、order_detail) | |
| page_name | No | 页面名称,默认 index | |
| page_type | No | 页面类型:form(表单)、list(列表)、detail(详情)、custom(自定义),默认 custom | |
| vue_version | Yes | Vue 版本,必填。请根据项目 package.json 中的 vue 依赖版本填写:2.x.x 填 '2',3.x.x 填 '3' | |
| description | Yes | 页面功能描述,如:用户登录页面、商品列表、订单详情等 | |
| requirements | No | 具体需求描述,如:包含用户名密码输入框、支持下拉刷新分页、显示订单状态等 | |
| author | No | 作者名称,默认 developer | |
| components | No | 需要使用的组件列表,如 ['em-form', 'em-field', 'em-button'] | |
| skip_mock | No | 是否跳过生成 mock.js,默认 false |