作者:陈杰铭雅意 | 来源:互联网 | 2023-01-15 08:47
Hi guys I have been using sencha cmd to create an app using "sencha generate app ...". Then I wanted to use charts, so I modified the app.json file and added this:
嗨,大家好我一直在使用sencha cmd创建一个使用“sencha generate app ...”的应用程序。然后我想使用图表,所以我修改了app.json文件并添加了这个:
/**
* The list of required packages (with optional versions; default is "latest").
*
* For example,
*
* "requires": [
* "sencha-charts"
* ]
*/
"requires": [
'sencha-charts'
]
So I can display charts well, except that I dont have the css loaded too. I could add a
pointing to the css file for charts (in my case ext-charts-all.css). But I don't find this solution correct. Any guesses on how to build a sencha app using sencha cmd with charts AND css ?
所以我可以很好地显示图表,除了我没有加载css。我可以添加一个
指向图表的css文件(在我的例子中是ext-charts-all.css)。但我发现这个解决方案没有问题。有关如何使用带有图表和CSS的sencha cmd构建sencha应用程序的任何猜测?
Thanks a lot !
非常感谢 !
1 个解决方案