@gct-paas/design 6.0.0-dev.6 → 6.0.0-dev.7

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.
@@ -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 (_gct.store.context.scene === ContextSceneEnum.DETAIL) return true;
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 _gct.store.context.scene === ContextSceneEnum.DETAIL;
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, ContextSceneEnum, Dependency_ENUM, FIELD_TYPE, FormComponents, MaterialEnum, Platform, PropGroup } from "@gct-paas/core";
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 || _gct.store.context.scene === ContextSceneEnum.DETAIL;
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
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/design",
3
- "version": "6.0.0-dev.6",
3
+ "version": "6.0.0-dev.7",
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": "6.0.0-dev.6",
55
- "@gct-paas/scss": "6.0.0-dev.6",
56
- "@gct-paas/schema": "6.0.0-dev.6",
57
- "@gct-paas/core-web": "6.0.0-dev.6"
54
+ "@gct-paas/core": "6.0.0-dev.7",
55
+ "@gct-paas/scss": "6.0.0-dev.7",
56
+ "@gct-paas/core-web": "6.0.0-dev.7",
57
+ "@gct-paas/schema": "6.0.0-dev.7"
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.6",
66
66
  "vue": ">=3",
67
- "@gct-paas/core-web": "6.0.0-dev.6",
68
- "@gct-paas/core": "6.0.0-dev.6",
69
- "@gct-paas/schema": "6.0.0-dev.6",
70
- "@gct-paas/scss": "6.0.0-dev.6"
67
+ "@gct-paas/core": "6.0.0-dev.7",
68
+ "@gct-paas/core-web": "6.0.0-dev.7",
69
+ "@gct-paas/schema": "6.0.0-dev.7",
70
+ "@gct-paas/scss": "6.0.0-dev.7"
71
71
  },
72
72
  "scripts": {
73
73
  "dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",