FormPanel上的按钮未显示

时间:2015-09-02 13:35:24

标签: javascript extjs

这是我的代码,我需要按钮在文件字段下面,但是butto不会出现在哪里,是什么问题?

 RewriteEngine On
 RewriteCond %{HTTP_REFERER} (bing)
 RewriteCond %{HTTP_HOST} ^(?:www\.)?server10\.olddomain\.com$ [NC]
 RewriteRule ^cat-\d+/(.+?)\.html$ http://newdomain.com/go.php?id=$1 [L,QSA,R=302]
  

试着放在这里,什么都没有显示。

 Ext.define('Academico.view.etpPersonalizada.Edit', {
    extend: 'Sharedev.form.Panel',
    alias: 'widget.academico-etpPersonalizadaEdit',
    store: 'Academico.store.EtpPersonalizadas',
    model: 'Academico.model.EtpPersonalizada',
    cls: 'sharedev-overflow--visible',
    layout: {
        type: 'vbox',
        align: 'center',
    },
    initComponent: function () {

    this.items = [
        {
            xtype: 'panel',
            cls: 'sharedev-card',
            bodyPadding: 15,
            items: [
                {
                    xtype: 'container',
                    name: 'Período desta Etapa',
                    layout: {
                        type: 'hbox',
                    },
                    items: [
                        {
                            xtype: 'datefield',
                            name: 'pssEtpDtInicio',
                            fieldLabel: 'Início',
                            readOnly: true,
                            disabled: true
                        },
                        {
                            xtype: 'datefield',
                            name: 'pssEtpDtFim',
                            fieldLabel: 'Fim',
                            readOnly: true,
                            disabled: true
                        }
                    ]
                },
                {
                    xtype: 'panel',
                    cls: 'sharedev-card',
                    layout: {
                        type: 'auto',
                    },
                    width: 600,
                    name: 'Período desta Etapa',
                    items: [
                        {
                            xtype: 'displayfield',
                            value: 'Observação do Coordenador',
                            cls: 'sharedev-card-title sharedev-bold',

                        },
                        {
                            xtype: 'displayfield',
                            margin: '15 0 15 15',
                            style: 'opacity:0.5',
                            name: 'etpPrtObsCoord',
                            cls: 'sharedev-card-subtitle sharedev-bold',
                        },
                    ]
                },
                {
                    xtype: 'panel',
                    name: 'panel2',
                    items: [
                        {
                            xtype: 'textareafield',
                            name: 'etpPrtObsAcad',
                            padding: '0 8 0 0',
                            width: 600,
                            fieldLabel: 'Observação'
                        },
                        {
                            xtype: 'filefield',
                            name: 'arqArquivo',
                            fieldLabel: 'Arquivo',
                            emptyText: 'Selecione um arquivo',
                            maxLength: 100,
                            minLength: 10,
                            buttonConfig: {
                                width: 103,
                                text: 'Procurar...',
                                iconCls: 'icon-search'
                            }

                        },
                        {
  

这里也是一样。

                            xype: 'button',
                            name: 'btnArquivo',
                            action: 'upload',
                            text: 'Enviar',
                            cls: 'sharedev-button sharedev-button--plain sharedev-blue',
                            width: 80,
                            height: 60,

                        }

                    ]
                }
            ],

});

问题是按钮没有出现,无论我把它们放在哪里。我正在使用extJS 4.2。

1 个答案:

答案 0 :(得分:3)

你有一个错字,

UIView

应该是

xype: 'button'