我不知道为什么,但ExtJS不显示网格的内容,如果它在常规面板。ExtJS面板不会加载里面的网格内容
当我添加网格tab.Panel然后一切都很好。
小提琴(多个文件): https://fiddle.sencha.com/?fiddle=19bi#fiddle/19bi
检查主页选项卡已并网。它不使用Ext.Panel。用户选项卡的用途并没有显示网格。
文件在我的项目:
简单商店(APP \店\ Personnel.js)
我的面板有1个项目。 当我改变Ext.tab.Panel到Ext.Panel那么格的内容不会显示(现代的\ src \图\主\ Main.js)
Ext.define('MyApp.view.main.Main', {
extend: 'Ext.tab.Panel',
xtype: 'app-main',
...
items: [
{
title: 'Home',
iconCls: 'x-fa fa-home',
layout: 'fit',
// The following grid shares a store with the classic version's grid as well!
items: [{
xtype: 'mainlist'
}]
}
]
});
项目本身(MYAPP \现代的\ src \图\ main \ List.js):
Ext.define('MyApp.view.main.List', {
extend: 'Ext.grid.Grid',
xtype: 'mainlist',
requires: [
'MyApp.store.Personnel'
],
title: 'Personnel',
store: {
type: 'personnel'
},
...
});
不确定Ext.Panel类名的有效性。你尝试过Ext.panel.Panel吗? – jacoviza
https://docs.sencha.com/extjs/6.0/6.0.2-modern/#!/api/Ext.Panel。这是一个现代主题。 – freento
请小提琴。 – Alexander