feat: 新增图表位置处理

This commit is contained in:
MTrun
2022-02-25 21:26:56 +08:00
parent 8e9905816e
commit 6678b2858d
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 = {