@leadal/flowstream-ui-plus 0.0.5 → 0.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 CHANGED
@@ -180,6 +180,7 @@ configureWorkflow({
180
180
  | `prefix` | `{ action }` | 每个流程按钮前的内容 |
181
181
  | `default` | `{ action }` | 每个流程按钮区域的自定义内容 |
182
182
  | `suffix` | `{ action }` | 每个流程按钮后的内容 |
183
+ | `append` | `{ actions, loading }` | 整个按钮组末尾的内容,仅渲染一次 |
183
184
 
184
185
  #### 5) 组件示例
185
186
 
@@ -194,7 +195,12 @@ configureWorkflow({
194
195
  @execute-action="handleFlowAction"
195
196
  @after-action="handleAfterAction"
196
197
  @error="handleError"
197
- />
198
+ >
199
+ <template #append>
200
+ <el-button link type="primary" @click="handlePrint">打印</el-button>
201
+ <el-button link type="primary" @click="handleExport">导出</el-button>
202
+ </template>
203
+ </ui-flow-buttons>
198
204
  ```
199
205
 
200
206
  任务“办毕”等内置操作成功后,应在 `after-action` 中提示并刷新列表:
@@ -229,7 +235,7 @@ function handleAfterAction(action: string, result: unknown) {
229
235
 
230
236
  | 插槽 | 参数 | 说明 |
231
237
  | --------- | ---- | ---------------------------------------- |
232
- | `default` | — | `type` 不匹配预设按钮时显示自定义内容 |
238
+ | `default` | — | 自定义按钮内容;未提供时显示 `label`,再回退到 `type` |
233
239
 
234
240
  #### 4) 组件示例
235
241