Guest User

Untitled

a guest
Oct 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. switch (props.name) {
  2. case "yAggregation":
  3. newState.requestConfig.yAggregation = value;
  4. break;
  5. case "yField":
  6. newState.requestConfig.yField = value;
  7. break;
  8. case "yCount":
  9. newState.requestConfig.yCount = value;
  10. break;
  11. case "yInterval":
  12. newState.requestConfig.yInterval = value;
  13. break;
  14. case "xAggregation":
  15. newState.requestConfig.xAggregation = value;
  16. break;
  17. case "xField":
  18. newState.requestConfig.xField = value;
  19. break;
  20. case "xCount":
  21. newState.requestConfig.xCount = value;
  22. break;
  23. case "xInterval":
  24. newState.requestConfig.xInterval = value;
  25. break;
  26. }
  27.  
  28. newState.requestConfig[props.name] = value;
Add Comment
Please, Sign In to add comment