elc-crud-form
AUTO_CRUD_TABLE_ANTD_PRO -------------
Last updated a year ago by eggachecat .
MIT · Original npm · Tarball · package.json
$ cnpm install elc-crud-form 
SYNC missed versions from official npm registry.

AUTO_CRUD_TABLE_ANTD_PRO

介绍

  • 基于antd.pro的CRUD表单的自动生成
  • 从JSON直接mapping到代码
    • 为啥不直接解析json而是生成代码?
    • 因为更想要灵活度
    • 包括字段的和UI的一一对应的灵活调整
  • 支持新增、修改、搜索
  • 包含了路由的新增,多语言的支持
    • 有啥特别的?
    • 相比前面的字符串拼接 更多了语法树的操作(babel很强大!)

使用方法

指令

  • 安装
        npm install -g elc-crud-form
    
  • 使用
        cd PROJECT_ROOT
        create-elc-crud-form c ./model.json
    

model.json

{
    "name": "MODEL_NAME",
    "formName": "FORM_NAME",
    "folder": "FOLDER_NAME_UNDER_PAGES",
    "configs": [
        {
            "dataIndex": "username",
            "type": "text",
            "searchable": true
        },
        {
            "dataIndex": "roles",
            "type": "tag",
            "enumerates": [
                "0",
                "1"
            ],
            "searchable": true,
            "multiple": true
        },
        {
            "dataIndex": "auth",
            "type": "badge",
            "enumerates": [
                "series",
                "normal"
            ],
            "searchable": true,
            "multiple": true
        }
    ]
}

Current Tags

  • 0.1.2                                ...           latest (a year ago)

12 Versions

  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |