自定义组件库-封装第三方图表,如echarts
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617
  1. const Utils = {
  2. parseStyle: function(style){
  3. let result = {};
  4. for(var key in style){
  5. if(style[key].sub){
  6. result[key] = this.parseStyle(style[key].sub);
  7. }else{
  8. result[key] = style[key].defaultValue;
  9. }
  10. }
  11. return result;
  12. }
  13. }
  14. export default Utils;