百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#2007·metroui

PageControl 组件

作者: dypsysss创建于 2025年11月10日更新于 2025年11月10日

使用 getTabByTitle 函数时, pagecontrol 组件出现错误。当标签具有 'page-control__tab__caption' 时, 使用 '.caption' 来查找标签: getTabByTitle: function(caption) { if (!caption) { return undefined; } const tabs = this.component.find(".page-control__tab"); for (const tab of tabs) { if ($(tab).find("** .page-control__tab__caption **").text() === caption) { return tab; } } return undefined; }

内容来源: olton/metroui

查看 GitHub 原文在 GitHub 查看讨论