@@ -15,13 +15,13 @@ module.exports = (data) => {
let pluginArea = '';
for (const p of pluginColumns) {
const { title, type, required = false, remark, index, def, zh, ref, getProp } = p;
- const params = _.omit(p, ['type', 'index', 'title']);
+ const params = _.pick(p, ['zh', 'required', 'def']);
const r = columnType.find((cf) => cf.value === type);
if (!r) continue;
const { path } = r;
if (path) {
pluginHead += `const ${type}Plugin = require('${path}');\n`;
- pluginArea += `schema.plugin(${type}Plugin(${params}));\n`;
+ pluginArea += `schema.plugin(${type}Plugin(${JSON.stringify(params)}));\n`;
}