@lcap/nasl 2.20.1-beta.1 → 2.20.1-beta.3
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/docs/classes/EntityProperty.html +1 -1
- package/out/automate/engine/operators.d.ts +10 -1
- package/out/automate/engine/operators.js +14 -5
- package/out/automate/engine/operators.js.map +1 -1
- package/out/automate/engine/viewCache.d.ts +1 -0
- package/out/automate/template/myProcess.d.ts +1 -0
- package/out/automate/template/myProcess.js +9021 -9021
- package/out/automate/template/myProcess.js.map +1 -1
- package/out/bak/translator.js +3 -3
- package/out/bak/translator.js.map +1 -1
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/Command.d.ts +1 -1
- package/out/common/EventEmitter.d.ts +1 -1
- package/out/concepts/Abort__.d.ts +25 -0
- package/out/concepts/Abort__.js +80 -0
- package/out/concepts/Abort__.js.map +1 -0
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +7 -6
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.js +7 -6
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.js +10 -10
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +1 -0
- package/out/concepts/CallInterface__.js +32 -2
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.js +3 -3
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataElement__.js.map +1 -1
- package/out/concepts/DataSource__.js +11 -3
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +31 -0
- package/out/concepts/DatabaseTypeAnnotation__.js +78 -0
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -0
- package/out/concepts/Destination__.js +7 -7
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +1 -1
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +1 -1
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/Integration__.d.ts +53 -0
- package/out/concepts/Integration__.js +143 -0
- package/out/concepts/Integration__.js.map +1 -0
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +9 -0
- package/out/concepts/Interface__.js +54 -0
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.d.ts +42 -0
- package/out/concepts/JavaLogic__.js +122 -0
- package/out/concepts/JavaLogic__.js.map +1 -0
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.js +2 -2
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +3 -0
- package/out/concepts/Match__.js +73 -2
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MicroApp__.d.ts +51 -0
- package/out/concepts/MicroApp__.js +113 -0
- package/out/concepts/MicroApp__.js.map +1 -0
- package/out/concepts/Module__.d.ts +1 -1
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +1 -0
- package/out/concepts/NewComposite__.js +20 -2
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/New__.js.map +1 -1
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.js +2 -0
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/Param__.js +1 -1
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewBlock__.js.map +1 -1
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +1 -0
- package/out/concepts/ViewElement__.js +7 -0
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +8 -3
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/config.d.ts +1 -1
- package/out/decorators/index.d.ts +2 -2
- package/out/generator/genReleaseBody.d.ts +1 -0
- package/out/generator/genReleaseBody.js +1 -0
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/generator/icestark.d.ts +2 -0
- package/out/generator/icestark.js +48 -0
- package/out/generator/icestark.js.map +1 -0
- package/out/generator/microApp.d.ts +2 -0
- package/out/generator/microApp.js +35 -0
- package/out/generator/microApp.js.map +1 -0
- package/out/generator/permission.d.ts +2 -1
- package/out/generator/permission.js +17 -8
- package/out/generator/permission.js.map +1 -1
- package/out/generator/qiankun.d.ts +2 -0
- package/out/generator/qiankun.js +52 -0
- package/out/generator/qiankun.js.map +1 -0
- package/out/index.d.ts +1 -1
- package/out/index.js +2 -1
- package/out/index.js.map +1 -1
- package/out/manager/stepRecorder.d.ts +20 -0
- package/out/manager/stepRecorder.js +110 -0
- package/out/manager/stepRecorder.js.map +1 -0
- package/out/sentry/index.d.ts +29 -0
- package/out/sentry/index.js +111 -0
- package/out/sentry/index.js.map +1 -0
- package/out/server/getMemberIdentifier.js +3 -2
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/getProcesses.d.ts +3 -3
- package/out/server/getScope.d.ts +1 -1
- package/out/server/naslServer.d.ts +1 -1
- package/out/server/naslServer.js +22 -5
- package/out/server/naslServer.js.map +1 -1
- package/out/service/creator/add.configs.js +2 -0
- package/out/service/creator/add.configs.js.map +1 -1
- package/out/service/creator/errHandles.js +5 -0
- package/out/service/creator/errHandles.js.map +1 -1
- package/out/service/creator/index.js +2 -0
- package/out/service/creator/index.js.map +1 -1
- package/out/service/storage/api.d.ts +18 -0
- package/out/service/storage/api.js +12 -0
- package/out/service/storage/api.js.map +1 -1
- package/out/service/storage/init.d.ts +41 -1
- package/out/service/storage/init.js +172 -42
- package/out/service/storage/init.js.map +1 -1
- package/out/service/storage/service.d.ts +9 -1
- package/out/service/storage/service.js +27 -1
- package/out/service/storage/service.js.map +1 -1
- package/out/templator/genCreateBlock.js +1 -1
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +4 -4
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +4 -5
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.js +2 -2
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genSelectBlock.js +1 -1
- package/out/templator/genTableBlock.js +2 -2
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +1 -1
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/translator/index.d.ts +1 -1
- package/out/translator/index.js +4 -1
- package/out/translator/index.js.map +1 -1
- package/out/translator/lsp.d.ts +3 -3
- package/out/utils/index.d.ts +4 -4
- package/package.json +2 -2
- package/sandbox/stdlib/nasl.oql.ts +4 -0
- package/src/automate/engine/operators.js +13 -5
- package/src/automate/template/myProcess.js +11451 -11452
- package/src/automate/upgrader/2.20.js +1 -0
- package/src/bak/translator.js +3 -3
- package/src/concepts/BindAttribute__.ts +7 -5
- package/src/concepts/BindDirective__.ts +7 -5
- package/src/concepts/BindStyle__.ts +7 -6
- package/src/concepts/CallInterface__.ts +34 -20
- package/src/concepts/CallLogic__.ts +3 -3
- package/src/concepts/ConfigGroup__.ts +2 -2
- package/src/concepts/DataSource__.ts +11 -7
- package/src/concepts/Destination__.ts +7 -7
- package/src/concepts/Interface__.ts +59 -7
- package/src/concepts/Logic__.ts +2 -2
- package/src/concepts/Match__.ts +77 -2
- package/src/concepts/NewComposite__.ts +20 -2
- package/src/concepts/OqlQueryComponent__.ts +2 -0
- package/src/concepts/Param__.ts +1 -1
- package/src/concepts/ViewElement__.ts +9 -1
- package/src/concepts/View__.ts +11 -8
- package/src/generator/genReleaseBody.ts +2 -1
- package/src/generator/permission.ts +17 -7
- package/src/index.ts +1 -1
- package/src/server/getMemberIdentifier.ts +5 -2
- package/src/server/naslServer.ts +17 -5
- package/src/service/creator/add.configs.js +3 -0
- package/src/service/creator/errHandles.js +6 -0
- package/src/service/creator/index.js +3 -0
- package/src/service/storage/api.js +12 -0
- package/src/service/storage/init.ts +204 -41
- package/src/service/storage/service.ts +29 -1
- package/src/templator/genCreateBlock.ts +1 -1
- package/src/templator/genCurdEditMultipleKeyBlock.ts +4 -4
- package/src/templator/genCurdMultipleKeyBlock.ts +4 -5
- package/src/templator/genEditTableBlock.ts +2 -2
- package/src/templator/genSelectBlock.ts +1 -1
- package/src/templator/genTableBlock.ts +2 -2
- package/src/templator/genUpdateBlock.ts +1 -1
- package/src/translator/index.ts +3 -1
- package/out/automate/engine/2.14-components.d.ts +0 -1115
- package/out/automate/engine/2.14-components.js +0 -1087
- package/out/automate/engine/2.14-components.js.map +0 -1
- package/yarn-error.log +0 -2087
|
@@ -4,7 +4,7 @@ import api from './api';
|
|
|
4
4
|
const service = createService(api);
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
batchQuery({ body, headers }: { body: Array<any>, headers: Record<string, string
|
|
7
|
+
batchQuery({ body, headers, config }: { body: Array<any>, headers: Record<string, string>, config?: object }) {
|
|
8
8
|
const appData = (window as any).appData;
|
|
9
9
|
|
|
10
10
|
return service.batchQuery({
|
|
@@ -15,6 +15,7 @@ export default {
|
|
|
15
15
|
'request-versionChangedTime': appData?.versionChangedTime || '',
|
|
16
16
|
operateArea: appData?.branchStatus === 'merging' ? 'merge_conflict' : '',
|
|
17
17
|
}, headers),
|
|
18
|
+
config,
|
|
18
19
|
});
|
|
19
20
|
},
|
|
20
21
|
batchAction({ body, headers }: { body: Array<any>, headers: Record<string, string> }) {
|
|
@@ -30,4 +31,31 @@ export default {
|
|
|
30
31
|
}, headers),
|
|
31
32
|
});
|
|
32
33
|
},
|
|
34
|
+
batchInstruct({ body, headers }: { body: Array<any>, headers: Record<string, string> }) {
|
|
35
|
+
const appData = (window as any).appData;
|
|
36
|
+
|
|
37
|
+
return service.batchInstruct({
|
|
38
|
+
body,
|
|
39
|
+
headers: Object.assign({
|
|
40
|
+
appId: appData?.appId,
|
|
41
|
+
'request-appBaseVersion': (window as any).appData?.baseVersion || '',
|
|
42
|
+
'request-versionChangedTime': (window as any).appData?.versionChangedTime || '',
|
|
43
|
+
operateArea: (window as any).appData?.branchStatus === 'merging' ? 'merge_conflict' : '',
|
|
44
|
+
}, headers),
|
|
45
|
+
config: {
|
|
46
|
+
timeout: 1000 * 60,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
saveFrontendNasl({ body }: { body: any }) {
|
|
51
|
+
const appData = (window as any).appData;
|
|
52
|
+
|
|
53
|
+
return service.saveFrontendNasl({
|
|
54
|
+
body,
|
|
55
|
+
headers: {
|
|
56
|
+
appId: appData?.appId,
|
|
57
|
+
skipVersionCheck: true,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
33
61
|
};
|
|
@@ -49,7 +49,7 @@ export function genCreateFormTemplate(entity: Entity, nameGroup: NameGroup, sele
|
|
|
49
49
|
const selectNameGroup = selectNameGroupMap.get(key);
|
|
50
50
|
formItem += `
|
|
51
51
|
<u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.viewLogicLoad}"
|
|
52
|
-
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :
|
|
52
|
+
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" v-model="${vModel}">
|
|
53
53
|
</u-select>
|
|
54
54
|
`;
|
|
55
55
|
} else
|
|
@@ -31,7 +31,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
|
|
|
31
31
|
|
|
32
32
|
return `
|
|
33
33
|
<u-linear-layout justify="space-between">
|
|
34
|
-
<u-form layout="inline"
|
|
34
|
+
<u-form layout="inline">
|
|
35
35
|
${properties
|
|
36
36
|
.map((property) => {
|
|
37
37
|
const vModel = `${nameGroup.viewVariableFilter}.${property.name}`;
|
|
@@ -53,7 +53,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
|
|
|
53
53
|
const selectNameGroup = selectNameGroupMap.get(key);
|
|
54
54
|
formItem += `
|
|
55
55
|
<u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.viewLogicLoad}"
|
|
56
|
-
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :
|
|
56
|
+
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" v-model="${vModel}">
|
|
57
57
|
</u-select>
|
|
58
58
|
`;
|
|
59
59
|
} else
|
|
@@ -97,7 +97,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
|
|
|
97
97
|
})
|
|
98
98
|
.join('')}
|
|
99
99
|
|
|
100
|
-
<u-form-item layout="center">
|
|
100
|
+
<u-form-item layout="center" label-size="auto">
|
|
101
101
|
<u-button color="primary" @click="${nameGroup.viewLogicReload}">查询</u-button>
|
|
102
102
|
</u-form-item>
|
|
103
103
|
</u-form>
|
|
@@ -152,7 +152,7 @@ function genSaveModalTemplate(entity: Entity, nameGroup: NameGroup, selectNameGr
|
|
|
152
152
|
const selectNameGroup = selectNameGroupMap.get(key);
|
|
153
153
|
formItem += `
|
|
154
154
|
<u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.load}"
|
|
155
|
-
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :
|
|
155
|
+
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" v-model="${vModel}">
|
|
156
156
|
</u-select>
|
|
157
157
|
`;
|
|
158
158
|
} else
|
|
@@ -22,7 +22,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
|
|
|
22
22
|
const properties = entity.properties.filter(filterProperty('inFilter'));
|
|
23
23
|
return `
|
|
24
24
|
<u-linear-layout justify="space-between">
|
|
25
|
-
<u-form layout="inline"
|
|
25
|
+
<u-form layout="inline">
|
|
26
26
|
${properties
|
|
27
27
|
.map((property) => {
|
|
28
28
|
const vModel = `${nameGroup.viewVariableFilter}.${property.name}`;
|
|
@@ -47,7 +47,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
|
|
|
47
47
|
const selectNameGroup = selectNameGroupMap.get(key);
|
|
48
48
|
formItem += `
|
|
49
49
|
<u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.viewLogicLoad}"
|
|
50
|
-
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :
|
|
50
|
+
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" v-model="${vModel}">
|
|
51
51
|
</u-select>
|
|
52
52
|
`;
|
|
53
53
|
} else
|
|
@@ -91,7 +91,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
|
|
|
91
91
|
})
|
|
92
92
|
.join('')}
|
|
93
93
|
|
|
94
|
-
<u-form-item layout="center">
|
|
94
|
+
<u-form-item layout="center" label-size="auto">
|
|
95
95
|
<u-button color="primary" @click="${nameGroup.viewLogicReload}">查询</u-button>
|
|
96
96
|
</u-form-item>
|
|
97
97
|
</u-form>
|
|
@@ -148,8 +148,7 @@ function genSaveModalTemplate(entity: Entity, nameGroup: NameGroup, selectNameGr
|
|
|
148
148
|
text-field="${lowerEntityName}.${displayedProperty.name}"
|
|
149
149
|
value-field="${lowerEntityName}.${relationProperty.name}"
|
|
150
150
|
:data-source="${selectNameGroup.viewLogicLoad}"
|
|
151
|
-
:
|
|
152
|
-
:remote-paging="true"
|
|
151
|
+
:pagination="true"
|
|
153
152
|
${property.primaryKey ? `:disabled="${nameGroup.viewVariableIsUpdate}"` : ''}
|
|
154
153
|
v-model="${vModel}">
|
|
155
154
|
</u-select>
|
|
@@ -49,7 +49,7 @@ export function genEditTableColumnTemplate(entity: Entity, property: EntityPrope
|
|
|
49
49
|
formItem += `
|
|
50
50
|
<u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.viewLogicLoad}"
|
|
51
51
|
:autofocus="true" :opened="true" append-to="body" @blur="${nameGroup.viewLogicBlurUpdate}" @select="${nameGroup.viewLogicBlurUpdate}"
|
|
52
|
-
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :
|
|
52
|
+
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" :value.sync="${valueExpression}">
|
|
53
53
|
</u-select>
|
|
54
54
|
`;
|
|
55
55
|
} else
|
|
@@ -111,7 +111,7 @@ export function genEditTableTemplate(entity: Entity, nameGroup: NameGroup, selec
|
|
|
111
111
|
|
|
112
112
|
return `<u-table-view ref="${nameGroup.viewElementMainView}" :data-source="${nameGroup.viewLogicLoad}" data-schema="${nameGroup.structure}"
|
|
113
113
|
value-field="${nameGroup.viewVariableEntity}.id"
|
|
114
|
-
:
|
|
114
|
+
:pagination="true" :show-sizer="true" :default-column-width="300" editable>
|
|
115
115
|
<u-table-view-column type="index" width="60"><template #title><u-text text="序号"></u-text></template><template #cell="current"></template></u-table-view-column>
|
|
116
116
|
|
|
117
117
|
${properties.map((property) => genEditTableColumnTemplate(entity, property, nameGroup, selectNameGroupMap) + '\n').join('')}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
export function genSelectTemplate(property: EntityProperty, nameGroup: NameGroup) {
|
|
17
17
|
return `<u-select clearable placeholder="请选择" ref="${nameGroup.viewElementMainView}" :data-source="${nameGroup.viewLogicLoad}" data-schema="${nameGroup.structure}"
|
|
18
18
|
text-field="${nameGroup.lowerEntity}.${property.name}"
|
|
19
|
-
value-field="${nameGroup.lowerEntity}.id" :
|
|
19
|
+
value-field="${nameGroup.lowerEntity}.id" :pagination="true">
|
|
20
20
|
</u-select>`;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -63,7 +63,7 @@ export function genTableTemplate(entity: Entity, nameGroup: NameGroup, modifyabl
|
|
|
63
63
|
|
|
64
64
|
return `<u-table-view ref="${nameGroup.viewElementMainView}" :data-source="${nameGroup.viewLogicLoad}" data-schema="${nameGroup.structure}"
|
|
65
65
|
value-field="${nameGroup.viewVariableEntity}.id"
|
|
66
|
-
:
|
|
66
|
+
:pagination="true" :show-sizer="true">
|
|
67
67
|
<u-table-view-column type="index" width="60"><template #title><u-text text="序号"></u-text></template><template #cell="current"></template></u-table-view-column>
|
|
68
68
|
|
|
69
69
|
${properties.map((property) => genTableColumnTemplate(property, currentName) + '\n').join('')}
|
|
@@ -258,7 +258,7 @@ export function genTableColumnBlock(property: EntityProperty, oldNode: ViewEleme
|
|
|
258
258
|
|
|
259
259
|
return `
|
|
260
260
|
<template>
|
|
261
|
-
<u-table-view ref="${nameGroup.viewElementMainView}" :data-source="${nameGroup.viewLogicLoad}" :
|
|
261
|
+
<u-table-view ref="${nameGroup.viewElementMainView}" :data-source="${nameGroup.viewLogicLoad}" :pagination="true" :show-sizer="true" data-schema="${nameGroup.structure}">
|
|
262
262
|
${properties.map((property) => genTableColumnTemplate(property) + '\n').join('')}
|
|
263
263
|
</u-table-view>
|
|
264
264
|
</template>
|
|
@@ -49,7 +49,7 @@ export function genUpdateFormTemplate(entity: Entity, nameGroup: NameGroup, sele
|
|
|
49
49
|
const selectNameGroup = selectNameGroupMap.get(key);
|
|
50
50
|
formItem += `
|
|
51
51
|
<u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.viewLogicLoad}"
|
|
52
|
-
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :
|
|
52
|
+
text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" v-model="${vModel}">
|
|
53
53
|
</u-select>
|
|
54
54
|
`;
|
|
55
55
|
} else
|
package/src/translator/index.ts
CHANGED
|
@@ -89,7 +89,9 @@ export function withSourceMap() {
|
|
|
89
89
|
descriptor.value = function (this: BaseNode, state?: TranslatorState, ...args: any[]) {
|
|
90
90
|
// 重新生成ts代码就先把类型清除掉
|
|
91
91
|
// 注意排查错误的时候,调用了这个方法,就会把节点上缓存的__TypeAnnotation清除
|
|
92
|
-
|
|
92
|
+
try {
|
|
93
|
+
this.__isCorrectTypeAnnotation = false;
|
|
94
|
+
} catch (err) {}
|
|
93
95
|
if (!state) {
|
|
94
96
|
// 没有状态不生成 SourceMap
|
|
95
97
|
return oldMethod.call(this);
|