刚刚升级了烤盘和反应包到最新的。问题是更新到版本 0.7 后,griddle 仅在设置中显示 columnMeta
我需要在 columnMeta 数组中添加所有列,否则它们不会在设置部分中列出
let columnMeta = [
{
columnName: 'actions',
order: 1,
displayName: 'Actions',
customComponent: this.getActions,
},
{
columnName: 'imgUrls',
customComponent: this.getImageComponent,
},
{
columnName: 'name',
customComponent: this.getNameComponent,
},
{
columnName: 'block',
customComponent: this.getMe,
},
];
通过添加最后一个列块进行测试。
package.json 是
"dependencies": {
"draft-js": "^0.9.1",
"draft-js-export-html": "^0.5.2",
"draft-js-import-html": "^0.3.2",
"externalify": "^0.1.0",
"fbjs": "^0.8.8",
"fibers": "^1.0.15",
"formsy-react": "^0.19.0",
"googleapis": "^16.1.0",
"griddle-react": "^0.7.1",
"imports": "^1.0.0",
"keycode": "^2.1.8",
"kisi-client": "^5.0.3",
"mailgun-js": "^0.7.11",
"material-ui": "v0.16.6",
"meteor-node-stubs": "^0.2.4",
"moment": "^2.17.1",
"moment-timezone": "^0.5.11",
"multiparty": "^4.1.2",
"radium": "^0.18.1",
"react": "15.4.2",
"react-addons-pure-render-mixin": "15.4.2",
"react-addons-shallow-compare": "15.4.2",
"react-dom": "15.4.2",
"react-event-listener": "^0.4.0",
"react-router": "^3.0.1",
"react-rte-gc": "0.11.6",
"react-tap-event-plugin": "^2.0.1",
"react-widgets": "^3.4.5",
"scroll": "^2.0.0",
"simpl-schema": "0.0.3",
"simple-assign": "^0.1.0",
"twilio": "^2.11.0",
"underscore": "^1.8.3"
}
在控制台中没有出现错误或问题,原因可能是它的 Meteor + ReactJS 项目的任何想法