0.2.0 • Published 4 years ago

vfc-cli v0.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

代码生成

debug

安装ts-node

然后执行

npx ts-node index.ts g queryTable xxx/xxx

queryTable

生成queryTable

限制

ACTIONS里的类型,必须是在components/queryTable/consts的ACTIONS里定义好的

命令

npx vfc-lib g queryTable [json_file_relative_path]

# for example
npx vfc-lib g queryTable json/partners/legal/xxx.json

queryTable JSON

{
    "title": "法人",
    "rowKey": "lpNo",
    "columns": [
        {
            "key": "name",
            "title": "姓名"
        },
        {
            "key": "xxx",
            "title": "eee"
        }
    ],
    "filters": [
        [
            {
                "id": "xx",
                "label": "法人编号",
                "type": "Input"
            },
            {
                "id": "yy",
                "label": "性别",
                "type": "Select"
            }
        ]
    ],
    "actions": [
        {
            "type": "ADD"
        },
        {
            "type": "ALTER"
        }
    ]
}
0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago