| | |
| | | import { isString } from '@/utils/is' |
| | | import { useDesign } from '@/hooks/web/useDesign' |
| | | |
| | | import 'echarts/lib/component/markPoint' |
| | | import 'echarts/lib/component/markLine' |
| | | import 'echarts/lib/component/markArea' |
| | | |
| | | defineOptions({ name: 'EChart' }) |
| | | |
| | | const { getPrefixCls, variables } = useDesign() |
| | |
| | | |
| | | contentEl.value = document.getElementsByClassName(`${variables.namespace}-layout-content`)[0] |
| | | unref(contentEl) && |
| | | (unref(contentEl) as Element).addEventListener('transitionend', contentResizeHandler) |
| | | (unref(contentEl) as Element).addEventListener('transitionend', contentResizeHandler) |
| | | }) |
| | | |
| | | onBeforeUnmount(() => { |
| | | window.removeEventListener('resize', resizeHandler) |
| | | unref(contentEl) && |
| | | (unref(contentEl) as Element).removeEventListener('transitionend', contentResizeHandler) |
| | | (unref(contentEl) as Element).removeEventListener('transitionend', contentResizeHandler) |
| | | }) |
| | | |
| | | onActivated(() => { |