layoutHook.ts 477 B

1234567891011121314151617181920
  1. import { ref, toRefs } from 'vue'
  2. // 布局
  3. import { useChartLayoutStore } from '@/store/modules/chartLayoutStore/chartLayoutStore'
  4. // 样式
  5. import { useDesignStore } from '@/store/modules/designStore/designStore'
  6. // 全局颜色
  7. const designStore = useDesignStore()
  8. const themeColor = ref(designStore.getAppTheme)
  9. // 结构控制
  10. const { setItem } = useChartLayoutStore()
  11. const { getCharts } = toRefs(useChartLayoutStore())
  12. export {
  13. themeColor,
  14. setItem,
  15. getCharts
  16. }