yeatszhang
yeatszhang
在组件中引入 css,file 等 assets,个人感觉不清晰也不好处理,因为这些东西依赖 public_url,而public_url是由组件的使用者来决定的。 静态资源采用拷贝或者调用各自的compiler处理,由外部使用者来决定使用的方式,这样是否更好一些呢~ 比如: * css 拷贝 * less 调用 less * postcss 调用 postcss 而 js 处理部分则专注一处理 js 的打包即可,甚至可以约束 vue 文件中不允许写样式。
 there are some problems with vue plugin. the continue indent is too large. for example when start with '.' here is my indent config 
如何在父组件中实现数据请求? 只要修改fetchConfig中的任意配置即可。(因为组件中会深度监听该对象,任何修改都会触发请求。) 是不是可以考虑通过暴露类似reload的方法去触发数据刷新,通过修改fetch配置的方式有些不妥。