huyunan
huyunan
现在我有一个情况是,我用 nconf 生成一个配置文件 config.json ,然后使用监听方法监听 config.json 的变化,重新生成配置。但是用户可能为了方便直接清空文件内容,而不是保留 "{}" 最外层大括号。但这就会有 parse 为空报错问题,所以加了个空判断,如果文件已经生成了,但是文件内容为空,默认设置为空对象。可以吗? Now I have a situation where I generate a configuration file named config.json using nconf, and then use the...
throw new Error('Cannot add store with unknown type: ' + type); ^ Error: Cannot add store with unknown type: global at exports.Provider.Provider.add (D:\gitee\huyunan\nconf\lib\nconf\provider.js:130:11) at D:\gitee\huyunan\nconf\lib\nconf\provider.js:187:12 at Array.forEach () at exports.Provider.Provider.init...
add: The table stripe display can be set. ## Summary by CodeRabbit - **新功能** - 表格组件新增条纹行(striped row)样式支持,通过设置属性可为表格奇数行添加背景色区分。 - 新增条纹表格的示例和相关文档,方便用户了解和使用该功能。 - **样式** - 增加了条纹行的样式规则,提升表格可读性。