@gct-paas/design 6.0.0-dev.23 → 6.0.0-dev.25

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.
@@ -148,26 +148,25 @@ var instance = class ComponentUtils {
148
148
  }
149
149
  /** 根据当前分组上下文返回应显示的分类列表 */
150
150
  get categoryTypes() {
151
- if (this.groupType === ComponentUtils.SubTableGroup) return [
151
+ let categoryTypes;
152
+ if (this.groupType === ComponentUtils.SubTableGroup) categoryTypes = [
152
153
  CategoryTypeEnum.FORM,
153
154
  CategoryTypeEnum.LAYOUT,
154
155
  CategoryTypeEnum.ADVANCED
155
156
  ];
156
- if (this.groupType === ComponentUtils.TxnPageGroup) {
157
- let res = [
157
+ else if (this.groupType === ComponentUtils.TxnPageGroup) {
158
+ categoryTypes = [
158
159
  CategoryTypeEnum.FORM,
159
160
  CategoryTypeEnum.LAYOUT,
160
161
  CategoryTypeEnum.DATA
161
162
  ];
162
- if (_gct.store.context.txnPageMode === ContextTxnPageModeEnum.CREATE) res = [...res, CategoryTypeEnum.BUTTON];
163
- return res;
164
- }
165
- if (this.groupType === ComponentUtils.DetailPageGroup) return [
163
+ if (_gct.store.context.txnPageMode === ContextTxnPageModeEnum.CREATE) categoryTypes = [...categoryTypes, CategoryTypeEnum.BUTTON];
164
+ } else if (this.groupType === ComponentUtils.DetailPageGroup) categoryTypes = [
166
165
  CategoryTypeEnum.FORM,
167
166
  CategoryTypeEnum.LAYOUT,
168
167
  CategoryTypeEnum.DATA
169
168
  ];
170
- return [
169
+ else categoryTypes = [
171
170
  CategoryTypeEnum.FORM,
172
171
  CategoryTypeEnum.LAYOUT,
173
172
  CategoryTypeEnum.ADVANCED,
@@ -176,6 +175,8 @@ var instance = class ComponentUtils {
176
175
  CategoryTypeEnum.KIT,
177
176
  CategoryTypeEnum.PROCESS
178
177
  ];
178
+ if (_gct.store.context.txnPageMode === ContextTxnPageModeEnum.CREATE) return categoryTypes.filter((categoryType) => categoryType !== CategoryTypeEnum.ADVANCED);
179
+ return categoryTypes;
179
180
  }
180
181
  /**
181
182
  * 根据分类类型返回当前上下文下允许使用的组件 key 列表
@@ -150,6 +150,7 @@ async function loadTxnPageInfo(app) {
150
150
  } else {
151
151
  const pageInfoRes = await _api.apaas.transaction.getInfo({ id: _gct.store.context.pid });
152
152
  pageInfo.value = pageInfoRes;
153
+ pageInfo.value.default = Boolean(pageInfoRes.defaulted ?? false);
153
154
  pageInfo.value._designerJson = pageInfoRes.designerJson;
154
155
  pageInfo.value.txnPageMode = "create";
155
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/design",
3
- "version": "6.0.0-dev.23",
3
+ "version": "6.0.0-dev.25",
4
4
  "type": "module",
5
5
  "description": "paas 平台设计界面底包",
6
6
  "loader": "dist/loader.esm.min.js",
@@ -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-web": "6.0.0-dev.23",
55
- "@gct-paas/schema": "6.0.0-dev.23",
56
- "@gct-paas/core": "6.0.0-dev.23",
57
- "@gct-paas/scss": "6.0.0-dev.23"
54
+ "@gct-paas/core": "6.0.0-dev.25",
55
+ "@gct-paas/core-web": "6.0.0-dev.25",
56
+ "@gct-paas/schema": "6.0.0-dev.25",
57
+ "@gct-paas/scss": "6.0.0-dev.25"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/babel__core": "^7.20.5",
@@ -64,10 +64,10 @@
64
64
  "peerDependencies": {
65
65
  "@gct-paas/api": "^6.0.0-dev.9",
66
66
  "vue": ">=3",
67
- "@gct-paas/core": "6.0.0-dev.23",
68
- "@gct-paas/core-web": "6.0.0-dev.23",
69
- "@gct-paas/schema": "6.0.0-dev.23",
70
- "@gct-paas/scss": "6.0.0-dev.23"
67
+ "@gct-paas/core-web": "6.0.0-dev.25",
68
+ "@gct-paas/schema": "6.0.0-dev.25",
69
+ "@gct-paas/core": "6.0.0-dev.25",
70
+ "@gct-paas/scss": "6.0.0-dev.25"
71
71
  },
72
72
  "scripts": {
73
73
  "dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",