README
代码生成
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"
}
]
}