Skip to content

AgentApproval ​

通用人工审批、选择、拒绝与确认卡片。

案例 ​

AgentApprovalH5 与 Wevu 使用同一公共 API
实时状态
发布检查工作流AgentApproval
需要你的确认确认发布动作确认后 Agent 才能执行外部副作用。

基础用法 ​

vue
<script setup lang="ts">
import { AgentApproval } from '@/components/agent-ui'
</script>

<template>
  <AgentApproval v-model:value="value" title="确认发布" :choices="choices" />
</template>

Props ​

PropTypeDefault说明
approveTextstring确认确认按钮
choicesAgentChoice[][]审批选项
descriptionstring—说明
rejectTextstring拒绝拒绝按钮
titlestringrequired审批标题
valuestring''当前选择

Events ​

EventPayload说明
approvestring确认
rejectvoid拒绝
update:valuestring更新选择

Slots ​

Slot说明
default补充内容

平台差异

TargetImport
H5Named export from @/components/agent-ui
weapp@/components/agent-ui/AgentApproval.vue