Skip to content

tab组件默认索引不是第一个时的临时方案 #20

@fayching

Description

@fayching
var tab = new fz.Scroll('.ui-tab', {
    role: 'tab',
    interval: 3000,
    autoplay: true
});
tab.currentPage = 1;
$(tab.nav.children[0]).removeClass('current');
$(tab.nav.children[tab.currentPage]).addClass('current');
tab.scrollTo(-tab.itemWidth * tab.currentPage, 0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions