Comparing version 0.1.3 to 0.1.4
@@ -64,10 +64,10 @@ "use strict"; | ||
return { | ||
id: result.moduleId, | ||
appId: result.appId, | ||
name: result.moduleName, | ||
title: result.moduleTitle, | ||
id: result.id, | ||
appId: result.lcpAppId, | ||
name: result.name, | ||
title: result.title, | ||
level: 'service', | ||
type: result.moduleType === 'app' ? 'web' : 'micro', | ||
icon: result.moduleIcon, | ||
status: result.moduleStatus, | ||
type: result.type === 'app' ? 'web' : 'micro', | ||
icon: result.icon, | ||
status: result.status, | ||
officialType: result.officialType, | ||
@@ -74,0 +74,0 @@ createdTime: result.createdTime, |
@@ -176,5 +176,7 @@ "use strict"; | ||
query: { | ||
id: this.id, | ||
appId: this.id, | ||
}, | ||
}); | ||
console.log(result, 'result'); | ||
result.id = result.appId; | ||
this.assign(result); | ||
@@ -181,0 +183,0 @@ return this; |
@@ -199,2 +199,15 @@ "use strict"; | ||
/** | ||
* 转换成 Vue 文件 | ||
*/ | ||
toVue() { | ||
let result = ''; | ||
if (this.$html) | ||
result += `<template>\n${this.$html.toVue()}\n</template>\n`; | ||
if (this.script) | ||
result += `<script>\n${this.$html.toVue()}\n</script>\n`; | ||
if (this.$def) | ||
result += ''; // `<script>\n${this.$html.toVue()}\n</script>\n`; | ||
return result; | ||
} | ||
/** | ||
* 从后端 JSON 生成规范的 View 对象 | ||
@@ -201,0 +214,0 @@ */ |
{ | ||
"name": "@lcap/asl", | ||
"description": "Lowcode Application Specific Language", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": "Forrest <rainforest92@126.com>", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -62,10 +62,10 @@ export default { | ||
return { | ||
id: result.moduleId, | ||
appId: result.appId, | ||
name: result.moduleName, | ||
title: result.moduleTitle, | ||
id: result.id, | ||
appId: result.lcpAppId, | ||
name: result.name, | ||
title: result.title, | ||
level: 'service', | ||
type: result.moduleType === 'app' ? 'web' : 'micro', | ||
icon: result.moduleIcon, | ||
status: result.moduleStatus, | ||
type: result.type === 'app' ? 'web' : 'micro', | ||
icon: result.icon, | ||
status: result.status, | ||
officialType: result.officialType, | ||
@@ -72,0 +72,0 @@ createdTime: result.createdTime, |
@@ -174,6 +174,7 @@ import { immutable, circular, action } from '../decorators'; | ||
query: { | ||
id: this.id, | ||
appId: this.id, | ||
}, | ||
}); | ||
console.log(result, 'result'); | ||
result.id = result.appId; | ||
this.assign(result); | ||
@@ -180,0 +181,0 @@ return this; |
@@ -221,2 +221,15 @@ import { immutable, circular, action } from '../decorators'; | ||
/** | ||
* 转换成 Vue 文件 | ||
*/ | ||
toVue() { | ||
let result = ''; | ||
if (this.$html) | ||
result += `<template>\n${this.$html.toVue()}\n</template>\n`; | ||
if (this.script) | ||
result += `<script>\n${this.$html.toVue()}\n</script>\n`; | ||
if (this.$def) | ||
result += ''; // `<script>\n${this.$html.toVue()}\n</script>\n`; | ||
return result; | ||
} | ||
/** | ||
* 从后端 JSON 生成规范的 View 对象 | ||
@@ -223,0 +236,0 @@ */ |
@@ -18,2 +18,3 @@ { | ||
"baseUrl": ".", | ||
"declaration": true, | ||
"paths": { | ||
@@ -20,0 +21,0 @@ "@/*": ["src/*"] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1316986
282
30201
0