@gct-paas/design 0.1.6-dev.1 → 0.1.6-dev.10

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.
@@ -5,16 +5,23 @@ import { createVNode, defineComponent, watch } from "vue";
5
5
  var AdvancedColumnSetting_default = /* @__PURE__ */ defineComponent({
6
6
  name: "AdvancedColumnSetting",
7
7
  props: {
8
+ /** 所有字段 */
8
9
  fields: {
9
10
  type: Array,
10
11
  required: true
11
12
  },
13
+ /** 树形数据 */
12
14
  columns: Array,
15
+ /** 是否启用多级表头 */
13
16
  useMultiLevelTHead: Boolean,
17
+ /** 是否刷新数据 */
14
18
  isResetData: Boolean,
19
+ /** 是否支持拖拽 */
15
20
  draggable: Boolean,
21
+ /** 穿梭框标题集合 */
16
22
  titles: Array,
17
23
  maxEnableCount: Number,
24
+ /** 回调方法 */
18
25
  onColumnsChange: Function
19
26
  },
20
27
  setup(props, { expose }) {
@@ -9,14 +9,17 @@ var noSearchData = "/extras-assets/design-view/pic_noresult.svg";
9
9
  var AdvancedTransfer_default = /* @__PURE__ */ defineComponent({
10
10
  name: "AdvancedTransfer",
11
11
  props: {
12
+ /** 数据源 */
12
13
  dataSource: {
13
14
  type: Array,
14
15
  required: true
15
16
  },
17
+ /** useTreeData */
16
18
  treeObj: {
17
19
  type: Object,
18
20
  required: true
19
21
  },
22
+ /** 穿梭框标题集合 */
20
23
  titles: {
21
24
  type: Array,
22
25
  default() {
@@ -9,17 +9,26 @@ var FieldTransfer_default = /* @__PURE__ */ defineComponent({
9
9
  name: "FieldTransfer",
10
10
  props: {
11
11
  objFields: Object,
12
+ /** 选中的字段数组 */
12
13
  value: Array,
14
+ /** 穿梭框标题集合 */
13
15
  titles: Array,
14
16
  maxEnableCount: Number,
15
17
  disabledFieldKey: Array,
18
+ /** 包含的字段 */
16
19
  containFieldType: Array,
20
+ /** 包含的字段Key */
17
21
  containFieldKey: Array,
22
+ /**包含的字段创建类型 */
18
23
  containCreateType: Array,
24
+ /** 排除的字段Key */
19
25
  excludeFieldKey: Array,
26
+ /** 排除的字段 */
20
27
  excludeFieldType: Array,
28
+ /**过滤函数 */
21
29
  filterFieldByFunction: Function,
22
30
  onChange: Function,
31
+ /** 是否支持拖拽 */
23
32
  draggable: Boolean
24
33
  },
25
34
  setup(props) {
@@ -10,6 +10,7 @@ var noSearchData = "/extras-assets/design-view/pic_noresult.svg";
10
10
  var TransferTree_default = /* @__PURE__ */ defineComponent({
11
11
  name: "TransferTree",
12
12
  props: {
13
+ /** useTreeData */
13
14
  treeObj: {
14
15
  type: Object,
15
16
  required: true
@@ -5,4 +5,4 @@ import { App } from 'vue';
5
5
  * @export
6
6
  * @param {App} app Vue 应用实例
7
7
  */
8
- export declare function designCreateAppVue(app: App): Promise<void>;
8
+ export declare function designCreateAppVue(app: App): void;
@@ -7,7 +7,7 @@ import editor_default from "./editor/index.mjs";
7
7
  * @export
8
8
  * @param {App} app Vue 应用实例
9
9
  */
10
- async function designCreateAppVue(app) {
10
+ function designCreateAppVue(app) {
11
11
  app.use(components_default);
12
12
  app.use(editor_default);
13
13
  }
@@ -179,7 +179,10 @@ var instance = class ComponentUtils {
179
179
  _buildKitCategory(platform, suiteKey) {
180
180
  const design = this._getDesignerRegister(platform);
181
181
  const list = !suiteKey ? [] : design.getProviders().filter((designer) => {
182
- if (designer.kit && designer.kit.length > 0) return designer.kit.includes(suiteKey);
182
+ if (designer.kit && designer.kit.length > 0) {
183
+ if (designer.kit.includes("*")) return true;
184
+ return designer.kit.includes(suiteKey);
185
+ }
183
186
  return false;
184
187
  }).map((designer) => designer.schema);
185
188
  return {
@@ -201,6 +201,7 @@ function useSelectedWidget() {
201
201
  formModelKey: focusFormRef.value?.props?.model,
202
202
  formId: focusFormRef.value?.id,
203
203
  nodeType: focusFormRef.value.props?.nodeType,
204
+ /**子表关联父模型 */
204
205
  refParentModelkey: focusFormRef.value.props?.refParentModelkey
205
206
  };
206
207
  return {
@@ -71,20 +71,28 @@ function useWidget(props) {
71
71
  }
72
72
  /**widget-wrapper通用的props */
73
73
  var widgetWrapperProps = {
74
+ /**组件 */
74
75
  widget: { type: Object },
76
+ /**父组件 */
75
77
  parentWidget: { type: Object },
78
+ /**父组件List */
76
79
  parentList: { type: Array },
80
+ /**在父组件列表的下标 */
77
81
  indexOfParentList: { type: Number },
82
+ /** 是否隐藏操作按钮 */
78
83
  hideAction: { type: Boolean },
84
+ /** 显示哪些操作按钮 */
79
85
  actionTypes: { type: Array },
80
86
  action: { type: Object },
81
87
  deleteCallback: { type: Function },
88
+ /**是否开启悬浮虚线 */
82
89
  showHoverLine: {
83
90
  type: Boolean,
84
91
  default: false
85
92
  }
86
93
  };
87
94
  var widgetProps = {
95
+ /**组件 */
88
96
  widget: {
89
97
  type: Object,
90
98
  require: true,
@@ -95,8 +95,11 @@ function useModelField(scope = SCOPEINFO.FIELD_FORM) {
95
95
  bindFieldKey: item.key,
96
96
  bindModelKey: item.bindInfo,
97
97
  belongModelKey: item.modelKey,
98
+ /**模型链路 */
98
99
  modelLink: link,
100
+ /**字段链路 */
99
101
  fieldLink: fieldLinks,
102
+ /**关联源模型的模型类型 */
100
103
  refOriginFieldType: fieldType
101
104
  }),
102
105
  modelLink: link,
@@ -134,8 +134,11 @@ function useAsyncOperateField() {
134
134
  }
135
135
  }
136
136
  return {
137
+ /** 同步字段属性 */
137
138
  asyncFieldAttr,
139
+ /** 同步字段信息 */
138
140
  asyncFieldInfo,
141
+ /** 断开子表字段同步 */
139
142
  unBindAsyncStatus
140
143
  };
141
144
  }
package/es/index.mjs CHANGED
@@ -91,7 +91,7 @@ import { DesignNode } from "./data/design-node/design-node.mjs";
91
91
  import { DesignContainerNode } from "./data/design-container-node/design-container-node.mjs";
92
92
  import { DesignEditorNode } from "./data/design-editor-node/design-editor-node.mjs";
93
93
  import "./data/index.mjs";
94
- import { nodeContainerProps, nodeEditorProps, nodeProps } from "./props/index.mjs";
94
+ import { nodeContainerProps, nodeEditorProps, nodeProps } from "./props/design-plugin-props.mjs";
95
95
  import { NodeBaseProvider } from "./provider/node-base/node-base.provider.mjs";
96
96
  import { DesignEditorNodeProvider } from "./provider/design-editor-node/design-editor-node.provider.mjs";
97
97
  import "./provider/index.mjs";
@@ -0,0 +1,64 @@
1
+ import { IDesignEditorNode, IDesignNode } from '@gct-paas/schema';
2
+ import { PropType } from 'vue';
3
+ /**
4
+ * 节点类型组件输入参数
5
+ */
6
+ export declare const nodeProps: {
7
+ readonly count: {
8
+ readonly type: NumberConstructor;
9
+ readonly required: true;
10
+ };
11
+ readonly data: {
12
+ readonly type: PropType<IDesignNode>;
13
+ readonly required: true;
14
+ readonly default: () => {};
15
+ };
16
+ readonly parent: {
17
+ readonly type: PropType<IDesignNode>;
18
+ };
19
+ };
20
+ /**
21
+ * 容器类型组件输入参数
22
+ */
23
+ export declare const nodeContainerProps: {
24
+ readonly count: {
25
+ readonly type: NumberConstructor;
26
+ readonly required: true;
27
+ };
28
+ readonly data: {
29
+ readonly type: PropType<IDesignNode>;
30
+ readonly required: true;
31
+ };
32
+ readonly children: {
33
+ readonly type: PropType<IDesignNode[]>;
34
+ readonly default: () => never[];
35
+ };
36
+ readonly parent: {
37
+ readonly type: PropType<IDesignNode>;
38
+ };
39
+ };
40
+ /**
41
+ * 设计编辑器节点输入参数
42
+ */
43
+ export declare const nodeEditorProps: {
44
+ readonly count: {
45
+ readonly type: NumberConstructor;
46
+ readonly required: true;
47
+ };
48
+ readonly data: {
49
+ readonly type: PropType<IDesignEditorNode>;
50
+ readonly required: true;
51
+ readonly default: () => {};
52
+ };
53
+ readonly field: {
54
+ readonly type: PropType<IObject>;
55
+ readonly required: true;
56
+ };
57
+ readonly value: {
58
+ readonly type: PropType<any>;
59
+ readonly default: "";
60
+ };
61
+ readonly parent: {
62
+ readonly type: PropType<IDesignNode>;
63
+ };
64
+ };
@@ -1,4 +1,4 @@
1
- //#region src/props/index.ts
1
+ //#region src/props/design-plugin-props.ts
2
2
  /**
3
3
  * 节点类型组件输入参数
4
4
  */
@@ -1,64 +1 @@
1
- import { IDesignEditorNode, IDesignNode } from '@gct-paas/schema';
2
- import { PropType } from 'vue';
3
- /**
4
- * 节点类型组件输入参数
5
- */
6
- export declare const nodeProps: {
7
- readonly count: {
8
- readonly type: NumberConstructor;
9
- readonly required: true;
10
- };
11
- readonly data: {
12
- readonly type: PropType<IDesignNode>;
13
- readonly required: true;
14
- readonly default: () => {};
15
- };
16
- readonly parent: {
17
- readonly type: PropType<IDesignNode>;
18
- };
19
- };
20
- /**
21
- * 容器类型组件输入参数
22
- */
23
- export declare const nodeContainerProps: {
24
- readonly count: {
25
- readonly type: NumberConstructor;
26
- readonly required: true;
27
- };
28
- readonly data: {
29
- readonly type: PropType<IDesignNode>;
30
- readonly required: true;
31
- };
32
- readonly children: {
33
- readonly type: PropType<IDesignNode[]>;
34
- readonly default: () => never[];
35
- };
36
- readonly parent: {
37
- readonly type: PropType<IDesignNode>;
38
- };
39
- };
40
- /**
41
- * 设计编辑器节点输入参数
42
- */
43
- export declare const nodeEditorProps: {
44
- count: {
45
- type: NumberConstructor;
46
- required: boolean;
47
- };
48
- data: {
49
- type: PropType<IDesignEditorNode>;
50
- required: boolean;
51
- default: () => {};
52
- };
53
- field: {
54
- type: ObjectConstructor;
55
- required: boolean;
56
- };
57
- value: {
58
- type: PropType<any>;
59
- default: string;
60
- };
61
- parent: {
62
- type: PropType<IDesignNode>;
63
- };
64
- };
1
+ export * from './design-plugin-props';
@@ -5,10 +5,14 @@ var baseBtnProp = {
5
5
  disabled: false,
6
6
  icon: "icon-park:all-application",
7
7
  iconColor: "",
8
+ /**标题 */
8
9
  title: "${sys.pageDesigner.button}",
9
10
  buttonStyle: ButtonStyle.ORDINARY,
11
+ /**二次确认 */
10
12
  confirm: false,
11
13
  confirmText: "",
14
+ /**系统事件类型 */
15
+ /**事件名称 */
12
16
  hasIcon: false,
13
17
  hasText: true,
14
18
  type: ButtonType.PRIMARY,
@@ -8,9 +8,13 @@ var displayProps = {
8
8
  componentDependency: {
9
9
  sortDependency: [],
10
10
  configDependency: {
11
+ /**隐藏 */
11
12
  [Dependency_ENUM.HIDDEN]: { expression: "" },
13
+ /**只读 */
12
14
  [Dependency_ENUM.READONLY]: { expression: "" },
15
+ /**禁用 */
13
16
  [Dependency_ENUM.DISABLED]: { expression: "" },
17
+ /**必填 */
14
18
  [Dependency_ENUM.REQUIRED]: { expression: "" },
15
19
  [Dependency_ENUM.ASSIGNMENT]: {
16
20
  expression: "",
@@ -14,9 +14,12 @@ var modal_exports = /* @__PURE__ */ __exportAll({
14
14
  });
15
15
  var widget = {
16
16
  id: "",
17
+ /**默认是WEB 添加的时候会根据当前环境改变 */
17
18
  platform: Platform.WEB,
19
+ /**系统用的name */
18
20
  name: "sys.pageDesigner.modal",
19
21
  alias: "",
22
+ /**用户新建编辑的name */
20
23
  modalName: "",
21
24
  type: BuiltinType.MODAL,
22
25
  js: "",
@@ -32,6 +35,7 @@ var widget = {
32
35
  editModalTitle: "编辑弹窗",
33
36
  hasFooter: true,
34
37
  openMode: "modal",
38
+ /**just mobile */
35
39
  mUnitType: "%",
36
40
  mModalWidth: 80
37
41
  },
@@ -227,7 +227,8 @@ var useDesignViewStore = () => {
227
227
  if (!data.pageNode) {
228
228
  const p = NodeRegister.get(DesignNodeType.PAGE, this.prefix) || NodeRegister.get(DesignNodeType.PAGE_LOWER, this.prefix);
229
229
  if (p) {
230
- this.pageNode = reactive(p.create());
230
+ const node = p.create();
231
+ this.pageNode = reactive(node);
231
232
  this.pageNode.data = reactive(this.pageNode.data || {});
232
233
  } else console.warn(`节点类型[${DesignNodeType.PAGE}],未注册适配器`);
233
234
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/design",
3
- "version": "0.1.6-dev.1",
3
+ "version": "0.1.6-dev.10",
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": "^0.1.4-dev.4",
37
+ "@gct-paas/api": "^0.1.6-dev.5",
38
38
  "@jsplumb/browser-ui": "^6.2.10",
39
39
  "@vueuse/core": "^14.1.0",
40
40
  "ant-design-vue": "~3.2.20",
@@ -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": "0.1.6-dev.1",
55
- "@gct-paas/scss": "0.1.6-dev.1",
56
- "@gct-paas/core-web": "0.1.6-dev.1",
57
- "@gct-paas/schema": "0.1.6-dev.1"
54
+ "@gct-paas/core": "0.1.6-dev.10",
55
+ "@gct-paas/schema": "0.1.6-dev.10",
56
+ "@gct-paas/core-web": "0.1.6-dev.10",
57
+ "@gct-paas/scss": "0.1.6-dev.10"
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": "^0.1.4-dev.4",
65
+ "@gct-paas/api": "^0.1.6-dev.5",
66
66
  "vue": ">=3",
67
- "@gct-paas/core": "0.1.6-dev.1",
68
- "@gct-paas/core-web": "0.1.6-dev.1",
69
- "@gct-paas/scss": "0.1.6-dev.1",
70
- "@gct-paas/schema": "0.1.6-dev.1"
67
+ "@gct-paas/core-web": "0.1.6-dev.10",
68
+ "@gct-paas/core": "0.1.6-dev.10",
69
+ "@gct-paas/schema": "0.1.6-dev.10",
70
+ "@gct-paas/scss": "0.1.6-dev.10"
71
71
  },
72
72
  "scripts": {
73
73
  "dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",