【发布时间】:2017-01-09 20:45:44
【问题描述】:
我希望能够通过下拉菜单进行选择,哪些列显示在我的 React 表格中。
类似于此示例中的内容:http://issues.wenzhixin.net.cn/bootstrap-table/
我想使用工具栏中的“列”下拉按钮。但我不能在 React 中使用它..
我试图做这样的事情:https://fiddle.jshell.net/wenyi/uzgkzjcp/7/light/
但我收到此错误消息:
./~/bootstrap-table/package.json 中的错误 模块解析失败:..\node_modules\bootstrap-table\package.json 意外令牌 (2:9) 您可能需要适当的加载程序来处理此文件类型。 SyntaxError:意外的令牌 (2:9) 在 Parser.pp$4.raise (....\node_modules\acorn\dist\acorn.js:2221:15) 在 Parser.pp.unexpected (....\node_modules\acorn\dist\acorn.js:603:10) 在 Parser.pp.semicolon (....\node_modules\acorn\dist\acorn.js:581:61) 在 Parser.pp$1.parseExpressionStatement (....\node_modules\acorn\dist\acorn.js:966:10) 在 Parser.pp$1.parseStatement (....\node_modules\acorn\dist\acorn.js:730:24) 在 Parser.pp$1.parseBlock (....\node_modules\acorn\dist\acorn.js:981:25) 在 Parser.pp$1.parseStatement (....\node_modules\acorn\dist\acorn.js:709:33) 在 Parser.pp$1.parseTopLevel (....\node_modules\acorn\dist\acorn.js:638:25) 在 Parser.parse (....\node_modules\acorn\dist\acorn.js:516:17) 在 Object.parse (....\node_modules\acorn\dist\acorn.js:3098:39) @ ./~/bootstrap-table/Gruntfile.js 104:22-47
有人有想法吗? 谢谢!
【问题讨论】:
-
显示你做了什么。