Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/427.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
Javascript 窗体面板上的按钮未显示_Javascript_Extjs - Fatal编程技术网

Javascript 窗体面板上的按钮未显示

Javascript 窗体面板上的按钮未显示,javascript,extjs,Javascript,Extjs,这是我的代码,我需要的按钮是关闭的文件字段,但按钮没有出现在任何地方,有什么问题 Ext.define('Academico.view.etpPersonalizada.Edit', { extend: 'Sharedev.form.Panel', alias: 'widget.academico-etpPersonalizadaEdit', store: 'Academico.store.EtpPersonalizadas', model: 'Academic

这是我的代码,我需要的按钮是关闭的文件字段,但按钮没有出现在任何地方,有什么问题

 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'
                            }

                        },
                        {
试着放在这里,什么都没有

这里也一样

}))

问题是无论我把按钮放在哪里,按钮都不会出现。我正在使用ExtJS4.2

你的拼写错误

xype: 'button'
应该是

xtype: 'button'
你有打字错误

xype: 'button'
应该是

xtype: 'button'
你有打字错误

xype: 'button'
应该是

xtype: 'button'
你有打字错误

xype: 'button'
应该是

xtype: 'button'