hn-workflow-components 1.0.5 → 1.0.6
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 +6 -3
- package/dist/workflow-components.es.js +3898 -3874
- package/dist/workflow-components.umd.js +159 -159
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -99,6 +99,9 @@ function App() {
|
|
|
99
99
|
| `processName` | `string` | ✅ | 流程显示名称 |
|
|
100
100
|
| `baseUrl` | `string` | ✅ | 后端 API 基础地址 |
|
|
101
101
|
| `customHeaders` | `Record<string, string>` | ❌ | 自定义请求头 |
|
|
102
|
+
| `onSave` | `(data: any) => void` | ❌ | 保存流程处理 |
|
|
103
|
+
| `onPublish` | `(data: any) => void` | ❌ | 发布流程处理 |
|
|
104
|
+
| `onSelectMembers` | `(data: any) => {label:string, value:string}[]` | ❌ | 成员选择 |
|
|
102
105
|
|
|
103
106
|
### WorkflowViewerComponents(查看器)
|
|
104
107
|
|
|
@@ -113,9 +116,9 @@ function App() {
|
|
|
113
116
|
|
|
114
117
|
```ts
|
|
115
118
|
interface StatusColors {
|
|
116
|
-
completed?: string
|
|
117
|
-
processing?: string
|
|
118
|
-
pending?: string
|
|
119
|
+
completed?: string // 已处理(默认 #52c41a)
|
|
120
|
+
processing?: string // 处理中(默认 #faad14)
|
|
121
|
+
pending?: string // 待处理(默认 #d9d9d9)
|
|
119
122
|
}
|
|
120
123
|
```
|
|
121
124
|
|