@gct-paas/design 6.0.0-dev.6 → 6.0.0-dev.8
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/loader.esm.min.js +2 -2
- package/es/hooks/design-view/global/useGlobal.d.ts +3 -3
- package/es/hooks/design-view/global/useGlobal.mjs +24 -9
- package/es/hooks/design-view/layout/useToolkit.mjs +1 -2
- package/es/schema/common-config/common-field-editor-config.mjs +3 -3
- package/es/schema/common-config/display-editor-config.mjs +2 -2
- package/es/schema/modal/modal.mjs +3 -4
- package/package.json +11 -11
|
@@ -6,9 +6,9 @@ export declare function useGlobal(): {
|
|
|
6
6
|
updateInfo: (id: string, data: AppGlobalSettingsRequest) => Promise<void>;
|
|
7
7
|
addInfo: (data: AppGlobalSettingsRequest) => Promise<void>;
|
|
8
8
|
deleteInfo: (ids: string) => Promise<void>;
|
|
9
|
-
queryGModal: (fullInfo?: boolean) => Promise<void>;
|
|
10
|
-
queryGVar: (fullInfo?: boolean) => Promise<void>;
|
|
11
|
-
queryGEvent: (fullInfo?: boolean) => Promise<void>;
|
|
9
|
+
queryGModal: (fullInfo?: boolean, configObj?: Record<string, string>) => Promise<void>;
|
|
10
|
+
queryGVar: (fullInfo?: boolean, configObj?: Record<string, string>) => Promise<void>;
|
|
11
|
+
queryGEvent: (fullInfo?: boolean, configObj?: Record<string, string>) => Promise<void>;
|
|
12
12
|
gVar: import('vue').Ref<{
|
|
13
13
|
id: string;
|
|
14
14
|
key: string;
|
|
@@ -8,11 +8,16 @@ var gModal = ref([]);
|
|
|
8
8
|
/**全局事件 */
|
|
9
9
|
var gEvent = ref([]);
|
|
10
10
|
function useGlobal() {
|
|
11
|
-
async function queryGModal(fullInfo = false) {
|
|
12
|
-
|
|
11
|
+
async function queryGModal(fullInfo = false, configObj) {
|
|
12
|
+
let queryObj = {
|
|
13
13
|
type: GLOBAL_TYPE.MODAL,
|
|
14
14
|
fullInfo
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
|
+
if (configObj) queryObj = {
|
|
17
|
+
...queryObj,
|
|
18
|
+
...configObj
|
|
19
|
+
};
|
|
20
|
+
gModal.value = (await _api.apaas.appGlobalSettings.getList(queryObj))?.map((modal) => {
|
|
16
21
|
return {
|
|
17
22
|
id: modal.id,
|
|
18
23
|
name: modal.name,
|
|
@@ -21,11 +26,16 @@ function useGlobal() {
|
|
|
21
26
|
};
|
|
22
27
|
}) || [];
|
|
23
28
|
}
|
|
24
|
-
async function queryGVar(fullInfo = true) {
|
|
25
|
-
|
|
29
|
+
async function queryGVar(fullInfo = true, configObj) {
|
|
30
|
+
let queryObj = {
|
|
26
31
|
type: GLOBAL_TYPE.VAR,
|
|
27
32
|
fullInfo
|
|
28
|
-
}
|
|
33
|
+
};
|
|
34
|
+
if (configObj) queryObj = {
|
|
35
|
+
...queryObj,
|
|
36
|
+
...configObj
|
|
37
|
+
};
|
|
38
|
+
gVar.value = (await _api.apaas.appGlobalSettings.getList(queryObj))?.map((variable) => {
|
|
29
39
|
return {
|
|
30
40
|
id: variable.id,
|
|
31
41
|
key: variable.key,
|
|
@@ -33,11 +43,16 @@ function useGlobal() {
|
|
|
33
43
|
};
|
|
34
44
|
}) || [];
|
|
35
45
|
}
|
|
36
|
-
async function queryGEvent(fullInfo = false) {
|
|
37
|
-
|
|
46
|
+
async function queryGEvent(fullInfo = false, configObj) {
|
|
47
|
+
let queryObj = {
|
|
38
48
|
type: GLOBAL_TYPE.EVENT,
|
|
39
49
|
fullInfo
|
|
40
|
-
}
|
|
50
|
+
};
|
|
51
|
+
if (configObj) queryObj = {
|
|
52
|
+
...queryObj,
|
|
53
|
+
...configObj
|
|
54
|
+
};
|
|
55
|
+
gEvent.value = (await _api.apaas.appGlobalSettings.getList(queryObj))?.map((event) => {
|
|
41
56
|
return {
|
|
42
57
|
id: event.id,
|
|
43
58
|
key: event.key,
|
|
@@ -162,8 +162,7 @@ var instance = class ComponentUtils {
|
|
|
162
162
|
if (this.groupType === ComponentUtils.DetailPageGroup) return [
|
|
163
163
|
CategoryTypeEnum.FORM,
|
|
164
164
|
CategoryTypeEnum.LAYOUT,
|
|
165
|
-
CategoryTypeEnum.DATA
|
|
166
|
-
CategoryTypeEnum.KIT
|
|
165
|
+
CategoryTypeEnum.DATA
|
|
167
166
|
];
|
|
168
167
|
return [
|
|
169
168
|
CategoryTypeEnum.FORM,
|
|
@@ -118,7 +118,7 @@ var explainEditor = [{
|
|
|
118
118
|
formItemStyle: { marginBottom: "12px" },
|
|
119
119
|
group: PropGroup.FIELD_CONFIG,
|
|
120
120
|
hidden: (widget) => {
|
|
121
|
-
if (
|
|
121
|
+
if (widget.props.hiddenInDetail) return true;
|
|
122
122
|
if (widget.props.bindFieldKey || widget.props.fieldReadonly) return true;
|
|
123
123
|
if ((widget.materialType === MaterialEnum.MaterialFormField || widget.materialType === MaterialEnum.MaterialSubTableModalField) && widget.platform === Platform.PAD) return true;
|
|
124
124
|
return widget.platform !== Platform.WEB && widget.platform !== Platform.PAD;
|
|
@@ -162,8 +162,8 @@ var validatorEditor = [{
|
|
|
162
162
|
label: "sys.pageDesigner.closeValidator",
|
|
163
163
|
group: PropGroup.FIELD_CONFIG,
|
|
164
164
|
formField: true,
|
|
165
|
-
hidden() {
|
|
166
|
-
return
|
|
165
|
+
hidden(widget) {
|
|
166
|
+
return widget.props.hiddenInDetail;
|
|
167
167
|
}
|
|
168
168
|
}];
|
|
169
169
|
/** 下拉列表、单选、多选公共config */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hiddenButtonProps } from "./button-props-func.mjs";
|
|
2
|
-
import { ASSIGNMENTSTRATEGY_ENUM,
|
|
2
|
+
import { ASSIGNMENTSTRATEGY_ENUM, Dependency_ENUM, FIELD_TYPE, FormComponents, MaterialEnum, Platform, PropGroup } from "@gct-paas/core";
|
|
3
3
|
import { padVTableSupportEditFieldTypes } from "@gct-paas/schema";
|
|
4
4
|
//#region src/schema/common-config/display-editor-config.ts
|
|
5
5
|
var displayProps = {
|
|
@@ -66,7 +66,7 @@ var displayEditor = [
|
|
|
66
66
|
label: "sys.pageDesigner.deviceConnectivity",
|
|
67
67
|
group: PropGroup.FIELD_CONFIG,
|
|
68
68
|
hidden: (widget) => {
|
|
69
|
-
return widget.platform !== Platform.WEB || ![MaterialEnum.MaterialFormField].includes(widget.materialType) || !deviceFields.includes(widget.props.fieldType) || widget.props.fieldReadonly ||
|
|
69
|
+
return widget.platform !== Platform.WEB || ![MaterialEnum.MaterialFormField].includes(widget.materialType) || !deviceFields.includes(widget.props.fieldType) || widget.props.fieldReadonly || widget.props.hiddenInDetail;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { widget as widget$1 } from "./modal-body.mjs";
|
|
3
3
|
import { widget as widget$2 } from "./modal-footer.mjs";
|
|
4
|
-
import { BuiltinType, Platform, PropGroup, StyleGroup
|
|
4
|
+
import { BuiltinType, ContextSceneEnum, Platform, PropGroup, StyleGroup } from "@gct-paas/core";
|
|
5
5
|
//#region src/schema/modal/modal.ts
|
|
6
6
|
var modal_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
beforeCreate: () => beforeCreate,
|
|
@@ -145,7 +145,7 @@ var propEditorList = [
|
|
|
145
145
|
label: "sys.pageDesigner.operateButton",
|
|
146
146
|
group: PropGroup.BUTTON,
|
|
147
147
|
hidden: (widget) => {
|
|
148
|
-
return widget.props.isSubTableModal;
|
|
148
|
+
return widget.props.isSubTableModal || _gct.store.context.scene === ContextSceneEnum.DETAIL;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
];
|
|
@@ -166,8 +166,7 @@ var eventList = [{
|
|
|
166
166
|
}];
|
|
167
167
|
var runCallback = () => {};
|
|
168
168
|
var beforeCreate = (widget) => {
|
|
169
|
-
|
|
170
|
-
widget.children[1].id = buildShortUUID(widget.children[1].type);
|
|
169
|
+
if (_gct.store.context.scene === ContextSceneEnum.DETAIL) widget.props.hasFooter = false;
|
|
171
170
|
};
|
|
172
171
|
var designerConfig = { basicProps: {
|
|
173
172
|
key_label: "弹窗",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/design",
|
|
3
|
-
"version": "6.0.0-dev.
|
|
3
|
+
"version": "6.0.0-dev.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台设计界面底包",
|
|
6
6
|
"loader": "dist/loader.esm.min.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@ant-design/icons-vue": "^7.0.1",
|
|
35
35
|
"@babel/core": "^7.29.0",
|
|
36
36
|
"@babel/standalone": "^7.29.2",
|
|
37
|
-
"@gct-paas/api": "^6.0.0-dev.
|
|
37
|
+
"@gct-paas/api": "^6.0.0-dev.7",
|
|
38
38
|
"@jsplumb/browser-ui": "^6.2.10",
|
|
39
39
|
"@vueuse/core": "^14.1.0",
|
|
40
40
|
"ant-design-vue": "npm:@gct-paas/ant-design-vue@3.2.21",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"react-dnd-html5-backend": "^16.0.1",
|
|
52
52
|
"vue": "^3.5.30",
|
|
53
53
|
"vue3-dnd": "^2.1.0",
|
|
54
|
-
"@gct-paas/core": "6.0.0-dev.
|
|
55
|
-
"@gct-paas/
|
|
56
|
-
"@gct-paas/
|
|
57
|
-
"@gct-paas/
|
|
54
|
+
"@gct-paas/core": "6.0.0-dev.8",
|
|
55
|
+
"@gct-paas/schema": "6.0.0-dev.8",
|
|
56
|
+
"@gct-paas/core-web": "6.0.0-dev.8",
|
|
57
|
+
"@gct-paas/scss": "6.0.0-dev.8"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/babel__core": "^7.20.5",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"@types/estraverse": "^5.1.7"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@gct-paas/api": "^6.0.0-dev.
|
|
65
|
+
"@gct-paas/api": "^6.0.0-dev.7",
|
|
66
66
|
"vue": ">=3",
|
|
67
|
-
"@gct-paas/core
|
|
68
|
-
"@gct-paas/core": "6.0.0-dev.
|
|
69
|
-
"@gct-paas/
|
|
70
|
-
"@gct-paas/
|
|
67
|
+
"@gct-paas/core": "6.0.0-dev.8",
|
|
68
|
+
"@gct-paas/core-web": "6.0.0-dev.8",
|
|
69
|
+
"@gct-paas/scss": "6.0.0-dev.8",
|
|
70
|
+
"@gct-paas/schema": "6.0.0-dev.8"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
|