feat: 新增图表位置处理

This commit is contained in:
MTrun
2022-02-25 21:26:56 +08:00
parent d9a3b358e7
commit 0c2da460a3
11 changed files with 310 additions and 272 deletions
@@ -1,7 +1,6 @@
import { PublicConfigType } from '@/packages/index.d'
import { PickCreateComponentType } from '@/packages/index.d'
type PickPublicConfigType<T extends keyof PublicConfigType> = Pick<PublicConfigType, T>[T]
type AttrType = PickPublicConfigType<'attr'>
type AttrType = PickCreateComponentType<'attr'>
export const useComponentStyle = (attr: AttrType, index: number) => {
const componentStyle = {