hn-workflow-components 1.0.5 → 1.0.7

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
@@ -99,6 +99,10 @@ 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}[]` | ❌ | 成员选择 |
105
+ | `onSelectRoles` | `(data: any) => {label:string, value:string}[]` | ❌ | 成员选择 |
102
106
 
103
107
  ### WorkflowViewerComponents(查看器)
104
108
 
@@ -113,9 +117,9 @@ function App() {
113
117
 
114
118
  ```ts
115
119
  interface StatusColors {
116
- completed?: string // 已处理(默认 #52c41a)
117
- processing?: string // 处理中(默认 #faad14)
118
- pending?: string // 待处理(默认 #d9d9d9)
120
+ completed?: string // 已处理(默认 #52c41a)
121
+ processing?: string // 处理中(默认 #faad14)
122
+ pending?: string // 待处理(默认 #d9d9d9)
119
123
  }
120
124
  ```
121
125