@giteeteam/apps-team-components 1.7.3 → 1.7.4
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/README.md
CHANGED
|
@@ -8,6 +8,21 @@
|
|
|
8
8
|
pnpm i
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
## 使用注意
|
|
12
|
+
插件使用需要加上speedy:false,防止切换应用时css会丢失。
|
|
13
|
+
|
|
14
|
+
```jsx
|
|
15
|
+
import { LibraryProvider } from "@giteeteam/apps-team-components";
|
|
16
|
+
|
|
17
|
+
const Demo = ({children}) => {
|
|
18
|
+
return (
|
|
19
|
+
<LibraryProvider emotionCacheOptions={{ key: "appKey", speedy: false }}>
|
|
20
|
+
{children}
|
|
21
|
+
</LibraryProvider>
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
11
26
|
## 预览
|
|
12
27
|
**开发前务必先阅读预览首页文档**
|
|
13
28
|
```
|
|
@@ -5,6 +5,7 @@ import { proximaSdk, useListener } from '@giteeteam/proxima-sdk-js';
|
|
|
5
5
|
import { message } from 'antd';
|
|
6
6
|
import debug from 'debug';
|
|
7
7
|
import { cloneDeep } from 'lodash-es';
|
|
8
|
+
import { WorkflowStatusType } from '../../../lib/global.js';
|
|
8
9
|
import useCurrentUser from '../../../lib/hooks/useCurrentUser.js';
|
|
9
10
|
import useWorkflowConfig from '../../../lib/hooks/useWorkflowConfig.js';
|
|
10
11
|
import { i18n } from '../../../lib/i18n.js';
|
|
@@ -276,7 +277,8 @@ const TransitionPanel = ({ itemId, itemType, workspace, objectId, onTransitionSu
|
|
|
276
277
|
if (flowHandlerActive) {
|
|
277
278
|
if (transitionStep === TransitionStepType.SelectTransition) {
|
|
278
279
|
const nextStateTransition = workflowData.transitions.find(t => t.source.id === target.key);
|
|
279
|
-
|
|
280
|
+
const nextState = workflowData.nodes.find(node => node.id === target.key);
|
|
281
|
+
if (nextStateTransition && (nextState === null || nextState === void 0 ? void 0 : nextState.key) !== WorkflowStatusType.Finished) {
|
|
280
282
|
setCurrentFlowHandler(undefined);
|
|
281
283
|
setFlowTask(tasks.find(task => task.name === transitionText));
|
|
282
284
|
setTransitionStep(TransitionStepType.SelectFlowHandler);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@giteeteam/apps-team-components",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "Gitee team components",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -106,5 +106,6 @@
|
|
|
106
106
|
"workerDirectory": [
|
|
107
107
|
"public"
|
|
108
108
|
]
|
|
109
|
-
}
|
|
110
|
-
|
|
109
|
+
},
|
|
110
|
+
"packageManager": "pnpm@7.32.5+sha512.4395951a16c3553123c8693f9e350e9ce18824f602b5af158fb17c2d6ee10a53251544522e31e3003d3b1b9bf5422d25ca14f86e8d10053c552674ee9e33fd15"
|
|
111
|
+
}
|