简体中文
flow.remind.list.card.btn.render.before
约 175 字小于 1 分钟
2025-09-22
该钩子用于业务流待办卡片底部按钮渲染之前,用户可以自定义按钮操作。
说明:该钩子用于业务流待办卡片底部按钮渲染之前,用户可以自定义按钮操作。
参数
| 参数 | 说明 | 类型 |
|---|---|---|
| updateItem | 当前要更新的待办列表条目包含任务数据及按钮 | Object |
返回值
| 参数 | 说明 | 类型 |
|---|---|---|
| updateItem | 当前要更新的待办列表条目包含任务数据及按钮 | Array |
代码示例
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
let self = this;
return [{
event: "flow.remind.list.card.btn.render.before",
functional: async function (context, options) {
let taskButtons= options && options.updateItem && options.updateItem.buttonList;
if (taskButtons&& taskButtons.length > 0) {
bottomBtn[0].text = '插改名'
}
return Promise.resolve({
updateItem: options.updateItem,
});
}
}]
}
}
}