Ext.dataview.List在生成后未显示项



我目前在构建应用程序后遇到wierd问题。使用命令sencha app build package构建后,我的一个列表组件就停止了对该应用程序的缩小版本的工作。

当我和你一起运行这个应用程序时,它会按预期工作。

每个其他列表都按预期工作,还有另一个使用相同Store的列表。

如何在构建过程中禁用uglify?我怀疑它把申请搞砸了。

{
                    xtype: 'list',
                    html: '',
                    id: 'listaProblemas',
                    itemId: 'listaProblemas',
                    margin: '10 0 0 0',
                    minHeight: 420,
                    padding: '0 0 0 0',
                    ui: 'round',
                    width: '100%',
                    layout: {
                        type: 'card'
                    },
                    emptyText: 'Não há problemas definidos',
                    itemTpl: Ext.create('Ext.XTemplate', 
                        '<table style="width: 100%">',
                        '    <tr>',
                        '    <td valign="middle" width="5%" align="left">',
                        '      <tpl for="SAP_OMCatalogoFalhaCausa">  ',
                        '           {% if (xindex > 1) break; %}',
                        '             <tpl if="SAP_OMCatalogoFalhaCausa == '' || SAP_OMCatalogoFalhaCausa == null">',
                        '                <img alt="" src="app/images/Pendente.png" />',
                        '            </tpl>',
                        '            <tpl if="GrupoCodeCausa == 'REPROVAD' ">',
                        '                <img alt="" src="app/images/Reprovado.png" />',
                        '            </tpl>',
                        '            <tpl if="GrupoCodeCausa != 'REPROVAD' && GrupoCodeCausa != '' && GrupoCodeCausa != null">',
                        '                <img alt="" src="app/images/Aprovado.png" />',
                        '            </tpl>',
                        '        </tpl>',
                        '    </td>',
                        '    <td width="100%" align="left">',
                        '        {NomeSistema} <br />&nbsp;',
                        '       <img alt="" src="app/images/setahierarquia.png" />',
                        '        <tpl if="NomeParte != '' || NomeParte != null">{CodeParte}- {NomeParte}',
                        '        <br />',
                        '            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;',
                        '           <img alt="" class="style2" src="app/images/setahierarquia.png" /> <b>{CodeProblema}- {NomeProblema} </b>',
                        '       </tpl>',
                        '       <br />',
                        '       <br />',
                        '        <tpl if="TextoProblema != '' && TextoProblema != null">',
                        '            <p> <b>Descrição do Problema: </b>&nbsp;{TextoProblema} </p>',
                        '        </tpl>',
                        '       <tpl if="Status && Status !== ''">',
                        '            <p> <b>Status da Garantia: </b>&nbsp;{StatusDescricao} </p>',
                        '        </tpl>',
                        '        <p> <b>Causas: </b> </p>',
                        '          <tpl if="SAP_OMCatalogoFalhaCausa == '' || SAP_OMCatalogoFalhaCausa == null">',
                        '             Não definidas.',
                        '        </tpl>',
                        '       <tpl for="SAP_OMCatalogoFalhaCausa">     ',
                        '           <p>-> {CodeCausa}- {NomeCausa}</p>',
                        '       </tpl>',
                        '    </td>    ',
                        '    </tr>',
                        '</table>',
                        '',
                        '',
                        {
                            disableFormats: true
                        }
                    ),
                    loadingText: 'Carregando....',
                    store: 'SAP_OMCatalogoFalha',
                    allowDeselect: true,
                    onItemDisclosure: true,
                    items: [
                        {
                            xtype: 'toolbar',
                            docked: 'top',
                            height: '70px',
                            html: '&nbsp&nbspLista de Problemas',
                            margin: '',
                            padding: '',
                            ui: 'subnav',
                            items: [
                                {
                                    xtype: 'button',
                                    docked: 'right',
                                    height: 60,
                                    id: 'btnProblemaDel',
                                    margin: 4,
                                    iconCls: 'trash',
                                    iconMask: true
                                },
                                {
                                    xtype: 'button',
                                    docked: 'right',
                                    height: 60,
                                    id: 'btnProblemaAdd',
                                    margin: 4,
                                    iconCls: 'add',
                                    iconMask: true
                                }
                            ]
                        }
                    ]
                }

我遇到问题了!每隔一个功能列表被设置为布局属性vbox。唯一在生成后停止工作的列表被设置为card。改变这一点,解决问题。

最新更新