Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ExtJS 7卡布局幻灯片动画-BUG setActiveItem_Extjs_Extjs7 - Fatal编程技术网

ExtJS 7卡布局幻灯片动画-BUG setActiveItem

ExtJS 7卡布局幻灯片动画-BUG setActiveItem,extjs,extjs7,Extjs,Extjs7,我自己的组件有以下配置。当我输入信息“component”.setActiveItem(页面索引)时。它向我显示了错误的内容。仅当我使用此设置时才会发生这种情况: layout: { type: "card", animation: { type: "slide", direction: "horizontal" } } 如果我使用配置: layout: "card&quo

我自己的组件有以下配置。当我输入信息“component”.setActiveItem(页面索引)时。它向我显示了错误的内容。仅当我使用此设置时才会发生这种情况:

layout: {
    type: "card", 
    animation: {
      type: "slide", 
      direction: "horizontal"
    }
}
如果我使用配置:

layout: "card"
它工作得很好。问题发生在布局动画中

以下是一个例子:

Ext.define("App.empresas.Form.view", {
    extend: "Ext.Panel",
    xtype: "empresas-form",

    layout: {
        type: "card",
        animation: {
            type: "slide",
            direction: "down"
        }
    },
    items : [{
        xtype: "formpanel",
        reference: "form",
        items: [/*fields config*/]
    },{
        xtype: "grid",
        title: "Contatos",
        reference: "contatos",
        layout: "fit",
        markDirty: true,
        sortable: true,
        grouped: false,
        scrollable: true,
        enableColumnMove: false,
        /* more grid config...*/
    },{
        xtype: "grid",
        title: "Endereços",
        reference: "enderecos",
        layout: "fit",
        markDirty: true,
        sortable: true,
        grouped: false,
        scrollable: true,
        enableColumnMove: false,
        /* more grid config...*/
    },{
        xtype: "grid",
        title: "Pessoas por endereços",
        reference: "pessoas",
        layout: "fit",
        markDirty: true,
        sortable: true,
        grouped: false,
        scrollable: true,
        enableColumnMove: false,
        collapsible: "bottom",
        /* more grid config...*/
    }],
    buttons: [{
        /* buttons config...*/
    }]
});

提琴样品怎么样?