---
title: "金格插件顶部“文件”按钮功能扩展（基线260501以上）"
publicId: "e7762a3d-b537-451f-99aa-e0e640c935cf"
source: "https://weapp.eteams.cn/build/techdoc/wdoc/index.html#/public/doc/e7762a3d-b537-451f-99aa-e0e640c935cf"
---
功能说明，屏蔽按钮，或者添加自定义功能，或者修改按钮名称

![image.png](_assets/e7762a3d-b537-451f-99aa-e0e640c935cf/1264099855525814277.png)

```typescript
import { regOvProps } from '@weapp/utils';

regOvProps("weappOdoc", "Iweb2015Plugin",  (props)=>{//CommonFileOffice
  const customIwebofficeMenus = (menus)=>{ 
    menus.push({key:"199", name:"测试"})
    return menus;
  } 
  const customIwebofficeFunc = (key, docSdk)=>{ //可以操作金格相关sdk内容
    alert("测试按钮key="+key)
  }
  return {...props,customIwebofficeMenus:customIwebofficeMenus, customIwebofficeFunc:customIwebofficeFunc};
});
```
