简体中文
flow.remind.list.card.render.before
约 179 字小于 1 分钟
2026-04-17
flow.remind.list.card.render.before
说明:该钩子用于改写单张待办卡片按钮、自定义组件和更多按钮。
一. customComponten
功能描述
- 改写单张待办卡片按钮、自定义组件和更多按钮。
参数
| 参数 | 说明 | 类型 |
|---|---|---|
| btnList | 弹层按钮列表 | Array |
| moreList | 更多操作列表 | Array |
| updateItem | 卡片渲染数据 | Object |
返回结果
| 参数 | 说明 | 类型 |
|---|---|---|
| customComponten | 自定义组件配置 | Object |
| btnList | 弹层按钮列表 | Array |
| moreList | 更多操作列表 | Array |
参数代码示例
let btnList = options && options.btnList;代码示例
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.remind.list.card.render.before",
functional: async function (context, options) {
let btnList = options && options.btnList;
let moreList = options && options.moreList;
let updateItem = options && options.updateItem;
return Promise.resolve({
customComponten: {},
btnList: btnList,
moreList: moreList
});
}
}
];
}
};
};