lan-low-code-cli 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/form.js +8 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/commands/form.js
CHANGED
|
@@ -1301,7 +1301,7 @@ function registerFormCommand(program) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
/** 按接口族发布表单 */
|
|
1303
1303
|
async function doPublish(client, family, fdId, base, desc = '') {
|
|
1304
|
-
logger_1.logger.step(`发布表单(${FAMILY_LABEL[family]}
|
|
1304
|
+
logger_1.logger.step(`发布表单(${FAMILY_LABEL[family]}/${family === 'modeling' ? 'saveDesignAndPublish' : 'publish'})`);
|
|
1305
1305
|
if (family === 'general') {
|
|
1306
1306
|
const fresh = await formDefine_1.formDefineApi.get(client, fdId);
|
|
1307
1307
|
await formDefine_1.formDefineApi.publish(client, {
|
|
@@ -1313,9 +1313,15 @@ async function doPublish(client, family, fdId, base, desc = '') {
|
|
|
1313
1313
|
});
|
|
1314
1314
|
}
|
|
1315
1315
|
else if (family === 'modeling') {
|
|
1316
|
-
|
|
1316
|
+
// 必须走 saveDesignAndPublish:`sysModelingXForm/publish` 只把表单置为发布态,
|
|
1317
|
+
// 不会生成「前台默认视图」(默认列表视图 + 应用前台导航菜单)。
|
|
1318
|
+
// 版本/发布态由 saveDesignAndPublish 一并处理,故发布前先取回完整设计数据。
|
|
1319
|
+
const design = await formDefine_1.modelingXFormApi.loadDesign(client, fdId);
|
|
1320
|
+
await formDefine_1.modelingXFormApi.saveDesignAndPublish(client, {
|
|
1317
1321
|
...base,
|
|
1322
|
+
...design,
|
|
1318
1323
|
fdId,
|
|
1324
|
+
fdBuildNew: true,
|
|
1319
1325
|
fdDescribe: desc,
|
|
1320
1326
|
});
|
|
1321
1327
|
}
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const field_1 = require("./commands/field");
|
|
|
9
9
|
const form_1 = require("./commands/form");
|
|
10
10
|
const locale_1 = require("./commands/locale");
|
|
11
11
|
const logger_1 = require("./utils/logger");
|
|
12
|
-
const VERSION = '2.3.
|
|
12
|
+
const VERSION = '2.3.1';
|
|
13
13
|
const program = new commander_1.Command();
|
|
14
14
|
exports.program = program;
|
|
15
15
|
program
|