@cloud-app-dev/vidc 2.3.0 → 3.0.0
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.
- package/.umirc.ts +2 -2
- package/es/Config/interface.d.ts +2 -1
- package/es/DomMove/demo.d.ts +2 -0
- package/es/DomMove/demo.js +16 -0
- package/es/DomMove/index.d.ts +16 -0
- package/es/DomMove/index.js +145 -0
- package/es/DomMove/utils.d.ts +8 -0
- package/es/{Picture/component/MoveContent → DomMove}/utils.js +19 -0
- package/es/Drawer/index.d.ts +2 -2
- package/es/Drawer/interface.d.ts +4 -174
- package/es/ErrorBoundary/index.d.ts +18 -0
- package/es/ErrorBoundary/index.js +84 -0
- package/es/List/DynamicGridList/Demo.js +40 -27
- package/es/List/DynamicGridList/index.d.ts +20 -29
- package/es/List/DynamicGridList/index.js +40 -63
- package/es/List/DynamicList/index.css +15 -0
- package/es/List/DynamicList/index.d.ts +14 -0
- package/es/List/DynamicList/index.js +105 -0
- package/es/List/DynamicList/interface.d.ts +19 -0
- package/es/List/DynamicList/utils.d.ts +4 -0
- package/es/List/DynamicList/utils.js +6 -0
- package/es/List/GridList/Demo.js +27 -4
- package/es/List/GridList/index.css +1 -0
- package/es/List/GridList/index.d.ts +2 -2
- package/es/List/GridList/index.js +8 -12
- package/es/List/GridList/interface.d.ts +1 -1
- package/es/List/VList/index.js +2 -3
- package/es/List/index.css +2 -54
- package/es/List/index.d.ts +6 -7
- package/es/List/index.js +14 -153
- package/es/List/interface.d.ts +3 -61
- package/es/LoaderApp/index.d.ts +1 -1
- package/es/LoaderApp/index.js +27 -46
- package/es/LoaderApp/interface.d.ts +3 -0
- package/es/LoaderApp/loader.d.ts +6 -7
- package/es/LoaderApp/loader.js +20 -30
- package/es/LoaderApp/sandbox.back.d.ts +18 -0
- package/es/LoaderApp/sandbox.back.js +356 -0
- package/es/LoaderApp/sandbox.d.ts +12 -0
- package/es/LoaderApp/sandbox.js +110 -0
- package/es/LoaderApp/utils.d.ts +5 -1
- package/es/LoaderApp/utils.js +98 -2
- package/es/Map/AMap.d.ts +1572 -0
- package/es/Map/BasicMap/AMapInstance.d.ts +15 -0
- package/es/Map/BasicMap/AMapInstance.js +66 -0
- package/es/Map/BasicMap/LeafletInstance.d.ts +15 -0
- package/es/Map/BasicMap/LeafletInstance.js +98 -0
- package/es/Map/BasicMap/index.css +24 -0
- package/es/Map/BasicMap/index.d.ts +9 -0
- package/es/Map/BasicMap/index.js +108 -0
- package/es/Map/ClusterLayer/hook.d.ts +5 -0
- package/es/Map/ClusterLayer/hook.js +144 -0
- package/es/Map/ClusterLayer/index.css +26 -0
- package/es/Map/ClusterLayer/index.d.ts +5 -0
- package/es/Map/ClusterLayer/index.js +31 -0
- package/es/Map/ClusterLayer/props.d.ts +8 -0
- package/es/Map/Config/index.d.ts +7 -0
- package/es/{InitialConfig → Map/Config}/index.js +35 -36
- package/es/Map/Config/utils.d.ts +2 -0
- package/es/{List/DynamicDeviceList → Map/Config}/utils.js +48 -45
- package/es/Map/Context/index.d.ts +11 -0
- package/es/Map/Context/index.js +66 -0
- package/es/Map/FindPio/index.css +7 -0
- package/es/Map/FindPio/index.d.ts +4 -0
- package/es/Map/FindPio/index.js +16 -0
- package/es/{WorkerFlow/Demo.d.ts → Map/InfoWindow/demo.d.ts} +0 -0
- package/es/{List/DynamicDeviceList/Demo.js → Map/InfoWindow/demo.js} +27 -25
- package/es/Map/InfoWindow/index.d.ts +8 -0
- package/es/Map/InfoWindow/index.js +74 -0
- package/es/Map/LevelCenter/DragMarker/index.d.ts +12 -0
- package/es/Map/LevelCenter/DragMarker/index.js +48 -0
- package/es/{List/DeviceList → Map/LevelCenter}/index.css +0 -0
- package/es/Map/LevelCenter/index.d.ts +13 -0
- package/es/Map/LevelCenter/index.js +42 -0
- package/es/Map/LoaderMap/index.d.ts +12 -0
- package/es/Map/LoaderMap/index.js +58 -0
- package/es/Map/ResetTools/index.css +32 -0
- package/es/Map/ResetTools/index.d.ts +9 -0
- package/es/Map/ResetTools/index.js +61 -0
- package/es/Map/SinglePoint/Marker/index.d.ts +7 -0
- package/es/Map/SinglePoint/Marker/index.js +29 -0
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Hover.svg +15 -0
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Normal.svg +15 -0
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Hover.svg +15 -0
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Normal.svg +15 -0
- package/es/Map/SinglePoint/index.css +29 -0
- package/es/Map/SinglePoint/index.d.ts +7 -0
- package/es/Map/SinglePoint/index.js +32 -0
- package/es/Map/hook/useMapType.d.ts +4 -0
- package/es/Map/hook/useMapType.js +13 -0
- package/es/Map/icon.d.ts +2 -0
- package/es/Map/icon.js +10 -0
- package/es/Map/index.d.ts +23 -0
- package/es/Map/index.js +25 -0
- package/es/Map/interface.d.ts +55 -0
- package/es/Map/points.json +61247 -0
- package/es/{Picture/component/MoveContent → Map/useMarker}/index.css +0 -0
- package/es/Map/useMarker/index.d.ts +11 -0
- package/es/{WorkerFlow/Form/FormAuth.js → Map/useMarker/index.js} +57 -80
- package/es/Map/withMap/index.d.ts +2 -0
- package/es/Map/withMap/index.js +12 -0
- package/es/Picture/index.d.ts +1 -1
- package/es/Picture/index.js +2 -2
- package/es/Player/api/index.d.ts +1 -0
- package/es/Player/api/index.js +7 -1
- package/es/Player/demo.js +13 -21
- package/es/Player/event/index.js +5 -1
- package/es/Player/frontend_player.d.ts +1 -1
- package/es/Player/frontend_player.js +20 -13
- package/es/Player/frontend_timeline.d.ts +1 -1
- package/es/Player/live_heart.js +45 -12
- package/es/Player/message.js +23 -12
- package/es/Player/player.d.ts +31 -7
- package/es/Player/segment_player.d.ts +1 -1
- package/es/Player/segment_player.js +30 -18
- package/es/Player/segment_timeline.js +6 -6
- package/es/Player/single_player.js +50 -9
- package/es/Player/timeline.js +8 -6
- package/es/Player/util.d.ts +2 -1
- package/es/Player/util.js +4 -1
- package/es/PlayerExt/index.css +2 -2
- package/es/PlayerExt/index.d.ts +3 -1
- package/es/PlayerExt/index.js +19 -5
- package/es/ScreenPlayer/Live.d.ts +5 -0
- package/es/ScreenPlayer/Live.js +109 -0
- package/es/ScreenPlayer/LiveTools.d.ts +15 -0
- package/es/ScreenPlayer/LiveTools.js +95 -0
- package/es/ScreenPlayer/PlayerWithExt.d.ts +22 -0
- package/es/ScreenPlayer/PlayerWithExt.js +169 -0
- package/es/ScreenPlayer/Record.d.ts +5 -0
- package/es/{WorkerFlow/index.js → ScreenPlayer/Record.js} +290 -273
- package/es/ScreenPlayer/RecordTools.d.ts +17 -0
- package/es/ScreenPlayer/RecordTools.js +102 -0
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +10 -0
- package/es/ScreenPlayer/SegmentTimeLine.js +40 -0
- package/es/ScreenPlayer/TimeSlider.d.ts +127 -0
- package/es/ScreenPlayer/TimeSlider.js +528 -0
- package/es/ScreenPlayer/demo.d.ts +2 -0
- package/es/ScreenPlayer/demo.js +25 -0
- package/es/ScreenPlayer/demo2.d.ts +2 -0
- package/es/ScreenPlayer/demo2.js +153 -0
- package/es/ScreenPlayer/index.css +50 -0
- package/es/ScreenPlayer/index.d.ts +6 -0
- package/es/ScreenPlayer/index.js +7 -0
- package/es/ScreenPlayer/interface.d.ts +81 -0
- package/es/ScreenPlayer/useRecordList.d.ts +3 -0
- package/es/{WorkerFlow/Form/UserAndGroupSelect.js → ScreenPlayer/useRecordList.js} +173 -176
- package/es/ScreenPlayer/useVideoFit.d.ts +5 -0
- package/es/ScreenPlayer/useVideoFit.js +46 -0
- package/es/ScreenPlayer/utils.d.ts +25 -0
- package/es/ScreenPlayer/utils.js +84 -0
- package/es/Tree/demo.js +9 -12
- package/es/Tree/index.css +55 -29
- package/es/Tree/index.d.ts +20 -19
- package/es/Tree/index.js +70 -185
- package/es/index.d.ts +7 -9
- package/es/index.js +7 -9
- package/es/useInfiniteScroll/index.d.ts +16 -0
- package/es/{useHttp → useInfiniteScroll}/index.js +79 -43
- package/es/useVirtualList/index.d.ts +13 -0
- package/es/useVirtualList/index.js +175 -0
- package/es/withErrorBoundary/index.d.ts +8 -0
- package/es/withErrorBoundary/index.js +43 -0
- package/package.json +18 -21
- package/test.js +48 -0
- package/es/DeviceIcon/icon.d.ts +0 -9
- package/es/DeviceIcon/icon.js +0 -138
- package/es/DeviceIcon/index.css +0 -8
- package/es/DeviceIcon/index.d.ts +0 -14
- package/es/DeviceIcon/index.js +0 -37
- package/es/DeviceSelect/TreeType.d.ts +0 -7
- package/es/DeviceSelect/TreeType.js +0 -36
- package/es/DeviceSelect/demo.d.ts +0 -3
- package/es/DeviceSelect/demo.js +0 -22
- package/es/DeviceSelect/index.css +0 -11
- package/es/DeviceSelect/index.d.ts +0 -13
- package/es/DeviceSelect/index.js +0 -191
- package/es/Dict/cache.d.ts +0 -3
- package/es/Dict/cache.js +0 -21
- package/es/Dict/device.d.ts +0 -28
- package/es/Dict/device.js +0 -117
- package/es/Dict/hook.d.ts +0 -3
- package/es/Dict/hook.js +0 -98
- package/es/Dict/index.d.ts +0 -9
- package/es/Dict/index.js +0 -10
- package/es/Dict/interface.d.ts +0 -16
- package/es/Dict/utils.d.ts +0 -10
- package/es/Dict/utils.js +0 -44
- package/es/InitialConfig/index.d.ts +0 -8
- package/es/InitialConfig/utils.d.ts +0 -20
- package/es/InitialConfig/utils.js +0 -110
- package/es/InitialRequest/index.d.ts +0 -9
- package/es/InitialRequest/index.js +0 -97
- package/es/InitialRequest/utils.d.ts +0 -10
- package/es/InitialRequest/utils.js +0 -116
- package/es/List/CheckExt.d.ts +0 -9
- package/es/List/CheckExt.js +0 -36
- package/es/List/DeviceList/index.d.ts +0 -11
- package/es/List/DeviceList/index.js +0 -50
- package/es/List/DynamicDeviceList/Demo.d.ts +0 -3
- package/es/List/DynamicDeviceList/index.css +0 -39
- package/es/List/DynamicDeviceList/index.d.ts +0 -12
- package/es/List/DynamicDeviceList/index.js +0 -205
- package/es/List/DynamicDeviceList/interface.d.ts +0 -37
- package/es/List/DynamicDeviceList/utils.d.ts +0 -16
- package/es/List/ListExt/index.css +0 -3
- package/es/List/ListExt/index.d.ts +0 -19
- package/es/List/ListExt/index.js +0 -44
- package/es/Picture/component/MoveContent/index.d.ts +0 -39
- package/es/Picture/component/MoveContent/index.js +0 -244
- package/es/Picture/component/MoveContent/utils.d.ts +0 -4
- package/es/Title/index.css +0 -25
- package/es/Title/index.d.ts +0 -12
- package/es/Title/index.js +0 -30
- package/es/Tree/BaseTree/index.css +0 -64
- package/es/Tree/BaseTree/index.d.ts +0 -24
- package/es/Tree/BaseTree/index.js +0 -83
- package/es/UserSelect/demo.d.ts +0 -3
- package/es/UserSelect/demo.js +0 -21
- package/es/UserSelect/index.css +0 -16
- package/es/UserSelect/index.d.ts +0 -18
- package/es/UserSelect/index.js +0 -194
- package/es/WorkerFlow/Demo.js +0 -57
- package/es/WorkerFlow/Form/Approver.d.ts +0 -10
- package/es/WorkerFlow/Form/Approver.js +0 -33
- package/es/WorkerFlow/Form/Condition.d.ts +0 -11
- package/es/WorkerFlow/Form/Condition.js +0 -235
- package/es/WorkerFlow/Form/EmptyUserSet.d.ts +0 -8
- package/es/WorkerFlow/Form/EmptyUserSet.js +0 -137
- package/es/WorkerFlow/Form/FormAuth.d.ts +0 -8
- package/es/WorkerFlow/Form/GroupList.d.ts +0 -12
- package/es/WorkerFlow/Form/GroupList.js +0 -44
- package/es/WorkerFlow/Form/GroupSelect.d.ts +0 -8
- package/es/WorkerFlow/Form/GroupSelect.js +0 -167
- package/es/WorkerFlow/Form/GroupSelectModalContent.d.ts +0 -6
- package/es/WorkerFlow/Form/GroupSelectModalContent.js +0 -177
- package/es/WorkerFlow/Form/Handle.d.ts +0 -10
- package/es/WorkerFlow/Form/Handle.js +0 -33
- package/es/WorkerFlow/Form/LevelGroupSelect.d.ts +0 -12
- package/es/WorkerFlow/Form/LevelGroupSelect.js +0 -208
- package/es/WorkerFlow/Form/Notifier.d.ts +0 -8
- package/es/WorkerFlow/Form/Notifier.js +0 -16
- package/es/WorkerFlow/Form/UserAndGroupSelect.d.ts +0 -8
- package/es/WorkerFlow/Form/UserSelect.d.ts +0 -8
- package/es/WorkerFlow/Form/UserSelect.js +0 -150
- package/es/WorkerFlow/Form/UserSelectModalContent.d.ts +0 -6
- package/es/WorkerFlow/Form/UserSelectModalContent.js +0 -166
- package/es/WorkerFlow/Form/UserSet.d.ts +0 -14
- package/es/WorkerFlow/Form/UserSet.js +0 -308
- package/es/WorkerFlow/Form/UsersHandleType.d.ts +0 -7
- package/es/WorkerFlow/Form/UsersHandleType.js +0 -32
- package/es/WorkerFlow/Form/utils.d.ts +0 -3
- package/es/WorkerFlow/Form/utils.js +0 -47
- package/es/WorkerFlow/Nodes/Add.d.ts +0 -7
- package/es/WorkerFlow/Nodes/Add.js +0 -98
- package/es/WorkerFlow/Nodes/AddOption.d.ts +0 -10
- package/es/WorkerFlow/Nodes/AddOption.js +0 -23
- package/es/WorkerFlow/Nodes/AddOptionList.d.ts +0 -8
- package/es/WorkerFlow/Nodes/AddOptionList.js +0 -46
- package/es/WorkerFlow/Nodes/Approver.d.ts +0 -11
- package/es/WorkerFlow/Nodes/Approver.js +0 -53
- package/es/WorkerFlow/Nodes/Condition.d.ts +0 -10
- package/es/WorkerFlow/Nodes/Condition.js +0 -140
- package/es/WorkerFlow/Nodes/Constants.d.ts +0 -35
- package/es/WorkerFlow/Nodes/Constants.js +0 -150
- package/es/WorkerFlow/Nodes/End.d.ts +0 -7
- package/es/WorkerFlow/Nodes/End.js +0 -16
- package/es/WorkerFlow/Nodes/Handle.d.ts +0 -11
- package/es/WorkerFlow/Nodes/Handle.js +0 -52
- package/es/WorkerFlow/Nodes/Node.d.ts +0 -8
- package/es/WorkerFlow/Nodes/Node.js +0 -26
- package/es/WorkerFlow/Nodes/Notifier.d.ts +0 -11
- package/es/WorkerFlow/Nodes/Notifier.js +0 -52
- package/es/WorkerFlow/Nodes/Render.d.ts +0 -8
- package/es/WorkerFlow/Nodes/Render.js +0 -16
- package/es/WorkerFlow/Nodes/Start.d.ts +0 -12
- package/es/WorkerFlow/Nodes/Start.js +0 -26
- package/es/WorkerFlow/Nodes/TitleElement.d.ts +0 -10
- package/es/WorkerFlow/Nodes/TitleElement.js +0 -127
- package/es/WorkerFlow/Nodes/Wrap.d.ts +0 -13
- package/es/WorkerFlow/Nodes/Wrap.js +0 -35
- package/es/WorkerFlow/OperatorContext.d.ts +0 -4
- package/es/WorkerFlow/OperatorContext.js +0 -3
- package/es/WorkerFlow/Tools.d.ts +0 -8
- package/es/WorkerFlow/Tools.js +0 -78
- package/es/WorkerFlow/XML/CanvasTag.d.ts +0 -3
- package/es/WorkerFlow/XML/CanvasTag.js +0 -142
- package/es/WorkerFlow/XML/EndEvent.d.ts +0 -1
- package/es/WorkerFlow/XML/EndEvent.js +0 -14
- package/es/WorkerFlow/XML/ExclusiveGateway.d.ts +0 -9
- package/es/WorkerFlow/XML/ExclusiveGateway.js +0 -101
- package/es/WorkerFlow/XML/Root.d.ts +0 -1
- package/es/WorkerFlow/XML/Root.js +0 -5
- package/es/WorkerFlow/XML/StartEvent.d.ts +0 -5
- package/es/WorkerFlow/XML/StartEvent.js +0 -28
- package/es/WorkerFlow/XML/UserTask.d.ts +0 -5
- package/es/WorkerFlow/XML/UserTask.js +0 -93
- package/es/WorkerFlow/XML/index.d.ts +0 -4
- package/es/WorkerFlow/XML/index.js +0 -100
- package/es/WorkerFlow/XML/utils.d.ts +0 -6
- package/es/WorkerFlow/XML/utils.js +0 -97
- package/es/WorkerFlow/data.json +0 -83
- package/es/WorkerFlow/index.css +0 -779
- package/es/WorkerFlow/index.d.ts +0 -13
- package/es/WorkerFlow/interface.d.ts +0 -93
- package/es/WorkerFlow/template.d.ts +0 -2
- package/es/WorkerFlow/template.js +0 -17
- package/es/WorkerFlow/utils.d.ts +0 -14
- package/es/WorkerFlow/utils.js +0 -212
- package/es/useHttp/index.d.ts +0 -8
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import React, { useContext } from 'react';
|
|
2
|
-
import AddNode from './Add';
|
|
3
|
-
import Render from './Render';
|
|
4
|
-
import { NodeTypes } from './Constants';
|
|
5
|
-
import WFC from '../OperatorContext';
|
|
6
|
-
import TitleElement from './TitleElement';
|
|
7
|
-
import IconFont from '../../IconFont';
|
|
8
|
-
|
|
9
|
-
function CoverLine(_ref) {
|
|
10
|
-
var _ref$first = _ref.first,
|
|
11
|
-
first = _ref$first === void 0 ? false : _ref$first,
|
|
12
|
-
_ref$last = _ref.last,
|
|
13
|
-
last = _ref$last === void 0 ? false : _ref$last;
|
|
14
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, first && /*#__PURE__*/React.createElement("div", {
|
|
15
|
-
className: "top-left-cover-line"
|
|
16
|
-
}), first && /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className: "bottom-left-cover-line"
|
|
18
|
-
}), last && /*#__PURE__*/React.createElement("div", {
|
|
19
|
-
className: "top-right-cover-line"
|
|
20
|
-
}), last && /*#__PURE__*/React.createElement("div", {
|
|
21
|
-
className: "bottom-right-cover-line"
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function BranchNode(_ref2) {
|
|
26
|
-
var first = _ref2.first,
|
|
27
|
-
last = _ref2.last,
|
|
28
|
-
sortLeft = _ref2.sortLeft,
|
|
29
|
-
owner = _ref2.owner,
|
|
30
|
-
delBranch = _ref2.delBranch,
|
|
31
|
-
sortRight = _ref2.sortRight,
|
|
32
|
-
onBranchClick = _ref2.onBranchClick,
|
|
33
|
-
updateNode = _ref2.updateNode,
|
|
34
|
-
errorIds = _ref2.errorIds,
|
|
35
|
-
node = _ref2.node,
|
|
36
|
-
id = _ref2.id;
|
|
37
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
-
className: "condition-node"
|
|
39
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
40
|
-
className: "condition-node-box"
|
|
41
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
-
className: "auto-judge ".concat(node.error || errorIds.includes(id) ? 'error' : ''),
|
|
43
|
-
id: id
|
|
44
|
-
}, !first && /*#__PURE__*/React.createElement("div", {
|
|
45
|
-
className: "sort-left",
|
|
46
|
-
onClick: sortLeft
|
|
47
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
className: "title-wrapper"
|
|
49
|
-
}, /*#__PURE__*/React.createElement(TitleElement, {
|
|
50
|
-
placeholder: "\u8BF7\u8F93\u5165\u6761\u4EF6\u540D\u79F0",
|
|
51
|
-
delNode: delBranch,
|
|
52
|
-
nodeName: node.nodeName,
|
|
53
|
-
onTitleChange: function onTitleChange(v) {
|
|
54
|
-
node.nodeName = v;
|
|
55
|
-
updateNode();
|
|
56
|
-
}
|
|
57
|
-
})), !last && /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
className: "sort-right",
|
|
59
|
-
onClick: sortRight
|
|
60
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: "content",
|
|
62
|
-
onClick: function onClick() {
|
|
63
|
-
return onBranchClick(node);
|
|
64
|
-
}
|
|
65
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
66
|
-
className: "text"
|
|
67
|
-
}, owner ? /*#__PURE__*/React.createElement("span", {
|
|
68
|
-
title: owner
|
|
69
|
-
}, owner) : /*#__PURE__*/React.createElement("span", {
|
|
70
|
-
className: "placeholder"
|
|
71
|
-
}, "\u8BF7\u8BBE\u7F6E\u6761\u4EF6"), /*#__PURE__*/React.createElement(IconFont, {
|
|
72
|
-
type: "icon-S_Arrow_SmallRight"
|
|
73
|
-
})))), /*#__PURE__*/React.createElement(AddNode, {
|
|
74
|
-
node: node
|
|
75
|
-
})));
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function ConditionNode(_ref3) {
|
|
79
|
-
var _ref3$conditionNodes = _ref3.conditionNodes,
|
|
80
|
-
branches = _ref3$conditionNodes === void 0 ? [] : _ref3$conditionNodes,
|
|
81
|
-
parentNode = _ref3.parentNode,
|
|
82
|
-
node = _ref3.node,
|
|
83
|
-
id = _ref3.id;
|
|
84
|
-
|
|
85
|
-
var _useContext = useContext(WFC),
|
|
86
|
-
onInsertNode = _useContext.onInsertNode,
|
|
87
|
-
onDeleteNode = _useContext.onDeleteNode,
|
|
88
|
-
onSelectNode = _useContext.onSelectNode,
|
|
89
|
-
readOnly = _useContext.readOnly,
|
|
90
|
-
updateNode = _useContext.updateNode,
|
|
91
|
-
_useContext$errorIds = _useContext.errorIds,
|
|
92
|
-
errorIds = _useContext$errorIds === void 0 ? [] : _useContext$errorIds;
|
|
93
|
-
|
|
94
|
-
if (!Array.isArray(branches) || branches.length === 0) {
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
99
|
-
className: "branch-wrap"
|
|
100
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
101
|
-
className: "branch-box-wrap"
|
|
102
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
103
|
-
className: "branch-box"
|
|
104
|
-
}, !readOnly && /*#__PURE__*/React.createElement("button", {
|
|
105
|
-
className: "add-branch",
|
|
106
|
-
onClick: function onClick() {
|
|
107
|
-
return onInsertNode(NodeTypes.BRANCH, node);
|
|
108
|
-
},
|
|
109
|
-
id: id
|
|
110
|
-
}, "\u6DFB\u52A0\u6761\u4EF6"), branches.map(function (item, index) {
|
|
111
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
112
|
-
className: "col-box",
|
|
113
|
-
key: index.toString()
|
|
114
|
-
}, /*#__PURE__*/React.createElement(BranchNode, Object.assign({}, item, {
|
|
115
|
-
priorityLevel: item.priorityLevel,
|
|
116
|
-
owner: item.owner,
|
|
117
|
-
first: index === 0,
|
|
118
|
-
updateNode: updateNode,
|
|
119
|
-
onBranchClick: function onBranchClick() {
|
|
120
|
-
return onSelectNode(node, parentNode, index);
|
|
121
|
-
},
|
|
122
|
-
delBranch: function delBranch() {
|
|
123
|
-
return branches.length === 2 ? onDeleteNode(parentNode, node) : onDeleteNode(parentNode, node, NodeTypes.BRANCH, index);
|
|
124
|
-
},
|
|
125
|
-
last: index === branches.length - 1,
|
|
126
|
-
node: item,
|
|
127
|
-
errorIds: errorIds
|
|
128
|
-
})), item.childNode && /*#__PURE__*/React.createElement(Render, {
|
|
129
|
-
parentNode: item,
|
|
130
|
-
config: item.childNode
|
|
131
|
-
}), /*#__PURE__*/React.createElement(CoverLine, {
|
|
132
|
-
first: index === 0,
|
|
133
|
-
last: index === branches.length - 1
|
|
134
|
-
}));
|
|
135
|
-
})), /*#__PURE__*/React.createElement(AddNode, {
|
|
136
|
-
node: node
|
|
137
|
-
})));
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export default ConditionNode;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { MutipleUserHandleType, NodeItem, NodeType, NodeTypeKey, UserSetType } from '../interface';
|
|
2
|
-
export declare const OptionTypes: {
|
|
3
|
-
[key in NodeTypeKey]: NodeType;
|
|
4
|
-
};
|
|
5
|
-
export declare const UserSetOptions: {
|
|
6
|
-
[key in UserSetType]: {
|
|
7
|
-
label: string;
|
|
8
|
-
value: UserSetType;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare const UserHandleTypeOptions: {
|
|
12
|
-
[key in MutipleUserHandleType]: {
|
|
13
|
-
label: string;
|
|
14
|
-
value: MutipleUserHandleType;
|
|
15
|
-
desc: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export declare const NodeTypes: {
|
|
19
|
-
START: number;
|
|
20
|
-
APPROVER: NodeType;
|
|
21
|
-
NOTIFIER: NodeType;
|
|
22
|
-
BRANCH: NodeType;
|
|
23
|
-
CONDITION: NodeType;
|
|
24
|
-
HANDLE: NodeType;
|
|
25
|
-
};
|
|
26
|
-
export declare const OptionNames: {
|
|
27
|
-
[key: number]: {
|
|
28
|
-
name: string;
|
|
29
|
-
color: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export declare const NodeTemplates: {
|
|
33
|
-
[key: number]: () => NodeItem;
|
|
34
|
-
};
|
|
35
|
-
export declare const createVNodeApprover: () => NodeItem;
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
var _OptionNames, _NodeTemplates;
|
|
2
|
-
|
|
3
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
|
|
5
|
-
import { createId } from '../XML/utils'; // 添加节点类型
|
|
6
|
-
|
|
7
|
-
export var OptionTypes = {
|
|
8
|
-
APPROVER: 1,
|
|
9
|
-
NOTIFIER: 2,
|
|
10
|
-
BRANCH: 3,
|
|
11
|
-
CONDITION: 4,
|
|
12
|
-
HANDLE: 5
|
|
13
|
-
}; //人员类型
|
|
14
|
-
|
|
15
|
-
export var UserSetOptions = {
|
|
16
|
-
1: {
|
|
17
|
-
label: '指定人员',
|
|
18
|
-
value: 1
|
|
19
|
-
},
|
|
20
|
-
2: {
|
|
21
|
-
label: '自选人员',
|
|
22
|
-
value: 2
|
|
23
|
-
},
|
|
24
|
-
3: {
|
|
25
|
-
label: '岗位',
|
|
26
|
-
value: 3
|
|
27
|
-
},
|
|
28
|
-
4: {
|
|
29
|
-
label: '直属主管',
|
|
30
|
-
value: 4
|
|
31
|
-
},
|
|
32
|
-
5: {
|
|
33
|
-
label: '连续多级主管',
|
|
34
|
-
value: 5
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
export var UserHandleTypeOptions = {
|
|
38
|
-
1: {
|
|
39
|
-
label: '会签',
|
|
40
|
-
value: 1,
|
|
41
|
-
desc: '须所有审批人同意'
|
|
42
|
-
},
|
|
43
|
-
2: {
|
|
44
|
-
label: '或签',
|
|
45
|
-
value: 2,
|
|
46
|
-
desc: '一名审批人同意或拒绝即可'
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
export var NodeTypes = Object.assign(Object.assign({}, OptionTypes), {
|
|
50
|
-
START: 0
|
|
51
|
-
}); // 节点类型默认标题名
|
|
52
|
-
|
|
53
|
-
export var OptionNames = (_OptionNames = {}, _defineProperty(_OptionNames, OptionTypes.APPROVER, {
|
|
54
|
-
name: '审批人',
|
|
55
|
-
color: 'rgb(41, 204, 204)'
|
|
56
|
-
}), _defineProperty(_OptionNames, OptionTypes.NOTIFIER, {
|
|
57
|
-
name: '抄送人',
|
|
58
|
-
color: 'rgb(25, 140, 255)'
|
|
59
|
-
}), _defineProperty(_OptionNames, OptionTypes.CONDITION, {
|
|
60
|
-
name: '条件分支',
|
|
61
|
-
color: '#15bc83'
|
|
62
|
-
}), _defineProperty(_OptionNames, OptionTypes.HANDLE, {
|
|
63
|
-
name: '办理人',
|
|
64
|
-
color: 'rgb(255, 179, 25)'
|
|
65
|
-
}), _OptionNames); // 节点模板
|
|
66
|
-
|
|
67
|
-
export var NodeTemplates = (_NodeTemplates = {}, _defineProperty(_NodeTemplates, OptionTypes.APPROVER, function () {
|
|
68
|
-
return {
|
|
69
|
-
id: createId('UserTask'),
|
|
70
|
-
nodeName: '审核人',
|
|
71
|
-
type: OptionTypes.APPROVER,
|
|
72
|
-
nodeUserList: [],
|
|
73
|
-
bpmnType: 'userTask'
|
|
74
|
-
};
|
|
75
|
-
}), _defineProperty(_NodeTemplates, OptionTypes.HANDLE, function () {
|
|
76
|
-
return {
|
|
77
|
-
id: createId('UserTask'),
|
|
78
|
-
nodeName: '办理人',
|
|
79
|
-
type: OptionTypes.HANDLE,
|
|
80
|
-
nodeUserList: [],
|
|
81
|
-
bpmnType: 'userTask'
|
|
82
|
-
};
|
|
83
|
-
}), _defineProperty(_NodeTemplates, OptionTypes.NOTIFIER, function () {
|
|
84
|
-
return {
|
|
85
|
-
id: createId('UserTask'),
|
|
86
|
-
nodeName: '抄送人',
|
|
87
|
-
type: OptionTypes.NOTIFIER,
|
|
88
|
-
nodeUserList: [],
|
|
89
|
-
bpmnType: 'userTask'
|
|
90
|
-
};
|
|
91
|
-
}), _defineProperty(_NodeTemplates, OptionTypes.CONDITION, function () {
|
|
92
|
-
return {
|
|
93
|
-
id: createId('ExclusiveGateway'),
|
|
94
|
-
nodeName: '条件分支',
|
|
95
|
-
type: OptionTypes.CONDITION,
|
|
96
|
-
childNode: null,
|
|
97
|
-
conditionNodes: [],
|
|
98
|
-
bpmnType: 'exclusiveGateway'
|
|
99
|
-
};
|
|
100
|
-
}), _defineProperty(_NodeTemplates, OptionTypes.BRANCH, function () {
|
|
101
|
-
return {
|
|
102
|
-
id: createId('SequenceFlow'),
|
|
103
|
-
nodeName: '条件',
|
|
104
|
-
type: OptionTypes.BRANCH,
|
|
105
|
-
conditionList: [],
|
|
106
|
-
nodeUserList: [],
|
|
107
|
-
childNode: null,
|
|
108
|
-
bpmnType: 'sequenceFlow'
|
|
109
|
-
};
|
|
110
|
-
}), _NodeTemplates);
|
|
111
|
-
export var createVNodeApprover = function createVNodeApprover() {
|
|
112
|
-
var getway = {
|
|
113
|
-
id: createId('ExclusiveGateway'),
|
|
114
|
-
nodeName: '路由',
|
|
115
|
-
type: OptionTypes.CONDITION,
|
|
116
|
-
conditionNodes: [],
|
|
117
|
-
bpmnType: 'exclusiveGateway'
|
|
118
|
-
};
|
|
119
|
-
var sequence1 = {
|
|
120
|
-
id: createId('SequenceFlow'),
|
|
121
|
-
nodeName: '同意',
|
|
122
|
-
type: OptionTypes.BRANCH,
|
|
123
|
-
conditionList: [{
|
|
124
|
-
field: 'dealBlank',
|
|
125
|
-
value: true
|
|
126
|
-
}],
|
|
127
|
-
expression: '${dealBlank == true}',
|
|
128
|
-
childNode: null,
|
|
129
|
-
bpmnType: 'sequenceFlow'
|
|
130
|
-
};
|
|
131
|
-
var sequence2 = {
|
|
132
|
-
id: createId('SequenceFlow'),
|
|
133
|
-
nodeName: '拒绝',
|
|
134
|
-
type: OptionTypes.BRANCH,
|
|
135
|
-
conditionList: [{
|
|
136
|
-
field: 'dealBlank',
|
|
137
|
-
value: false
|
|
138
|
-
}],
|
|
139
|
-
expression: '${dealBlank == false}',
|
|
140
|
-
childNode: {
|
|
141
|
-
id: createId('EndEvent'),
|
|
142
|
-
nodeName: '流程结束',
|
|
143
|
-
type: 9,
|
|
144
|
-
bpmnType: 'endEvent'
|
|
145
|
-
},
|
|
146
|
-
bpmnType: 'sequenceFlow'
|
|
147
|
-
};
|
|
148
|
-
getway.conditionNodes.push(sequence1, sequence2);
|
|
149
|
-
return getway;
|
|
150
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
function EndNode(_ref) {
|
|
4
|
-
var id = _ref.id,
|
|
5
|
-
nodeName = _ref.nodeName;
|
|
6
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
-
className: "end-node"
|
|
8
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
9
|
-
className: "end-node-circle",
|
|
10
|
-
id: id
|
|
11
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
className: "end-node-text"
|
|
13
|
-
}, nodeName));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default EndNode;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { NodeItem } from '../interface';
|
|
3
|
-
interface IHandleNodeProps {
|
|
4
|
-
parentNode: NodeItem;
|
|
5
|
-
node: NodeItem;
|
|
6
|
-
nodeName: string;
|
|
7
|
-
owner?: string;
|
|
8
|
-
id: string;
|
|
9
|
-
}
|
|
10
|
-
declare function HandleNode({ parentNode, node, nodeName, owner, id }: IHandleNodeProps): JSX.Element;
|
|
11
|
-
export default HandleNode;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React, { useContext } from 'react';
|
|
2
|
-
import NodeWrap from './Wrap';
|
|
3
|
-
import TitleElement from './TitleElement';
|
|
4
|
-
import WFC from '../OperatorContext';
|
|
5
|
-
import IconFont from '../../IconFont';
|
|
6
|
-
|
|
7
|
-
function HandleNode(_ref) {
|
|
8
|
-
var parentNode = _ref.parentNode,
|
|
9
|
-
node = _ref.node,
|
|
10
|
-
nodeName = _ref.nodeName,
|
|
11
|
-
owner = _ref.owner,
|
|
12
|
-
id = _ref.id;
|
|
13
|
-
|
|
14
|
-
var _useContext = useContext(WFC),
|
|
15
|
-
onDeleteNode = _useContext.onDeleteNode,
|
|
16
|
-
onSelectNode = _useContext.onSelectNode,
|
|
17
|
-
updateNode = _useContext.updateNode;
|
|
18
|
-
|
|
19
|
-
var TitleEl = /*#__PURE__*/React.createElement(TitleElement, {
|
|
20
|
-
icon: "icon-yewu",
|
|
21
|
-
delNode: function delNode() {
|
|
22
|
-
return onDeleteNode(parentNode, node);
|
|
23
|
-
},
|
|
24
|
-
placeholder: nodeName,
|
|
25
|
-
nodeName: nodeName,
|
|
26
|
-
onTitleChange: function onTitleChange(val) {
|
|
27
|
-
node.nodeName = val;
|
|
28
|
-
updateNode();
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
return /*#__PURE__*/React.createElement(NodeWrap, {
|
|
32
|
-
id: id,
|
|
33
|
-
titleStyle: {
|
|
34
|
-
backgroundColor: '#FFB319'
|
|
35
|
-
},
|
|
36
|
-
onContentClick: function onContentClick() {
|
|
37
|
-
return onSelectNode(node, parentNode);
|
|
38
|
-
},
|
|
39
|
-
title: TitleEl,
|
|
40
|
-
node: node
|
|
41
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
-
className: "text"
|
|
43
|
-
}, owner ? /*#__PURE__*/React.createElement("span", {
|
|
44
|
-
title: owner
|
|
45
|
-
}, owner) : /*#__PURE__*/React.createElement("span", {
|
|
46
|
-
className: "placeholder"
|
|
47
|
-
}, "\u8BF7\u9009\u62E9\u529E\u7406\u4EBA"), /*#__PURE__*/React.createElement(IconFont, {
|
|
48
|
-
type: "icon-S_Arrow_SmallRight"
|
|
49
|
-
})));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export default HandleNode;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import StartNode from './Start';
|
|
3
|
-
import ApproverNode from './Approver';
|
|
4
|
-
import NotifierNode from './Notifier';
|
|
5
|
-
import ConditionNode from './Condition';
|
|
6
|
-
import HandleNode from './Handle';
|
|
7
|
-
var NodeMaps = {
|
|
8
|
-
0: StartNode,
|
|
9
|
-
1: ApproverNode,
|
|
10
|
-
2: NotifierNode,
|
|
11
|
-
4: ConditionNode,
|
|
12
|
-
5: HandleNode
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
function MatchNode(_ref) {
|
|
16
|
-
var config = _ref.config,
|
|
17
|
-
parentNode = _ref.parentNode;
|
|
18
|
-
var Node = NodeMaps[config.type] || null;
|
|
19
|
-
return Node && /*#__PURE__*/React.createElement(Node, Object.assign({}, config, {
|
|
20
|
-
node: config,
|
|
21
|
-
parentNode: parentNode,
|
|
22
|
-
key: config.id
|
|
23
|
-
}));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default MatchNode;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { NodeItem } from '../interface';
|
|
3
|
-
interface INotifierNodeProps {
|
|
4
|
-
parentNode: NodeItem;
|
|
5
|
-
node: NodeItem;
|
|
6
|
-
nodeName: string;
|
|
7
|
-
owner?: string;
|
|
8
|
-
id: string;
|
|
9
|
-
}
|
|
10
|
-
declare function NotifierNode({ parentNode, node, nodeName, owner, id }: INotifierNodeProps): JSX.Element;
|
|
11
|
-
export default NotifierNode;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React, { useContext } from 'react';
|
|
2
|
-
import NodeWrap from './Wrap';
|
|
3
|
-
import TitleElement from './TitleElement';
|
|
4
|
-
import WFC from '../OperatorContext';
|
|
5
|
-
import IconFont from '../../IconFont';
|
|
6
|
-
|
|
7
|
-
function NotifierNode(_ref) {
|
|
8
|
-
var parentNode = _ref.parentNode,
|
|
9
|
-
node = _ref.node,
|
|
10
|
-
nodeName = _ref.nodeName,
|
|
11
|
-
owner = _ref.owner,
|
|
12
|
-
id = _ref.id;
|
|
13
|
-
|
|
14
|
-
var _useContext = useContext(WFC),
|
|
15
|
-
onDeleteNode = _useContext.onDeleteNode,
|
|
16
|
-
onSelectNode = _useContext.onSelectNode,
|
|
17
|
-
updateNode = _useContext.updateNode;
|
|
18
|
-
|
|
19
|
-
var TitleEl = /*#__PURE__*/React.createElement(TitleElement, {
|
|
20
|
-
icon: "icon-biaoqian",
|
|
21
|
-
delNode: function delNode() {
|
|
22
|
-
return onDeleteNode(parentNode, node);
|
|
23
|
-
},
|
|
24
|
-
placeholder: nodeName,
|
|
25
|
-
nodeName: nodeName,
|
|
26
|
-
onTitleChange: function onTitleChange(val) {
|
|
27
|
-
node.nodeName = val;
|
|
28
|
-
updateNode();
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
return /*#__PURE__*/React.createElement(NodeWrap, {
|
|
32
|
-
id: id,
|
|
33
|
-
titleStyle: {
|
|
34
|
-
backgroundColor: '#198CFF'
|
|
35
|
-
},
|
|
36
|
-
onContentClick: function onContentClick() {
|
|
37
|
-
return onSelectNode(node, parentNode);
|
|
38
|
-
},
|
|
39
|
-
title: TitleEl,
|
|
40
|
-
node: node
|
|
41
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
-
className: "text"
|
|
43
|
-
}, owner ? /*#__PURE__*/React.createElement("span", {
|
|
44
|
-
title: owner
|
|
45
|
-
}, owner) : /*#__PURE__*/React.createElement("span", {
|
|
46
|
-
className: "placeholder"
|
|
47
|
-
}, "\u8BF7\u9009\u62E9\u6284\u9001\u4EBA"), /*#__PURE__*/React.createElement(IconFont, {
|
|
48
|
-
type: "icon-S_Arrow_SmallRight"
|
|
49
|
-
})));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export default NotifierNode;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import MatchNode from './Node';
|
|
3
|
-
|
|
4
|
-
function Render(_ref) {
|
|
5
|
-
var config = _ref.config,
|
|
6
|
-
parentNode = _ref.parentNode;
|
|
7
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MatchNode, {
|
|
8
|
-
parentNode: parentNode,
|
|
9
|
-
config: config
|
|
10
|
-
}), config.childNode && /*#__PURE__*/React.createElement(Render, {
|
|
11
|
-
parentNode: config,
|
|
12
|
-
config: config.childNode
|
|
13
|
-
}));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default Render;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { NodeItem, NodeUserType } from '../interface';
|
|
3
|
-
interface IStartNode {
|
|
4
|
-
node: NodeItem;
|
|
5
|
-
onContentClick?: () => void;
|
|
6
|
-
nodeName: string;
|
|
7
|
-
id: string;
|
|
8
|
-
owner?: string;
|
|
9
|
-
nodeUserList?: NodeUserType[];
|
|
10
|
-
}
|
|
11
|
-
declare function StartNode({ id, node, onContentClick, nodeName, owner }: IStartNode): JSX.Element;
|
|
12
|
-
export default StartNode;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import NodeWrap from './Wrap';
|
|
3
|
-
|
|
4
|
-
function StartNode(_ref) {
|
|
5
|
-
var id = _ref.id,
|
|
6
|
-
node = _ref.node,
|
|
7
|
-
onContentClick = _ref.onContentClick,
|
|
8
|
-
nodeName = _ref.nodeName,
|
|
9
|
-
owner = _ref.owner;
|
|
10
|
-
// const allowSetUser = useMemo(() => !nodeUserList.map((v) => v.type).includes('system'), []);
|
|
11
|
-
return /*#__PURE__*/React.createElement(NodeWrap, {
|
|
12
|
-
id: id,
|
|
13
|
-
type: 0,
|
|
14
|
-
node: node,
|
|
15
|
-
onContentClick: onContentClick,
|
|
16
|
-
title: /*#__PURE__*/React.createElement("span", null, nodeName)
|
|
17
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18
|
-
className: "text"
|
|
19
|
-
}, owner ? /*#__PURE__*/React.createElement("span", {
|
|
20
|
-
title: owner
|
|
21
|
-
}, owner) : /*#__PURE__*/React.createElement("span", {
|
|
22
|
-
className: "placeholder"
|
|
23
|
-
}, "\u8BF7\u9009\u62E9\u53D1\u8D77\u4EBA")));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default StartNode;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface ITitleElementProps {
|
|
3
|
-
placeholder: string;
|
|
4
|
-
nodeName: string;
|
|
5
|
-
onTitleChange: (val: string) => void;
|
|
6
|
-
icon?: string;
|
|
7
|
-
delNode: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare function TitleElement({ nodeName, placeholder, onTitleChange, icon, delNode }: ITitleElementProps): JSX.Element;
|
|
10
|
-
export default TitleElement;
|