1.0.4 • Published 1 year ago
安装
npm install -g hcus
初始化模版
hcus init
生成页面
hcus page demo
生成目录结构
project
├─ src
│ ├─ components
│ │ ├─ formCascader
│ │ │ └─ index.vue
│ │ ├─ formCheck
│ │ │ └─ index.vue
│ │ ├─ formConfig
│ │ │ └─ index.vue
│ │ ├─ formDatePicker
│ │ │ └─ index.vue
│ │ ├─ formInput
│ │ │ └─ index.vue
│ │ ├─ formInputNumber
│ │ │ └─ index.vue
│ │ ├─ formRadio
│ │ │ └─ index.vue
│ │ ├─ formSelect
│ │ │ └─ index.vue
│ │ ├─ getwayDialog
│ │ │ └─ index.vue
│ │ ├─ getwayTable
│ │ │ └─ index.vue
│ │ ├─ pageElementAuth
│ │ │ └─ index.vue
│ │ ├─ tabulation
│ │ │ └─ index.vue
│ │ ├─ test
│ │ │ ├─ index.vue
│ │ │ ├─ test-dialog.vue
│ │ │ └─ test.js
│ │ └─ uploadfile
│ │ └─ index.vue
│ ├─ pages
│ │ └─ demo
│ │ ├─ demo-dialog.vue
│ │ ├─ demo.js
│ │ └─ index.vue
│ └─ utils
│ ├─ copy.js
│ ├─ download-file.js
│ ├─ request.js
│ └─ tools.js
模版说明
名称 | 说明 |
---|
主要 type | |
.vscode | 模版文件 |
components | 基础组件 |
utils | 工具文件 建议和components一起创建 |