【问题标题】:Ext.dataview.List not showing items after buildExt.dataview.List 在构建后不显示项目
【发布时间】:2015-12-02 17:50:30
【问题描述】:

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

当我在没有缩小的情况下运行这个应用程序时,它会按预期工作。

每个其他列表都按预期工作,另一个使用相同商店的列表也是如此。

如何在构建期间禁用 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
                                }
                            ]
                        }
                    ]
                }

【问题讨论】:

    标签: sencha-architect sencha-touch-2.1


    【解决方案1】:

    我有问题!其他所有功能列表都设置为布局属性vbox。构建后停止工作的唯一列表设置为card。改变这一点,解决问题。

    【讨论】:

      猜你喜欢
      • 2015-07-13
      • 1970-01-01
      • 2023-03-16
      • 1970-01-01
      • 1970-01-01
      • 2012-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多