@coding-flow/flow-design 0.0.53 → 0.0.55

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.
@@ -4,7 +4,8 @@ const initialData = {
4
4
  id: 'start',
5
5
  type: 'START',
6
6
  data: {
7
- title: '开始节点'
7
+ title: '开始节点',
8
+ viewTitle: '开始节点'
8
9
  }
9
10
  },
10
11
  {
@@ -15,6 +15,23 @@ const View = ()=>{
15
15
  },
16
16
  layout: "vertical",
17
17
  children: [
18
+ /*#__PURE__*/ jsx(Form.Item, {
19
+ label: /*#__PURE__*/ jsx(FieldTip, {
20
+ label: "视图标题",
21
+ description: "节点视图的展示标题,用于审批页面或自定义视图展示。"
22
+ }),
23
+ name: [
24
+ "viewTitle"
25
+ ],
26
+ children: /*#__PURE__*/ jsx(Field, {
27
+ name: "viewTitle",
28
+ render: ({ field: { value, onChange } })=>/*#__PURE__*/ jsx(Input, {
29
+ value: value,
30
+ onChange: onChange,
31
+ placeholder: "请输入视图标题"
32
+ })
33
+ })
34
+ }),
18
35
  /*#__PURE__*/ jsx(Form.Item, {
19
36
  label: /*#__PURE__*/ jsx(FieldTip, {
20
37
  label: "视图名称",
@@ -16,6 +16,7 @@ class NodeConvertorManager {
16
16
  script: node.script,
17
17
  code: node.code,
18
18
  view: node.view,
19
+ viewTitle: node.viewTitle || node.name,
19
20
  display: node.display,
20
21
  ...this.toStrategyRender(node)
21
22
  },
@@ -35,6 +36,7 @@ class NodeConvertorManager {
35
36
  order: data?.order ? data?.order + '' : '0',
36
37
  view: data?.view,
37
38
  code: data?.code,
39
+ viewTitle: data?.viewTitle || data?.title,
38
40
  actions: data?.actions || [],
39
41
  strategies: this.toStrategyData(data),
40
42
  script: data?.script,
@@ -28,6 +28,7 @@ export interface FlowNode {
28
28
  script?: string;
29
29
  code?: string;
30
30
  view?: string;
31
+ viewTitle?: string;
31
32
  display?: boolean;
32
33
  }
33
34
  export interface State {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coding-flow/flow-design",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "description": "flow-engine design components ",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -49,16 +49,16 @@
49
49
  "nanoid": "^5.1.6",
50
50
  "react-redux": "^9.2.0",
51
51
  "styled-components": "^5.3.11",
52
- "@coding-flow/flow-icons": "0.0.53",
53
- "@coding-flow/flow-core": "0.0.53",
54
- "@coding-flow/flow-types": "0.0.53",
55
- "@coding-flow/flow-pc-ui": "0.0.53"
52
+ "@coding-flow/flow-pc-ui": "0.0.55",
53
+ "@coding-flow/flow-types": "0.0.55",
54
+ "@coding-flow/flow-icons": "0.0.55",
55
+ "@coding-flow/flow-core": "0.0.55"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/lodash-es": "^4.17.12",
59
59
  "@types/styled-components": "^5.1.36",
60
- "@coding-flow/flow-core": "0.0.53",
61
- "@coding-flow/flow-types": "0.0.53"
60
+ "@coding-flow/flow-core": "0.0.55",
61
+ "@coding-flow/flow-types": "0.0.55"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "rslib build",