component.scheme.js 636 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { GROUP, NAME, OPTION, VALUE } from '@cip/components/cip-charts/const'
  2. export const propsScheme = {
  3. options: {
  4. type: Object,
  5. default: () => OPTION,
  6. intro: '图表配置项'
  7. },
  8. dataset: {
  9. type: Array,
  10. default: () => [],
  11. intro: '数据集'
  12. },
  13. bindProps: {
  14. type: Object,
  15. default: () => ({
  16. name: NAME,
  17. value: VALUE,
  18. group: GROUP,
  19. intro: '属性绑定'
  20. })
  21. }
  22. }
  23. export const eventsScheme = {
  24. 'chart-init': {
  25. intro: '图表加载后抛出charts实例',
  26. cbVar: '图表实例charts'
  27. }
  28. }
  29. export const componentScheme = {
  30. propsScheme,
  31. eventsScheme
  32. }