@coding-flow/flow-design 0.0.56 → 0.0.58

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,8 +4,7 @@ const initialData = {
4
4
  id: 'start',
5
5
  type: 'START',
6
6
  data: {
7
- title: '开始节点',
8
- viewTitle: '开始节点'
7
+ title: '开始节点'
9
8
  }
10
9
  },
11
10
  {
@@ -15,23 +15,6 @@ 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
- }),
35
18
  /*#__PURE__*/ jsx(Form.Item, {
36
19
  label: /*#__PURE__*/ jsx(FieldTip, {
37
20
  label: "视图名称",
@@ -67,6 +50,23 @@ const View = ()=>{
67
50
  })
68
51
  })
69
52
  }),
53
+ /*#__PURE__*/ jsx(Form.Item, {
54
+ label: /*#__PURE__*/ jsx(FieldTip, {
55
+ label: "视图标题",
56
+ description: "节点视图的展示标题,用于审批页面或自定义视图展示。"
57
+ }),
58
+ name: [
59
+ "viewTitle"
60
+ ],
61
+ children: /*#__PURE__*/ jsx(Field, {
62
+ name: "viewTitle",
63
+ render: ({ field: { value, onChange } })=>/*#__PURE__*/ jsx(Input, {
64
+ value: value,
65
+ onChange: onChange,
66
+ placeholder: "请输入视图标题"
67
+ })
68
+ })
69
+ }),
70
70
  /*#__PURE__*/ jsx(Field, {
71
71
  name: "code",
72
72
  render: ({ field: { value, onChange } })=>/*#__PURE__*/ jsx(Fragment, {
@@ -16,7 +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
+ viewTitle: node.viewTitle,
20
20
  display: node.display,
21
21
  ...this.toStrategyRender(node)
22
22
  },
@@ -36,7 +36,7 @@ class NodeConvertorManager {
36
36
  order: data?.order ? data?.order + '' : '0',
37
37
  view: data?.view,
38
38
  code: data?.code,
39
- viewTitle: data?.viewTitle || data?.title,
39
+ viewTitle: data?.viewTitle,
40
40
  actions: data?.actions || [],
41
41
  strategies: this.toStrategyData(data),
42
42
  script: data?.script,
@@ -6,7 +6,8 @@ import { GroovyScriptLoader } from "../../groovy-script-loader.js";
6
6
  const ScriptEditorContent = (props)=>/*#__PURE__*/ jsx(Fragment, {
7
7
  children: /*#__PURE__*/ jsx(ActionCustomView, {
8
8
  scriptKey: props.scriptKey,
9
- value: props.value
9
+ value: props.value,
10
+ onChange: props.onChange
10
11
  })
11
12
  });
12
13
  const CustomActionForm = (props)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coding-flow/flow-design",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
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-core": "0.0.56",
53
- "@coding-flow/flow-icons": "0.0.56",
54
- "@coding-flow/flow-pc-ui": "0.0.56",
55
- "@coding-flow/flow-types": "0.0.56"
52
+ "@coding-flow/flow-core": "0.0.58",
53
+ "@coding-flow/flow-pc-ui": "0.0.58",
54
+ "@coding-flow/flow-icons": "0.0.58",
55
+ "@coding-flow/flow-types": "0.0.58"
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.56",
61
- "@coding-flow/flow-types": "0.0.56"
60
+ "@coding-flow/flow-core": "0.0.58",
61
+ "@coding-flow/flow-types": "0.0.58"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "rslib build",