2017-04-21 98 views
0

我用ExtJs 6.2.0, 寫了一個帶有一個日期列的簡單網格,但它看起來不太好看。我的意思是日期選擇器非常狹窄和怪異。Extjs datefield在我的網格中看起來很奇怪

xtype: 'gridpanel', 
    reference: 'payordFlowGrid', 
    width: 1000, 
    minHeight: 120, 
    margin: '0 0 10 0', 
    requires: [ 
     'Ext.selection.CellModel', 
     'Ext.grid.column.Action' 
    ], 
    plugins: { 
     ptype: 'cellediting', 
     clicksToEdit: 1, 
     listeners: { 
      beforeedit: function(editor, context, eOpts){ 
       // workaround for error at clicking a widgetcolumn 
       if (context.column.widget) 
        return false; 
      } 
     } 
    }, 
    bind: { 
     store: '{payordflowstore}' 
    }, 
    actions: { 
     del: { 
      glyph: '[email protected]', 
      tooltip: 'Del', 
      handler: 'onGridPayordFlowDel' 
     } 
    }, 
    columns: [ 
     ... 
     { text: '№ п.п.', dataIndex: 'npp', width: 100, 
      editor: { 
       allowBlank: true 
      } 
     }, 
     { xtype: 'datecolumn', 
      header: 'Дата', 
      dataIndex: 'dt', 

      width: 95, 
      format: 'd m Y', 
      editor: { 
       xtype: 'datefield', 
       format: 'd.m.y' 
      } 
     }, 
     { text: 'Расчет.сумма', dataIndex: 'summa6', width: 100 
     }, 
     { xtype: 'checkcolumn', text: 'Подпись', dataIndex: 'signed' } 
     , 
     { 
      menuDisabled: true, 
      sortable: false, 
      xtype: 'actioncolumn', 
      width: 50, 
      items: ['@del'] 
     } 
    ] 
} 

現在我的問題: 爲什麼我的日期選擇器看起來很怪異: enter image description here

但我看到there煎茶樣品,這看起來不錯: enter image description here

回答

2

沒有錯,你的代碼。確保使用演示中使用的css。你目前的CSS不好。

+0

你說得對。我剛剛在我的應用程序文件夾的命令行中完成了此操作:「sencha app build」,並且sencha添加了必需的css應用程序,並且我的日期選擇器變得好看 – Lev

相關問題