页面树结构
转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

版本 1 下一个 »

(本文档仅供参考)

问题描述:

如何隐藏某仪表盘页面工具栏的部分按钮呢?

解决方案:

添加宏:

function main(page: IPage) {
    let toolbar = page.getPageToolbar()//获取仪表盘工具栏接口对象
    toolbar.removeButton(9)//点赞按钮
    toolbar.removeButton(8)//评论按钮
    toolbar.removeButton(7)//分享按钮
    toolbar.removeButton(6)//收藏按钮
    toolbar.removeButton(4)//下载按钮
    toolbar.removeButton(3)//另存
    toolbar.removeButton(2)//重载
    toolbar.removeButton(1)//刷新

}



  • 无标签