diff --git a/build/plugins/cool.ts b/build/plugins/cool.ts index 103b8b5..0ca439c 100644 --- a/build/plugins/cool.ts +++ b/build/plugins/cool.ts @@ -212,7 +212,13 @@ function createVue({ router, columns, prefix, api, module, filename }: any): voi item.required = true; } - if (item.component) { + if (!["createTime", "updateTime", "id"].includes(item.prop)) { + if (!item.component) { + item.component = { + name: "el-input" + }; + } + upsert.items.push(format(item)); }