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