@leadal/flowstream-ui-plus 0.0.5 → 0.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 +9 -3
- package/dist/flowstream-ui-plus.js +4414 -4371
- package/dist/flowstream-ui-plus.umd.cjs +11 -11
- package/dist/index.d.ts +73 -1
- package/dist/style.css +1 -1
- package/docs//346/216/245/345/205/245/346/226/207/346/241/243.md +10 -3
- package/package.json +1 -1
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` | — |
|
|
238
|
+
| `default` | — | 自定义按钮内容;未提供时显示 `label`,再回退到 `type` |
|
|
233
239
|
|
|
234
240
|
#### 4) 组件示例
|
|
235
241
|
|
|
@@ -758,6 +764,6 @@ await flowstream.getRuntimeService().start({
|
|
|
758
764
|
})
|
|
759
765
|
```
|
|
760
766
|
|
|
761
|
-
业务弹窗通过右上角关闭、路由离开或组件卸载时也必须 `resolve(false)`,避免 `start()` 一直处于等待状态。`singleAssignee` 默认为 `true
|
|
767
|
+
业务弹窗通过右上角关闭、路由离开或组件卸载时也必须 `resolve(false)`,避免 `start()` 一直处于等待状态。`singleAssignee` 默认为 `false`,发送弹窗优先采用下一节点接口返回的 `dealType/dealTypeLabel`;显式设置为 `true` 时会无视节点办理方式并强制单选。也可在启动参数中传入 `dialogTitle`、`dialogWidth`、`defaultOpinion`、`bpmnXml` 和 `assignmentQueryParams`。
|
|
762
768
|
|
|
763
769
|
`quickStart()`、`getFirstHandleNodes()`、`nextSendNode()`、`nodeAssistant()` 和 `sendTask()` 仍作为底层 API 导出,供组件内部及高级扩展使用;普通业务项目应优先调用 `flowstream.getRuntimeService().start()`,不要自行复制流程编排。
|