mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-22 21:46:23 +08:00
fix:提取AttrType类型
This commit is contained in:
parent
0b58dd4d17
commit
f91b1d7f8a
@ -1,5 +1,7 @@
|
|||||||
import { PublicConfigType } from '@/packages/index.d'
|
import { PublicConfigType } from '@/packages/index.d'
|
||||||
type AttrType = Pick<PublicConfigType, 'attr'>['attr']
|
|
||||||
|
type PickPublicConfigType<T extends keyof PublicConfigType> = Pick<PublicConfigType, T>[T]
|
||||||
|
type AttrType = PickPublicConfigType<'attr'>
|
||||||
|
|
||||||
export const useComponentStyle = (attr: AttrType, index: number) => {
|
export const useComponentStyle = (attr: AttrType, index: number) => {
|
||||||
const componentStyle = {
|
const componentStyle = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user