NoRowsOverlay应用过滤器后,该过滤器不起作用,因此没有可显示的行。
这是我的代码:
function customNoRowsOverlay() {
return (
<GridOverlay>
<div>No Rows</div>
</GridOverlay>
)
}
Run Code Online (Sandbox Code Playgroud)
components={{ NoRowsOverlay: customNoRowsOverlay }}
Run Code Online (Sandbox Code Playgroud)
如果应用过滤器后没有要显示的行,我需要显示“无行”消息。但是,如果您有以上代码,则可以使用rows={[]}
我的Angular 5项目工作正常,突然之间,我得到了:Angular 5 common.js:263 Uncaught ReferenceError:$ st未定义
但是项目工作正常,但仍然在控制台中看到此错误.
有人可以帮我解决这个错误吗?
这是我的package.json文件:
dependencies: {
"@angular/animations": "5.0.0",
"@angular/cdk": "5.2.4",
"@angular/common": "5.0.0",
"@angular/compiler": "5.0.0",
"@angular/core": "5.0.0",
"@angular/forms": "5.0.0",
"@angular/http": "5.0.0",
"@angular/material": "5.2.4",
"@angular/platform-browser": "5.0.0",
"@angular/platform-browser-dynamic": "5.0.0",
"@angular/platform-server": "5.0.0",
"@angular/router": "5.0.0",
"@swimlane/ngx-charts": "^7.4.0",
"angular-font-awesome": "^3.1.2",
"bootstrap": "4.0.0-beta",
"classlist.js": "^1.1.20150312",
"core-js": "2.4.1",
"d3": "4.13.0",
"font-awesome": "^4.7.0",
"jquery": "3.2.1",
"jsonwebtoken": "8.1.0",
"moment-mini-ts": "2.20.1",
"ngx-bootstrap": "2.0.0-beta.8",
"ngx-cookie": "1.0.1",
"popper.js": "1.12.9",
"rxjs": "5.5.2",
"zone.js": "^0.8.14"
}
Run Code Online (Sandbox Code Playgroud)