mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(utils-v2): add Function type to iconPropType (#5890)
This commit is contained in:
@@ -11,7 +11,11 @@ import {
|
||||
import { definePropType } from './prop'
|
||||
import type { Component } from 'vue'
|
||||
|
||||
export const iconPropType = definePropType<string | Component>([String, Object])
|
||||
export const iconPropType = definePropType<string | Component>([
|
||||
String,
|
||||
Object,
|
||||
Function,
|
||||
])
|
||||
|
||||
export const CloseComponents = {
|
||||
Close,
|
||||
|
||||
Reference in New Issue
Block a user