【发布时间】: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 /> ',
' <img alt="" src="app/images/setahierarquia.png" />',
' <tpl if="NomeParte != \'\' || NomeParte != null">{CodeParte}- {NomeParte}',
' <br />',
' ',
' <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> {TextoProblema} </p>',
' </tpl>',
' <tpl if="Status && Status !== \'\'">',
' <p> <b>Status da Garantia: </b> {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: '  Lista 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