自定义组件库-封装第三方图表,如echarts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

utils.js 353B

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;