@leadal/flowstream-ui-plus 0.0.10 → 0.0.12
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 +73 -7
- package/dist/flowstream-ui-plus.js +5229 -4711
- package/dist/flowstream-ui-plus.umd.cjs +15 -15
- package/dist/index.d.ts +84 -57
- package/dist/style.css +1 -1
- package/docs//346/216/245/345/205/245/346/226/207/346/241/243.md +3 -3
- package/package.json +1 -1
|
@@ -209,7 +209,7 @@ const diagramRef = ref<InstanceType<typeof FlowDiagram>>()
|
|
|
209
209
|
|
|
210
210
|
## 9. ui-flow-send
|
|
211
211
|
|
|
212
|
-
`FlowSend`
|
|
212
|
+
`FlowSend` 是完整的发送办理组件,内置发送前检查、下一环节解析、办理人选择、流程变量、可编辑扩展参数、审批意见和确认发送弹窗。“下一环节、输入变量、扩展参数”使用普通页签展示。`FlowButtons` 已默认集成该组件;只有需要自定义编排时,才单独使用 FlowSend,并给 FlowButtons 设置 `:auto-handle-dialogs="false"`。
|
|
213
213
|
|
|
214
214
|
```vue
|
|
215
215
|
<script setup lang="ts">
|
|
@@ -245,9 +245,9 @@ function handleAction(action: string) {
|
|
|
245
245
|
</template>
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
推荐通过 `v-model`
|
|
248
|
+
推荐通过 `v-model` 控制发送流程,避免宿主依赖组件实例;实例仍公开 `open()`、`close()`、`getNextNode()`、`assembleData()` 和 `send()`。组件打开前先请求 `POST /flowstream/server/task/event/checkSend`:`matched=true` 时展示“下一节点、办理人”确认框并直接发送,`matched=false` 时才打开完整选人弹窗。完整弹窗通过 `nodeAssistant` 请求 `POST /flowstream/server/assignment/event/query` 加载下一节点候选人,最终提交 `/flowstream/server/task/event/send`。前端不再根据固定人员、选择人员等类型自行推断是否需要弹窗。
|
|
249
249
|
|
|
250
|
-
`assignmentQueryParams`
|
|
250
|
+
`assignmentQueryParams` 是可选的扩展路由参数对象,可以传一个、多个字段或不传,并作为“扩展参数”页签的初始值。用户可按参数名称、类型和值继续编辑;参数发生变化后,组件会清空旧办理人、重新加载候选人,并在每次候选办理人查询(包括组织树懒加载)中将参数整体放入 `extendParams`。请求根对象中的 `processDefinitionId`、`processInstanceId`、`activityId`、`userId`、`parentId` 和 `ntype` 由组件维护。动态路由配置为“流程启动者”时,后端通过 `processInstanceId` 读取该实例的起草人,因此运行时发送、跳转场景应传入该字段。使用 `FlowButtons` 内置发送/跳转弹窗或 `getRuntimeService().start()` 时也可传入同名参数。
|
|
251
251
|
|
|
252
252
|
## 10. ui-flow-jump
|
|
253
253
|
|