wenzhixin / bootstrap-table

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation, Vue.js)
https://bootstrap-table.com/
MIT License
11.74k stars 4.44k forks source link

本地数据显示为“-” #5241

Closed hz0ne closed 4 years ago

hz0ne commented 4 years ago

Description

按照官网的数据设置测试数据

以下为html页面:

json数据: [{"id": "123", "cluster_name": "all", "package_type": "pip", "package_name": "numpy", "package_version": "1x.xx", "commiter_name": "test" },{ "id": "124", "cluster_name": "all", "package_type": "pip", "package_name": "numpy", "package_version": "1x.xx", "commiter_name": "test2" },{ "id": "125", "cluster_name": "all", "package_type": "pip", "package_name": "numpy", "package_version": "1x.xx", "commiter_name": "tesx" },{ "id": "126", "cluster_name": "all", "package_type": "pip", "package_name": "numpy", "package_version": "1x.xx", "commiter_name": "test" },{ "id": "127", "cluster_name": "all", "package_type": "pip", "package_name": "numpy", "package_version": "1x.xx", "commiter_name": "test" },{ "id": "128", "cluster_name": "all", "package_type": "pip", "package_name": "numpy", "package_version": "1x.xx", "commiter_name": "test" }

]

现在显示是不正确的,从渲染F12看是-这个字符,但是console是正确的json数据,不知道问题出在哪 我是使用bootstrap-flask的,加载的bootstrap版本4.3,jquery3.4版本 使用bootstraptable17.1 15.4都是同样的情况,浏览器无缓存 Example (optional)

image

UtechtDustin commented 4 years ago

Please use our editor for examples!

hz0ne commented 4 years ago

Please use our editor for examples!

well, the vue example, the editor not working, I write html with flask-bootstrap, and js script to generate html

wenzhixin commented 4 years ago

@dhxsy1994 It is field, you wrote it as filed.

https://examples.bootstrap-table.com/#column-options/field.html


field, 你写成了 filed